diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2022-05-24 12:31:14 +0800 |
---|---|---|
committer | Leo Yu-Chi Liang <ycliang@andestech.com> | 2022-05-26 18:42:34 +0800 |
commit | c544b281cd3e549a4fcbf4ba9a05a5d72c9557dd (patch) | |
tree | 3c29b7dd267d069dadbe02c1ef8699d80af38055 /include | |
parent | ce78c4cd6e8f5cd5e2322a026cc2d333f500781b (diff) | |
download | u-boot-c544b281cd3e549a4fcbf4ba9a05a5d72c9557dd.zip u-boot-c544b281cd3e549a4fcbf4ba9a05a5d72c9557dd.tar.gz u-boot-c544b281cd3e549a4fcbf4ba9a05a5d72c9557dd.tar.bz2 |
riscv: qemu: Set kernel_comp_addr_r for compressed kernel
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/qemu-riscv.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/configs/qemu-riscv.h b/include/configs/qemu-riscv.h index 618c3b6..f462895 100644 --- a/include/configs/qemu-riscv.h +++ b/include/configs/qemu-riscv.h @@ -54,10 +54,12 @@ "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 |