]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: config: Update KP's TPC70 config to support SWUpdate
authorLukasz Majewski <lukma@denx.de>
Thu, 10 Oct 2019 14:11:30 +0000 (16:11 +0200)
committerStefano Babic <sbabic@denx.de>
Sun, 13 Oct 2019 20:49:12 +0000 (22:49 +0200)
This patch updates envs responsible for using USB pendrive as a
SWUpdate based tool for recovery and update.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
include/configs/kp_imx6q_tpc.h

index 08cf90280ee25e6548d26bf3b905bfb94f31a7e3..f6746a93ca25979516c3f9c3b8e516cbd325e511 100644 (file)
@@ -65,8 +65,9 @@
        "SPL_file=SPL\0" \
        "wic_file=kp-image-kpimx6qtpc.wic\0" \
        "upd_image=st.4k\0" \
-       "updargs=setenv bootargs console=${console} ${smp}"\
-              "rdinit=${rdinit} ${debug} ${displayargs}\0" \
+       "updargs=setenv bootargs console=${console} ${smp} ${displayargs}\0" \
+       "initrd_ram_dev=/dev/ram\0" \
+       "addswupdate=setenv bootargs ${bootargs} root=${initrd_ram_dev} rw\0" \
        "loadusb=usb start; " \
               "fatload usb 0 ${loadaddr} ${upd_image}\0" \
        "upd_uboot_sd=" \
@@ -94,6 +95,8 @@
        "usbupd=echo Booting update from usb ...; " \
               "setenv bootargs; " \
               "run updargs; " \
+              "run addinitrd; " \
+              "run addswupdate; " \
               "run loadusb; " \
               "bootm ${loadaddr}#${fit_config}\0" \
        BOOTENV