summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJianlong Huang <jianlong.huang@starfivetech.com>2021-11-23 20:03:31 +0300
committerTekkaman Ninja <tekkamanninja@163.com>2021-12-29 17:41:12 +0300
commit376db1779289c51998ca8b62f50a2418aea06fc1 (patch)
tree3105baa71bb82f2e4e931314ddf5935a02ed29bb
parent86ffad8330bdeb7000ff0b55f03c7d6987101887 (diff)
downloadu-boot-376db1779289c51998ca8b62f50a2418aea06fc1.tar.xz
configs: starfive: update jh7100.h for importing u74_uEnv.txt for testing
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
-rw-r--r--include/configs/starfive-jh7100.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/configs/starfive-jh7100.h b/include/configs/starfive-jh7100.h
index 3f8391d9ad..747239cbec 100644
--- a/include/configs/starfive-jh7100.h
+++ b/include/configs/starfive-jh7100.h
@@ -61,9 +61,18 @@
"mmcdev=0\0" \
"mmcpart=3\0"
+#define STARLIGHT_TEST_BOOTENV \
+ "testpart=0:1\0" \
+ "testenv=u74_uEnv.txt\0" \
+ "mmcsetup=mmc part\0" \
+ "fdtsetup=fdt addr ${fdtcontroladdr}\0" \
+ "fatenv=fatload mmc ${testpart} ${loadaddr} ${testenv};" \
+ "env import -t ${loadaddr} ${filesize}\0"
+
#define CONFIG_EXTRA_ENV_SETTINGS \
STARLIGHT_FEDORA_BOOTENV \
"loadaddr=0xa0000000\0" \
+ STARLIGHT_TEST_BOOTENV \
"loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
"ext4bootenv=ext4load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootenv}\0" \
"importbootenv=echo Importing environment from mmc${mmcdev} ...; " \