Simon Glass | 01bd6f6 | 2024-07-17 09:30:56 +0100 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+: |
| 2 | |
| 3 | QFW Bootmeth |
| 4 | ============ |
| 5 | |
| 6 | `QEMU <hhttps://www.qemu.org/>`_ is a system emulator which is able to boot |
| 7 | Operating Systems. QEMU provides specific support for booting an OS image |
| 8 | provided on the QEMU command line. |
| 9 | |
| 10 | When invoked on a bootdev for UCLASS_QFW, this bootmeth reads the kernel |
| 11 | provided by the QEMU `-kernel` argument, the initial ramdisk provided by |
| 12 | `-initrd` and the boot arguments (command line) provided by `-append` into |
| 13 | memory ready for booting. |
| 14 | |
| 15 | When the bootflow is booted, the bootmeth tries the `booti` command first, then |
| 16 | falls back to the `bootz` command. U-Boot's 'control' devicetree is passed |
| 17 | through to the kernel. |
| 18 | |
| 19 | The compatible string "u-boot,qfw-bootmeth" is used for the driver. It is |
| 20 | present if `CONFIG_QFW` is enabled. |