console problems
I've been googling about this off and on for a couple of weeks now and I'm still in the dark.
When I boot my s3c2410 board with a serial console (console=ttySAC0) everything seems to work fine. What I am trying to get is the console showing on LCD (FB0) and input through a USB keyboard.
If I omit the console= or use one of console=tty, console=tty0 along with init=/linuxrc (busybox) I get the LCD display and text typed on the USB keyboard shows up on screen but doesn't seem to be seen by the console.
e.g. I type root for login and hit enter, the screen scrolls one line (newline) but the password prompt never appears.
If I use /bin/ash for init=, then input from the keyboard seems to work fine and I can issue commands (ls, cd, etc).
I figure there's something about busybox's inittab that isn't right for my s3c2410 board and its expecting input from somewhere else. Or, I'm just using the wrong device for console=
Here's the busybox inittab
# /etc/inittab
#
# Copyright (C) 2001 Erik Andersen <andersen@codepoet.org>
#
# Note: BusyBox init doesn't support runlevels.
# Startup the system
null::sysinit:/bin/mount -o remount,rw /
null::sysinit:/bin/mount -t proc proc /proc
null::sysinit:/bin/mount -a
null::sysinit:/bin/hostname -F /etc/hostname
null::sysinit:/sbin/ifconfig lo 127.0.0.1 up
null::sysinit:/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
# now run any rc scripts
::sysinit:/etc/init.d/rcS
::sysinit:/bin/login
# Set up a couple of getty's
tty1::respawn:/sbin/getty 38400 tty1
tty2::respawn:/sbin/getty 38400 tty2
# Put a getty on the serial port
#ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100
ttyS2::respawn:/sbin/getty -L ttyS2 115200 vt100
# Logging junk
null::sysinit:/bin/touch /var/log/messages
null::respawn:/sbin/syslogd -n -m 0
null::respawn:/sbin/klogd -n
tty3::respawn:/usr/bin/tail -f /var/log/messages
# Stuff to do for the 3-finger salute
::ctrlaltdel:/sbin/reboot
# Stuff to do before rebooting
null::shutdown:/usr/bin/killall klogd
null::shutdown:/usr/bin/killall syslogd
null::shutdown:/bin/umount -a -r
null::shutdown:/sbin/swapoff -a
Thanks!
|