Nowe posty

xx Dystrybucja pod HP Omen (7)
Dzisiaj o 11:33:05
xx [Poradnik] Wyszukiwanie Sterowników (2)
2024-03-27, 21:08:23
lamp Problem z Linux Lite po instalacji (0)
2024-03-27, 19:50:30
xx Ile pingwinów? (1)
2024-03-27, 08:59:24
xx konfiguracja pale moon (0)
2024-03-24, 21:53:42
xx Plasma 6 w Neonie ssie trochę mniej ... (10)
2024-03-23, 02:38:11
xx problem z instalacja sterowników do karty sieciowej (3)
2024-03-18, 18:10:16
xx Plik abc.001 (1)
2024-03-17, 17:48:27
xx Zlecę dopracowanie programu w MatLab (0)
2024-03-13, 15:28:40
xx Linux Mint 21.3 XFCE brak dźwieku po paru minutach (karta muzyczna zintegrowana) (5)
2024-03-12, 23:07:01

Autor Wątek: Gentoo D-Link DWL-G520 rev C  (Przeczytany 4745 razy)

OneGhost

  • Gość
Gentoo D-Link DWL-G520 rev C
« dnia: 2007-12-09, 17:52:40 »
Próbuję zainstalować na Gentoo x86_64 sterowniki do karty d-link dwl-g520 c. W lspci prezentuje się ona tak:
05:01.0 Network controller: RaLink RT2561/RT61 rev B 802.11g
        Subsystem: D-Link System Inc DWL-G510 Rev C
        Flags: bus master, slow devsel, latency 32, IRQ 19
        Memory at fa100000 (32-bit, non-prefetchable) [size=32K]
        Capabilities: [40] Power Management version 2
Problem jest taki, że prawie żaden sterownik jaki próbuję zainstalować nie chce się skompilować. Jedyny jaki mi się udało to ralink-rt61, ale ten nie wykrywa, że jest to karta wifi w iwconfig. Inne sterowniki kończą się tak:
>>> Emerging (1 of 1) net-wireless/rt61-1.1.0_beta2 to /
 * rt61-1.1.0-b2.tar.gz MD5 RMD160 SHA1 SHA256 size ;-) ...               [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking rt61-1.1.0-b2.tar.gz ;-) ...                                  [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.23-gentoo-r3/build
 * Found sources for kernel version:
 *     2.6.23-gentoo-r3
 * Checking for suitable kernel configuration options...                  [ ok ]
>>> Unpacking source...
>>> Unpacking rt61-1.1.0-b2.tar.gz to /var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2 ...
 * Preparing rt61 module
make[1]: Entering directory `/usr/src/linux-2.6.23-gentoo-r3'
  CC [M]  /var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.o
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.c: In function 'RT61_open':
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.c:405: warning: 'deprecated_irq_flag' is deprecated (declared at include/linux/interrupt.h:64)
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.c: In function 'rt61_init_module':
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.c:1044: error: implicit declaration of function 'pci_module_init'
make[3]: *** [/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.o] Error 1
make[2]: *** [_module_/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.23-gentoo-r3'
rt61.ko failed to build!
make: *** [module] Error 1
 *
 * ERROR: net-wireless/rt61-1.1.0_beta2 failed.
 * Call stack:
 *                 ebuild.sh, line 1701:  Called dyn_compile
 *                 ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *                 ebuild.sh, line   44:  Called src_compile
 *   rt61-1.1.0_beta2.ebuild, line   35:  Called linux-mod_src_compile
 *          linux-mod.eclass, line  518:  Called die
 * The specific snippet of code:
 *                      emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \\
 *                                ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \\
 *                              || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}."
 *  The die message:
 *   Unable to make  KERNDIR=/usr/src/linux KERNOUT=/lib/modules/2.6.23-gentoo-r3/build clean module.
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/temp/build.log'.
 *

 * Messages for package net-wireless/rt61-1.1.0_beta2:

 *
 * ERROR: net-wireless/rt61-1.1.0_beta2 failed.
 * Call stack:
 *                 ebuild.sh, line 1701:  Called dyn_compile
 *                 ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *                 ebuild.sh, line   44:  Called src_compile
 *   rt61-1.1.0_beta2.ebuild, line   35:  Called linux-mod_src_compile
 *          linux-mod.eclass, line  518:  Called die
 * The specific snippet of code:
 *                      emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \\
 *                                ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \\
 *                              || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}."
 *  The die message:
 *   Unable to make  KERNDIR=/usr/src/linux KERNOUT=/lib/modules/2.6.23-gentoo-r3/build clean module.
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/temp/build.log'.
 *
>>> Emerging (1 of 1) net-wireless/rt2x00-9999 to /
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.23-gentoo-r3/build
 * Found sources for kernel version:
 *     2.6.23-gentoo-r3
 * Checking for suitable kernel configuration options...                  [ ok ]
>>> Unpacking source...
 * Fetching CVS module source/rt2x00 into /usr/portage/distfiles/cvs-src ...
 * Running  cvs -q -f -z1 -d ":pserver:anonymous:@rt2400.cvs.sourceforge.net:/cvsroot/rt2400" login
Logging in to :pserver:anonymous@rt2400.cvs.sourceforge.net:2401/cvsroot/rt2400
 * Running  cvs -q -f -z1 -d ":pserver:anonymous@rt2400.cvs.sourceforge.net:/cvsroot/rt2400" update -dP rt2x00-9999
 * Copying source/rt2x00 from /usr/portage/distfiles/cvs-src ...
 * CVS module source/rt2x00 is now in /var/tmp/portage/net-wireless/rt2x00-9999/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999 ...
 * Preparing 80211 module
  CC [M]  /var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.o
/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.c: In function 'rt61pci_fill_rxdone':
/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.c:1686: error: 'RX_FLAG_FAILED_FCS_CRC' undeclared (first use in this function)
/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.c:1686: error: (Each undeclared identifier is reported only once
/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.c:1686: error: for each function it appears in.)
/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.c: In function 'rt61pci_validate_eeprom':
/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.c:1863: error: implicit declaration of function 'DECLARE_MAC_BUF'
/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.c:1863: error: 'macbuf' undeclared (first use in this function)
/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.c: In function 'rt61pci_configure_filter':
/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.c:2319: error: 'FIF_ALLMULTI' undeclared (first use in this function)
/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.c:2320: error: 'FIF_FCSFAIL' undeclared (first use in this function)
/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.c:2321: error: 'FIF_PLCPFAIL' undeclared (first use in this function)
/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.c:2322: error: 'FIF_CONTROL' undeclared (first use in this function)
/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.c:2323: error: 'FIF_OTHER_BSS' undeclared (first use in this function)
/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.c:2324: error: 'FIF_PROMISC_IN_BSS' undeclared (first use in this function)
/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.c: At top level:
/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.c:2468: error: unknown field 'start' specified in initializer
/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.c:2469: warning: initialization from incompatible pointer type
/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.c:2474: error: unknown field 'configure_filter' specified in initializer
/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.c:2474: warning: initialization from incompatible pointer type
/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.c:2477: error: unknown field 'erp_ie_changed' specified in initializer
/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.c:2477: warning: initialization from incompatible pointer type
make[3]: *** [/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999/rt61pci.o] Error 1
make[2]: *** [_module_/var/tmp/portage/net-wireless/rt2x00-9999/work/rt2x00-9999] Error 2
make[1]: *** [modules] Error 2
make: *** [default] Error 2
 *
 * ERROR: net-wireless/rt2x00-9999 failed.
 * Call stack:
 *            ebuild.sh, line 1701:  Called dyn_compile
 *            ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *            ebuild.sh, line   44:  Called src_compile
 *   rt2x00-9999.ebuild, line  134:  Called linux-mod_src_compile
 *     linux-mod.eclass, line  518:  Called die
 * The specific snippet of code:
 *                      emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \\
 *                                ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \\
 *                              || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}."
 *  The die message:
 *   Unable to make  KERNDIR=/usr/src/linux KERNOUT=/lib/modules/2.6.23-gentoo-r3/build  .
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-wireless/rt2x00-9999/temp/build.log'.
 *

 * Messages for package net-wireless/rt2x00-9999:

 *
 * ERROR: net-wireless/rt2x00-9999 failed.
 * Call stack:
 *            ebuild.sh, line 1701:  Called dyn_compile
 *            ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *            ebuild.sh, line   44:  Called src_compile
 *   rt2x00-9999.ebuild, line  134:  Called linux-mod_src_compile
 *     linux-mod.eclass, line  518:  Called die
 * The specific snippet of code:
 *                      emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \\
 *                                ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \\
 *                              || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}."
 *  The die message:
 *   Unable to make  KERNDIR=/usr/src/linux KERNOUT=/lib/modules/2.6.23-gentoo-r3/build  .
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-wireless/rt2x00-9999/temp/build.log'.
 *
Czemu sterowniki nie działają? Coś z kernelem może? I czy ralink-rt61 nie powinien już być wystarczający?

chmooreck

  • Gość
Gentoo D-Link DWL-G520 rev C
« Odpowiedź #1 dnia: 2007-12-09, 18:33:50 »
może spróbuj ściągnąć najnowszą wersję rt61-cvs bezpośrednio z serialmonkey i przekompilować ?
mi tez się wydaje, że ralink-rt61 powinien wystarczyć... co mówi dmesg po załadowaniu modułu ? rozumiem, że iwconfig widzi interfejs, ale pisze, że nie ma rozszerzenia bezprzewodowego ?
spróbuj najpierw podnieść interfejs ifconfig'iem i potem pomęcz iwconfig'iem, albo iwpriv'em
Na razie nie mam więcej pomysłów :-)

OneGhost

  • Gość
Gentoo D-Link DWL-G520 rev C
« Odpowiedź #2 dnia: 2007-12-09, 19:42:15 »
Po załadowaniu modułu dmesg:
[ 4517.306737] RT61: Vendor = 0x1814, Product = 0x0302
To wszystko co nowego się pojawia. zgadza się, iwconfig widzi go, ale nie widzi, że to wifi:
# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

ra0       no wireless extensions.
Znalazłem gdzieś w necie, że trzeba zrobić dowiązanie:
ln -s net.lo net.ra0
To faktycznie pomogło, iwconfig już widzi kartę wifi. Czyli faktycznie trzeba było najpierw podnieść interfejs. Nie rozumiem czemu linkiem do lo, ale ważne, że działa. Dzięki za pomoc. Aha - rt61 z cvs też się nie skompilował, ale teraz to mało ważne

ankul

  • Gość
Gentoo D-Link DWL-G520 rev C
« Odpowiedź #3 dnia: 2007-12-10, 20:48:30 »
Witam

Moja karta wifi
01:08.0 Network controller: RaLink RT2561/RT61 802.11g PCI
        Subsystem: RaLink Unknown device 2561
        Flags: bus master, slow devsel, latency 32, IRQ 19
        Memory at e6000000 (32-bit, non-prefetchable) [size=32K]
        Capabilities: [40] Power Management version 2

ra0 to nazwa interfejsu wifi w sterownikach ze strony ralinka i
starszych z serialmonkey w nowych z serialmonkey interfejs nazywa się już wlan0

Jeżeli masz problemy z tą kartą sprawdź czy masz firmware
(rt2561.bin rt2561s.bin rt2661.bin) w odpowiednim katalogu
(wcześniej /etc/Wireless/RT61STA/ teraz /lib/firmware/, w logu kernela
są informacje)

Pod 86_x64 skompilowałem orginalne sterowniki ze strony
ralinka ale na kernelu 2.6.18
(działają lepiej niż te nowe z serialmonkey - na tych karta gubi czasem połaczenie)

PAX