mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-15 19:51:37 +00:00
TF Image: modify uboot env variable to support booting from tf card
Signed-off-by: sw.multimedia <sw.multimedia@starfivetech.com> Signed-off-by: Curry Zhang <curry.zhang@starfivetech.com>
This commit is contained in:
parent
8ae91040fe
commit
6492303060
2 changed files with 5 additions and 0 deletions
|
@ -32,6 +32,7 @@ CONFIG_AUTOBOOT_DELAY_STR="f"
|
|||
CONFIG_AUTOBOOT_STOP_STR="v"
|
||||
CONFIG_AUTOBOOT_KEYED_CTRLC=y
|
||||
# CONFIG_USE_BOOTCOMMAND is not set
|
||||
# CONFIG_BOOTCOMMAND="run mmcsetup; run fdtsetup; run fatenv; echo 'running boot2...'; run boot2"
|
||||
CONFIG_USE_PREBOOT=y
|
||||
CONFIG_PREBOOT="run mmcbootenv"
|
||||
CONFIG_DEFAULT_FDT_FILE="starfive/jh7100-beaglev-starlight.dtb"
|
||||
|
|
4
include/configs/starfive-jh7100.h
Normal file → Executable file
4
include/configs/starfive-jh7100.h
Normal file → Executable file
|
@ -66,6 +66,10 @@
|
|||
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
STARLIGHT_FEDORA_BOOTENV \
|
||||
"mmcsetup=mmc part\0" \
|
||||
"fdtsetup=fdt addr ${fdtcontroladdr}\0" \
|
||||
"fatenv=setenv fileaddr a0000000; fatload mmc 0:1 ${fileaddr} u74_uEnv.txt;" \
|
||||
"env import -t ${fileaddr} ${filesize}\0" \
|
||||
"loadaddr=0xa0000000\0" \
|
||||
"loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
|
||||
"ext4bootenv=ext4load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootenv}\0" \
|
||||
|
|
Loading…
Add table
Reference in a new issue