Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [DE] PCI Karte serielle Schnittstelle  (Read 5145 times)

lobaki

  • Guest
[DE] PCI Karte serielle Schnittstelle
« on: 2011/01/19, 11:16:48 »
Hallo Forum,

ich hab folgende Situation zu meistern:
meine serielle Schnittstelle ist defekt.
Darüber hab ich meine Datenübertragung zwischen CNC Maschine und PC gemacht.
Das funktionierte in einem Win in der Vbox bisher korrekt.
Ich habe eine PCI Karte mit 2 Seriellen eingesteckt.
2xDB9 serielle Schnittstelle Chipsatz: SUN1889
Auf der begleitenden CD ist folgende Datei: golden_V1.1.0.0tar.gz

Wie gehe ich jetzt korrekt vor um die Treiber richtig zu installieren ?

Code: [Select]
mazak@terra:~$ infobash -v3
Host/Kernel/OS  "terra" running Linux 2.6.35-7.slh.1-aptosid-amd64 x86_64 [ sidux 2009-04 Μόρος - kde-full - (200912310312) ]
CPU Info        (1) Intel Pentium Dual E2200 @ 1024 KB cache flags( sse3 ht nx lm ) clocked at [ 1600.000 MHz ]
                (2) Intel Pentium Dual E2200 @ 1024 KB cache flags( sse3 ht nx lm ) clocked at [ 2200.000 MHz ]
Videocard       Intel 82G33/G31 Express Integrated Graphics Controller  X.Org 1.7.7  [ 1152x864@75.0hz ]
Network cards   Atheros L1 Gigabit
Processes 136 | Uptime 2:20 | Memory 580.4/2003.8MB | HDD ST3160815AS Size 160GB (19%used) | Client Shell | Infobash v3.34


Code: [Select]
mazak@terra:~$ lspci
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 02)
00:01.0 PCI bridge: Intel Corporation 82G33/G31/P35/P31 Express PCI Express Root Port (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 02)
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 01)
00:1d.0 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)                                                                                                  
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)                                                                    
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)                                                                            
00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA IDE Controller (rev 01)                                                                            
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 01)                                                                                      
02:00.0 Ethernet controller: Atheros Communications L1 Gigabit Ethernet (rev b0)                                                                                
04:00.0 Serial controller: Timedia Technology Co Ltd PCI2S550 (Dual 16550 UART) (rev 01)


Code: [Select]
root@terra:/home/mazak# cd golden
root@terra:/home/mazak/golden# ls
driver  Makefile  README  snxdump  snxmknod  snxterm
root@terra:/home/mazak/golden# cd driver
root@terra:/home/mazak/golden/driver# ls
Makefile      snx_devtable.c  snx_ieee1284_ops.c  snx_lp.h    snx_parallel.c  snx_ppdev.h   snx_share.c
snx_common.h  snx_ieee1284.c  snx_lp.c            snx_main.c  snx_ppdev.c     snx_serial.c


Bis für jede Hilfe und Unterstützung sehr dankbar.

lobaki

micha_52

  • Guest
