diff options
author | Alistair Francis <alistair.francis@wdc.com> | 2019-01-29 20:59:31 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-02-08 06:48:46 +0300 |
commit | 9f44d07df533755d061f06e09b8f0f1793a18d7d (patch) | |
tree | 3aba62dfc25bbcbe9c2d7b182114212c781e0be7 /docs | |
parent | a5f06b30c1503ecd09691f1ad9909287489228f5 (diff) | |
download | opensbi-9f44d07df533755d061f06e09b8f0f1793a18d7d.tar.xz |
platform: qemu/virt: Move kernel start address to 4MB alligned
In order to support 32-bit guests move the start address to a 4MB
allignment. As 64-bit kernels have a requirement on being 2MB alligned
let's just make this the default for both 32 and 64 bit kernels.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/platform/qemu_virt.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/platform/qemu_virt.md b/docs/platform/qemu_virt.md index bab046e..32575f9 100644 --- a/docs/platform/qemu_virt.md +++ b/docs/platform/qemu_virt.md @@ -50,7 +50,7 @@ or ``` qemu-system-riscv64 -M virt -m 256M -display none -serial stdio \ -kernel build/platform/qemu/virt/firmware/fw_jump.elf \ - -device loader,file=<uboot_build_directory>/u-boot.bin,addr=0x80200000 + -device loader,file=<uboot_build_directory>/u-boot.bin,addr=0x80400000 ``` **Linux Kernel Payload** @@ -75,7 +75,7 @@ or ``` qemu-system-riscv64 -M virt -m 256M -display none -serial stdio \ -kernel build/platform/qemu/virt/firmware/fw_jump.elf \ - -device loader,file=<linux_build_directory>/arch/riscv/boot/Image,addr=0x80200000 \ + -device loader,file=<linux_build_directory>/arch/riscv/boot/Image,addr=0x80400000 \ -drive file=<path_to_linux_rootfs>,format=raw,id=hd0 \ -device virtio-blk-device,drive=hd0 \ -append "root=/dev/vda rw console=ttyS0" |