diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2024-04-11 11:11:56 +0200 |
---|---|---|
committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2024-04-11 14:55:00 +0200 |
commit | 629655d5d2188b650cd35a4a206c5d975b54ed32 (patch) | |
tree | d2438908621dee4b0030699e993a27a095f94b04 /configs | |
parent | 8e72f2d74aaa88e244c4a35f1ee393f4f5a47655 (diff) | |
download | u-boot-629655d5d2188b650cd35a4a206c5d975b54ed32.tar.gz u-boot-629655d5d2188b650cd35a4a206c5d975b54ed32.tar.bz2 u-boot-629655d5d2188b650cd35a4a206c5d975b54ed32.zip |
tizen: bootscript: vf2: update boot scripts
Update VF2 boot script to match the one developped recently for
LicheePi4A. This improves the following things:
- partitions are discovered by GPT name, not by hardcoded number
- root= kernel parameter is correctly set for partitions up to 19th
- switch to generic devtype/devnum envs like for typical distro_boot case
- reordered some operations and added more comments
- tested A/B booting
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I038f42c8b4f1133798b8d8c8e2f89955b717ca9d
Diffstat (limited to 'configs')
-rw-r--r-- | configs/tizen_qemu-riscv64_smode_defconfig | 2 | ||||
-rw-r--r-- | configs/tizen_starfive_visionfive2_defconfig | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/configs/tizen_qemu-riscv64_smode_defconfig b/configs/tizen_qemu-riscv64_smode_defconfig index fb285190f0..1a7da7912d 100644 --- a/configs/tizen_qemu-riscv64_smode_defconfig +++ b/configs/tizen_qemu-riscv64_smode_defconfig @@ -11,7 +11,7 @@ CONFIG_DISTRO_DEFAULTS=y CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80200000 CONFIG_FIT=y -CONFIG_BOOTCOMMAND="load ${bootdevtype} ${bootdevnum}:${bootpart} ${scriptaddr} ${prefix}${script}; devtype=${bootdevtype}; devnum=${bootdevnum}; distro_bootpart=${bootpart}; source ${scriptaddr}" +CONFIG_BOOTCOMMAND="part number ${devtype} ${devnum} ${bootname} bootpart; load ${devtype} ${devnum}:${bootpart} ${scriptaddr} ${prefix}${script}; distro_bootpart=${bootpart}; source ${scriptaddr}" CONFIG_USE_PREBOOT=y CONFIG_PREBOOT="setenv fdt_addr ${fdtcontroladdr}; fdt addr ${fdtcontroladdr}; test -n \"${loadbootenv}\" -a -n \"${importbootenv}\" && run loadbootenv && run importbootenv;" CONFIG_DISPLAY_CPUINFO=y diff --git a/configs/tizen_starfive_visionfive2_defconfig b/configs/tizen_starfive_visionfive2_defconfig index e68eab639e..32c8491984 100644 --- a/configs/tizen_starfive_visionfive2_defconfig +++ b/configs/tizen_starfive_visionfive2_defconfig @@ -32,7 +32,7 @@ CONFIG_QSPI_BOOT=y CONFIG_SD_BOOT=y CONFIG_USE_BOOTARGS=y CONFIG_BOOTARGS="console=ttyS0,115200 debug rootwait earlycon=sbi" -CONFIG_BOOTCOMMAND="load ${bootdevtype} ${bootdevnum}:${bootpart} ${scriptaddr} ${prefix}${script}; devtype=${bootdevtype}; devnum=${bootdevnum}; distro_bootpart=${bootpart}; source ${scriptaddr}" +CONFIG_BOOTCOMMAND="part number ${devtype} ${devnum} ${bootname} bootpart; load ${devtype} ${devnum}:${bootpart} ${scriptaddr} ${prefix}${script}; distro_bootpart=${bootpart}; source ${scriptaddr}" CONFIG_USE_PREBOOT=y CONFIG_PREBOOT="setenv fdt_addr ${fdtcontroladdr}; fdt addr ${fdtcontroladdr}; test -n \"${loadbootenv}\" -a -n \"${importbootenv}\" && run loadbootenv && run importbootenv;" CONFIG_DEFAULT_FDT_FILE="jh7110-starfive-visionfive-2.dtb" @@ -67,6 +67,7 @@ CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS=5 CONFIG_CMD_MEMINFO=y CONFIG_CMD_I2C=y CONFIG_CMD_TFTPPUT=y +CONFIG_CMD_EXT4_WRITE=y CONFIG_OF_BOARD=y CONFIG_ENV_IS_IN_FAT=y CONFIG_ENV_FAT_DEVICE_AND_PART="1:3" |