1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-05 02:32:11 +02:00

doc: board: Convert README.qemu-riscv to reST

Convert plain text documentation to reStructuredText format and add
it to Sphinx TOC tree. No essential content change.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
Bin Meng
2019-07-18 00:34:16 -07:00
committed by Tom Rini
parent c586ff0122
commit 40046df739
2 changed files with 13 additions and 9 deletions

View File

@@ -7,4 +7,5 @@ Emulation
:maxdepth: 2 :maxdepth: 2
qemu-arm qemu-arm
qemu-riscv
qemu-x86 qemu-x86

View File

@@ -1,9 +1,8 @@
# SPDX-License-Identifier: GPL-2.0+ .. SPDX-License-Identifier: GPL-2.0+
# .. Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
# Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
U-Boot on QEMU's 'virt' machine on RISC-V QEMU RISC-V
========================================= ===========
QEMU for RISC-V supports a special 'virt' machine designed for emulation and QEMU for RISC-V supports a special 'virt' machine designed for emulation and
virtualization purposes. This document describes how to run U-Boot under it. virtualization purposes. This document describes how to run U-Boot under it.
@@ -19,11 +18,13 @@ Building U-Boot
--------------- ---------------
Set the CROSS_COMPILE environment variable as usual, and run: Set the CROSS_COMPILE environment variable as usual, and run:
- For 32-bit RISC-V: - For 32-bit RISC-V::
make qemu-riscv32_defconfig make qemu-riscv32_defconfig
make make
- For 64-bit RISC-V: - For 64-bit RISC-V::
make qemu-riscv64_defconfig make qemu-riscv64_defconfig
make make
@@ -31,10 +32,12 @@ Running U-Boot
-------------- --------------
The minimal QEMU command line to get U-Boot up and running is: The minimal QEMU command line to get U-Boot up and running is:
- For 32-bit RISC-V: - For 32-bit RISC-V::
qemu-system-riscv32 -nographic -machine virt -kernel u-boot qemu-system-riscv32 -nographic -machine virt -kernel u-boot
- For 64-bit RISC-V: - For 64-bit RISC-V::
qemu-system-riscv64 -nographic -machine virt -kernel u-boot qemu-system-riscv64 -nographic -machine virt -kernel u-boot
The commands above create targets with 128MiB memory by default. The commands above create targets with 128MiB memory by default.