甜瓜
2008-05-20 12:59:00 UTC
Howdy,
I use busybox on embedded system: PowerPC 405GP Walnut board
which only has a serial port for debugging. My busybox is built with default
menuconfig settings and make it into Ramdisk form. The linux kernel is
2.6.24.2. with the bootarg set to:
root=/dev/ram rw ip=XXX panic=1 console=ttyS0,115200
The booting process seems ok except starting busybox shell:
=============
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 132k init
init started: BusyBox v1.10.2 (2008-05-20 19:17:04 CST)
starting pid 14, tty '': '/etc/init.d/rcS'
Cannot run '/etc/init.d/rcS': No such file or directory
Please press Enter to activate this console.
Can't open /dev/tty4: No such file or directory
Can't open /dev/tty2: No such device or address
Can't open /dev/tty3: No such device or address
process '-/bin/sh' (pid 16) exited. Scheduling for restart.
process '-/bin/sh' (pid 19) exited. Scheduling for restart.
process '-/bin/sh' (pid 22) exited. Scheduling for restart.
Can't open /dev/tty4: No such file or directory
Can't open /dev/tty3: No such device or address
Can't open /dev/tty2: No such device or address
process '-/bin/sh' (pid 59) exited. Scheduling for restart.
process '-/bin/sh' (pid 62) exited. Scheduling for restart.
process '-/bin/sh' (pid 65) exited. Scheduling for restart.
=============
The error message will show again and again. But when I type:
ls
the shell shows the directories that means busybox works fine.
Since the board only have ttyS0 ttyS1 available, how to disable
additional tty?
Thanks in advance.
----
ShenLei
I use busybox on embedded system: PowerPC 405GP Walnut board
which only has a serial port for debugging. My busybox is built with default
menuconfig settings and make it into Ramdisk form. The linux kernel is
2.6.24.2. with the bootarg set to:
root=/dev/ram rw ip=XXX panic=1 console=ttyS0,115200
The booting process seems ok except starting busybox shell:
=============
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 132k init
init started: BusyBox v1.10.2 (2008-05-20 19:17:04 CST)
starting pid 14, tty '': '/etc/init.d/rcS'
Cannot run '/etc/init.d/rcS': No such file or directory
Please press Enter to activate this console.
Can't open /dev/tty4: No such file or directory
Can't open /dev/tty2: No such device or address
Can't open /dev/tty3: No such device or address
process '-/bin/sh' (pid 16) exited. Scheduling for restart.
process '-/bin/sh' (pid 19) exited. Scheduling for restart.
process '-/bin/sh' (pid 22) exited. Scheduling for restart.
Can't open /dev/tty4: No such file or directory
Can't open /dev/tty3: No such device or address
Can't open /dev/tty2: No such device or address
process '-/bin/sh' (pid 59) exited. Scheduling for restart.
process '-/bin/sh' (pid 62) exited. Scheduling for restart.
process '-/bin/sh' (pid 65) exited. Scheduling for restart.
=============
The error message will show again and again. But when I type:
ls
the shell shows the directories that means busybox works fine.
Since the board only have ttyS0 ttyS1 available, how to disable
additional tty?
Thanks in advance.
----
ShenLei