]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: traverse: ten64: specify bootargs for recovery environment
authorMathew McBride <matt@traverse.com.au>
Fri, 21 Jul 2023 04:39:20 +0000 (04:39 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 3 Aug 2023 13:40:50 +0000 (09:40 -0400)
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/

Reviewed-by: Peng Fan <peng.fan@nxp.com>
include/configs/ten64.h

index 63fbafd1325274d29fcf4e5084e5f7ddd3cf600c..1b8b27c230771a64d2632b921d4b807a5a1bda6c 100644 (file)
@@ -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 */