Install the PCI to serial port driver in ubuntu10.04 Environment

Source: Internet
Author: User

 

First, install the serial port tool setserial.

Command: sudo apt-Get
Install setserial
, Using setserial
Tool to view the serial port information,

$
Sudo setserial/dev/ttys0-

/Dev/ttys0,
Line 0, UART: Unknown, Port: 0x03f8, IRQ: 4

Baud_base:
115200, close_delay: 50, divisor: 0

Closing_wait:
3000

Flags:
Spd_normal skip_test

$
Sudo setserial/dev/ttys3-

/Dev/ttys3,
Line 3, UART: 16550a, Port: 0xb800, IRQ: 18

Baud_base:
115200, close_delay: 50, divisor: 0

Closing_wait:
3000

Flags:
Spd_normal



The main objective is to bring the serial port and
PCI

Differences between extended serial ports. The difference is that
UART:

Wei
Unknow

. However, if you detect this step

UART

Is
16550a

Instead
Unknow

To prove that your system has recognized the extended serial port and does not need to be further configured.



Subsequently, use
Lspci

View
PCI

Device status, command:
Lspci
-V

. Output:

0:06. 0 serial
Controller
: Netmos technology PCI 9865 multi-I/O controller
(Prog-If 02)

Subsystem: Device a000: 1000

Flags: Medium devsel, IRQ 17

I/O Ports at bc00 [size = 8]

Memory at fd7ff000 (32-bit,
Non-prefetchable) [size = 4 K]

Memory at fd7fe000 (32-bit,
Non-prefetchable) [size = 4 K]

Capabilities: <access
Denied>

0:06. 1 serial
Controller
: Netmos technology PCI 9865 multi-I/O controller
(Prog-If 02)

Subsystem: Device a000: 1000

Flags: Medium devsel, IRQ 18

I/O Ports at b800 [size = 8]

Memory at fd7fd000 (32-bit,
Non-prefetchable) [size = 4 K]

Memory at fd7fc000 (32-bit,
Non-prefetchable) [size = 4 K]

Capabilities: <access
Denied>




Find"
Serial
Controller :"

That is, the serial controller, followed by device information, such
9865

Control chip, the following is the serial port details, such
IRQ


Yes
17

,
I/O

The address is
0xbc00

.




Finally, set the serial device file
,

Modify the following command line according to the actual situation.

$ Sudo setserial/dev/ttys2
Port 0xbc00 UART 16550a IRQ 17 baud_base 115200

$ Sudo setserial/dev/ttys3
Port 0xb800 UART 16550a IRQ 18 baud_base 115200




Reusable

Setserial

View the serial port status.

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.