I found qemu to be tremendously accurate and thus time-saving. This patch adds 
the add-on/VGA ROM options and increases the image size. A real VGA is not yet 
working, no mode is set after power-on but qemu shows exactly the same 
behaviour. Requires qemu patches like on 
http://www.openbios.org/Open_Firmware

Signed-off-by: Torsten Duwe <[EMAIL PROTECTED]>

Recommendation: maybe apply after some testing.

diff -Burb --exclude=.svn CVS/LinuxBIOSv2/src/mainboard/emulation/qemu-i386/Options.lb tmp/LinuxBIOSv2/src/mainboard/emulation/qemu-i386/Options.lb
--- CVS/LinuxBIOSv2/src/mainboard/emulation/qemu-i386/Options.lb	2007-07-25 18:26:05.000000000 +0200
+++ tmp/LinuxBIOSv2/src/mainboard/emulation/qemu-i386/Options.lb	2007-08-19 18:27:03.000000000 +0200
@@ -37,12 +37,17 @@
 uses OBJCOPY
 
 uses CONFIG_CONSOLE_SERIAL8250
+uses CONFIG_PCI_ROM_RUN
+uses CONFIG_CONSOLE_VGA
 
 
 uses DEFAULT_CONSOLE_LOGLEVEL
 uses MAXIMUM_CONSOLE_LOGLEVEL
 
 default CONFIG_CONSOLE_SERIAL8250=1
+default CONFIG_CONSOLE_VGA=1
+default CONFIG_PCI_ROM_RUN=1
+
 default DEFAULT_CONSOLE_LOGLEVEL=8
 default MAXIMUM_CONSOLE_LOGLEVEL=8
 ## ROM_SIZE is the size of boot ROM that this board will use.
diff -Burb --exclude=.svn CVS/LinuxBIOSv2/targets/emulation/qemu-i386/Config.lb tmp/LinuxBIOSv2/targets/emulation/qemu-i386/Config.lb
--- CVS/LinuxBIOSv2/targets/emulation/qemu-i386/Config.lb	2007-07-25 18:26:15.000000000 +0200
+++ tmp/LinuxBIOSv2/targets/emulation/qemu-i386/Config.lb	2007-08-19 18:27:03.000000000 +0200
@@ -3,7 +3,7 @@
 target qemu-i386
 mainboard emulation/qemu-i386
 
-option ROM_SIZE=256*1024
+option ROM_SIZE=512*1024
 
 option CC="gcc -m32"
 
@@ -10,10 +10,15 @@
 option HAVE_PIRQ_TABLE=1
 option IRQ_SLOT_COUNT=6
 
+
 romimage "image" 
+	option CONFIG_CONSOLE_SERIAL8250=0
+#	option CONFIG_COMPRESSED_PAYLOAD_NRV2B=1
+	option CONFIG_CONSOLE_VGA=1
+#	option CONFIG_PCI_ROM_RUN=1
 	option ROM_IMAGE_SIZE=0x10000
-	option LINUXBIOS_EXTRA_VERSION="-OpenBIOS"
-	payload /home/stepan/openbios.elf
+	option LINUXBIOS_EXTRA_VERSION="-OFW"
+	payload /data/tmp/ofwlb.elf
 end
 
 buildrom ./qemu-bios.rom ROM_SIZE "image"
-- 
linuxbios mailing list
linuxbios@linuxbios.org
http://www.linuxbios.org/mailman/listinfo/linuxbios

Reply via email to