On Wed, Mar 15, 2023 at 07:33:38PM +0100, Uwe Kleine-König wrote: > On platforms that don't have a 2nd stage (in my case i.MX25) it usually > happens the transfer limit for the first (and only) upload is bigger than > the actual file length. Then it's the right thing to load the complete > image (minus its header), but not more. > > This fixes a failure to boot via USB on i.MX25 that ends in > > dl_command err=-1, last_trans=0 > > Fixes: 3367ebc55ebe ("scripts: imx-usb-loader: simplify code flow for file size calculations") > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> > --- > scripts/imx/imx-usb-loader.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |