Why can't I respond to Ctrl + C in ARM + LINUX?

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.