]> git.sur5r.net Git - u-boot/commitdiff
display5: config: Provide 'tftp_mmc_rootfs_bkp' command to write BACKUP rootfs
authorLukasz Majewski <lukma@denx.de>
Fri, 11 May 2018 14:51:10 +0000 (16:51 +0200)
committerStefano Babic <sbabic@denx.de>
Mon, 18 Jun 2018 13:44:21 +0000 (15:44 +0200)
Signed-off-by: Lukasz Majewski <lukma@denx.de>
include/configs/display5.h

index 929741dedd71bd6309c2b4fea6a708d8f83eecde..fed88801ea498bcf913bfec4082c43e04a08d369 100644 (file)
        "rootfs_part_active=2\0" \
        "rootfs_part_backup=4\0" \
        "rootfs_file=core-image-lwn-display5.ext4\0" \
+       "rootfs_file_backup=core-image-lwn-backup-display5.ext4\0" \
        __TFTP_UPDATE_ROOTFS \
+       "tftp_mmc_rootfs_bkp=" \
+          "setenv rootfs_part ${rootfs_part_backup};" \
+          "setenv rootfs_file ${rootfs_file_backup};" \
+          "run tftp_mmc_rootfs\0" \
        TFTP_UPDATE_RECOVERY_SWU_KERNEL \
        TFTP_UPDATE_RECOVERY_SWU_INITRAMFS \
        "\0" \