페도라6에서 시리얼 카드 설정 부분
안녕하세요
오늘 가입해서 처음으로 질문을 남깁니다..
다름이 아니라 제가 수업 프로젝트 때문에 시리얼 포트를 이용해서 장비를 연결해야 하는데
제 컴터가 최근에 조립한거라 시리얼 포트가 없더군요
그래서 시리얼 카드를 샀는데
이거 자동으로 인식이 안되더라구요(페도라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
(급하시면... USB to
(급하시면... USB to serial 컨버터도 그럭저럭 쓸만 합니다. 좀 번거롭지만.)
저도 메인보드에 없어서 PCI 카드를 구해다 연결했습니다.
강원전자인 것은 같은데... 칩셋이 좀 틀리군요.
문서는 2.4(또는 2.2) 커널 기준으로 설명된 거라 그대로 따라하기가 힘드실 것 같습니다.
각설하고.
제 경우 dmesg 를 해서 부팅 로그를 보면
라는 내용이 보입니다.
ttyS0 는 메인보드 칩셋에 숨어있는 놈인데 실제 커넥터가 밖으로 나와있지는 않고,
ttyS1, ttyS2 가 새로 추가한 PCI 카드에 있는 serial 입니다.
/sbin/lspci -vv -nn
명령으로 이 PCI 장치를 좀 더 살펴보면,
라고 나옵니다.
제 카드는 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
답변 너무 감사합니다 ^^
와우 감사합니다.. 한번 해 볼게요.. 감사합니다 ^^
댓글 달기