colibri_vf: add update_uboot wrapper
authorIgor Opaniuk <igor.opaniuk@toradex.com>
Mon, 9 Dec 2019 10:33:32 +0000 (12:33 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 7 Jan 2020 09:26:56 +0000 (10:26 +0100)
Add universal update_uboot wrapper that helps to update
U-Boot image on internal storage.

Usage example:
> tftpboot ${loadaddr} ${board_name}/u-boot-nand.imx
> run update_uboot

Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
include/configs/colibri_vf.h

index 40c050a..1478ea8 100644 (file)
        "ramdisk_addr_r=0x82100000\0" \
        "scriptaddr=0x87000000\0"
 
+#define UBOOT_UPDATE \
+       "update_uboot=nand erase.part u-boot && " \
+               "nand write ${loadaddr} u-boot ${filesize}\0" \
+
 #define NFS_BOOTCMD \
        "nfsargs=ip=:::::eth0: root=/dev/nfs\0" \
        "nfsboot=run setup; " \
        NFS_BOOTCMD \
        SD_BOOTCMD \
        UBI_BOOTCMD \
+       UBOOT_UPDATE \
        "console=ttyLP0\0" \
        "defargs=user_debug=30\0" \
        "dfu_alt_info=" DFU_ALT_NAND_INFO "\0" \