]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
riscv: qemu: Set kernel_comp_addr_r for compressed kernel
authorBin Meng <bmeng.cn@gmail.com>
Tue, 24 May 2022 04:31:14 +0000 (12:31 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 26 May 2022 10:42:34 +0000 (18:42 +0800)
Set kernel_comp_addr_r and kernel_comp_size for compressed kernel.
Adjust existing addresses for ramdisk, so that kernel_comp_addr_r
comes before the ramdisk image, since the decompressed kernel size
is known to us. This way we can allow big ramdisk image to be loaded.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
include/configs/qemu-riscv.h

index 618c3b63d41eb53c4583e58a32af6e47aae2f7c1..f462895fb5fdea332725f0cd2e2427b9b434f691 100644 (file)
        "fdt_high=0xffffffffffffffff\0" \
        "initrd_high=0xffffffffffffffff\0" \
        "kernel_addr_r=0x84000000\0" \
-       "fdt_addr_r=0x88000000\0" \
-       "scriptaddr=0x88100000\0" \
-       "pxefile_addr_r=0x88200000\0" \
-       "ramdisk_addr_r=0x88300000\0" \
+       "kernel_comp_addr_r=0x88000000\0" \
+       "kernel_comp_size=0x4000000\0" \
+       "fdt_addr_r=0x8c000000\0" \
+       "scriptaddr=0x8c100000\0" \
+       "pxefile_addr_r=0x8c200000\0" \
+       "ramdisk_addr_r=0x8c300000\0" \
        BOOTENV
 #endif