페도라6에서 시리얼 카드 설정 부분

numir의 이미지

안녕하세요
오늘 가입해서 처음으로 질문을 남깁니다..

다름이 아니라 제가 수업 프로젝트 때문에 시리얼 포트를 이용해서 장비를 연결해야 하는데
제 컴터가 최근에 조립한거라 시리얼 포트가 없더군요
그래서 시리얼 카드를 샀는데
이거 자동으로 인식이 안되더라구요(페도라6에서)

강원전자 I-142모델인데 자료실에 가니까 리눅스용 드라이버가 있길래 봤는데
그냥 텍스트 파일이더군요
제가 이번에 리눅스 처음 깔아봐서 봐도 모르겠는데
혹시 매뉴얼 설명이나 시리얼 카드 설치 하는 법좀 가르쳐 주시면 안될까요?
여기서 해보니까 /proc/pci라는 폴더가 없더군요...
저는 /dev/tty3 번째가 언노운으로 나오더라구요..
이거 장비를 연결해야 뭘 해보든지 하는데
시리얼 포트가 없어서 좌절중입니다.. 숙제는 담주 목욜까진데...
아시는 분 답변좀 제발 부탁드립니다 꾸벅(__)

This installation guide describes the procedures to install NetMos Technology Nm9735CV, Nm9745CV, Nm9835CV, Nm9845CV PCI serial ports in Linux platform.

Linux Platform

l Operating System : RedHat, SuSe

l Terminal Emulation AP : minicom

l Internet Dialer : Kppp

Find the available serial ports

Since Linux only support 4 serial ports (ttyS0, ttyS1, ttyS2, ttyS3) under the default condition. Most likely, ttyS0 & ttyS1 are supported by mother board's built-in serial controllers and ttyS2 & ttyS3 are free for additional I/O card.

Serial ports could be checked by the following commands.

setserial /dev/ttyS0 -a (COM-1)

setserial /dev/ttyS1 -a (COM-2)

setserial /dev/ttyS2 -a (COM-3)

setserial /dev/ttyS3 -a (COM-4)

If COM-1 is used by mouse, the response is similar to

/dev/ttyS0 : Device or resource busy

If the COM-1 does not attach any device, the response is similar to

/dev/ttyS0, Line 0, UART: 16550A, Port: 0x3f8, irq: 4

Baud_base: 115200, clos_delay: 50, divisor: 0

closing_wait: 3000, closing_wait2: infinite

Flags: spd_normal skip_test

In case ttyS2 (COM-3) is free, the response for command setserial /dev/ttyS2 -a is shown below.

/dev/ttyS2, Line 2, UART: unknown, Port: 0x3e8, irq: 4

Baud_base: 115200, clos_delay: 50, divisor: 0

closing_wait: 3000, closing_wait2: infinite

Flags: spd_normal skip_test

Find the PCI card resource ( I/O port address & IRQ) for the serial ports

Enter the command more /proc/pci

The response is similar to the following

Bus 0, Device 11, function 0:

Serial controller : Unknown vendor Unknown device (rev 01).

Vendor id=9710, Device id=9735

Device id=9745

Device id=9820

Device id=9825

Device id=9835

Device id=9845

Medium devsel. Fast back-to-back capable. IRQ 11

Board with Nm9735CV part

I/O at 0xc000 [0xc001] serial port 1

0xc008 [0xc009] serial port 2

Board with Nm9745CV part

I/O at 0xc000 [0xc001] serial port 1

0xc008 [0xc009] serial port 2

0xc010 [0xc011] device 1

0xc018 [0xc019] device 2

0xc020 [0xc021] device 3

0xc028 [0xc029] device 4

Board with Nm9820CV part

I/O at 0xc000 [0xc001] serial port 1

I/O at 0xc400 [0xc401] not used

I/O at 0xc800 [0xc801] not used

I/O at 0xd000 [0xd001] not used

I/O at 0xd400 [0xd401] not used

I/O at 0xd800 [0xd801] not used

Board with Nm9825CV part

I/O at 0xc000 [0xc001] serial port 1

Board with Nm9835CV part

I/O at 0xc000 [0xc001] serial port 1

I/O at 0xc400 [0xc401] serial port 2

I/O at 0xc800 [0xc801] not used

