[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [BusyBox] how to get a shell prompt under 2.6 kernel?
From:       Ralph Siemsen <ralphs () netwinder ! org>
Date:       2005-03-26 18:55:02
Message-ID: 4245B006.2080800 () netwinder ! org
[Download RAW message or body]

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


_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic