Skip to contentSkip to conversation

config: Update KP's imx53 HSC|DDC boards config to support SWUpdate

PATCH New Lukasz Majewski 1 participant 1 message Apr 8, 2019 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 config: Update KP's imx53 HSC|DDC boards config to support SWUpdate

This commit updates envs responsible for using USB perdrive as a tool for recovery / update.

---

 include/configs/kp_imx53.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
include/configs/kp_imx53.h +5 -2
index a252e9003d..9c7c908453 100644
@@ -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
Signature · 1 line
2.11.0