* [PATCH] boot: enable support for bootindex
[not found] <1385364460-24332-1-git-send-email-aik@ozlabs.ru>
@ 2013-11-26 4:07 ` Alexey Kardashevskiy
0 siblings, 0 replies; only message in thread
From: Alexey Kardashevskiy @ 2013-11-26 4:07 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Alexey Kardashevskiy, Paul Mackerras, Nikunj A Dadhania
QEMU supports a bootindex property for every device in the command line.
With the respective support from the QEMU side, this change is enough
to make SLOF go through the list and try to boot.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
---
That seems to work but it also seems too easy. What do I miss here?
---
board-qemu/slof/qemu-bootlist.fs | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/board-qemu/slof/qemu-bootlist.fs b/board-qemu/slof/qemu-bootlist.fs
index 7e9482d..4778e16 100644
--- a/board-qemu/slof/qemu-bootlist.fs
+++ b/board-qemu/slof/qemu-bootlist.fs
@@ -26,6 +26,12 @@ defer add-boot-device
;
: qemu-read-bootlist ( -- )
+ \ See if QEMU has set exact boot device list
+ " qemu,boot-list" get-chosen IF
+ s" boot-device" $setenv
+ EXIT
+ THEN
+
0 0 set-boot-device
" qemu,boot-device" get-chosen not IF
--
1.8.4.rc4
^ permalink raw reply related [flat|nested] only message in thread