Installazione driver Hostap prism 2.5

3 risposte [Ultimo messaggio]
Ritratto di Leobester
Leobester
(Newbie)
Offline
Newbie
Iscritto: 01/09/2007
Messaggi: 3

Salve, ho un problema con l'installazione del driver hostap per la mia scheda pcmcia z-com xi-325hp+

Parto col dire che ho un acer travelmate 529 e ho installato la opensuse 10.2.
Effettuato tutti gli aggiornamenti sicurezza e quelli disponibili per i prg installati (quelli standard di opensuse).

Il kernel e' alla versione 2.6.18.8-0.5

La scheda viene rilevata correttamente come wlan0.
Al momento dell'aggiornamento del driver hostap all'ultima versione 0.4.9 usando questi comandi:

<br />ifconfig wlan0 down<br />wlanctl-ng wlan0 lnxreq_ifstate ifstate=disable<br />/etc/init.d/CardBus stop<br />rmmod prism2_pci<br />rmmod hostap_pci<br />wget http://hostap.epitest.fi/releases/hostap-driver-0.4.9.tar.gz<br />tar -xvzf hostap-driver-0.4.9.tar.gz<br />cd hostap-driver-0.4.9<br />wget http://patches.aircrack-ng.org/hostap-driver-0.4.7.patch<br />patch -Np1 -i hostap-driver-0.4.7.patch<br />make &amp;&amp; make install<br />mv -f /etc/pcmcia/wlan-ng.conf /etc/pcmcia/wlan-ng.conf~<br />/etc/init.d/pcmcia start<br />modprobe hostap_pci &amp;&gt;/dev/null<br />

ottengo questi errori:

