LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 04-27-2008, 06:40 AM   #1
PatM
LQ Newbie
 
Registered: Mar 2008
Posts: 27

Rep: Reputation: 15
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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with up2date on the console Palula Linux - Newbie 3 06-06-2006 09:51 PM
COnsole problems in Slackware Link182 Linux - Distributions 1 04-18-2005 02:25 AM
video problems in console mrb Linux - Newbie 2 07-20-2004 06:13 AM
problems with video in console mrb Linux - Newbie 2 05-10-2004 01:28 PM
Console res problems and a thank you... redkazan Linux - General 1 01-11-2004 01:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 03:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration