Strona 1 z 1

[+] Instalacja kontrolera PCI LogiLink 2xCOM

: 19 listopada 2011, 20:58
autor: Shiver25
Witam.
Nie mogę sobie poradzić z instalacją z kartą PCI LogiLink 2xCOM pod Debianem w wersji testowej. Pod Windowsem7 działa aż miło, a tutaj nie mogę jej ożywić. Sterowniki dostarczone są na płycie cd dołączonej do karty. Są one w postaci do skompilowania własnoręcznego, czyli instalacji ze źródeł, z którą zawsze miałem problemy. Doinstalowałem program make, nagłówki jądra linux-headers-3.0.0-1-686-pae, i zrobiłem tak ze znalezionego opisu:

Kod: Zaznacz cały

# rm -f /usr/src/linux
# ln -s /usr/src/linux-headers-3.0.0-1-686-pae /usr/src/linux
# apt-get install libsdl-dev
Po wykonaniu:

Kod: Zaznacz cały

make
otrzymuję:

Kod: Zaznacz cały

shiver MCS9865_V1.0.0.9 # make
rm -f *.mod.c *.o *.ko .*.cmd *.symvers
make -C /lib/modules/3.0.0-1-686-pae/build/ SUBDIRS=/home/shiver/MCS9865_V1.0.0.9 modules
make[1]: Wejście do katalogu `/usr/src/linux-headers-3.0.0-1-686-pae'
CC [M] /home/shiver/MCS9865_V1.0.0.9/mcs9865.o
/home/shiver/MCS9865_V1.0.0.9/mcs9865.c: In function ‘receive_chars’:
/home/shiver/MCS9865_V1.0.0.9/mcs9865.c:644:6: warning: comparison of distinct pointer types lacks a cast
/home/shiver/MCS9865_V1.0.0.9/mcs9865.c: At top level:
/home/shiver/MCS9865_V1.0.0.9/mcs9865.c:1993:8: warning: type defaults to ‘int’ in declaration of ‘DECLARE_MUTEX’
/home/shiver/MCS9865_V1.0.0.9/mcs9865.c:1993:1: warning: parameter names (without types) in function declaration
/home/shiver/MCS9865_V1.0.0.9/mcs9865.c: In function ‘serial9865_register_port’:
/home/shiver/MCS9865_V1.0.0.9/mcs9865.c:2040:8: error: ‘serial9865_sem’ undeclared (first use in this function)
/home/shiver/MCS9865_V1.0.0.9/mcs9865.c:2040:8: note: each undeclared identifier is reported only once for each function it appears in
/home/shiver/MCS9865_V1.0.0.9/mcs9865.c: In function ‘serial9865_remove_one’:
/home/shiver/MCS9865_V1.0.0.9/mcs9865.c:2151:9: error: ‘serial9865_sem’ undeclared (first use in this function)
/home/shiver/MCS9865_V1.0.0.9/mcs9865.c: At top level:
/home/shiver/MCS9865_V1.0.0.9/mcs9865.c:1993:8: warning: ‘DECLARE_MUTEX’ declared ‘static’ but never defined
make[4]: *** [/home/shiver/MCS9865_V1.0.0.9/mcs9865.o] Błąd 1
make[3]: *** [_module_/home/shiver/MCS9865_V1.0.0.9] Błąd 2
make[2]: *** [sub-make] Błąd 2
make[1]: *** [all] Błąd 2
make[1]: Opuszczenie katalogu `/usr/src/linux-headers-3.0.0-1-686-pae'
make: *** [default] Błąd 2
Gdzie tkwi błąd?

Dodatkowe informacje:

Kod: Zaznacz cały

shiver MCS9865_V1.0.0.9 # uname -aLinux shiver 3.0.0-1-686-pae #1 SMP Sat Aug 27 16:41:03 UTC 2011 i686 GNU/Linux

Kod: Zaznacz cały

shiver MCS9865_V1.0.0.9 # dpkg --print-architecturei
386

Kod: Zaznacz cały

 shiver MCS9865_V1.0.0.9 # lspci -k
00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03)
Subsystem: ASUSTeK Computer Inc. Device 82d3
00:01.0 PCI bridge: Intel Corporation 4 Series Chipset PCI Express Root Port (rev 03)
Kernel driver in use: pcieport
00:1a.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4
Subsystem: ASUSTeK Computer Inc. Device 82d4
Kernel driver in use: uhci_hcd
00:1a.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5
Subsystem: ASUSTeK Computer Inc. Device 82d4
Kernel driver in use: uhci_hcd
00:1a.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #6
Subsystem: ASUSTeK Computer Inc. Device 82d4
Kernel driver in use: uhci_hcd
00:1a.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2
Subsystem: ASUSTeK Computer Inc. Device 82d4
Kernel driver in use: ehci_hcd
00:1b.0 Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller
Subsystem: ASUSTeK Computer Inc. Device 82fe
Kernel driver in use: HDA Intel
00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 1
Kernel driver in use: pcieport
00:1c.5 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 6
Kernel driver in use: pcieport
00:1d.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1
Subsystem: ASUSTeK Computer Inc. Device 82d4
Kernel driver in use: uhci_hcd
00:1d.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2
Subsystem: ASUSTeK Computer Inc. Device 82d4
Kernel driver in use: uhci_hcd
00:1d.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3
Subsystem: ASUSTeK Computer Inc. Device 82d4
Kernel driver in use: uhci_hcd
00:1d.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1
Subsystem: ASUSTeK Computer Inc. Device 82d4
Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90)
00:1f.0 ISA bridge: Intel Corporation 82801JIB (ICH10) LPC Interface Controller
Subsystem: ASUSTeK Computer Inc. Device 82d4
00:1f.2 IDE interface: Intel Corporation 82801JI (ICH10 Family) 4 port SATA IDE Controller #1
Subsystem: ASUSTeK Computer Inc. Device 82d4
Kernel driver in use: ata_piix
00:1f.3 SMBus: Intel Corporation 82801JI (ICH10 Family) SMBus Controller
Subsystem: ASUSTeK Computer Inc. Device 82d4
Kernel driver in use: i801_smbus
00:1f.5 IDE interface: Intel Corporation 82801JI (ICH10 Family) 2 port SATA IDE Controller #2
Subsystem: ASUSTeK Computer Inc. Device 82d4
Kernel driver in use: ata_piix
01:00.0 VGA compatible controller: nVidia Corporation GT200 [GeForce GTX 260] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device 8301
Kernel driver in use: nouveau
02:00.0 Ethernet controller: Atheros Communications Inc. AR8121/AR8113/AR8114 Gigabit or Fast Ethernet (rev b0)
Subsystem: ASUSTeK Computer Inc. P5KPL-CM Motherboard
Kernel driver in use: ATL1E
04:02.0 Serial controller: NetMos Technology PCI 9865 Multi-I/O Controller
Subsystem: Device a000:1000
Kernel driver in use: serial
04:02.1 Serial controller: NetMos Technology PCI 9865 Multi-I/O Controller
Subsystem: Device a000:1000
Kernel driver in use: serial
04:02.2 Parallel controller: Illegal Vendor ID Device 9865
Subsystem: Device a000:2000

Kod: Zaznacz cały

shiver MCS9865_V1.0.0.9 # lspci
00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03)
00:01.0 PCI bridge: Intel Corporation 4 Series Chipset PCI Express Root Port (rev 03)
00:1a.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4
00:1a.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5
00:1a.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #6
00:1a.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2
00:1b.0 Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller
00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 1
00:1c.5 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 6
00:1d.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1
00:1d.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2
00:1d.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3
00:1d.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90)
00:1f.0 ISA bridge: Intel Corporation 82801JIB (ICH10) LPC Interface Controller
00:1f.2 IDE interface: Intel Corporation 82801JI (ICH10 Family) 4 port SATA IDE Controller #1
00:1f.3 SMBus: Intel Corporation 82801JI (ICH10 Family) SMBus Controller
00:1f.5 IDE interface: Intel Corporation 82801JI (ICH10 Family) 2 port SATA IDE Controller #2
01:00.0 VGA compatible controller: nVidia Corporation GT200 [GeForce GTX 260] (rev a1)
02:00.0 Ethernet controller: Atheros Communications Inc. AR8121/AR8113/AR8114 Gigabit or Fast Ethernet (rev b0)
04:02.0 Serial controller: NetMos Technology PCI 9865 Multi-I/O Controller
04:02.1 Serial controller: NetMos Technology PCI 9865 Multi-I/O Controller
04:02.2 Parallel controller: Illegal Vendor ID Device 9865

: 20 listopada 2011, 09:42
autor: fnmirk
Dostarcz jeszcze raz informacje bez formatowania ich pod Windowsem bo są nieczytelne. Nie sklejaj wyrazów.
Przejrzyj przy okazji forum:

http://debian.linux.pl/threads/12771-Za ... #post81406

http://debian.linux.pl/threads/13294-Al ... #post84983

: 20 listopada 2011, 15:22
autor: Shiver25
MCS9865_Linux.tar.gz

To jest ta paczka ze sterownikami.

Gdyby ktoś z forumowiczów miał chwilkę wolnego czasu i chciał z tego stworzyć paczkę .deb to byłbym nad wyraz szczęśliwy :)


Edycja: 20.11.2011. godzina 22:10

Coś widać na zachodzie ale nadal nie zgłasza mi się ruter:

Kod: Zaznacz cały

shiver MCS9865_V1.0.0.9 # dmesg | grep tty
[    0.000000] console [tty0] enabled
[    0.830273] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.852527] 00:0c: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.873324] 0000:04:02.0: ttyS1 at I/O 0xe480 (irq = 18) is a ST16650V2
[    0.894089] 0000:04:02.1: ttyS2 at I/O 0xe800 (irq = 19) is a ST16650V2

Kod: Zaznacz cały

shiver MCS9865_V1.0.0.9 # setserial -g /dev/ttyS0
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4

A tutaj z OpenManiaka.com

Kod: Zaznacz cały

#chown root /dev/ttyS0
 #chgrp dialout /dev/ttyS0
 #chmod 660 /dev/ttyS0

Kod: Zaznacz cały

#adduser shiver dialout

Kod: Zaznacz cały

shiver MCS9865_V1.0.0.9 # cat /etc/group | grep dialout
dialout:x:20:shiver
Minicom się uruchamia, zmieniłem szybkość transmisji i ustawiłem to jako domyślny konfig. Pomimo tego nadal ruter nie chce się zgłosić. Wciskam kilka razy "enter" jak jest pod Windowsem:

Kod: Zaznacz cały

Witaj w minicomie 2.5

OPCJE: I18n 
Skompilowany dnia Apr 16 2011, 13:24:22.
Port /dev/ttyS0

Wciśnij CTRL-A Z po pomoc na temat specjalnych klawiszy 


Ruter się zgłosił więc problem rozwiązany. Co zrobiłem, to proste. Uznałem, że sterowniki zainstalowały się chociaż chyba z błędem. Zmieniłem tylko /dev/ttyS0 na /dev/ttyS1. I działa.
Gdyby ktoś pytał dlaczego, nie umiem do końca tego wytłumaczyć.

Pozdrawiam.