<br />Lnxntbk:~ # ifconfig wlan0 down<br />Lnxntbk:~ # wlanctl-ng wlan0 lnxreq_ifstate ifstate=disable<br />wlanctl-ng: Operation not supported<br />Lnxntbk:~ # /etc/init.d/CardBus stop<br />bash: /etc/init.d/CardBus: No such file or directory<br />Lnxntbk:~ # rmmod prism2_pci<br />ERROR: Module prism2_pci does not exist in /proc/modules<br />Lnxntbk:~ # rmmod hostap_pci<br />ERROR: Module hostap_pci does not exist in /proc/modules<br />Lnxntbk:~ # wget http://hostap.epitest.fi/releases/hostap-driver-0.4.9.tar.gz<br />--10:58:41--  http://hostap.epitest.fi/releases/hostap-driver-0.4.9.tar.gz<br />           =&gt; `hostap-driver-0.4.9.tar.gz&#039;<br />Resolving hostap.epitest.fi... 204.152.186.63<br />Connecting to hostap.epitest.fi|204.152.186.63|:80... connected.<br />HTTP request sent, awaiting response... 200 OK<br />Length: 202,959 (198K) [application/x-tar]<br /><br />100%[==================================================================&gt;] 202,959       71.19K/s<br /><br />10:58:45 (71.00 KB/s) - `hostap-driver-0.4.9.tar.gz&#039; saved [202959/202959]<br /><br />Lnxntbk:~ # tar -xvzf hostap-driver-0.4.9.tar.gz<br />hostap-driver-0.4.9/<br />hostap-driver-0.4.9/README<br />hostap-driver-0.4.9/COPYING<br />hostap-driver-0.4.9/ChangeLog<br />hostap-driver-0.4.9/Makefile<br />hostap-driver-0.4.9/driver/<br />hostap-driver-0.4.9/driver/etc/<br />hostap-driver-0.4.9/driver/etc/hostap_cs.conf<br />hostap-driver-0.4.9/driver/hostap.mk<br />hostap-driver-0.4.9/driver/modules/<br />hostap-driver-0.4.9/driver/modules/.cvsignore<br />hostap-driver-0.4.9/driver/modules/Makefile<br />hostap-driver-0.4.9/driver/modules/hostap.c<br />hostap-driver-0.4.9/driver/modules/hostap.h<br />hostap-driver-0.4.9/driver/modules/hostap_80211.h<br />hostap-driver-0.4.9/driver/modules/hostap_80211_rx.c<br />hostap-driver-0.4.9/driver/modules/hostap_80211_tx.c<br />hostap-driver-0.4.9/driver/modules/hostap_ap.c<br />hostap-driver-0.4.9/driver/modules/hostap_ap.h<br />hostap-driver-0.4.9/driver/modules/hostap_common.h<br />hostap-driver-0.4.9/driver/modules/hostap_compat.h<br />hostap-driver-0.4.9/driver/modules/hostap_config.h<br />hostap-driver-0.4.9/driver/modules/hostap_crypt.c<br />hostap-driver-0.4.9/driver/modules/hostap_crypt.h<br />hostap-driver-0.4.9/driver/modules/hostap_crypt_ccmp.c<br />hostap-driver-0.4.9/driver/modules/hostap_crypt_tkip.c<br />hostap-driver-0.4.9/driver/modules/hostap_crypt_wep.c<br />hostap-driver-0.4.9/driver/modules/hostap_cs.c<br />hostap-driver-0.4.9/driver/modules/hostap_download.c<br />hostap-driver-0.4.9/driver/modules/hostap_hw.c<br />hostap-driver-0.4.9/driver/modules/hostap_info.c<br />hostap-driver-0.4.9/driver/modules/hostap_ioctl.c<br />hostap-driver-0.4.9/driver/modules/hostap_pci.c<br />hostap-driver-0.4.9/driver/modules/hostap_plx.c<br />hostap-driver-0.4.9/driver/modules/hostap_proc.c<br />hostap-driver-0.4.9/driver/modules/hostap_wext.h<br />hostap-driver-0.4.9/driver/modules/hostap_wlan.h<br />hostap-driver-0.4.9/kernel-patches/<br />hostap-driver-0.4.9/kernel-patches/README<br />hostap-driver-0.4.9/kernel-patches/hostap-linux-2.4.20.patch<br />hostap-driver-0.4.9/kernel-patches/hostap-linux-2.4.24.patch<br />hostap-driver-0.4.9/kernel-patches/hostap-linux-2.5.60.patch<br />hostap-driver-0.4.9/kernel-patches/hostap-linux-2.5.69.patch<br />hostap-driver-0.4.9/kernel-patches/hostap-linux-2.6.0-test2.patch<br />hostap-driver-0.4.9/kernel-patches/hostap-linux-2.6.2.patch<br />hostap-driver-0.4.9/pcmcia-cs-patches/<br />hostap-driver-0.4.9/pcmcia-cs-patches/README<br />hostap-driver-0.4.9/pcmcia-cs-patches/hostap-pcmcia-cs-3.1.34.patch<br />Lnxntbk:~ # cd hostap-driver-0.4.9<br />Lnxntbk:~/hostap-driver-0.4.9 # wget http://patches.aircrack-ng.org/hostap-driver-0.4.7.patch<br />--10:58:47--  http://patches.aircrack-ng.org/hostap-driver-0.4.7.patch<br />           =&gt; `hostap-driver-0.4.7.patch&#039;<br />Resolving patches.aircrack-ng.org... 213.186.33.2<br />Connecting to patches.aircrack-ng.org|213.186.33.2|:80... connected.<br />HTTP request sent, awaiting response... 200 OK<br />Length: 19,481 (19K) [text/x-diff]<br /><br />100%[==================================================================&gt;] 19,481        75.88K/s<br /><br />10:58:47 (75.88 KB/s) - `hostap-driver-0.4.7.patch&#039; saved [19481/19481]<br /><br />Lnxntbk:~/hostap-driver-0.4.9 # patch -Np1 -i hostap-driver-0.4.7.patch<br />patching file driver/etc/hostap_cs.conf<br />patching file driver/modules/hostap_80211_tx.c<br />patching file driver/modules/hostap.c<br />Hunk #1 succeeded at 413 (offset 6 lines).<br />patching file driver/modules/hostap_config.h<br />patching file driver/modules/hostap_cs.c<br />Hunk #1 succeeded at 934 (offset 5 lines).<br />patching file driver/modules/hostap_hw.c<br />patching file driver/modules/hostap_ioctl.c<br />patching file driver/modules/hostap_pci.c<br />Hunk #1 succeeded at 53 (offset 5 lines).<br />patching file driver/modules/hostap_plx.c<br />Hunk #1 succeeded at 103 (offset 5 lines).<br />patching file driver/modules/hostap_wlan.h<br />Lnxntbk:~/hostap-driver-0.4.9 # make &amp;&amp; make install<br />Makefile:28: /lib/modules/2.6.18.8-0.5-default/build/.config: No such file or directory<br />Makefile:46: WARNING: No kernel PCMCIA support found and PCMCIA_PATH is not defined<br />Makefile:53: WARNING: Linux wireless extensions, CONFIG_NET_RADIO, not enabled in the kernel<br />make: *** No rule to make target `/lib/modules/2.6.18.8-0.5-default/build/.config&#039;.  Stop.<br />Lnxntbk:~/hostap-driver-0.4.9 # mv -f /etc/pcmcia/wlan-ng.conf /etc/pcmcia/wlan-ng.conf~<br />mv: cannot stat `/etc/pcmcia/wlan-ng.conf&#039;: No such file or directory<br />Lnxntbk:~/hostap-driver-0.4.9 # /etc/init.d/pcmcia start<br />bash: /etc/init.d/pcmcia: No such file or directory<br />Lnxntbk:~/hostap-driver-0.4.9 # modprobe hostap_pci &amp;&gt;/dev/null<br />

Sull'errore del comando wlanctl-ng penso ci sia solo da rivedere le opzioni (credo)

come mai invece non esiste il file CardBus in /etc/init.d/ non ho idea...

...idem su come mai non esistono i moduli prism2_pci hostap_pci in /proc/modules...

Gli errori delle righe Makefile:46 e Makefile:53 indicano la mancanza del supporto wireless e pcmcia nel kernel, ma in /etc la cartella pcmcia e' presente quindi non so' se effettivamente mancano queste estensioni (e non so' se c'e' un comando per verificarlo) oppure se questi due errori discendono dal fatto che il file .config non esiste (verificato) nel percorso /lib/modules/2.6.18.8-0.5-default/build/ come indicato in Makefile:28

Qualunque soluzione / aiuto / consiglio e' ben accetto perche' mi sto perdendo un tantino d'animo.

Grazie molte
Leonardo

Ritratto di Leobester
Leobester
(Newbie)
Offline
Newbie
Iscritto: 01/09/2007
Messaggi: 3

Poniamo la domanda cosi':

qualcuno ha mai installato i driver hostap per una scheda pcmcia prism2/2.5/3 ?

Grazie anticipatamente
Leo

Ritratto di Leobester
Leobester
(Newbie)
Offline
Newbie
Iscritto: 01/09/2007
Messaggi: 3

Come i matti... ci si fa le domande e ci si risponde da soli...
i messaggi di errore nel caso capitasse a qualcuno ci sono perche' nell'installazione mancano i sorgenti e gli strumenti di sviluppo.
Una volta messi c'e' un altro allegro errore...
"Can't build for 2.6 with a non-2.6 source!"
perche' durante l'esecuzione del makefile viene fatta una verifica della versione del kernel in uso.
Con la 2.6 dà questo messaggio.

Domande:
Visto che anche nell'ultimissima release di kernel (che non ho messo) c'e' la stessa versione dell'hostap (la 0.4.4) mi chiedo (come e' scritto sul sito di hostap) perche' una versione piu' nuova non possa essere installata sulla 2.6 ma solo sulla 2.4

Sul sito di aircrack-ng c'e' scritto se hai una versione di kernel maggiore o uguale alla 2.6 ti basta installare questa patch: http://patches.aircrack-ng.org/hostap-kernel-2.6.18.patch
che se si va a guardare, ha dentro i percorsi per la distro Gentoo. Che uno per passarla deve riscrivere tutti i path giusti??? no perche' se fosse cosi' complimentoni a chi l'ha scritta...

Bene! forse fra un po' di giorni mi rispondero' da solo... nel frattempo se qualcuno avesse gia' la risposta non e' che mi offendo se le volesse postare Laughing
Leo

Ritratto di killer80
killer80
(Newbie)
Offline
Newbie
Iscritto: 18/05/2008
Messaggi: 1

Ciao! Come te ho i tuoi stessi identici problemi... te come li hai risolti? Laughing