Author: mcayland Date: Fri Apr 30 22:57:27 2010 New Revision: 762 URL: http://tracker.coreboot.org/trac/openbios/changeset/762
Log: Fix for PPC bootloaders that force the output to the "screen" device when -nographic is used with qemu. Note that this isn't a complete fix in that the VGA device is still present within the device tree, but it at least allows the bootloader and kernel to execute far enough to prevent you from wondering why the console has apparently frozen.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@siriusit.co.uk
Modified: trunk/openbios-devel/arch/ppc/qemu/init.c
Modified: trunk/openbios-devel/arch/ppc/qemu/init.c ============================================================================== --- trunk/openbios-devel/arch/ppc/qemu/init.c Fri Apr 30 22:54:03 2010 (r761) +++ trunk/openbios-devel/arch/ppc/qemu/init.c Fri Apr 30 22:57:27 2010 (r762) @@ -658,6 +658,17 @@ stdin_path = "sccb"; stdout_path = "sccb"; } + + /* Some bootloaders force the output to the screen device, so + let's create a screen alias for the serial device too */ + push_str("/aliases"); + fword("find-device"); + + push_str(stdout_path); + fword("pathres-resolve-aliases"); + fword("encode-string"); + push_str("screen"); + fword("property"); } else { stdin_path = "adb-keyboard"; stdout_path = "screen";