Hi Ioannis,

I ran into a quite similar problem - I think the wikipage needs quite some 
overhaul.

anyway: I also have grub2 as coreboot payload. It seems to have a memdisk, but 
I don't know how to change this. There is a workaround: a grub.cfg gets into 
that memdisk, which sources (cbfsdisk)/etc/grub.cfg - find for that in the 
coreboot tree.

the solution then is to add a grub.cfg (and other files, like additional grub 
modules, background image, ...) to cbfs (in coreboot tree root):

./build/util/cbfstool/cbfstool build/coreboot.rom add -f mygrub.cfg -n 
etc/grub.cfg -t raw

actually it's a good idea _not to_ put etc/grub.cfg at first - if you have 
errors in that you may end up softbricking your device. put it somewhere else 
and source it from the grub command line.

regards, Arian

On 24.07.2016 20:43, Ioannis Koutras wrote:
> Hello John,
> 
> And thanks for replying. I have checked https://www.coreboot.org/GRUB2 and it 
> is still not clear to me how to embed grub.cfg. I had added GRUB2 directly 
> via "make menuconfig" (It is available on Payload > Add a payload) , so 
> coreboot checked out GRUB's source code, configured, compiled and embedded it 
> to coreboot.rom.
> 
> Would you recommend me to install it in a more manual way, as described in 
> the wiki?
> 
> 
> Best regards,
> 
> Ioannis
> 
> On Sun, 17 Jul 2016 at 22:55 John Lewis <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>     Hi Ioannis,
> 
>     Please see https://www.coreboot.org/GRUB2 in relation to setting it up 
> properly.
> 
>     Kind Regards,
> 
>     John.
> 
> 
>     On 15/07/16 21:26, Ioannis Koutras wrote:
>>     Hello,
>>
>>     I have just flashed coreboot (git commit: 89e7b49) on a Lenovo X220 with 
>> GRUB2 as payload and when I boot the machine, I am getting GRUB's command 
>> line.
>>
>>     I am trying to boot a systemd-boot (previously known as gummiboot?)  
>> payload from my disk partition, but I am getting unrecognised payload. Any 
>> idea what's the issue there?
>>
>>     Additionally, could anyone help me set it up properly, as in searching 
>> for grub.cfg in disks and looking to boot from USB?
>>
>>
>>     Many thanks in advance,
>>
>>     Ioannis
>>
>>
> 
> 
> 

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
coreboot mailing list: [email protected]
https://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to