[coreboot] GRUB boot menu is not showing GRUB2

Dhanasekar Jaganathan jdhanasekarmca at gmail.com
Thu Jun 8 07:09:07 CEST 2017


Hi Mariusz / Zoran,

After adding the below lines only in grub.cfg which is suggest by Mariusz,

serial --unit=1 --speed=115200 --word=8 --parity=no --stop=1
terminal_input serial
terminal_output serial

I can able to see grub shell.

After adding menu entry for fedora OS, I can able to see *boot menu
successfully*..

Now I am trying to install other OS (ONIE) through USB

Thanks,
Dhanasekar

On Thu, Jun 8, 2017 at 10:05 AM, Zoran Stojsavljevic <
zoran.stojsavljevic at gmail.com> wrote:

> Marius,
>
> All Cool, I meant all of this what you wrote in there. In order of
> appearance. We both lament about the same thing.
>
> Dhanasekar,
>
> You might add:
> *GRUB_TERMINAL="serial" (and remove: "serial console")*
> *GRUB_TERMINAL_INPUT="serial"*
>
> *GRUB_TERMINAL_OUTPUT="serial"*
>
> I know that you do have: GRUB_TERMINAL="serial console" . Just in case!
>
> Zoran
>
> On Thu, Jun 8, 2017 at 5:45 AM, Dhanasekar Jaganathan <
> jdhanasekarmca at gmail.com> wrote:
>
>> Hi Zoran / Mariusz,
>>
>> Below, I have provided the contents of my /etc/default/grub,
>>
>> GRUB_TIMEOUT=-1
>> GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
>> GRUB_DEFAULT=saved
>> #GRUB_DISABLE_SUBMENU=true
>> GRUB_SAVEDEFAULT=false
>> GRUB_TERMINAL="serial console"
>> GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=1 --word=8 --parity=no
>> --stop=1"
>> GRUB_CMDLINE_LINUX="console=tty1 console=ttyS1,115200
>> vconsole.font=latarcyrheb-sun16 $([ -x /usr/sbin/rhcrashkernel-param ]
>> && /usr/sbin/rhcr"
>> #GRUB_DISABLE_RECOVERY="true"
>> GRUB_FORCE_HIDDEN_MENU="false"
>> #GRUB_HIDDEN_TIMEOUT = 0
>>
>>
>> Thanks,
>> Dhanasekar
>>
>> On Thu, Jun 8, 2017 at 3:51 AM, Zoran Stojsavljevic <
>> zoran.stojsavljevic at gmail.com> wrote:
>>
>>> Hello Mariusz,
>>>
>>> > Try adding below lines on top of your grub.cfg:
>>>
>>> Are you talking about this file: /etc/default/grub ?
>>>
>>> This is what I have on my Fedora 26 VM (CLI transcript follows):
>>>
>>> *[root at localhost grub.d]# cd /etc/default*
>>> *[root at localhost default]# ls -al*
>>> *total 28*
>>> *drwxr-xr-x.   2 root root  4096 Jun  7 06:24 .*
>>> *drwxr-xr-x. 160 root root 12288 Jun  7 23:52 ..*
>>> *-rw-rw-r--.   1 root root   262 May 14 19:54 grub*
>>> *-rw-r--r--.   1 root root  1756 Jun  5 16:10 nss*
>>> *-rw-r--r--.   1 root root   119 Feb 12 01:42 useradd*
>>> *[root at localhost default]# cat grub*
>>> *GRUB_TIMEOUT=5*
>>> *GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"*
>>> *GRUB_DEFAULT=saved*
>>> *GRUB_DISABLE_SUBMENU=true*
>>> *GRUB_TERMINAL_OUTPUT="console"*
>>> *GRUB_CMDLINE_LINUX="rd.lvm.lv <http://rd.lvm.lv>=fedora/root rd.lvm.lv
>>> <http://rd.lvm.lv>=fedora/swap rhgb quiet"*
>>> *GRUB_DISABLE_RECOVERY="true"*
>>> *[root at localhost default]# pwd*
>>> */etc/default*
>>>
>>> In such a case, which is, I think, one Politically Correct, the
>>> following must be done:
>>> [1] Whenever I modify */etc/defualt/grub*, I run *grub2-mkconfig -o
>>> /boot/grub2/grub.cfg* ;
>>> [2] Rebuild Coreboot!
>>>
>>> Hello Dhanasekar,
>>>
>>> What is the content of your */etc/default/grub ?*
>>>
>>> Should be the following (or similar):
>>>
>>> *GRUB_TIMEOUT=5*
>>> *GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"*
>>> *GRUB_DEFAULT=saved*
>>> *GRUB_TERMINAL="serial"*
>>> *GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=1 --word=8
>>> --parity=no --stop=1"*
>>> *GRUB_TERMINAL_INPUT="serial"*
>>> *GRUB_TERMINAL_OUTPUT="serial"*
>>> *GRUB_CMDLINE_LINUX="rd.lvm.lv <http://rd.lvm.lv>=fedora/root rd.lvm.lv
>>> <http://rd.lvm.lv>=fedora/swap"*
>>> *GRUB_DISABLE_RECOVERY="true"*
>>>
>>> Zoran
>>>
>>> On Wed, Jun 7, 2017 at 5:36 PM, Mariusz via coreboot <
>>> coreboot at coreboot.org> wrote:
>>>
>>>> Hi Dhanasekar,
>>>>
>>>> Try adding below lines on top of your grub.cfg:
>>>>
>>>> serial --unit=1 --speed=115200 --word=8 --parity=no --stop=1
>>>> terminal_input serial
>>>> terminal_output serial
>>>>
>>>> Then rebuild coreboot and try.
>>>> Or try with grub.cfg containing only above three lines (you should get
>>>> working grub shell)
>>>>
>>>> Mariusz
>>>>
>>>>
>>>> W dniu 07.06.2017 o 15:38, Dhanasekar Jaganathan pisze:
>>>>
>>>>> Hi Nico,
>>>>>
>>>>> Following is my complete Payload setting,
>>>>>
>>>>> 1.Add a payload -> (GRUB2)
>>>>> 2.GRUB2 version -> (HEAD)
>>>>> 3.Include GRUB2 runtime config file into ROM image = Y
>>>>> 4.Gave the path of grub.cfg (which I copied from Fedora OS when booted
>>>>> is booted with other BIOS vendor).
>>>>>
>>>>> Based on this, please provide your comments.
>>>>>
>>>>> Thanks,
>>>>> Dhanasekar
>>>>>
>>>>
>>>>
>>>> --
>>>> coreboot mailing list: coreboot at coreboot.org
>>>> https://mail.coreboot.org/mailman/listinfo/coreboot
>>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot/attachments/20170608/22652a2f/attachment.html>


More information about the coreboot mailing list