[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: serial console



Hi;

On Wed, Oct 05, 2005 at 11:06:16AM +0800, KokHow Teh wrote:
>> If the init scripts don't set the tty speed it will probably default to
>> 9600n8. Maybe adding an stty early on will help.
>>
>>       I need more help on this. Do you refer to sbin/init or some
scripts
>> in /etc/ folder? Where should I set it?

>I was thinking of a script in /etc/init.d that is run from rcS.d.
>On my machine I have /etc/init.d/etc-setserial (linked from
>/etc/rcS.d/S30etc-setserial), which where I would add something like:

>stty /dev/tts/0 115200 -evenp

This works. Notice that the correct syntax is "stty -F /dev/tts/0 115200
-evenp".

I put it as /etc/rcS.d/S00etc-setserial. However, there is still little
garbled message printed out. I am not a perfectionist but I am just curious
what that little garbled message is printed that it is not affected by the
S00etc-setserial script.

<snip>
VFS: Mounted root (nfs filesystem).
Mounted devfs on /dev
Freeing unused kernel memory: 248k init 4k prep 4k openfirmware
..���.�...��������.��.�ctivating swap.
System time was Thu Jan  1 00:10:12 UTC 1970.
<snip>

<snip>
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
Freeing unused kernel memory: 248k init 4k prep 4k openfirmware
..���.�...��������.��.�ctivating swap.
Checking root file system...
<snip>


      Any idea..? Thanks.

Regards,
TEH




Reply to: