Pagina 1 di 1

Re: aiuto compilazione driver

Inviato: mer 24 gen 2007, 21:46
da Ermes1
[quote="Ermes1"][quote="Ermes1"]salve a tutti. devo compilare ed installare dei driver per la mia scheda wireless che monta chip rt2500. ci sono i sorgenti per linux.

nel readme leggo:

Codice: Seleziona tutto

For 2.6 series kernel:
a.  run 'cd STA/Module'
        'cp ./2.6.x/Makefile .'
        'cp ./2.6.x/load .'

b.  $make -C /path/to/source SUBDIRS=$PWD modules
    Where /path/to/source is the path to the source directory for the (configured and built) target kernel.

c.  run '/sbin/insmod rt2500.ko'  (as root)
        '/sbin/ifconfig ra0 inet YOUR_IP up'
dopo aver seguito il prima passaggio (a) e vad oa compilare ho i problemi: cosa devo inserire al posto di pathtosource?

se do un semplice make senza parametri ottengo questo:

Codice: Seleziona tutto

make -C /lib/modules/2.6.17.13/build SUBDIRS=/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module modules
make[1]: Entering directory `/usr/src/linux-2.6.17.13'
  CC [M]  /home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.o
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `RTMPHandleRxDoneInterrupt':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:590: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp.h:1396: sorry, unimplemented: inlining failed in call to 'RTMPCheckRxDescriptor': function body not available
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:180: sorry, unimplemented: called from here
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `RTMPHandleTxRingTxDoneInterrupt':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:693: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `RTMPHandlePrioRingTxDoneInterrupt':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:795: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:817: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `RTMPHandleDecryptionDoneInterrupt':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:1400: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `RTMPHandleEncryptionDoneInterrupt':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:1505: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `MiniportMMRequest':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:1785: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `MlmeHardTransmit':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:1853: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:1861: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:1867: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:1930: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `RTMPSendPacket':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2138: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `RTMPDeQueuePacket':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2231: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `RTMPFreeDescriptorRequest':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2312: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2356: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `RTMPSendNullFrame':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2465: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `RTMPHardEncrypt':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2536: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2572: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2619: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2676: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2694: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2861: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2877: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:3225: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: At top level:
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:3865: fatal error: opening dependency file /home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/.rtmp_data.o.d: Permission denied
compilation terminated.
make[2]: *** [/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.o] Error 1
make[1]: *** [_module_/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.17.13'
make: *** [all] Error 2

Inviato: mer 24 gen 2007, 21:49
da Ermes1
scusate.. ho commesso un errore nel postare... qualche admin che cancella i primi due mex.. scusate...

Inviato: mer 24 gen 2007, 21:54
da targzeta
Prova ad eseguirlo come root

Spina

Inviato: mer 24 gen 2007, 21:56
da Ermes1
ho provato ma non cambia nulla!!

Re: aiuto compilazione driver

Inviato: mer 24 gen 2007, 21:58
da targzeta
Ermes1 ha scritto:

Codice: Seleziona tutto

...
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:3865: fatal error: opening dependency file /home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/.rtmp_data.o.d: Permission denied
compilation terminated.
...
Ma questo te lo dice anche quando sei root?

Spina

Inviato: mer 24 gen 2007, 22:10
da Ermes1

Codice: Seleziona tutto

root@theking:/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module# make
make -C /lib/modules/2.6.17.13/build SUBDIRS=/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module modules
make[1]: Entering directory `/usr/src/linux-2.6.17.13'
  CC [M]  /home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.o
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `RTMPHandleRxDoneInterrupt':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:590: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp.h:1396: sorry, unimplemented: inlining failed in call to 'RTMPCheckRxDescriptor': function body not available
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:180: sorry, unimplemented: called from here
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `RTMPHandleTxRingTxDoneInterrupt':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:693: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `RTMPHandlePrioRingTxDoneInterrupt':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:795: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:817: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `RTMPHandleDecryptionDoneInterrupt':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:1400: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `RTMPHandleEncryptionDoneInterrupt':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:1505: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `MiniportMMRequest':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:1785: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `MlmeHardTransmit':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:1853: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:1861: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:1867: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:1930: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `RTMPSendPacket':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2138: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `RTMPDeQueuePacket':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2231: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `RTMPFreeDescriptorRequest':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2312: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2356: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `RTMPSendNullFrame':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2465: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c: In function `RTMPHardEncrypt':
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2536: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2572: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2619: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2676: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2694: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2861: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:2877: warning: comparison of distinct pointer types lacks a cast
/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.c:3225: warning: comparison of distinct pointer types lacks a cast
make[2]: *** [/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module/rtmp_data.o] Error 1
make[1]: *** [_module_/home/matteo/Desktop/wireless/RT2500-Linux-STA-1.4.6.6/Module] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.17.13'
make: *** [all] Error 2

Inviato: mer 24 gen 2007, 22:32
da targzeta
Mi dai il link dei driver, così li scarico e me li guardo?

Spina

Inviato: mer 24 gen 2007, 22:39
da Ermes1

Inviato: mer 24 gen 2007, 23:03
da targzeta
Niente, neanche a me ha compilato, solo che mi ha dato errori diversi dai tuoi.
Mi sono ricordato però che la tua scheda è ottima per sniffare pacchetti e per decriptare reti wireless. Così sono andato in questo sito:
http://aircrack-ng.org/
e, per quanto riguarda la tua scheda, ho trovato questo driver:
http://rt2x00.serialmonkey.com/rt2500-cvs-daily.tar.gz
che a me ha compilato senza errori.

La pagina di riferimento è questo:
http://aircrack-ng.org/doku.php?id=rt2500

Bho, se ti fidi puoi provare questo driver ;).

Spina

Inviato: gio 25 gen 2007, 14:12
da Ermes1
si avevo letto anche io quelal pagina tempo fa e hoi deciso di prendere il chip ralink proprio perchè ha driver pienamente supportati e addirittura consigliati.. (e poi mi è costata poco); solo che il link sul sito risultava errato. ora provo poi ti faccio sapere!!

Inviato: gio 25 gen 2007, 14:16
da Ermes1
bene! per la compilazione tutto ok!! ti posso chiedere una cosa.. che tipo di file è un modulo? è un oggetto? cioè.. in sostanza cos'è che ho installato e in che directory è stato instalalto?

Inviato: gio 25 gen 2007, 16:30
da targzeta
Ermes1 ha scritto:. che tipo di file è un modulo? è un oggetto? cioè.. in sostanza cos'è che ho installato e in che directory è stato instalalto?...
Il modulo è il risultato di una compilazione. in effetti è un object-file (precisamente un elf), infatti una volta, nei kernel precedenti aveva estensione .o, dal kernel 2.6 invece hanno introdotto il tipo di estensione .ko (kernel object).
Il tuo modulo in particolare si chiama:

Codice: Seleziona tutto

rt2500.ko
Il comando

Codice: Seleziona tutto

make install
che hai eseguito non ha fatto altro che copiare il file rt2500.ko nella directory

Codice: Seleziona tutto

/lib/modules/`uname -r`/extra
dove il comando `uname -r` restituisce la versione del kernel corrente (che nel tuo caso è 2.6.17.13).
Ha inoltre creato degli alias per il nome del modulo inserendo nel file

Codice: Seleziona tutto

/etc/modprobe.conf
la seguente riga:

Codice: Seleziona tutto

alias ra0 rt2500
ed infine ha eseguito il comando

Codice: Seleziona tutto

depmod -a
per ricreare le dipendenze dei moduli. Come conseguenza di ciò, i comandi:

Codice: Seleziona tutto

modprobe rt2500
e

Codice: Seleziona tutto

modprobe r0
sono identici ed entrambi caricano il modulo (nel tuo caso):

Codice: Seleziona tutto

/lib/modules/2.6.17.13/extra/rt2500
in memoria.

Spero di essere stato chiaro,
Spina

Inviato: gio 25 gen 2007, 16:39
da Ermes1
chiarissimo!! grazie mille!! si illuminano un sacco di cose!!

Inviato: gio 25 gen 2007, 16:42
da targzeta
Ermes1 ha scritto:...si illuminano un sacco di cose!!
Spero non sia la tenda del salotto .... altrimenti vuol dire che sta andando a fuoco :).

Spina