]> git.baikalelectronics.ru Git - uboot.git/commitdiff
socfpga: chameleonv3: Move environment to a text file
authorPaweł Anikiel <pan@semihalf.com>
Tue, 21 Feb 2023 15:17:02 +0000 (16:17 +0100)
committerMarek Vasut <marex@denx.de>
Tue, 21 Feb 2023 23:28:39 +0000 (00:28 +0100)
Move the environment to an easily editable text file in the boot
partition

Signed-off-by: Paweł Anikiel <pan@semihalf.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
board/google/chameleonv3/environment.txt [new file with mode: 0644]
include/configs/socfpga_chameleonv3.h

diff --git a/board/google/chameleonv3/environment.txt b/board/google/chameleonv3/environment.txt
new file mode 100644 (file)
index 0000000..52aedbb
--- /dev/null
@@ -0,0 +1,13 @@
+# MMC boot command
+bootcmd_mmc=load mmc 0:1 ${loadaddr} kernel.itb; bootm
+
+# Network boot command and vars
+bootcmd_net=dhcp; tftpboot ${loadaddr} kernel.itb; bootm
+autoload=no
+serverip=192.168.0.1
+
+# U-Boot will run this after loading this file
+bootcmd_txt=run bootcmd_mmc
+
+# Kernel cmdline
+bootargs=cma=256M console=ttyS1,115200 root=/dev/mmcblk0p3 rootflags=subvol=root rw rootwait
index 2ce7011529a49a270ec197c12c3fc34ca4e1b761..fc08e74dba0eb10b1439da9ca314fb24d76210e5 100644 (file)
 #define CFG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600, 115200}
 
 #define CFG_EXTRA_ENV_SETTINGS \
-       "autoload=no\0" \
-       "bootargs=cma=256M console=ttyS1,115200 root=/dev/mmcblk0p3 rw rootwait\0" \
-       "distro_bootcmd=bridge enable; run bootcmd_mmc\0" \
-       "bootcmd_mmc=load mmc 0:1 ${loadaddr} kernel.itb; bootm\0" \
-       "bootcmd_net=dhcp; tftpboot ${loadaddr} kernel.itb; bootm\0"
+       "distro_bootcmd=bridge enable; " \
+               "load mmc 0:1 ${loadaddr} u-boot.txt; " \
+               "env import -t ${loadaddr}; " \
+               "run bootcmd_txt\0"
 
 /*
  * L4 OSC1 Timer 0