PDA

View Full Version : Installazione rete wireless


Zagor HW
29-09-2007, 17:48
Salve, ho installato da poco la versione Debian di linux e sto muovendo i primi passi in questo ambiente. Dopo aver seguito una guida per poter installare l'intero sistema ho la necessita anche di installare la rete wirelless. Documentandomi un pochino ho capito che devo installare i drive "ipw3945" e anche "ieee80211". Installando questi ultimi (che da quello che ho potuto capire sono da installare prima degli altri) mi da questo tipo di errore:


debian:/home/ben/Desktop/ieee80211-1.2.18# make -f Makefile
Checking in /lib/modules/2.6.18-5-686 for ieee80211 components...
find: /lib/modules/2.6.18-5-686/build/: No such file or directory
grep: /lib/modules/2.6.18-5-686/build//.config: No such file or directory
grep: /lib/modules/2.6.18-5-686/build//include/linux/autoconf.h: No such file or directory
find: /lib/modules/2.6.18-5-686/build/: No such file or directory
make -C /lib/modules/2.6.18-5-686/build M=/home/ben/Desktop/ieee80211-1.2.18 mod ules
make: *** /lib/modules/2.6.18-5-686/build: No such file or directory. Stop.
make: *** [modules] Error 2


Come posso risolvere il problema? Grazie

--ale--
29-09-2007, 18:26
Sembra che ti manchino gli headers del kernel, per installarli dai:
apt-get install linux-headers-2.6.18-5-686

Zagor HW
29-09-2007, 18:49
Lanciando quel comando mi ha rimosso anche due pacchetti (tzdata e util-linux) è tutto ok oppure non dovevano essere rimossi in teoria?


debian:/home/ben# apt-get install linux-headers-2.6.18-5-686
Lettura della lista dei pacchetti in corso... Fatto
Generazione dell'albero delle dipendenze in corso... Fatto
I seguenti pacchetti verranno inoltre installati:
binutils cpp-4.1 gcc-4.1 gcc-4.1-base gcc-4.2-base libc6 libc6-i686 libgcc1
libstdc++6 linux-headers-2.6.18-5 linux-kbuild-2.6.18 locales
Pacchetti suggeriti:
binutils-doc gcc-4.1-locales gcc-4.1-multilib gcc-4.1-doc glibc-doc
Pacchetti raccomandati:
libc6-dev libmudflap0-dev
I seguenti pacchetti saranno RIMOSSI:
tzdata util-linux
I seguenti pacchetti NUOVI (NEW) saranno installati:
gcc-4.1 gcc-4.2-base linux-headers-2.6.18-5 linux-headers-2.6.18-5-686
linux-kbuild-2.6.18
I seguenti pacchetti saranno aggiornati:
binutils cpp-4.1 gcc-4.1-base libc6 libc6-i686 libgcc1 libstdc++6 locales
ATTENZIONE: il seguente pacchetto ESSENZIALE sta per essere rimosso
Questo non dovrebbe essere fatto a meno che non si sappia esattamente cosa si st a facendo!
util-linux tzdata (a causa di util-linux)
8 aggiornati, 5 installati, 2 da rimuovere e 390 non aggiornati.
È necessario prendere 9047kB/19,8MB di archivi.
Dopo l'estrazione, verranno occupati 16,3MB di spazio su disco.
Si sta per compiere un'azione potenzialmente pericolosa
Per continuare scrivere la frase 'SI, esegui come richiesto!'
?] SI, esegui come richiesto!
Get:1 http://ftp.it.debian.org testing/main cpp-4.1 4.1.2-16 [2316kB]
Get:2 http://security.debian.org etch/updates/main linux-headers-2.6.18-5 2.6.18 .dfsg.1-13etch3 [3165kB]
Cambio disco: Inserire il disco chiamato
'Debian GNU/Linux 4.0 r1 _Etch_ - Official i386 NETINST Binary-1 20070820-20:21 '
nel dispositivo '/cdrom/' e premere invio

Get:3 http://ftp.it.debian.org testing/main gcc-4.1-base 4.1.2-16 [205kB]
Get:4 http://ftp.it.debian.org testing/main binutils 2.18-1 [2670kB]
Get:5 http://ftp.it.debian.org testing/main gcc-4.1 4.1.2-16 [415kB]
Get:6 http://security.debian.org etch/updates/main linux-headers-2.6.18-5-686 2. 6.18.dfsg.1-13etch3 [276kB]
Scaricato 9047kB in 43s (207kB/s)
Preconfigurazione dei pacchetti in corso
dpkg - attenzione, ignoro il seguente problema perché si è usata --force:
Questo è un pacchetto essenziale - non dovrebbe essere rimosso.
(Lettura del database ... 39828 file e directory attualmente installati.)
Rimuovo util-linux ...
dpkg: tzdata: problemi con le dipendenze, ma lo rimuovo comunque come richiesto:
libc6 dipende da tzdata.
Rimuovo tzdata ...
(Lettura del database ... 37951 file e directory attualmente installati.)
Mi preparo a sostituire locales 2.3.6.ds1-13etch2 (con .../locales_2.6.1-1_all.d eb) ...
Spacchetto il sostituto di locales ...
Mi preparo a sostituire libc6 2.3.6.ds1-13etch2 (con .../libc6_2.6.1-1+b1_i386.d eb) ...
Spacchetto il sostituto di libc6 ...
Setting up libc6 (2.6.1-1+b1) ...
Installing new version of config file /etc/init.d/glibc.sh ...

(Reading database ... 37965 files and directories currently installed.)
Preparing to replace libc6-i686 2.3.6.ds1-13etch2 (using .../libc6-i686_2.6.1-1+ b1_i386.deb) ...
Unpacking replacement libc6-i686 ...
Selecting previously deselected package gcc-4.2-base.
Unpacking gcc-4.2-base (from .../gcc-4.2-base_4.2.1-4_i386.deb) ...
Preparing to replace libgcc1 1:4.1.1-21 (using .../libgcc1_1%3a4.2.1-4_i386.deb) ...
Unpacking replacement libgcc1 ...
Setting up gcc-4.2-base (4.2.1-4) ...

Setting up libgcc1 (4.2.1-4) ...

(Reading database ... 37971 files and directories currently installed.)
Preparing to replace libstdc++6 4.1.1-21 (using .../libstdc++6_4.2.1-4_i386.deb) ...
Unpacking replacement libstdc++6 ...
Setting up libstdc++6 (4.2.1-4) ...

(Reading database ... 37971 files and directories currently installed.)
Preparing to replace cpp-4.1 4.1.1-21 (using .../cpp-4.1_4.1.2-16_i386.deb) ...
Unpacking replacement cpp-4.1 ...
Preparing to replace gcc-4.1-base 4.1.1-21 (using .../gcc-4.1-base_4.1.2-16_i386 .deb) ...
Unpacking replacement gcc-4.1-base ...
Preparing to replace binutils 2.17-3 (using .../binutils_2.18-1_i386.deb) ...
Unpacking replacement binutils ...
Selecting previously deselected package gcc-4.1.
Unpacking gcc-4.1 (from .../gcc-4.1_4.1.2-16_i386.deb) ...
Selecting previously deselected package linux-headers-2.6.18-5.
Unpacking linux-headers-2.6.18-5 (from .../linux-headers-2.6.18-5_2.6.18.dfsg.1- 13etch3_i386.deb) ...
Selecting previously deselected package linux-kbuild-2.6.18.
Unpacking linux-kbuild-2.6.18 (from .../linux-kbuild-2.6.18_2.6.18-1_i386.deb) . ..
Selecting previously deselected package linux-headers-2.6.18-5-686.
Unpacking linux-headers-2.6.18-5-686 (from .../linux-headers-2.6.18-5-686_2.6.18 .dfsg.1-13etch3_i386.deb) ...
Setting up locales (2.6.1-1) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "it_IT.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while)...
it_IT.UTF-8... done
Generation complete.

Setting up libc6-i686 (2.6.1-1+b1) ...

Setting up gcc-4.1-base (4.1.2-16) ...

Setting up cpp-4.1 (4.1.2-16) ...
Setting up binutils (2.18-1) ...

Setting up gcc-4.1 (4.1.2-16) ...
Setting up linux-headers-2.6.18-5 (2.6.18.dfsg.1-13etch3) ...
Setting up linux-kbuild-2.6.18 (2.6.18-1) ...
Setting up linux-headers-2.6.18-5-686 (2.6.18.dfsg.1-13etch3) ...



Comunque sia ho installato l'ieee80211 e questo è quanto:



