[PATCH v2] config: Add 'update_bootimg' command to update flash.bin on Phytec's imx8mm

Lukasz Majewski lukma at denx.de
Tue Aug 6 10:08:05 CEST 2024


Hi Fabio,

> Hi Lukasz,
> 
> On Mon, Aug 5, 2024 at 5:42 AM Lukasz Majewski <lukma at denx.de> wrote:
> 
> > +       "update_offset=0x42\0" \
> > +       "update_filename=flash.bin\0" \
> > +       "hostname=/srv/tftp/\0" \
> > +       "update_bootimg="
> >     \
> > +               "mmc dev ${mmcdev} ; "          \
> > +               "if dhcp ${loadaddr} ${hostname}/${update_filename}
> > ; then "    \
> > +               "setexpr fw_sz ${filesize} / 0x200 ; "  /* SD block
> > size */ \
> > +               "setexpr fw_sz ${fw_sz} + 1 ; "  
> 
> As Benjamin pointed out earlier this increment by one is not
> necessary.
> 
> All other i.MX8M docs don't have this increment.

So apparently the BSP build scripts in OE/Yocto take always care to
have 0x200 aligned binaries (imx-boot and flash.bin).

OK, I will remove it.


Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20240806/938cef7d/attachment.sig>


More information about the U-Boot mailing list