Keyword: ARM Linux Ping cannot be stopped
Finally, I solved the problem by myself. The cause is that the problem occurs at the end of Linux Startup:
/Bin/sh: can't access tty; Job control turned off
There are hundreds of causes and solutions for this error, and many attempts have not helped me solve the problem.
The following is my solution:
1. Add the first line of VI/etc/inittab
Console: sysinit:/etc/init. d/RCS
2. Execute the command to find the device number corresponding to the real serial port. Here it is 204
# Cat/proc/devices
Character devices:
1 mem
2 Pty
3 ttyp
4/dev/VC/0
4 tty
4 TTYs
5/dev/tty
5/dev/console
5/dev/ptmx
6 lp
7 VCs
10 Misc
13 Input
14. Sound
21 SG
29 FB
90 MTD
99 ppdev
116 ALSA
128 PTM
136 PTS
180 USB
188 ttyusb
189 usb_device
204 s3c2410_serial
253 usb_endpoint
254 rtc
3. Delete the original/dev/console
# Rm/dev/console
4. Create a device node for the real serial port
# Mknod-M 666/dev/ttysac0 C 204 64
5. link the console to the real serial port node ttysac0
# Ln-S/dev/ttysac0/dev/console
Restart the instance and test it:
# Ping 192.168.0.228
Ping 192.168.0.228 (192.168.0.228): 56 data bytes
64 bytes from 192.168.0.228: seq = 0 TTL = 64 time = 11.609 MS
64 bytes from 192.168.0.228: seq = 1 TTL = 64 time = 4.204 MS
64 bytes from 192.168.0.228: seq = 2 TTL = 64 time = 1.853 MS
64 bytes from 192.168.0.228: seq = 3 TTL = 64 time = 1.238 MS
^ C
--- 192.168.0.228 Ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
Round-trip min/AVG/max = 1.238/4.726/11.609 MS
#
CTRL + C stopped successfully