summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Jonglez <git@bitsofnetworks.org>2022-05-28 18:06:20 +0300
committerMichaelZhuxx <78013124+MichaelZhuxx@users.noreply.github.com>2023-04-09 17:07:38 +0300
commit8d0ca9a936289bb07dd364d0a94d153ec6ac3ed1 (patch)
tree5f42ee8d5a02313f4a8719f6d77108d8881ef0ea
parentef571fcead40632331f5441836e27161cb776a17 (diff)
downloadu-boot-8d0ca9a936289bb07dd364d0a94d153ec6ac3ed1.tar.xz
configs: starfive: define addresses according to Generic Distro spec
According to https://u-boot.readthedocs.io/en/latest/develop/distro.html the default u-boot configuration should define addresses such as "kernel_addr_r", so that "users" (distro maintainers) don't have to guess what are the right values. The values in this patch are a mix of those from qemu-riscv config, and those from the Fedora image provided by StarFive (which defines all addresses in a uEnv.txt file). These two sources mostly agree. For reference, here are the addresses in the Fedora image (version 20211226-214100): fdt_high=0xffffffffffffffff initrd_high=0xffffffffffffffff scriptaddr=0x88100000 script_offset_f=0x1fff000 script_size_f=0x1000 kernel_addr_r=0x84000000 kernel_comp_addr_r=0x90000000 kernel_comp_size=0x10000000 fdt_addr_r=0x88000000 ramdisk_addr_r=0x88300000 Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
-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 ab9a2f149f..f2fe950593 100644
--- a/include/configs/starfive-jh7100.h
+++ b/include/configs/starfive-jh7100.h
@@ -70,6 +70,15 @@
"env import -t ${loadaddr} ${filesize}\0"
#define CONFIG_EXTRA_ENV_SETTINGS \
+ "fdt_high=0xffffffffffffffff\0" \
+ "initrd_high=0xffffffffffffffff\0" \
+ "kernel_addr_r=0x84000000\0" \
+ "kernel_comp_addr_r=0x90000000\0" \
+ "kernel_comp_size=0x10000000\0" \
+ "fdt_addr_r=0x88000000\0" \
+ "scriptaddr=0x88100000\0" \
+ "pxefile_addr_r=0x88200000\0" \
+ "ramdisk_addr_r=0x88300000\0" \
STARLIGHT_FEDORA_BOOTENV \
"loadaddr=0xa0000000\0" \
STARLIGHT_TEST_BOOTENV \