Skip to contentSkip to conversation

config: Update KP's imx53 HSC config to support SWUpdate

PATCH New Lukasz Majewski 2 participants 4 messages May 8, 2019 – Jun 10, 2019 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 config: Update KP's imx53 HSC config to support SWUpdate

This commit updates envs responsible for using USB pendrive as a SWUpdate based tool for recovery and 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
#1 lore raw

PATCH 2/2 config: Update KP's imx53 HSC config to pass key pressed information

The information about pressed key is relevant in performing correct update and recovery scenarios via USB pendrive.

This commit modifies envs to provide it.

---

 include/configs/kp_imx53.h | 2 ++
 1 file changed, 2 insertions(+)
include/configs/kp_imx53.h +2 -0
index 9c7c908453..55bfa0fe59 100644
@@ -44,6 +44,7 @@
 	"updargs=setenv bootargs console=${console} ${smp} ${displayargs}\0" \
 	"initrd_ram_dev=/dev/ram\0" \
 	"addswupdate=setenv bootargs ${bootargs} root=${initrd_ram_dev} rw\0" \
+	"addkeys=setenv bootargs ${bootargs} di=${dig_in} key1=${key1}\0" \
 	"loadusb=usb start; " \
 	       "fatload usb 0 ${loadaddr} ${upd_image}\0" \
 	"up=if tftp ${loadaddr} ${uboot_file}; then " \
@@ -62,6 +63,7 @@
 	       "run updargs; " \
 	       "run addinitrd; " \
 	       "run addswupdate; " \
+	       "run addkeys; " \
 	       "run loadusb; " \
 	       "bootm ${loadaddr}#${fit_config}\0" \
 	BOOTENV
Signature · 1 line
2.11.0
#2 lore raw

PATCH 2/2 config: Update KP's imx53 HSC config to

Quoted 4 lines

The information about pressed key is relevant in performing correct update and recovery scenarios via USB pendrive.
This commit modifies envs to provide it.

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
#3 lore raw

PATCH 1/2 config: Update KP's imx53 HSC config to

In reply to Lukasz Majewski
Quoted 3 lines

This commit updates envs responsible for using USB pendrive as a SWUpdate based tool for recovery and update.

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================