I/O at 0xd000 [0xd001] not used

I/O at 0xd400 [0xd401] not used

I/O at 0xd800 [0xd801] not used

Board with Nm9845CV part

I/O at 0xc000 [0xc001] serial port 1

I/O at 0xc400 [0xc401] serial port 2

I/O at 0xc800 [0xc801] device 1

I/O at 0xd000 [0xd001] device 2

I/O at 0xd400 [0xd401] device 3

I/O at 0xd800 [0xd801] device 4

Board with Nm9755CV part

I/O at 0xc000 [0xc001] not used

I/O at 0xc400 [0xc401] not used

I/O at 0xc800 [0xc801] device 1

I/O at 0xd000 [0xd001] device 2

I/O at 0xd400 [0xd401] device 3

I/O at 0xd800 [0xd801] device 4

From the /proc/pci file, it is possible to find the PCI card's I/O port address and IRQ. Especially, the NetMos parts always shows

Vendor id=9710, Device id=9735

Device id=9745

Device id=9820

Device id=9825

Device id=9835

Device id=9845

Configure the parameters for ttyS2 or ttyS3

Enter (if ttyS2 or ttyS3 are free)

setserial /dev/ttyS2 port 0xc000 UART 16550A

irq 11 Baud_base 115200

setserial /dev/ttyS3 port 0xc008 UART 16550A

irq 11 Baud_base 115200

Check the setting for ttyS2 or ttyS3

Type setserial /dev/ttyS2 -a

/dev/ttyS2, Line 2, UART: 16550A, Port: 0xc000, irq: 11

Baud_base: 115200, clos_delay: 50, divisor: 0

closing_wait: 3000, closing_wait2: infinite

Flags: spd_normal skip_test

The ttyS2 or ttyS3 are ready for application

bushi의 이미지

(급하시면... USB to serial 컨버터도 그럭저럭 쓸만 합니다. 좀 번거롭지만.)

저도 메인보드에 없어서 PCI 카드를 구해다 연결했습니다.
강원전자인 것은 같은데... 칩셋이 좀 틀리군요.
문서는 2.4(또는 2.2) 커널 기준으로 설명된 거라 그대로 따라하기가 힘드실 것 같습니다.

각설하고.

제 경우 dmesg 를 해서 부팅 로그를 보면

...
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ACPI: PCI Interrupt 0000:05:00.0[A] -> GSI 18 (level, low) -> IRQ 18
0000:05:00.0: ttyS1 at I/O 0x7000 (irq = 18) is a 16550A
0000:05:00.0: ttyS2 at I/O 0x7008 (irq = 18) is a 16550A
....

라는 내용이 보입니다.
ttyS0 는 메인보드 칩셋에 숨어있는 놈인데 실제 커넥터가 밖으로 나와있지는 않고,
ttyS1, ttyS2 가 새로 추가한 PCI 카드에 있는 serial 입니다.

/sbin/lspci -vv -nn
명령으로 이 PCI 장치를 좀 더 살펴보면,

...
05:00.0 Serial controller [0700]: Timedia Technology Co Ltd PCI2S550 (Dual 16550 UART) [1409:7168] (rev 01) (prog-if 02 [16550])
        Subsystem: Timedia Technology Co Ltd Unknown device [1409:4037]
        Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B-
        Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Interrupt: pin A routed to IRQ 18
        Region 0: I/O ports at 7000 [=32]
...

라고 나옵니다.
제 카드는 Timedia 칩셋이라 [1409:xxxx] 로 나왔고,
numir 님은 Netmos 칩셋이니 [9710:xxxx] 로 나올겁니다.

class id 는 [0700] 혹은 [0702] 혹은 [0703] 으로 나와야합니다.
만약 [0701] 로 나온다면 parallel 포트도 같이 붙어있는 combo 카드일텐데...
잘 될진 모르겠지만
/sbin/modprobe parport_serial
명령을 실행한 뒤 /var/log/messages 의 마지막 부분에 뭐라 적힌 것이 있는 지 보셔야겠습니다.

어쨌든 커널에 드라이버가 포함되어 있으니 h/w fault 가 아니라면 그냥저냥 될 것 같은데요.

OTL

numir의 이미지

와우 감사합니다.. 한번 해 볼게요.. 감사합니다 ^^

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.