Fix up NVRAM settings for boot-device and boot-args.

This patch originally started as a fix for PPC, in that the NVRAM initialiser wasn't been run on startup (this is why printenv 
on PPC always showed much much less than on SPARC). However, it also showed up some inconsistent logic for boot device 
selection, which must also happen *before* boot is called in order for load to work correctly. With this patch applied, bootpath 
and bootargs are set from boot-device and boot-args respectively on startup for SPARC32, SPARC64 and PPC.

Note: there is a small chance SPARC32 may break on some images - please let me know if it does.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@805 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Mark Cave-Ayland
2010-06-28 11:58:28 +00:00
committed by Mark Cave-Ayland
parent 6afdc00000
commit 004dc4cf85
7 changed files with 102 additions and 57 deletions

View File

@@ -329,7 +329,6 @@ s" true" s" scroll-lock" bool-config
[IFDEF] CONFIG_PPC
\ ---- PPC ----
s" disk" s" boot-device" str-config \ 7.4.3.5
s" false" s" little-endian?" bool-config
s" false" s" real-mode?" bool-config
s" -1" s" real-base" int-config
@@ -341,7 +340,6 @@ s" -1" s" virt-size" int-config
[IFDEF] CONFIG_X86
\ ---- X86 ----
s" disk" s" boot-device" str-config \ 7.4.3.5
s" true" s" little-endian?" bool-config
[THEN]
@@ -367,6 +365,7 @@ s" false" s" little-endian?" bool-config
s" " s" boot-screen" str-config
s" " s" boot-script" str-config
s" false" s" use-generic?" bool-config
s" disk" s" boot-device" str-config \ 7.4.3.5
s" " s" boot-args" str-config \ ???
\ defers