Enable Serial Console on Boot: Difference between revisions

From Alpine Linux
(Serial Console Instructions (again))
 
(→‎How to Enable the Serial Console on Boot (1.10.x): added note for extlinux.cfg; copyediting)
Line 1: Line 1:
== How to Enable the Serial Console on Boot (1.10.x)==
== How to Enable the Serial Console on Boot (1.10.x)==


For Syslinux and family:
When using syslinux to boot, you'll need to modify the syslinux.cfg file in the root directory of the boot device. If using a disk-based Alpine, modify the /boot/extlinux.cfg file.
* Add the following to the syslinux.cfg file in the root directory of the boot device
 
** <tt>serial 0 9600</tt>
Add the following:
** add <tt>console=ttyS0,9600</tt> to the <tt>append</tt> parameter
* <tt>serial 0 9600</tt>
** optionally, remove <tt>quiet</tt> from the <tt>append</tt> parameter
* add <tt>console=ttyS0,9600</tt> to the <tt>append</tt> parameter
* optionally, remove <tt>quiet</tt> from the <tt>append </tt> parameter


=== Example syslinux.cfg ===
=== Example syslinux.cfg ===

Revision as of 15:49, 20 October 2010

How to Enable the Serial Console on Boot (1.10.x)

When using syslinux to boot, you'll need to modify the syslinux.cfg file in the root directory of the boot device. If using a disk-based Alpine, modify the /boot/extlinux.cfg file.

Add the following:

  • serial 0 9600
  • add console=ttyS0,9600 to the append parameter
  • optionally, remove quiet from the append parameter

Example syslinux.cfg

serial 0 9600
timeout 20
prompt 1
default grsec
label grsec
        kernel /boot/grsec
        append initrd=/boot/grsec.gz alpine_dev=sda1:vfat modules=sd-mod,usb-storage console=ttyS0,9600