[coreboot] How to convert a v2 board to CBFS?
Uwe Hermann
uwe at hermann-uwe.de
Mon Jun 8 17:13:36 CEST 2009
Hi,
I tried converting the MSI MS-6178 (i810 chipset) to CBFS by looking
at the recent CBFS patches which went in and blindly guessing what I
have to do :) It _seemed_ to work (builds fine), but doesn't boot then.
I see 0x0E on the POST card, no serial output at all.
Here's my current patch:
Signed-off-by: Uwe Hermann <uwe at hermann-uwe.de>
Index: src/mainboard/msi/ms6178/Options.lb
===================================================================
--- src/mainboard/msi/ms6178/Options.lb (Revision 4350)
+++ src/mainboard/msi/ms6178/Options.lb (Arbeitskopie)
@@ -64,6 +64,7 @@
uses CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
uses CONFIG_CONSOLE_VGA
uses CONFIG_PCI_ROM_RUN
+uses HAVE_HIGH_TABLES
default ROM_SIZE = 512 * 1024
default HAVE_FALLBACK_BOOT = 1
@@ -74,7 +75,7 @@
default MAINBOARD_VENDOR = "N/A" # Override this in targets/*/Config.lb.
default MAINBOARD_PART_NUMBER = "N/A" # Override this in targets/*/Config.lb.
default ROM_IMAGE_SIZE = 64 * 1024
-default FALLBACK_SIZE = 128 * 1024
+default FALLBACK_SIZE = ROM_IMAGE_SIZE
default STACK_SIZE = 8 * 1024
default HEAP_SIZE = 16 * 1024
default HAVE_OPTION_TABLE = 0
@@ -95,10 +96,5 @@
default CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2 = 1
default CONFIG_CONSOLE_VGA = 1
default CONFIG_PCI_ROM_RUN = 1
-
-#
-# CBFS
-#
-#
-default CONFIG_CBFS=0
+default CONFIG_CBFS = 1
end
Index: targets/msi/ms6178/Config.lb
===================================================================
--- targets/msi/ms6178/Config.lb (Revision 4350)
+++ targets/msi/ms6178/Config.lb (Arbeitskopie)
@@ -24,6 +24,9 @@
option ROM_SIZE = 512 * 1024
# option ROM_SIZE = (512 * 1024) - (32 * 1024)
+option HAVE_HIGH_TABLES = 0
+option CONFIG_CBFS = 1
+
option MAINBOARD_VENDOR = "MSI"
option MAINBOARD_PART_NUMBER = "MS-6178"
@@ -44,7 +47,7 @@
romimage "fallback"
option USE_FALLBACK_IMAGE = 1
option COREBOOT_EXTRA_VERSION = ".0Fallback"
- payload /tmp/filo.elf
+ payload ../payload.elf
end
-buildrom ./coreboot.rom ROM_SIZE "normal" "fallback"
+buildrom ./coreboot.rom ROM_SIZE "fallback"
Am I doing something wrong, or missing some code changes?
(I'm additionally killing the 'normal' image for more space
in the ROM, but that's an unrelated change)
Thanks, Uwe.
--
http://www.hermann-uwe.de | http://www.holsham-traders.de
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
More information about the coreboot
mailing list