Grub2 seriel console?

Gilboa Davara gilboad at gmail.com
Thu Jan 26 17:35:28 UTC 2012


On Thu, Jan 26, 2012 at 6:20 PM, Frank Murphy <frankly3d at gmail.com> wrote:
>
> These are commented out in /etc/default/grub
>
> # GRUB_TERMINAL="serial console"
> # GRUB_SERIAL_COMMAND="serial --unit=0 --speed=9600"
>
> How do they equate to:
> console=tty0 console=ttyS0,115200
> which you could stick in /boot/grub/menu.lst (Grub)
>
> --

You need to modify two lines.
1. Configure grub to user serial console (as you pointed out):
GRUB_TERMINAL="serial console"
GRUB_SERIAL_COMMAND="serial --unit=0 --speed=115200 --word=8
--parity=no --stop=1"

2. Configure the kernel to use the serial console:
(Append to the end of the line)
GRUB_CMDLINE_LINUX=".. console=tty0 console=ttyS0,115200 rd_NO_PLYMOUTH"

3. Update the grub configuration:
grub2-mkconfig -o /boot/grub2/grub.cfg

4. Reboot.

- Gilboa


More information about the users mailing list