[coreboot] Problems with VIA EPIA-ME6000

Klaus Stammermann klaus123 at ibnoetzold.de
Tue Mar 4 17:10:40 CET 2008


Am Dienstag, 4. März 2008 16:23 schrieben Sie:
> On Tue, Mar 04, 2008 at 02:42:19PM +0100, Klaus Stammermann wrote:
> > > I think at the beginning (but someone please correct me if I'm wrong),
> > > i.e.
> > >
> > > cat vga.rom coreboot.com > coreboot_full.rom
> > >
> > > But you need to tweak the config files too in order to make the
> > > coreboot.rom smaller (so there's place for vga.rom).
> >
> > I get some problem at making coreboot.rom smaller. Normal and fallback
> > get 128kb before. I tried two different possibilities to get space for
> > it, but both failed.
>
> This stuff is highly confusing in coreboot, sorry. Please post your
> current patch against svn (all changes you made to any files).
>
Here the diff:
-----------------------------------------------------------------------------------------------------------------------------------
Index: src/mainboard/via/epia-m/Options.lb
===================================================================
--- src/mainboard/via/epia-m/Options.lb	(Revision 3086)
+++ src/mainboard/via/epia-m/Options.lb	(Arbeitskopie)
@@ -51,8 +51,8 @@
 ###
 ### Build options
 ###
-default CONFIG_PCI_ROM_RUN=0
-default CONFIG_CONSOLE_VGA=0
+default CONFIG_PCI_ROM_RUN=1
+default CONFIG_CONSOLE_VGA=1
 
 ##
 ## Build code for the fallback boot
Index: targets/via/epia-m/Config.lb
===================================================================
--- targets/via/epia-m/Config.lb	(Revision 3086)
+++ targets/via/epia-m/Config.lb	(Arbeitskopie)
@@ -7,21 +7,21 @@
 option  DEFAULT_CONSOLE_LOGLEVEL=8
 option  CONFIG_CONSOLE_SERIAL8250=1
 
-option ROM_SIZE=256*1024
+option ROM_SIZE=(256*1024)-(64*1024)
 
 
 option HAVE_OPTION_TABLE=1
 option CONFIG_ROM_PAYLOAD=1
 option HAVE_FALLBACK_BOOT=1
 #option CONFIG_COMPRESSED_PAYLOAD_NRV2B=1
-option CONFIG_COMPRESSED_PAYLOAD_NRV2B=0
+#option CONFIG_COMPRESSED_PAYLOAD_NRV2B=0
 
 
 ###
 ### Compute the location and size of where this firmware image
 ### (coreboot plus bootloader) will live in the boot rom chip.
 ###
-option FALLBACK_SIZE=131072
+option FALLBACK_SIZE=(96*1024)
 
 ## Coreboot C code runs at this location in RAM
 option _RAMBASE=0x00004000
@@ -31,18 +31,22 @@
 #
 romimage "normal"
 	option USE_FALLBACK_IMAGE=0
-#option ROM_IMAGE_SIZE=128*1024
-	option ROM_IMAGE_SIZE=64*1024
+#	option ROM_IMAGE_SIZE=(128*1024)-27312
+	option ROM_IMAGE_SIZE=(96*1024)-27312
+#	option ROM_IMAGE_SIZE=0xc000
+#	option ROM_SECTION_OFFSET=0x10000
+#	option ROM_SECTION_SIZE=0x18000
 	option COREBOOT_EXTRA_VERSION=".0-Normal"
-	payload $(HOME)/svn/payload.elf
+	payload $(HOME)/Entwicklung/LinuxBIOS/VIA-BIOS/filo.small.elf
 end
 
 romimage "fallback" 
 	option USE_FALLBACK_IMAGE=1
-	#option ROM_IMAGE_SIZE=128*1024
-	option ROM_IMAGE_SIZE=60*1024
+#	option ROM_IMAGE_SIZE=(128*1024)-27312
+	option ROM_IMAGE_SIZE=(96*1024)-27312
+#	option ROM_IMAGE_SIZE=0xc000
 	option COREBOOT_EXTRA_VERSION=".0-Fallback"
-	payload $(HOME)/svn/payload.elf
+	payload $(HOME)/Entwicklung/LinuxBIOS/VIA-BIOS/filo.small.elf
 end
 
 buildrom ./coreboot.rom ROM_SIZE "normal" "fallback"
-----------------------------------------------------------------------------------------------------------------------------------
In an earlier version I changed Config.lb in src dir to get VGA BIOS. But now 
it isn't included. If it is important, I could post it later.

> Also, where did you get your VGA ROM from? Using which tools (awardeco,
> amideco, phnxdeco, other)? How big is it exactly?
>
On http://www.coreboot.org/VGA_support at bottom there is a perl script. Using 
this I got my VGABIOS. This is 60416 bytes big (optionsrom is 57344 bytes 
which I used at last).

filo.small.elf is 27312 bytes big. So don't wonder what number this is.

> I hope we can post a patch for you which should build a working
> coreboot.rom where you can prepend the VGA BIOS with enough information.
>
That would be very nice and I hope we could solve this problems. 
Sorry but till next monday I can't get more information from my development 
system. I will look at this mailinglist and maybe some easy information I 
could give out of my mind.

> > I need 57344b. But taking 57344/2 out of both raises error "XIP_ROM_BASE
> > is not multiple of XIP_ROM_SIZE". And reducing one of them about 57344b
> > make
>
> Don't mess with XIP_ROM_SIZE, that's not what you want.
OK, that sounds very good :-)

Thank you for your help. 

Klaus




More information about the coreboot mailing list