[BusyBox] how to get a shell prompt under 2.6 kernel?
Ralph Siemsen
ralphs at netwinder.org
Sat Mar 26 18:55:02 UTC 2005
Robert P. J. Day wrote:
> until now, using a 2.4 kernel, i've had the following line in my
> /etc/inittab:
>
> tts/0::respawn:-/bin/sh
>
> however, under a 2.6.11.5 kernel that i just built, i found out that i
> have to pass "console=ttyCPM0,9600" as part of the kernel command
> line. what's the standard way to reconfigure the shell or whatever
> else to give me my shell prompt at the console port?
Using console= tells the kernel where to put the system console, where
printk's and such will appear. It so happens that if you set your
console and launch /bin/sh as above you'll get a # prompt.
But I believe the more correct way to do it is to launch a getty or
mingetty on the serial port explicitly. See the following commented out
line thats included in /etc/inittab of the default buildroot:
# Put a getty on the serial port
#ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100
And perhaps you want to comment out the gettings on tty1... unless you
have a video card and keyboard...
-R
More information about the busybox
mailing list