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

Fabio Estevam festevam at gmail.com
Tue Aug 6 01:24:57 CEST 2024


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.


More information about the U-Boot mailing list