]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
verdin-am62: add u-boot update wrappers
authorEmanuele Ghidoli <emanuele.ghidoli@toradex.com>
Thu, 24 Aug 2023 08:08:49 +0000 (10:08 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 8 Sep 2023 14:07:11 +0000 (10:07 -0400)
Add update_tiboot3, update_tispl and update_uboot wrappers to update
R5 SPL, A53 SPL and A53 U-boot respectively.

Usage example:
> tftpboot ${loadaddr} tiboot3-am62x-gp-verdin.bin
> run update_tiboot3

> tftpboot ${loadaddr} tispl.bin
> run update_tispl

> tftpboot ${loadaddr} u-boot.img
> run update_uboot

Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Acked-by: Francesco Dolcini <francesco.dolcini@toradex.com>
include/configs/verdin-am62.h

index 7990ea8310227dfe322064f10f14680a7e076d03..91fc0f03a81af37876b41dd5b710072c04252803 100644 (file)
        "fdt_board=dev\0" \
        "setup=setenv setupargs console=tty1 console=${console},${baudrate} " \
                "consoleblank=0 earlycon=ns16550a,mmio32,0x02800000\0" \
-       "update_uboot=askenv confirm Did you load flash.bin (y/N)?; " \
+       "update_tiboot3=askenv confirm Did you load tiboot3.bin (y/N)?; " \
                "if test \"$confirm\" = \"y\"; then " \
                "setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt " \
                "${blkcnt} / 0x200; mmc dev 0 1; mmc write ${loadaddr} 0x0 " \
+               "${blkcnt}; fi\0" \
+       "update_tispl=askenv confirm Did you load tispl.bin (y/N)?; " \
+               "if test \"$confirm\" = \"y\"; then " \
+               "setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt " \
+               "${blkcnt} / 0x200; mmc dev 0 1; mmc write ${loadaddr} 0x400 " \
+               "${blkcnt}; fi\0" \
+       "update_uboot=askenv confirm Did you load u-boot.img (y/N)?; " \
+               "if test \"$confirm\" = \"y\"; then " \
+               "setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt " \
+               "${blkcnt} / 0x200; mmc dev 0 1; mmc write ${loadaddr} 0x1400 " \
                "${blkcnt}; fi\0"
 
 #endif /* __VERDIN_AM62_H */