diff mbox series

[05/16] board: traverse: ten64: specify bootargs for recovery environment

Message ID 20230721043931.14188-6-matt@traverse.com.au
State Accepted
Commit 1fd2186a814b8481af8c01ddd47f645b9588db5b
Delegated to: Tom Rini
Headers show
Series Ten64 updates 2023-07 | expand

Commit Message

Mathew McBride July 21, 2023, 4:39 a.m. UTC
The recovery environment[1] on the Ten64 is a OpenWrt-
based ramdisk stored on the NAND intended to help with
system setup tasks.

Before the bootargs were not being set for the recovery
command, relying instead on the existing bootargs variable.

Ensure the bootargs are set correctly prior to booting recovery.

Signed-off-by: Mathew McBride <matt@traverse.com.au>

[1] https://ten64doc.traverse.com.au/software/recovery/
---
 include/configs/ten64.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Peng Fan (OSS) July 21, 2023, 8:02 a.m. UTC | #1
On 7/21/2023 12:39 PM, Mathew McBride wrote:
> The recovery environment[1] on the Ten64 is a OpenWrt-
> based ramdisk stored on the NAND intended to help with
> system setup tasks.
> 
> Before the bootargs were not being set for the recovery
> command, relying instead on the existing bootargs variable.
> 
> Ensure the bootargs are set correctly prior to booting recovery.
> 
> Signed-off-by: Mathew McBride<matt@traverse.com.au>

Reviewed-by: Peng Fan <peng.fan@nxp.com>
diff mbox series

Patch

diff --git a/include/configs/ten64.h b/include/configs/ten64.h
index 63fbafd132..1b8b27c230 100644
--- a/include/configs/ten64.h
+++ b/include/configs/ten64.h
@@ -50,6 +50,7 @@ 
 	BOOTENV \
 	"load_efi_dtb=mtd read devicetree $fdt_addr_r && fdt addr $fdt_addr_r && " \
 	"fdt resize && fdt boardsetup\0" \
-	"bootcmd_recovery=mtd read recovery 0xa0000000; && bootm 0xa0000000#ten64\0"
+	"bootcmd_recovery=mtd read recovery 0xa0000000 && " \
+	"setenv bootargs \"earlycon root=/dev/ram0 ramdisk_size=0x3000000\" && bootm 0xa0000000#ten64\0"
 
 #endif /* __TEN64_H */