<br><br><div class="gmail_quote">On Wed, Jun 24, 2009 at 9:09 PM, Rick Ant <span dir="ltr"><<a href="mailto:rick_077@yahoo.com">rick_077@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
I try to use <br><pre>$ mkelfImage --append="console=ttyS0" --initrd=initrd vmlinuz linux.elf<br><br>When :<br>telebit:~/Project/Kantor/Thin_client/coreboot-v2-4360/targets # ./buildtarget emulation/qemu-x86/Config.lb<br>
<br>and do<br><br>make..<br><br>I get coreboot.rom on 512Kbyte<br><br>My initrd is 1Mbyte and vmlinuz 16Mbyte..is it ok?<br><br>The make result is situated below...<br>Is it ok ? if I want to change the chipset, what should i do?<br>
My chipset is 82810 North and 82801 South..<br></pre>====<br>.......................<br>Payload: 0 coreboot: 65536 ROM size: 65536 Left space: 0<br>if [ 0 -eq 1 -a 1 -eq 1 ]; then echo l > cbfs-support; fi<br>make[1]: Leaving directory `/root/Project/Kantor/Thin_client/coreboot-v2-4360/targets/emulation/qemu-x86/qemu-x86/normal'<br>
rm -f ./coreboot.rom<br>cat normal/coreboot.rom >
 ./coreboot.rom.bootblock<br>./cbfstool ./coreboot.rom create 524288 65536 ./coreboot.rom.bootblock<br>./cbfstool ./coreboot.rom add-payload /root/Project/Kantor/mkelfImage-2.7/linux.elf normal/payload<br>Corrupt rom -- found no header at 458720<br>
make: *** [coreboot.rom] Error 1<br></td></tr></tbody></table></blockquote><div>This admittedly isn't a very helpful error.  It happens when you try to add a payload that is larger than the free space.  You can't add a 16 MB kernel to a 512K ROM.  LZMA isn't that good.  You might want to look at the way buildrom builds kernels, since they end up being much smaller than that one.<br>
<br>For qemu you can just change the ROM_SIZE to be big enough in targets/emulation/qemu-x86/Config.lb.  For real hardware you'll need to:<br><br>1. Pick a board that's supported by coreboot-v2 (or add the code to support it)<br>
2. Get a flash chip that's large enough to fit what you want (not all boards can support large chips)<br>3. Make sure that your board/flash chip combination is supported by flashrom or you have some other way of writing to it<br>
<br>If you can't get it to fit, you could try using etherboot or seabios+gpxe to load your kernel from the network.<br><br>Thanks,<br>Myles<br> </div></div>