The problem of serial ports in Linux is finally solved.
Source: Internet
Author: User
The problem of serial port in Linux has finally been solved-Linux Enterprise Application-Linux server application information. The following is a detailed description. "/Dev/ttyS0: no such device or address" is always displayed during serial port operations, but this file exists.
I once thought about whether the problem lies in Kernel support for serial ports. However, using ttySA0 and ttySA1 as the Console means both hardware and Kernel support. As a result, the problem is locked on the file system.
Then I thought it was incorrect to establish ttyS0? At that time, it was set up as mknod-m 666 ttyS0 c 4 64. Many documents on the Internet were set up like this (the kernel was not set up with devfs ).
View/proc/tty/drviers, there is a line of "ttySAC/dev/s3c2410_serial 204 64-66 serial", Oh yeah, I understand, the serial port device Number of s3c2410 is different from that of x86, the master device number is 204, and the device number is 64.
So
Rm ttyS *
Mknod-m 666 ttyS0 c 206 64
Mknod-m 666 ttyS1 c 206 65
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