PCI Karte serielle Schnittstelle
« Reply #1 on: 2011/01/19, 13:32:36 »
bevor du irgendwelche Treiber kompilierst, hast du schon versucht die Karte mit setserial ( http://linuxwiki.de/setserial) einzustellen?

Gruß,
Michael

lobaki

  • Guest
PCI Karte serielle Schnittstelle
« Reply #2 on: 2011/01/19, 17:03:09 »
Hi Micha,

danke für die schnelle Antwort, das ist der Tipp aus dem linuxwiki
Code: [Select]
/etc/serial.conf

Hier werden bei Debian (etch) die seriellen Schnittstellen konfiguriert:

/dev/ttyS0 uart 16550A port 0x3F8 irq 4
/dev/ttyS1 uart 16550A port 0xec00 irq 201
/dev/ttyS2 uart 16550A port 0xec08 irq 201

/!\ Wichtig ist hier das A - wenn man 16550 (ohne A) angibt, dann tut es nicht richtig (minicom tut ein bischen, sendfax nicht)!


lobaki

dann hab ich hier die Info aus
lspci -v
Code: [Select]
04:00.0 Serial controller: Timedia Technology Co Ltd PCI2S550 (Dual 16550 UART) (rev 01) (prog-if 02 [16550])
        Subsystem: Timedia Technology Co Ltd SER4037A (2x RS232 port)
        Flags: stepping, medium devsel, IRQ 19
        I/O ports at ec00 [size=32]
        Kernel driver in use: serial

die Datei serial.conf gibt es bei mir nicht
Code: [Select]
root@terra:/home/mazak# /etc/serial.conf
bash: /etc/serial.conf: Datei oder Verzeichnis nicht gefunden

Offline bluelupo

  • User
  • Posts: 2.068
    • BluelupoMe
Re: PCI Karte serielle Schnittstelle
« Reply #3 on: 2011/01/19, 18:56:24 »
Quote from: "lobaki"

[...]
die Datei serial.conf gibt es bei mir nicht
Code: [Select]
root@terra:/home/mazak# /etc/serial.conf
bash: /etc/serial.conf: Datei oder Verzeichnis nicht gefunden


Hi lobaki,
nicht die Datei /etc/serial.conf ausführen sondern editieren mit einem Editor (zB. kwrite). Hast du das Paket setserial installiert?

Prüfen mit:
Code: [Select]

# dpkg -l | grep -i setserial

lobaki

  • Guest
Re: PCI Karte serielle Schnittstelle
« Reply #4 on: 2011/01/20, 09:09:21 »
Hallo bluelupo,

die Ausgabe von dpkg -l | grep -i setserial
ergibt
Code: [Select]
root@terra:/home/mazak# dpkg -l | grep -i setserial
Warnung, in Datei »/var/lib/dpkg/status« nahe Zeile 26132 Paket »virtualbox-3.1«:
 Fehler in Versionszeichenkette »3.1.6-59338_Debian_lenny«: ungültiges Zeichen in Revisionsnummer
Warnung, in Datei »/var/lib/dpkg/status« nahe Zeile 26133 Paket »virtualbox-3.1«:
 Fehler in der Config-Version-Zeichenkette »3.1.6-59338_Debian_lenny«: ungültiges Zeichen in Revisionsnummer
Warnung, in Datei »/var/lib/dpkg/available« nahe Zeile 22047 Paket »virtualbox-3.1«:
 Fehler in Versionszeichenkette »3.1.6-59338_Debian_lenny«: ungültiges Zeichen in Revisionsnummer


Danke lobaki

lobaki

  • Guest
Re: PCI Karte serielle Schnittstelle
« Reply #5 on: 2011/01/20, 09:21:03 »
das sind die entsprechenden Meldungen:

Code: [Select]
var/lib/dpkg/status ab Zeile 26133

Config-Version: 3.1.6-59338_Debian_lenny
Replaces: virtualbox
Provides: virtualbox
Depends: libc6 (>= 2.7-1), libcurl3 (>= 7.16.2-1), libgcc1 (>= 1:4.1.1), libgl1-mesa-glx | libgl1, libpng12-0 (>= 1.2.13-4), libqt4-network (>= 4.4.3), libqt4-opengl (>= 4.4.3), libqtcore4 (>= 4.4.3), libqtgui4 (>= 4.4.3), libsdl1.2debian (>= 1.2.10-1), libssl0.9.8 (>= 0.9.8f-5), libstdc++6 (>= 4.2.1), libx11-6, libxcursor1 (>> 1.1.2), libxext6, libxml2 (>= 2.6.27), libxmu6, libxt6, python2.5 (>= 2.5), zlib1g (>= 1:1.1.4), psmisc, adduser
Pre-Depends: debconf (>= 1.1) | debconf-2.0
Recommends: libasound2, libpulse0, libsdl-ttf2.0-0, linux-headers, gcc, make, binutils, libhal1 (>= 0.5), pdf-viewer, libgl1, python-central
Conflicts: virtualbox, virtualbox-ose
Conffiles:
 /etc/init.d/vboxdrv 0d4cddf5ed0f7caa39f3c36bc2258184
Description: Sun VirtualBox
 VirtualBox is a powerful PC virtualization solution allowing you to run a
 wide range of PC operating systems on your Linux system. This includes
 Windows, Linux, FreeBSD, DOS, OpenBSD and others. VirtualBox comes with a broad
 feature set and excellent performance, making it the premier virtualization
 software solution on the market.
Python-Version: >= 2.4


und
Code: [Select]
var/lib/dpkg/available ab Zeile 22047

Version: 3.1.6-59338_Debian_lenny
Replaces: virtualbox
Provides: virtualbox
Depends: libc6 (>= 2.7-1), libcurl3 (>= 7.16.2-1), libgcc1 (>= 1:4.1.1), libgl1-mesa-glx | libgl1, libpng12-0 (>= 1.2.13-4), libqt4-network (>= 4.4.3), libqt4-opengl (>= 4.4.3), libqtcore4 (>= 4.4.3), libqtgui4 (>= 4.4.3), libsdl1.2debian (>= 1.2.10-1), libssl0.9.8 (>= 0.9.8f-5), libstdc++6 (>= 4.2.1), libx11-6, libxcursor1 (>> 1.1.2), libxext6, libxml2 (>= 2.6.27), libxmu6, libxt6, python2.5 (>= 2.5), zlib1g (>= 1:1.1.4), psmisc, adduser
Pre-Depends: debconf (>= 1.1) | debconf-2.0
Recommends: libasound2, libpulse0, libsdl-ttf2.0-0, linux-headers, gcc, make, binutils, libhal1 (>= 0.5), pdf-viewer, libgl1, python-central
Conflicts: virtualbox, virtualbox-ose
Size: 45353746
Description: Sun VirtualBox
 VirtualBox is a powerful PC virtualization solution allowing you to run a
 wide range of PC operating systems on your Linux system. This includes
 Windows, Linux, FreeBSD, DOS, OpenBSD and others. VirtualBox comes with a broad
 feature set and excellent performance, making it the premier virtualization
 software solution on the market.
Python-Version: >= 2.4


ich glaub da hab ich was gemacht was man nicht machen sollte - aber was

Offline bluelupo

  • User
  • Posts: 2.068
    • BluelupoMe
Re: PCI Karte serielle Schnittstelle
« Reply #6 on: 2011/01/20, 20:00:27 »
Hi lobaki,
du hast ein Problem mit Virtualbox (Paket virtualbox-3.1). An der dpkg Ausgabe siehst du das. Schau mal ob das Paket ohne Fehlermeldung entfernen kannst. Aktuell ist übrigens virtualbox-4.0
Code: [Select]

# apt-get remove --purge virtualbox-3.1

Offline dieres

  • User
  • Posts: 786
PCI Karte serielle Schnittstelle
« Reply #7 on: 2011/01/20, 20:43:05 »
ich hatte so ein problem beim wechsel von 2.x auf 3.x, musste damals aus /var/lib/dpkg/status die Einträge für 2.x löschen bis keine fehlermeldung mehr kam.

wegen usb benutze ich aber die non-free version. Falls Du auch diese benutzt, musst Du in der sources.list von apt lenny durch squeeze und non-free mit contrib ersetzen, um die Version 4.0 zu finden.

wannek3

  • Guest
PCI Karte serielle Schnittstelle
« Reply #8 on: 2011/01/21, 08:39:15 »
lobaki, laut Beitrag vom 20.01.2011, 08:09 hast Du übrigens setserial NICHT installiert.
> apt-get install setserial
Meine PCI Karte funktionierte übrigens (länger her) out of the box. Ein /dev/ttyS<xx> wurde automatisch vom Kernel erzeugt, weitere Treiber waren nicht nötig.

lobaki

  • Guest
PCI Karte serielle Schnittstelle
« Reply #9 on: 2011/01/21, 12:45:55 »
Hallo zusammen,

vielen Dank für die Hilfe. Hab die Tipps befolgt. Die vbox verursacht keine Fehlermeldungen mehr.
Code: [Select]
root@terra:/home/mazak# dpkg -l | grep -i setserial
ii  setserial                                  2.17-45.3                      controls configuration of serial ports


ich hab die vbox non ose damals über #dpkg -i virtualbox-3.1_xyDebian_lenny_amd64.deb
installiert weil ich auch USB brauchte. Ich wusste nicht, dass ich die non ose auch über apt installieren kann.

edit: vbox kann keine PCI Karten als serielle Schnittstelle erkennen. Muss das Problem anders lösen. Vielen Dank nochmal für eure Mühe.

Gruß lobaki