hi,
suse 9.0.
hab gemaess des booklets die PCI-karte in den
PCI-slot no1. eingebaut:
nach restart unter hardware-erkennung folgenden
eintrag erhalten:
- Bus: PCI
- Geraet (Spez.): GA-7VAX Mainboard
- Geraet: VT8235 ISA-Bridge
- Geraete -ID (Spez.) 86017
- Hersteller: VIA Technologies Inc.
- Kennung des Gearaets: 78199
- Kennung des Unterherstellers: 70744
- Klasse(spec):ISA-Bride
- Klasse: Bridge
etc.
hab gemaess installations-anweisung (Linux_S.txt)
folgende test gemacht.
ss. unten Linux_S.txt
bei mir ist der Nm9845CV - chip drinn (ss.unten)
1) setserial /dev/ttySX -a
bei mir ist der interne rs232-port = com1 (ttyS0)
funktioniert.
ergebnisse
----------------------------------------------------------------------
setserial /dev/ttyS0 -a (COM-1)
ergebnis:
/dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
Baud_base: 115200, close_delay: 500, divisor: 0
closing_wait: 30000
Flags: spd_normal skip_test
setserial /dev/ttyS1 -a (COM-2)
ergebnis:
/dev/ttyS1, Line 1, UART: 16550A, Port: 0x02f8, IRQ: 3
Baud_base: 115200, close_delay: 500, divisor: 0
closing_wait: 30000
Flags: spd_normal skip_test
setserial /dev/ttyS2 -a (COM-3)
ergebnis:
/dev/ttyS2, Line 2, UART: unknown, Port: 0x03e8, IRQ: 4
Baud_base: 115200, close_delay: 500, divisor: 0
closing_wait: 30000
setserial /dev/ttyS3 -a (COM-4)
ergebnis:
/dev/ttyS3, Line 3, UART: unknown, Port: 0x02e8, IRQ: 3
Baud_base: 115200, close_delay: 500, divisor: 0
closing_wait: 30000
Flags: spd_normal
setserial /dev/ttyS4 -a (COM-5)
ergebnis:
/dev/ttyS4, Line 4, UART: unknown, Port: 0xffffffff, IRQ: 0
Baud_base: 115200, close_delay: 500, divisor: 0
closing_wait: 30000
Flags: spd_normal skip_test
-------------------------------------------------------------------
2) dann weiter gemaess anleitung:
Find the PCI card resource
( I/O port address & IRQ) for the serial ports
Enter the command: "more /proc/pci"
--------------------------------------------
Serial controller: PCI device 9710:9845
(NetMos Technology) (rev 1).
IRQ 11.
Master Capable. Latency=32.
I/O at 0x9000 [0x9007].
I/O at 0x9400 [0x9407].
I/O at 0x9800 [0x9807].
I/O at 0x9c00 [0x9c07].
I/O at 0xa000 [0xa007].
I/O at 0xa400 [0xa40f].
Bus 0, device 10, function 0:
---------------------------------------------
jetzt fangen die fragen an:
1 - zitat aus anleitung:
"Since Linux only support 4 serial ports
(ttyS0, ttyS1, ttyS2, ttyS3)
under the default condition."
frage: stimmt dies?
2 - auszug aus anleitung:
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
2a - wurde die karte richtig erkannt ???
2b - wieso unterscheiden sich die I/O-adressen so sehr???
2c - 8-bit sollten es ja sein.
2d - wo sind bei mir die angaben wie z.B.
- serial port 1 (bei mir intern)
- serial port 2
- device bezeichnung 1-4
2e - koennte es sein, dass
I/O at 0x9000 [0x9007]. == interner rs232port ttyS0 ist
I/O at 0x9400 [0x9407]. == 2. interner port (wird nicht herausgefuehrt)
und die
I/O at 0x9800 [0x9807]. ttyS
I/O at 0x9c00 [0x9c07].
I/O at 0xa000 [0xa007].
I/O at 0xa400 [0xa40f].
- meine neuen 4 comPorts sind????
3 - wie waere die nummerierung meiner 4 ttySX
keine ahnung........
4 - deswegen diese fragen,
denn solang ich nicht die korrekte nummerierung hab,
kann ich die comports nicht configurieren:
denn gemaess anleitung:
"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"
4 - verstaendnisFrage:
- ich benutz die rs232-port nur mit einer BaudRate
von 9600 bzw. 4800.(microcontroller und gps-empfaenger)
- ist die obengenannte BaudRate: Baud_base 115200"
als maximum zu verstehen?????
waere sehr froh und dankbar fuer jede hilfe, tips und
hinweise
mfg nomad
-------------------------------------------------------------------
Linux_S.txt (Exsys Installations-Anweisung)
-------------------------------------------------------------------
This installation guide describes the procedures to install
NetMos Technology Nm9735CV, Nm9745CV, Nm9835CV, Nm9845CV
PCI serial ports in Linux platform.
Linux Platform
Operating System : RedHat, SuSe
Terminal Emulation AP: minicom
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
----------------------------------------------------------------------------------------
end
Lesezeichen