diff mbox series

doc: qemu-riscv: Update QEMU run command

Message ID 1592914995-18412-1-git-send-email-bmeng.cn@gmail.com
State New
Headers show
Series doc: qemu-riscv: Update QEMU run command | expand

Commit Message

Bin Meng June 23, 2020, 12:23 p.m. UTC
From: Bin Meng <bin.meng at windriver.com>

Explicitly pass the "-bios" option to QEMU to run U-Boot, instead
of the "-kernel" option, as we know that "-bios" behavior will be
changed since QEMU 5.1.0.

This also updates validated QEMU version to 5.0.0.

Signed-off-by: Bin Meng <bin.meng at windriver.com>
---

 doc/board/emulation/qemu-riscv.rst | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Comments

Atish Patra June 23, 2020, 6:01 p.m. UTC | #1
On Tue, Jun 23, 2020 at 5:25 AM Bin Meng <bmeng.cn at gmail.com> wrote:
>
> From: Bin Meng <bin.meng at windriver.com>
>
> Explicitly pass the "-bios" option to QEMU to run U-Boot, instead
> of the "-kernel" option, as we know that "-bios" behavior will be
> changed since QEMU 5.1.0.
>
> This also updates validated QEMU version to 5.0.0.
>
> Signed-off-by: Bin Meng <bin.meng at windriver.com>
> ---
>
>  doc/board/emulation/qemu-riscv.rst | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/doc/board/emulation/qemu-riscv.rst b/doc/board/emulation/qemu-riscv.rst
> index c390006..b68db95 100644
> --- a/doc/board/emulation/qemu-riscv.rst
> +++ b/doc/board/emulation/qemu-riscv.rst
> @@ -40,11 +40,11 @@ The minimal QEMU command line to get U-Boot up and running is:
>
>  - For 32-bit RISC-V::
>
> -    qemu-system-riscv32 -nographic -machine virt -kernel u-boot
> +    qemu-system-riscv32 -nographic -machine virt -bios u-boot
>
>  - For 64-bit RISC-V::
>
> -    qemu-system-riscv64 -nographic -machine virt -kernel u-boot
> +    qemu-system-riscv64 -nographic -machine virt -bios u-boot
>
>  The commands above create targets with 128MiB memory by default.
>  A freely configurable amount of RAM can be created via the '-m'
> @@ -56,7 +56,7 @@ For instructions on how to run U-Boot in supervisor mode on QEMU
>  with OpenSBI, see the documentation available with OpenSBI:
>  https://github.com/riscv/opensbi/blob/master/docs/platform/qemu_virt.md
>
> -These have been tested in QEMU 4.2.0.
> +These have been tested in QEMU 5.0.0.
>
>  Running U-Boot SPL
>  ------------------
> @@ -98,10 +98,10 @@ configurations are:
>
>  - For 32-bit RISC-V::
>
> -    qemu-system-riscv32 -nographic -machine virt -kernel spl/u-boot-spl \
> +    qemu-system-riscv32 -nographic -machine virt -bios spl/u-boot-spl \
>      -device loader,file=u-boot.itb,addr=0x80200000
>
>  - For 64-bit RISC-V::
>
> -    qemu-system-riscv64 -nographic -machine virt -kernel spl/u-boot-spl \
> +    qemu-system-riscv64 -nographic -machine virt -bios spl/u-boot-spl \
>      -device loader,file=u-boot.itb,addr=0x80200000
> --
> 2.7.4
>

Reviewed-by: Atish Patra <atish.patra at wdc.com>
diff mbox series

Patch

diff --git a/doc/board/emulation/qemu-riscv.rst b/doc/board/emulation/qemu-riscv.rst
index c390006..b68db95 100644
--- a/doc/board/emulation/qemu-riscv.rst
+++ b/doc/board/emulation/qemu-riscv.rst
@@ -40,11 +40,11 @@  The minimal QEMU command line to get U-Boot up and running is:
 
 - For 32-bit RISC-V::
 
-    qemu-system-riscv32 -nographic -machine virt -kernel u-boot
+    qemu-system-riscv32 -nographic -machine virt -bios u-boot
 
 - For 64-bit RISC-V::
 
-    qemu-system-riscv64 -nographic -machine virt -kernel u-boot
+    qemu-system-riscv64 -nographic -machine virt -bios u-boot
 
 The commands above create targets with 128MiB memory by default.
 A freely configurable amount of RAM can be created via the '-m'
@@ -56,7 +56,7 @@  For instructions on how to run U-Boot in supervisor mode on QEMU
 with OpenSBI, see the documentation available with OpenSBI:
 https://github.com/riscv/opensbi/blob/master/docs/platform/qemu_virt.md
 
-These have been tested in QEMU 4.2.0.
+These have been tested in QEMU 5.0.0.
 
 Running U-Boot SPL
 ------------------
@@ -98,10 +98,10 @@  configurations are:
 
 - For 32-bit RISC-V::
 
-    qemu-system-riscv32 -nographic -machine virt -kernel spl/u-boot-spl \
+    qemu-system-riscv32 -nographic -machine virt -bios spl/u-boot-spl \
     -device loader,file=u-boot.itb,addr=0x80200000
 
 - For 64-bit RISC-V::
 
-    qemu-system-riscv64 -nographic -machine virt -kernel spl/u-boot-spl \
+    qemu-system-riscv64 -nographic -machine virt -bios spl/u-boot-spl \
     -device loader,file=u-boot.itb,addr=0x80200000