<div class="gmail_quote">2009/4/2 Markus Törnqvist <span dir="ltr"><<a href="mailto:mjt@nysv.org">mjt@nysv.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br>
<br>
I dug out my abandoned Epia to see if I could do something with it,<br>
and based the stuff on<br>
<br>
<a href="http://www.coreboot.org/VIA_EPIA-MII" target="_blank">http://www.coreboot.org/VIA_EPIA-MII</a><br>
<br>
There were some things I found weird and I'm hoping someone could<br>
shed light on them..<br>
<br>
The web says:<br>
"The configuration as set up by the buildtarget process will create a coreboot<br>
file which is exactly 196608 bytes long, which is exactly 64K bytes short of<br>
what needs to go into the 256K flash rom."<br>
<br>
For me, that's not true.<br>
root@coraline:/usr/src/coreboot-v2-4046/targets/via/epia-m/epia-m# ls -l<br>
normal/coreboot.rom fallback/coreboot.rom<br>
-rw-r--r-- 1 root src 131072 Apr 2 20:46 fallback/coreboot.rom<br>
-rw-r--r-- 1 root src 131072 Apr 2 20:46 normal/coreboot.rom<br>
<br>
Q1: Why is there a mismatch here?</blockquote><div><br>Because with the open source xf86-unichrome and Luc Verhaegan's kernel driver, it's now possible for the kernel to initialize a framebuffer console and X video without the need for the VGA BIOS, so someone decided to change the default to build a 256k image and remove the commented out line with the 192k size. I believe the console driver is included with recent kernels, but I couldn't tell you the exact version. If you want to use a different driver, modify this line:<br>
<br>option ROM_SIZE=256*1024<br>
<br>to be<br><br>option ROM_SIZE=192*1024<br>
<br>Then, re-run buildtarget, make clean, and make. You should end up with a 128k fallback image and 64k normal image (yes, it's a nasty solution, part of the reason for v3), and a 192k image in build directory (the one you ran make from), that's the image you should probably use. If you want to continue using your current solution, you should probably use the fallback coreboot.rom, as there is code that will attempt to boot from the fallback image in the event of an error, and if there is no fallback image to boot from, nasty things could happen. If anything's not clear, let me know, I'm terrible at explaining things.<br>
<br>-Corey<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Also, when encouraged to change the cat like<br>
cat fallback/coreboot.rom > coreboot.rom<br>
to<br>
cat /video.bios.bin fallback/coreboot.rom >coreboot.rom<br>
<br>
it wasn't accurate; the line is<br>
cat normal/coreboot.rom fallback/coreboot.rom > ./coreboot.rom<br>
<br>
Let's remember those two are 262144 bytes, because now the wiki<br>
tells us to add the 64k video.<br>
<br>
It obviously doesn't fit in 256k, if we're there already, so what I<br>
actually did was cat the video bios TWICE(!!) and then the normal<br>
bios to make it 256k.<br>
<br>
That seems kludgy but I got a FILO prompt :)<br>
<br>
Q2: Ideas on why I had to do that?<br>
<br>
Here's the Config.lb, where I just changed the FILO payload<br>
to /filo.nohting.elf (to reflect the fact nothing seems to fit<br>
in a rom this small ;)<br>
<br>
Thanks!<br>
<br>
# Sample config file for EPIA-M<br>
# This will make a target directory of ./epia-m<br>
<br>
target epia-m<br>
<br>
mainboard via/epia-m<br>
<br>
option MAXIMUM_CONSOLE_LOGLEVEL=8<br>
option DEFAULT_CONSOLE_LOGLEVEL=8<br>
option CONFIG_CONSOLE_SERIAL8250=1<br>
<br>
<br>
option HAVE_OPTION_TABLE=1<br>
option CONFIG_ROM_PAYLOAD=1<br>
option HAVE_FALLBACK_BOOT=1<br>
<br>
###<br>
### Compute the location and size of where this firmware image<br>
### (coreboot plus bootloader) will live in the boot rom chip.<br>
###<br>
option FALLBACK_SIZE=131072<br>
<br>
## Coreboot C code runs at this location in RAM<br>
option _RAMBASE=0x00004000<br>
<br>
#<br>
###<br>
### Compute the start location and size size of<br>
### The coreboot bootloader.<br>
###<br>
<br>
#<br>
# EPIA-M<br>
#<br>
<br>
romimage "fallback"<br>
option USE_FALLBACK_IMAGE=1<br>
option ROM_IMAGE_SIZE=0x10000<br>
option COREBOOT_EXTRA_VERSION=".0Fallback"<br>
# payload /usr/share/etherboot/5.1.9pre2-lnxi-lb/tg3--ide_disk.zelf<br>
# payload ../../../../tg3--ide_disk.zelf<br>
# payload ../../../../../lnxieepro100.ebi<br>
payload /filo.nothing.elf<br>
end<br>
<br>
romimage "normal"<br>
option USE_FALLBACK_IMAGE=1<br>
option ROM_IMAGE_SIZE=0x10000<br>
option COREBOOT_EXTRA_VERSION=".0Fallback"<br>
# payload /usr/share/etherboot/5.1.9pre2-lnxi-lb/tg3--ide_disk.zelf<br>
# payload ../../../../tg3--ide_disk.zelf<br>
# payload ../../../../../lnxieepro100.ebi<br>
payload /filo.nothing.elf<br>
end<br>
<br>
buildrom ./coreboot.rom ROM_SIZE "normal" "fallback"<br>
<br>
--<br>
mjt<br>
<font color="#888888"><br>
<br>
--<br>
coreboot mailing list: <a href="mailto:coreboot@coreboot.org">coreboot@coreboot.org</a><br>
<a href="http://www.coreboot.org/mailman/listinfo/coreboot" target="_blank">http://www.coreboot.org/mailman/listinfo/coreboot</a><br>
</font></blockquote></div><br>