mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Hans Christian Lønstad" <hcl@datarespons.no>
To: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: Imx-usb-loader broken on IMX8MP/v2022.09.0
Date: Sat, 17 Sep 2022 12:04:51 +0000	[thread overview]
Message-ID: <8CA6ADB4-FD4B-4CC8-9BD2-21DA02C08C85@datarespons.no> (raw)

This is observed using straight out of the box v2022.09.0 on NXP IMX8MP Eval kit:

---------

$ sudo ../drimx8/scripts/imx/imx-usb-loader ../drimx8/images/barebox-nxp-imx8mp-evk.img 
[sudo] password for hcl: 
found i.MX8MP USB device [1fc9:0146]
4 in err=-9, last_trans=0  00 00 00 00
status failed

————

Stripping off the header gap (32K) allows the binary to load using the standard NXP uuu (Ubuntu 22.04) utility,.

This further raises the question: Why have a header gap at all?

The makes sense for SD card loading, but not for eMMC boot partitions where ROM expects code to start at 0.
Maybe better just use a seek to put the code at the relevant position on the SD card?

For instance, I am using the Rauc boot loader slot update mechanism expecting no gap thus  requiring me to shave of 32k
prior to shipping.

Comments??

Hans Christian


             reply	other threads:[~2022-09-17 12:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-17 12:04 Hans Christian Lønstad [this message]
2022-09-27 17:42 ` Ahmad Fatoum
2022-09-28 10:18   ` Info Skymem

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=8CA6ADB4-FD4B-4CC8-9BD2-21DA02C08C85@datarespons.no \
    --to=hcl@datarespons.no \
    --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