Skip to content

bootstd: Update ARM QEMU for standard boot and environment

Simon Glass u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13log: Add a category for filesystemscommon/log.c fs/fat/fat_write.c include/log.h+5 -01 reply
2/13virtio: Add some debuggingdrivers/virtio/virtio_blk.c+7 -01 reply
3/13bootstd: Allow enabling BOOTSTD_FULL without needing EXPOboot/Kconfig boot/Makefile cmd/bootflow.c+16 -101 reply
4/13bootstd: Probe the block device before useboot/bootdev-uclass.c boot/bootflow.c+7 -01 reply
5/13bootstd: Correct virtio block-device handlingdrivers/virtio/virtio-uclass.c+6 -21 reply
6/13bootstd: Add some default filesystems and commandsboot/Kconfig configs/tools-only_defconfig doc/develop/bootstd.rst+32 -01 reply
7/13qemu: Update qfw command to use addressescmd/qfw.c+21 -211 reply
8/13qemu: Move qfw kernel setup into a common filecmd/qfw.c common/qfw.c include/qfw.h+79 -691 reply
9/13qemu: Add a bootdev for qfwdrivers/misc/qfw.c+87 -01 reply
10/13qemu: Add a bootmeth for qfwboot/Makefile boot/bootflow.c boot/bootmeth_qfw.c+104 -11 reply
11/13arm: qemu: Switch to standard bootconfigs/qemu_arm64_defconfig configs/qemu_arm_defconfig include/configs/qemu-arm.h+8 -541 reply
12/13arm: qemu: Switch to a text environmentboard/emulation/qemu-arm/qemu-arm.env include/configs/qemu-arm.h+12 -131 reply
13/13arm: qemu: Move GUIDs to the C fileboard/emulation/qemu-arm/qemu-arm.c configs/qemu_arm64_defconfig configs/qemu_arm_defconfig +3 more+27 -241 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/13] bootstd: Update ARM QEMU for standard boot and environment

This series fixes a few reported problems with virtio block-device handling.

It also moves QEMU over to use standard boot on ARM, by adding a suitable bootdev and bootmeth for qfw.

Finally, it moves the boards to use a text-based environment. The only remaining item in the config.h header file is CFG_SYS_SDRAM_BASE so it would be nice to move that to Kconfig, if possible.

Simon Glass (13):
log: Add a category for filesystems
virtio: Add some debugging
bootstd: Allow enabling BOOTSTD_FULL without needing EXPO
bootstd: Probe the block device before use
bootstd: Correct virtio block-device handling
bootstd: Add some default filesystems and commands
qemu: Update qfw command to use addresses
qemu: Move qfw kernel setup into a common file
qemu: Add a bootdev for qfw
qemu: Add a bootmeth for qfw
arm: qemu: Switch to standard boot
arm: qemu: Switch to a text environment
arm: qemu: Move GUIDs to the C file

 board/emulation/qemu-arm/qemu-arm.c   |  10 +++
 board/emulation/qemu-arm/qemu-arm.env |  12 +++
 boot/Kconfig                          |  28 +++++++
 boot/Makefile                         |   5 +-
 boot/bootdev-uclass.c                 |   3 +
 boot/bootflow.c                       |   6 +-
 boot/bootmeth_qfw.c                   | 102 ++++++++++++++++++++++++++
 cmd/bootflow.c                        |  21 ++++--
 cmd/qfw.c                             |  89 +++-------------------
 common/log.c                          |   1 +
 common/qfw.c                          |  66 ++++++++++++++++-
 configs/qemu_arm64_defconfig          |   5 +-
 configs/qemu_arm_defconfig            |   5 +-
 configs/tools-only_defconfig          |   1 +
 doc/develop/bootstd.rst               |   4 +
 drivers/misc/qfw.c                    |  87 ++++++++++++++++++++++
 drivers/virtio/virtio-uclass.c        |   8 +-
 drivers/virtio/virtio_blk.c           |   7 ++
 fs/fat/fat_write.c                    |   2 +
 include/configs/qemu-arm.h            |  75 -------------------
 include/log.h                         |   2 +
 include/qfw.h                         |  13 ++++
 test/boot/bootdev.c                   |  25 ++++---
 test/boot/bootstd_common.h            |   2 +-
 24 files changed, 398 insertions(+), 181 deletions(-)
 create mode 100644 board/emulation/qemu-arm/qemu-arm.env
 create mode 100644 boot/bootmeth_qfw.c
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog