On Thu, Mar 6, 2008 at 1:12 AM, Jacek Chruscik <<a href="mailto:mercury@wirebros.com">mercury@wirebros.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c"><br>
On Tue, 2008-03-04 at 14:42 +0100, Klaus Stammermann wrote:<br>
> Am Dienstag, 4. März 2008 12:50 schrieb Uwe Hermann:<br>
> > On Tue, Mar 04, 2008 at 08:31:23AM +0100, Klaus Stammermann wrote:<br>
> > > Am Montag, 3. März 2008 21:33 schrieben Sie:<br>
> > > > * Klaus Stammermann <<a href="mailto:klaus123@ibnoetzold.de">klaus123@ibnoetzold.de</a>> [080303 15:20]:<br>
> > > > > Hi there<br>
> > > > ><br>
> > > > > I have some trouble to use coreboot on my VIA EPIA-ME6000 so I hope<br>
> > > > > someone could give me some hints.<br>
> > > > ><br>
> > > > > With epia-m and filo I can build a bios without vga. This runs till<br>
> > > > > jumping to kernel. This breaks up with an error:<br>
> > > > > Loading kernel... ok<br>
> > > > > "Jumping to entry point...<br>
> > > > > 0<br>
> > > ><br>
> > > > Was the kernel built with serial console support? Was console=ttyS0,...<br>
> > > > specified as a command line option to the kernel?<br>
> > ><br>
> > > Yes, I use following startup parameters:<br>
> > > "hda1:/boot/vmlinuz root=/dev/hda1 console=tty0 console=ttyS0,115200"<br>
> ><br>
> > And you also use 'USE_GRUB = 0'? Otherwise FILO will try to read your<br>
> > menu.lst file from GRUB and ignore the above line.<br>
> ><br>
> > > I did not use that optionroms. But how can I use this optionrom? Where do<br>
> > > I have to put it in my image?<br>
> ><br>
> > I think at the beginning (but someone please correct me if I'm wrong), i.e.<br>
> ><br>
> > cat vga.rom <a href="http://coreboot.com" target="_blank">coreboot.com</a> > coreboot_full.rom<br>
> ><br>
> > But you need to tweak the config files too in order to make the<br>
> > coreboot.rom smaller (so there's place for vga.rom).<br>
> ><br>
><br>
> I get some problem at making coreboot.rom smaller. Normal and fallback get<br>
> 128kb before. I tried two different possibilities to get space for it, but<br>
> both failed.<br>
><br>
> I need 57344b. But taking 57344/2 out of both raises error "XIP_ROM_BASE is<br>
> not multiple of XIP_ROM_SIZE". And reducing one of them about 57344b make<br>
> breaks because of overleaping sections.<br>
><br>
> Is there any overview how to use all these option in <a href="http://Config.lb" target="_blank">Config.lb</a>? I think I<br>
> don't understand the structur of all these options and their results.<br>
</div></div>I think you don't really need "normal" image at all.<br>
I was able to compile just "fallback" image (ROM_IMAGE_SIZE 64kB)<br>
with filo payload (~48kB), and tried to save 57344 bytes for vga bios.</blockquote><div><br>You can pad the end of the vga bios with zeros to make it exactly 64k. This should do it:<br>$ dd if=/dev/zero of=goop bs=1 count=8192<br>
$ cat vgabios.rom good > vgabios_64k.rom<br><br>That gets rid of, or at least eases, the confusion of trying to figure out fallback and XIP sizes that compile.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

This makes ROM_SIZE=204800 , probably hou have to set up FALLBACK_SIZE<br>
to same value, otherwise the build will end up being 131072 (I can't<br>
understand why)</blockquote><div><br>Without the normal image, the build system gets confused and doesn't know that it is supposed to fill another 128k. Pesky bug.<br></div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Unfortunately, this does not work, I mean, I compiled rom image of given<br>
size, prepended vga bios, and it gave me exactly 256kB of the image.<br>
The problem is that coreboot boots, then runs vgabios (my screen<br>
initializes), but then fails on filo (cannot load ELF image).<br>
It works fine without vgabios though.</blockquote><div><br>This sounds like an issue with the memory setup, VGA is probably claiming memory that coreboot doesn't know about, so FILO tries to use it, and you can see how well that would goes. Any chance you have the CLE266 datasheet?<br>
</div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I think there might be some bug in scripts, because buildtarget shows<br>
correct ROM_SIZE, but the build is 128kB if I don't set-up<br>
FALLBACK_SIZE.<br>
<br>
good luck</blockquote><div><br>-Corey<br></div></div>