mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Lucas Stach <l.stach@pengutronix.de>
To: "Yazdani, Reyhaneh" <RYazdani@data-modul.com>,
	"barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: Re: imx-usb-loader on imx8mq/mm
Date: Thu, 12 Dec 2019 11:24:04 +0100	[thread overview]
Message-ID: <f67d5b7fec7c354a8d632dc8e20d15e5c273030f.camel@pengutronix.de> (raw)
In-Reply-To: <c0e44a15-802d-b008-36b3-3b3d6007e587@data-modul.com>

Hi Reyhaneh,

On Do, 2019-12-12 at 10:13 +0000, Yazdani, Reyhaneh wrote:
> Hello everyone,
> 
> I am trying to load Barebox to the imx8mm board via imx-usb-loader, but it stops
> in the middle. I think maybe it is because we do not have a flash-header file
> with the static RAM configuration. Does someone have any idea about that?

Currently it's impossible to load Barebox on the i.MX8M via the imx-
usb-loader. The basic issue is that the DRAM setup happens in the PBL,
so there is no way to play the DCD and load a complete Barebox image
into DRAM like we do on the older SoCs.

For boards that do the DRAM setup in the PBL we would need to implement
a 2 step loading approach in imx-usb-loader:
First load the PBL part (max_load_size in the flash-header) into SRAM,
execute the DRAM setup, then have a implementation of the imx serial
load USB protocol in the PBL, so imx-usb-loader can load the complete
image into DRAM.

There's quite a bit of implementation work to be done here, but it
would be a very welcome addition to Barebox.

Regards,
Lucas


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2019-12-12 10:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-12 10:13 Yazdani, Reyhaneh
2019-12-12 10:24 ` Lucas Stach [this message]
2019-12-13  7:20   ` Yazdani, Reyhaneh
2019-12-13  7:55     ` Sascha Hauer
2019-12-13 14:24       ` Yazdani, Reyhaneh
2020-02-21 18:32         ` Ahmad Fatoum
2020-02-24  8:43           ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f67d5b7fec7c354a8d632dc8e20d15e5c273030f.camel@pengutronix.de \
    --to=l.stach@pengutronix.de \
    --cc=RYazdani@data-modul.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox