LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   10.04 serial console is not up automatically (https://www.linuxquestions.org/questions/ubuntu-63/10-04-serial-console-is-not-up-automatically-815339/)

lynnos@tong-ji.org 06-20-2010 10:48 PM

10.04 serial console is not up automatically
 
All,
I am trying to pxe boot ubuntu 10.04

grub config:

Code:

Code:

title Linux NFS
dhcp
root (nd)
kernel /vmlinuz-2.6.34 console=ttyS0,9600 root=/dev/nfs nfsroot=192.168.1.1:/home/nfsroot ip=dhcp rw
initrd /initrd.img-2.6.34-pxenfs

ttyS0.conf in /etc/init


Code:

start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]

respawn
exec /sbin/getty -L ttyS0 9600 vt102

When it boot up,it doesn't show up login prompt from serial console ttyS0, and I login it via ssh,then run


Code:

start ttyS0
serial console is working

Why ttyS0.conf job isn't invoked automatically ? is there anything wrong with configuration?

Thanks for your help in advance

Lynn

Laurens73 06-24-2010 12:12 PM

I don't know how to do that the official way, but if you want to have it working fast, to gain more time to do it right, just add the lines you normally type to the file /etc/rc.local

Code:

start ttyS0

lynnos@tong-ji.org 06-25-2010 01:32 AM

Quote:

Originally Posted by Laurens73 (Post 4013780)
I don't know how to do that the official way, but if you want to have it working fast, to gain more time to do it right, just add the lines you normally type to the file /etc/rc.local

Code:

start ttyS0

Thanks for your reply.
These days I am doing more investigation.The issue is that runlevel is unknown,not N 2,that's why ttyS0 isn't executed
I still don't know the root cause

linus.newbert 06-25-2010 06:41 AM

AFAIK the kernel console redirection is not enabled by default so these messages shouldn't appear (in order to do so, a new kernel must be built from sources). For the other issue, have you tried installing the ttySX activation with update-rc.d?


All times are GMT -5. The time now is 04:04 AM.