<div dir="ltr">I finally know what happened. I forgot to rip out the fonts, themes and languages of the payload.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 26, 2015 at 3:10 PM, Zaolin <span dir="ltr"><<a href="mailto:zaolin@das-labor.org" target="_blank">zaolin@das-labor.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
simply fix this problems by increasing the cbfs size in menuconfig<br>
under the chipset section.<br>
<br>
Regards Zaolin<br>
<span class="im HOEnZb">> Dear Iru,<br>
><br>
><br>
> welcome to coreboot!<br>
><br>
><br>
> Am Donnerstag, den 26.03.2015, 09:33 +0800 schrieb Iru Cai:<br>
</span><span class="im HOEnZb">> > I tried to use GRUB2 as a payload when building coreboot for ThinkPad X201,<br>
> > but it's too big to fit into the rom. The GRUB2 coreboot image without<br>
> > modules is 2.8M and >800K after compressing, it's still too big.<br>
><br>
</span><div class="HOEnZb"><div class="h5">> building GRUB directly, I get a different result.<br>
><br>
>         $ git describe<br>
>         grub-2.02-beta2-372-g5974d4b<br>
>         $ ./autogen.sh<br>
>         $ ./configure --with-platform=coreboot --enable-boot-time --enable-cache-stats<br>
>         $ make<br>
>         $ edit Makefile<br>
><br>
> Now adapt the rule `default_payload.elf`.<br>
><br>
>         default_payload.elf: grub-mkstandalone grub-mkimage<br>
>               pkgdatadir=. ./grub-mkstandalone --grub-mkimage=./grub-mkimage -O i386-coreboot -o $@ --modules='ahci pata ehci uhci ohci usb_keyboard usbms part_msdos xfs ext2 fat at_keyboard part_gpt usbserial_usbdebug cbfs' --install-modules='ls linux search configfile normal cbtime cbls memrw iorw minicmd lsmmap lspci halt reboot hexdump pcidump regexp setpci lsacpi chain test serial multiboot cbmemc linux16 gzio echo help' --fonts= --themes= --locales= -d grub-core/ /boot/grub/grub.cfg=$(srcdir)/coreboot.cfg<br>
><br>
> Remove the modules you don’t need. With *my* ASRock E350M1 setup, I<br>
> don’t need `pata`, `usbms`, `xfs`, `fat`, `at_keyboard`, `part_gpt` and<br>
> `usbserial_usbdebug`. I then add `boottime` and `cacheinfo`.<br>
><br>
>         $ make default_payload.elf<br>
><br>
> The file is now 578K big and in CBFS the compressed size is a little<br>
> over 200 KB.<br>
><br>
>         $ build/cbfstool build/coreboot.rom print<br>
>         […]<br>
>                 fallback/payload               0x5c400    payload<br>
>                 205851<br>
>         […]<br>
><br>
> […]<br>
><br>
><br>
> Thanks,<br>
><br>
> Paul<br>
><br>
><br>
> PS: I’d be great if you could just send plain text messages with no HTML<br>
> parts to mailing lists.<br>
</div></div><span class="HOEnZb"><font color="#888888">> --<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>
<br>
</font></span></blockquote></div><br></div>