<div dir="ltr">Hi Nico,<div><br></div><div><span style="font-size:12.8px">>where do you expect to see the menu? a display? a serial console? In the</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><span style="font-size:12.8px">former case, I expect you have to add a Video BIOS to your coreboot.rom</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><span style="font-size:12.8px">(CONFIG_VGA_BIOS) and configure coreboot to run it (CONFIG_VGA_ROM_RUN).</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><span style="font-size:12.8px">If you use a discrete gfx card, you don't need to add the VBIOS, it</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><span style="font-size:12.8px">would be read from the card. In the latter case, GRUB has to be confi-</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><span style="font-size:12.8px">gured to use the serial port, as Mariusz pointed out.</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">></span><span style="font-size:12.8px">I'm a little confused here, did you add an etc/grub.cfg to the CBFS? You</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><span style="font-size:12.8px">didn't say so but I wouldn't expect it to boot otherwise. If you have,</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><span style="font-size:12.8px">can you please share this grub.cfg.</span><br></div><div><span style="font-size:12.8px"><br></span></div><div>I am using a serial console for <b>DISPLAY</b>. </div><div>I am not adding <b>grub.cfg</b> through <b>etc/grub.cfg</b>. </div><div>When I booted the board with other vendor BIOS, I have copied<b> /boot/grub2/grub.cfg</b>  from fedora OS and using this grub.cfg in coreboot. <br></div><div>I have mentioned the location of grub. cfg in menuconfig <b>(Payload -> Include GRUB2 runtime config file into ROM image). </b></div><div> </div><div>I have attached the same. </div><div><br></div><div><span style="font-size:12.8px">></span><span style="font-size:12.8px">></span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><span style="font-size:12.8px">> In */boot/default/grub*, I have changed* GRUB_TIMEOUT = -1* ( which stops</span><br style="font-size:12.8px"><span class="gmail-im" style="font-size:12.8px"><span style="font-size:12.8px">></span>> the system indefinitely at boot menu in GRUB2). Still system is not<br><span style="font-size:12.8px">></span>> stopping at boot menu.<br><br></span><span style="font-size:12.8px">></span><span style="font-size:12.8px">AFAIK, this file only works as input to `grub-mkconfig`. You'd still</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><span style="font-size:12.8px">have to generate a grub.cfg with it and configure the GRUB payload to</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><span style="font-size:12.8px">use it.</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">when ever I modify <b>/etc/defualt/grub</b>, I will run <b>grub2-mkconfig -o /boot/grub2/grub.cfg</b>.</span></div><div><span style="font-size:12.8px">I forget to mention this in my previous mail.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">></span><span style="font-size:12.8px">You have set CONFIG_ROM_SIZE and CONFIG_CBFS_SIZE to the same value</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><span style="font-size:12.8px">(8MiB). This is wrong. coreboot shares the flash chip with other Intel</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><span style="font-size:12.8px">firmware components (Firmware Descriptor (IFD), ME firmware etc.). Be-</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><span style="font-size:12.8px">side other configuration, the IFD partitions the flash chip in regions.</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><span style="font-size:12.8px">coreboot's CBFS lives in the BIOS region and should be at most of this</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><span style="font-size:12.8px">region's size. You can decode the descriptor with `ifdtool -d ...` (you</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><span style="font-size:12.8px">can find it in util/ifdtool/ in the coreboot source).</span><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">After setting, CONFIG_CBFS_SIZE = 6MB,  I can able to build coreboot and I am not getting below issue,</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"> *lzma: Decodeing error = 1*</span><br style="font-size:12.8px"><span style="font-size:12.8px"> *Payload not loaded.*</span><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Is it correct to set 6MB size for </span><span style="font-size:12.8px">CONFIG_CBFS_SIZE?. </span></div><div><br></div><div><span style="font-size:12.8px">Please correct me, If I am wrong and Provide your suggestions. </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks,</span></div><div><span style="font-size:12.8px">Dhanasekar</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 7, 2017 at 3:55 PM, Nico Huber <span dir="ltr"><<a href="mailto:nico.huber@secunet.com" target="_blank">nico.huber@secunet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Dhanasekar,<br>
<span class=""><br>
On 06.06.2017 16:53, Dhanasekar Jaganathan wrote:<br>
> Hi All,<br>
><br>
</span>> I am trying to boot *Intel Rangeley CPU/ Mohon Peak *board by Coreboot. I<br>
> am using *GRUB2 *as a Payload.<br>
<span class="">><br>
> In menuconfig, I have selected,<br>
><br>
</span>> Add a payload - *GRUB2*<br>
> GRUB2 Version - *HEAD*.<br>
<span class="">><br>
> My mSata has two fedora OS. When I boot the system, I am not seeing GRUB<br>
> boot load menu. System straightly booted to one of Fedora OS.<br>
<br>
</span>where do you expect to see the menu? a display? a serial console? In the<br>
former case, I expect you have to add a Video BIOS to your coreboot.rom<br>
(CONFIG_VGA_BIOS) and configure coreboot to run it (CONFIG_VGA_ROM_RUN).<br>
If you use a discrete gfx card, you don't need to add the VBIOS, it<br>
would be read from the card. In the latter case, GRUB has to be confi-<br>
gured to use the serial port, as Mariusz pointed out.<br>
<br>
I'm a little confused here, did you add an etc/grub.cfg to the CBFS? You<br>
didn't say so but I wouldn't expect it to boot otherwise. If you have,<br>
can you please share this grub.cfg.<br>
<br>
><br>
> In */boot/default/grub*, I have changed* GRUB_TIMEOUT = -1* ( which stops<br>
<span class="">> the system indefinitely at boot menu in GRUB2). Still system is not<br>
> stopping at boot menu.<br>
<br>
</span>AFAIK, this file only works as input to `grub-mkconfig`. You'd still<br>
have to generate a grub.cfg with it and configure the GRUB payload to<br>
use it.<br>
<span class=""><br>
><br>
> With other vendor BIOS on my board, I am seeing boot menu. I have observed<br>
> they were using GRUB 2.02_Beta version.<br>
><br>
> So, I have checked out GRUB 2.02_Beta and complied the source which<br>
</span>> produced *grub2.elf*.<br>
> And, I have modified Payload as * Add a Payload* = *An ELF executable<br>
> payload *and given the path of *grub2.elf*.<br>
<span class="">><br>
> After flashing this BIOS on my board, I am seeing error message,<br>
><br>
</span>> *lzma: Decodeing error = 1*<br>
> *Payload not loaded.*<br>
<br>
Could be related to the CBFS_SIZE, see below. Maybe the CBFS got cor-<br>
rupted.<br>
<br>
><br>
> FYR, I have attached my *.config* file, Please view it.<br>
<br>
You have set CONFIG_ROM_SIZE and CONFIG_CBFS_SIZE to the same value<br>
(8MiB). This is wrong. coreboot shares the flash chip with other Intel<br>
firmware components (Firmware Descriptor (IFD), ME firmware etc.). Be-<br>
side other configuration, the IFD partitions the flash chip in regions.<br>
coreboot's CBFS lives in the BIOS region and should be at most of this<br>
region's size. You can decode the descriptor with `ifdtool -d ...` (you<br>
can find it in util/ifdtool/ in the coreboot source).<br>
<br>
Hope that helps,<br>
Nico<br>
<br>
</blockquote></div><br></div>