]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
config: Update KP's imx53 HSC config to support SWUpdate
authorLukasz Majewski <lukma@denx.de>
Wed, 8 May 2019 14:26:22 +0000 (16:26 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 11 Jun 2019 08:42:48 +0000 (10:42 +0200)
This commit 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_imx53.h

index a252e9003de3acf23e5666678e81d6af0f6480d4..9c7c9084536065281d2b0945da6da7acde01e6c3 100644 (file)
@@ -41,8 +41,9 @@
        "addinitrd=setenv bootargs ${bootargs} rdinit=${rdinit} ${debug} \0" \
        "upd_image=st.4k\0" \
        "uboot_file=u-boot.imx\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" \
        "up=if tftp ${loadaddr} ${uboot_file}; then " \
@@ -59,6 +60,8 @@
        "usbupd=echo Booting update from usb ...; " \
               "setenv bootargs; " \
               "run updargs; " \
+              "run addinitrd; " \
+              "run addswupdate; " \
               "run loadusb; " \
               "bootm ${loadaddr}#${fit_config}\0" \
        BOOTENV