summaryrefslogtreecommitdiff
path: root/include/configs/starfive-visionfive2.h
diff options
context:
space:
mode:
authorMichaIng <micha@dietpi.com>2023-03-31 19:08:03 +0300
committerAndy Hu <andy.hu@starfivetech.com>2023-05-31 08:49:03 +0300
commitec4da28612d8efe0aae9b924206291dfccd8af9f (patch)
treec55acc3f53f2fcdfa3ca0a4713bcd795d941a75f /include/configs/starfive-visionfive2.h
parentd4aa8df73d86acbb191865be10cf0ca5c015fcb3 (diff)
downloadu-boot-ec4da28612d8efe0aae9b924206291dfccd8af9f.tar.xz
VisionFive 2: Add default compressed kernel address
The default U-Boot environment does not provide kernel_comp_addr_r and kernel_comp_size, needed when using a compressed kernel image. These variables are listed as mandatory in upstream U-Boot to allow this feature without needed user configuration: https://github.com/u-boot/u-boot/blob/master/doc/develop/distro.rst#required-environment-variables The values are taken from the uEnv.txt shipped by StarFive's own Debian images, which does use a gzip-compressed kernel image hence proven to be valid. Adding those values to the U-Boot default environment allows them to be removed from the dedicated uEnv.txt and enables support for compressed kernel images independent of the used uEnv.txt or whether one is used at all. Signed-off-by: MichaIng <micha@dietpi.com>
Diffstat (limited to 'include/configs/starfive-visionfive2.h')
-rw-r--r--include/configs/starfive-visionfive2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/configs/starfive-visionfive2.h b/include/configs/starfive-visionfive2.h
index 1ec6f9045d..b87c4974df 100644
--- a/include/configs/starfive-visionfive2.h
+++ b/include/configs/starfive-visionfive2.h
@@ -283,6 +283,8 @@
"fdt_high=0xffffffffffffffff\0" \
"initrd_high=0xffffffffffffffff\0" \
"kernel_addr_r=0x40200000\0" \
+ "kernel_comp_addr_r=0x90000000\0" \
+ "kernel_comp_size=0x10000000\0" \
"fdt_addr_r=0x46000000\0" \
"scriptaddr=0x43900000\0" \
"script_offset_f=0x1fff000\0" \