debian:/home/ben/Desktop/ieee80211-1.2.18# make -f Makefile
/bin/sh: cc: command not found
Checking in /lib/modules/2.6.18-5-686 for ieee80211 components...
/lib/modules/2.6.18-5-686/build/include/net/ieee80211.h
/lib/modules/2.6.18-5-686/build/include/net/ieee80211_crypt.h
/lib/modules/2.6.18-5-686/build/include/net/ieee80211_radiotap.h
/lib/modules/2.6.18-5-686/build/include/net/ieee80211.h
/lib/modules/2.6.18-5-686/build/include/net/ieee80211_crypt.h
/lib/modules/2.6.18-5-686/build/include/net/ieee80211_radiotap.h
Above files found. Remove? [y],n y
CONFIG_IEEE80211=m
CONFIG_IEEE80211_CRYPT_WEP=m
CONFIG_IEEE80211_CRYPT_CCMP=m
CONFIG_IEEE80211_CRYPT_TKIP=m
CONFIG_IEEE80211_SOFTMAC=m
Above definitions found. Comment out? [y], n y
ieee80211 symbols are found from /lib/modules/2.6.18-5-686/build/Module.symvers. Do you want to strip them? [y],n y
make -C /lib/modules/2.6.18-5-686/build M=/home/ben/Desktop/ieee80211-1.2.18 mod ules
make[1]: Entering directory `/usr/src/linux-headers-2.6.18-5-686'
CC [M] /home/ben/Desktop/ieee80211-1.2.18/ieee80211_module.o
CC [M] /home/ben/Desktop/ieee80211-1.2.18/ieee80211_tx.o
CC [M] /home/ben/Desktop/ieee80211-1.2.18/ieee80211_rx.o
CC [M] /home/ben/Desktop/ieee80211-1.2.18/ieee80211_wx.o
CC [M] /home/ben/Desktop/ieee80211-1.2.18/ieee80211_geo.o
LD [M] /home/ben/Desktop/ieee80211-1.2.18/ieee80211.o
CC [M] /home/ben/Desktop/ieee80211-1.2.18/ieee80211_crypt.o
CC [M] /home/ben/Desktop/ieee80211-1.2.18/ieee80211_crypt_wep.o
CC [M] /home/ben/Desktop/ieee80211-1.2.18/ieee80211_crypt_ccmp.o
CC [M] /home/ben/Desktop/ieee80211-1.2.18/ieee80211_crypt_tkip.o
Building modules, stage 2.
MODPOST
CC /home/ben/Desktop/ieee80211-1.2.18/ieee80211.mod.o
LD [M] /home/ben/Desktop/ieee80211-1.2.18/ieee80211.ko
CC /home/ben/Desktop/ieee80211-1.2.18/ieee80211_crypt.mod.o
LD [M] /home/ben/Desktop/ieee80211-1.2.18/ieee80211_crypt.ko
CC /home/ben/Desktop/ieee80211-1.2.18/ieee80211_crypt_ccmp.mod.o
LD [M] /home/ben/Desktop/ieee80211-1.2.18/ieee80211_crypt_ccmp.ko
CC /home/ben/Desktop/ieee80211-1.2.18/ieee80211_crypt_tkip.mod.o
LD [M] /home/ben/Desktop/ieee80211-1.2.18/ieee80211_crypt_tkip.ko
CC /home/ben/Desktop/ieee80211-1.2.18/ieee80211_crypt_wep.mod.o
LD [M] /home/ben/Desktop/ieee80211-1.2.18/ieee80211_crypt_wep.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.18-5-686'


Quando poi sono andato per installare l'ipw3945 mi ha dato questo errore:


debian:/home/ben/Desktop/ipw3945-1.2.0# make -f Makefile
/bin/sh: cc: command not found

WARNING: Your kernel contains ieee80211 symbol definitions and you
are not using the kernel's default ieee80211 subsystem. (Perhaps you
used the out-of-tree ieee80211 subsystem's 'make install' or have
provided a path to the ieee80211 subsystem via IEEE80211_INC.)

If you wish to use the out-of-tree ieee80211 subsystem then it is
recommended to use that projects' "make patch_kernel" facility
and rebuild your kernel to update the Module symbol version information.

Failure to do this may result in build warnings and unexpected
behavior when running modules which rely on the ieee80211 subsystem.


Aborting the build. You can force the build to continue by adding:

IEEE80211_IGNORE_DUPLICATE=y

to your make command line.


make: *** [check_inc] Error 1



Come posso risolvere?

--ale--
29-09-2007, 19:26
Compila il driver con
make IEEE80211_IGNORE_DUPLICATE=y

e poi installalo con
make install

Zagor HW
30-09-2007, 14:09
Ok, grazie mille. Credo di essere arrivato in fondo.
Ora tutte le volte che lancio il comando; ./load degub=0 dalla directory dell'ipw3945 sembra attivarsi la connessione wirelless, difatti con iwconfing ottengo questo:


lo no wireless extensions.

eth1 no wireless extensions.

eth0 no wireless extensions.

sit0 no wireless extensions.

eth2 unassociated ESSID:off/any
Mode:Managed Frequency=nan kHz Access Point: Not-Associated
Bit Rate:0 kb/s Tx-Power:16 dBm
Retry limit:15 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:2 Missed beacon:0


Il problema ora è questo: quando vado ad attivare la connessione dal menu Amministrazione -> Rete, il sistema si blocca, e mi tocca togliere la corrente per poter riavviare il tutto... Dove potrebbe essere il problema?