From: Bin Meng <bmeng.cn@gmail.com>
To: Rick Chen <rick@andestech.com>, Leo Liang <ycliang@andestech.com>,
U-Boot Mailing List <u-boot@lists.denx.de>
Cc: Green Wan <green.wan@sifive.com>,
Pragnesh Patel <pragnesh.patel@sifive.com>
Subject: [PATCH 3/3] riscv: qemu: Set kernel_comp_addr_r for compressed kernel
Date: Tue, 24 May 2022 12:31:14 +0800 [thread overview]
Message-ID: <20220524043114.45885-3-bmeng.cn@gmail.com> (raw)
In-Reply-To: <20220524043114.45885-1-bmeng.cn@gmail.com>
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>
---
include/configs/qemu-riscv.h | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/include/configs/qemu-riscv.h b/include/configs/qemu-riscv.h
index 618c3b63d4..f462895fb5 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
--
2.34.1
next prev parent reply other threads:[~2022-05-24 4:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-24 4:31 [PATCH 1/3] riscv: sifive: unmatched: Adjust for big ramdisk image Bin Meng
2022-05-24 4:31 ` [PATCH 2/3] riscv: sifive: unleashed: Set kernel_comp_addr_r for compressed kernel Bin Meng
2022-05-26 9:08 ` Leo Liang
2022-05-24 4:31 ` Bin Meng [this message]
2022-05-26 9:09 ` [PATCH 3/3] riscv: qemu: " Leo Liang
2022-05-26 9:06 ` [PATCH 1/3] riscv: sifive: unmatched: Adjust for big ramdisk image Leo Liang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220524043114.45885-3-bmeng.cn@gmail.com \
--to=bmeng.cn@gmail.com \
--cc=green.wan@sifive.com \
--cc=pragnesh.patel@sifive.com \
--cc=rick@andestech.com \
--cc=u-boot@lists.denx.de \
--cc=ycliang@andestech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox