[BusyBox] problem using Inittab
Brad Barrett
brad at patton.com
Thu May 22 21:43:49 UTC 2003
Hmm... 8-N-1 is default, so all you really need is to be able to set ttyS0 to
115200. This can be accomplished with "stty 115200".
Try changing it to:
ttyS0::respawn:-/bin/sh -sc "stty 115200"
or add:
ttyS0::wait:-/bin/sh -c "stty 115200"
I have never tried this (my boot monitor can pass cmd line parameters) but both
should work, in principle. If you need to set parity, data bits, etc, there are
other stty options for those...but I can't confirm off hand that Busybox stty
supports them.
Brad
-----Original Message-----
From: busybox-bounces at busybox.net [mailto:busybox-bounces at busybox.net]On
Behalf Of Filippo Ferrara
Sent: Thursday, May 22, 2003 9:25 AM
To: Steven Scholz
Cc: busybox at busybox.net
Subject: R: [BusyBox] problem using Inittab
How can I set the serial port parameters (115200n8) if I type:
ttyS0::respawn:-/bin/sh
Filippo
-----Messaggio originale-----
Da: Steven Scholz [mailto:steven.scholz at imc-berlin.de]
Inviato: giovedi 22 maggio 2003 15.09
A: Filippo Ferrara
Cc: busybox at busybox.net
Oggetto: Re: [BusyBox] problem using Inittab
Filippo Ferrara schrieb:
> Hello All,
> I'm trying to use Busybox (v0.60.3 for PXA250) with Inittab on a system
> with serial console, but once Linux starts it keeps me asking for the
login
> name ((none) login: ) no matter what I type on the console.
>
> My inittab file contains the following options:
>
> ::sysinit:/etc/init.d/rcS
> ::respawn:/sbin/getty console
> ::respawn:/sbin/getty -L ttyS0 115200 vt100
> ::ctrlaltdel:/sbin/reboot
> ::shutdown:/bin/umount -a -r
> ::shutdown:/sbin/swapoff -a
> ::restart:/sbin/init
>
> Did I miss something? I don't have tinylogin but I understood I don't need
> it.
> if I don't use Inittab and add tinylogin works fine.
If you don't want a login at all you could probably replace your getty
line with something like
ttyS0::respawn:-/bin/sh
And BTW: Do you have a user root in your /etc/passwd?
Steven
_______________________________________________
busybox mailing list
busybox at busybox.net
http://busybox.net/mailman/listinfo/busybox
More information about the busybox
mailing list