Put a getty on the serial port

Robin Gilks robin.gilks at tait.co.nz
Wed Oct 12 02:02:46 UTC 2005


Dmytro Bablinyuk wrote:

>>>
>> Don't you have to specify which ttyCPM you want to use? From your 
>> kernel command line I would assume '0'
>
> Yep, I spotted this already. But now I have another problem with
> --8<---
> ::wait:/sbin/getty -n -l /bin/sh 115200 /dev/console vt100
> '/bin/sh: can't access tty; job control turned off'
> --8<---
> So, I should run my shell on a normal tty such as tty1 or ttyS0 - I 
> tried:
> ::wait:/sbin/getty -n -l /bin/sh 115200 /dev/ttyS0 vt100
> ::wait:/sbin/getty -n -l /bin/sh 115200 /dev/ttyCPM0 vt100
> ::wait:/sbin/getty -n -l /bin/sh 115200 /dev/tty0 vt100
> But none of them works.
>
> Any ideas?
> Probably I have again missed something.

Job control gets turned off by using the tty as a kernel console. I 
can't remember the magic thats required by init to make it release the 
console so that a shell has full control over it off hand. I'm sure 
you'll find it at
http://www.uclibc.org/FAQ.html#job_control

-- 
Robin Gilks
Senior Design Engineer          Phone: (+64)(3) 357 1569
Tait Electronics                Fax  :  (+64)(3) 359 4632
PO Box 1645 Christchurch        Email : robin.gilks at tait.co.nz
New Zealand


=======================================================================
This email, including any attachments, is only for the intended
addressee.  It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
 altered or corrupted during transmission.
=======================================================================




More information about the busybox mailing list