"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

doc: qemu-riscv: describe running as flash image

Describe how to build U-Boot to be run by QEMU as an emulated flash image.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>

+26
+26
doc/board/emulation/qemu-riscv.rst
··· 179 179 180 180 qemu-system-riscv64 -accel kvm -nographic -machine virt -kernel u-boot 181 181 182 + Running as flash binary 183 + ----------------------- 184 + 185 + U-Boot can be provided to QEMU as an emulated flash drive. 186 + This can for instance be used to test capsule updates. 187 + 188 + Build qemu-riscv64_smode_defconfig with:: 189 + 190 + CONFIG_XIP=y 191 + CONFIG_TEXT_BASE=0x20000000 192 + CONFIG_CMD_MTD=y 193 + CONFIG_FLASH_CFI_MTD=y 194 + 195 + Pad u-boot.bin to 32 MiB size: 196 + 197 + .. code-block:: bash 198 + 199 + truncate -s 32M u-boot.bin 200 + 201 + Invoke QEMU with: 202 + 203 + .. code-block:: bash 204 + 205 + qemu-system-riscv64 -M virt -nographic \ 206 + -drive if=pflash,format=raw,unit=0,file=u-boot.bin,readonly=off 207 + 182 208 Debug UART 183 209 ---------- 184 210