Put a getty on the serial port

Chris Kottaridis chriskot at quietwind.net
Wed Oct 12 02:05:14 UTC 2005


Well, since you previously stated:

Kernel command line: console=ttyCPM0,115200 root=31:01 rw 
                             ^^^^^^^

You should probably create a CPM0 device in /dev. According to the linux
Documentation/devices.txt:
===================================================================
204 char        Low-density serial ports
                  0 = /dev/ttyLU0               LinkUp Systems L72xx
UART - port
 0
                  1 = /dev/ttyLU1               LinkUp Systems L72xx
UART - port
 1
                  2 = /dev/ttyLU2               LinkUp Systems L72xx
UART - port
 2
                  3 = /dev/ttyLU3               LinkUp Systems L72xx
UART - port
 3
                  4 = /dev/ttyFB0               Intel Footbridge (ARM)
                  5 = /dev/ttySA0               StrongARM builtin serial
port 0
                  6 = /dev/ttySA1               StrongARM builtin serial
port 1
                  7 = /dev/ttySA2               StrongARM builtin serial
port 2
                  8 = /dev/ttySC0               SCI serial port (SuperH)
- port
0
                  9 = /dev/ttySC1               SCI serial port (SuperH)
- port
1
                 10 = /dev/ttySC2               SCI serial port (SuperH)
- port
2
                 11 = /dev/ttySC3               SCI serial port (SuperH)
- port
3
                 12 = /dev/ttyFW0               Firmware console - port
0
                 13 = /dev/ttyFW1               Firmware console - port
1
                 14 = /dev/ttyFW2               Firmware console - port
2
                 15 = /dev/ttyFW3               Firmware console - port
3
                 16 = /dev/ttyAM0               ARM "AMBA" serial port 0
                    ...
                 31 = /dev/ttyAM15              ARM "AMBA" serial port
15
                 32 = /dev/ttyDB0               DataBooster serial port
0
                    ...
                 39 = /dev/ttyDB7               DataBooster serial port
7
                 40 = /dev/ttySG0               SGI Altix console port
                 41 = /dev/ttySMX0              Motorola i.MX - port 0
                 42 = /dev/ttySMX1              Motorola i.MX - port 1
                 43 = /dev/ttySMX2              Motorola i.MX - port 2
                 44 = /dev/ttyMM0               Marvell MPSC - port 0
                 45 = /dev/ttyMM1               Marvell MPSC - port 1
                 46 = /dev/ttyCPM0              PPC CPM (SCC or SMC) -
                           ^^^^^^^
port 0
                    ...
                 49 = /dev/ttyCPM5              PPC CPM (SCC or SMC) -
port 5
======================================================================

So, you need a CPM0 device with major number 204 and minor number 46,
then tell inittab to use ttyCPM0.

    Chris Kottaridis    (chriskot at quietwind.net)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
On Wed, 2005-10-12 at 11:39 +1000, Dmytro Bablinyuk wrote:
> > # Put a getty on the serial port
> > #ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100
> > ttyCPM::respawn:/sbin/getty -L ttyCPM 115200 vt100
> I got console working
> ::wait:/sbin/getty -n -l /bin/sh 115200 /dev/console vt100
> But since I have '/bin/sh: can't access tty; job control turned off'
> I would like to move to a terminal
> 
> I have these devices
> / # ls /dev/
> console    hda3       hdb14      loop1      ptmx       ram0       tty5 
>       ttyp2
> fb0        hda4       hdb2       mem        pts        ram1       tty6 
>       ttyp3
> fb1        hda5       hdb3       mtd0       ptyp0      ram2       tty7 
>       ttyp4
> fb2        hda6       hdb4       mtd1       ptyp1      ram3       ttyP0 
>       ttyp5
> fb3        hda7       hdb5       mtd2       ptyp2      random     ttyP1 
>       ttyp6
> hda        hda8       hdb6       mtd3       ptyp3      rtc        ttyP2 
>       ttyp7
> hda1       hda9       hdb7       mtdblock0  ptyp4      shm        ttyP3 
>       ttyp8
> hda10      hdb        hdb8       mtdblock1  ptyp5      tty        ttyS0 
>       ttyp9
> hda11      hdb1       hdb9       mtdblock2  ptyp6      tty0       ttyS1 
>       urandom
> hda12      hdb10      input      mtdblock3  ptyp7      tty1       ttyS2 
>       zero
> hda13      hdb11      kmem       net        ptyp8      tty2       ttyS3
> hda14      hdb12      log        null       ptyp9      tty3       ttyp0
> hda2       hdb13      loop0      psaux      ram        tty4       ttyp1
> 
> I tried ttyS0, tty0 but console is not working on any of these. So far 
> it works only with 'console' device.
> Can anybody please suggest what device shall I use or at least try?
> 
> Thank you
> 
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
> 


More information about the busybox mailing list