diff options
| author | Simon Glass <[email protected]> | 2023-01-28 15:00:25 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-02-06 13:04:53 -0500 |
| commit | 9c6d57dc7e836c67aef95bc49ba6e7fe714b09d4 (patch) | |
| tree | 5e26050314dd2b9a3446ff6ba762caedf38d3825 /boot/bootflow.c | |
| parent | dd4bd9ad861a15525a77879eb0098ab846286cb2 (diff) | |
qemu: Add a bootmeth for qfw
This supports reading a kernel and ramdisk from qfw, then loading it with
either the booti or bootz commands.
For now this uses the existing booti and bootz commands, rather than
trying to call that functionality directly (e.g. do_bootm_states()). It
does not require the HUSH parser though, which helps a little with size.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'boot/bootflow.c')
| -rw-r--r-- | boot/bootflow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/bootflow.c b/boot/bootflow.c index b8fa37ee2a0..60791e681bd 100644 --- a/boot/bootflow.c +++ b/boot/bootflow.c @@ -508,7 +508,7 @@ int bootflow_iter_check_blk(const struct bootflow_iter *iter) enum uclass_id id = device_get_uclass_id(media); log_debug("uclass %d: %s\n", id, uclass_get_name(id)); - if (id != UCLASS_ETH && id != UCLASS_BOOTSTD) + if (id != UCLASS_ETH && id != UCLASS_BOOTSTD && id != UCLASS_QFW) return 0; return -ENOTSUPP; |
