PDA

View Full Version : diff e patch


Cobra78
01-03-2008, 12:18
Salve gente, allora ho il seguente problema:

mi sono scaricato dal sito iwlwifi l'ultima versione dei driver e dello stack mac802.11, solo che non ci cavo i piedi con diff e patch per infilarli nel kernel vanilla, mi sono letto e riletto il man, ma ancora qualcosa mi sfugge visto che comunque o patcho i file sbagliati, quelli dei driver invece di quelli del kernel, oppure fallisce miseramente.

Chi ha qualche dritta da darmi?

NB: non penso c'entri ma uso il vanilla 2.6.24.3

fbcyborg
01-03-2008, 16:30
Scusa, ma i driver iwlwifi sono già inclusi nel kernel 2.6.24. Non c'è bisogno di alcuna patch!

Mi sfugge qualcosa? :eh:

Cobra78
01-03-2008, 17:15
Scusa, ma i driver iwlwifi sono già inclusi nel kernel 2.6.24. Non c'è bisogno di alcuna patch!

Mi sfugge qualcosa? :eh:

Tipo che vorrei le versioni più aggiornate, e che pur seguendo la guida non c'è verso che si compilino, non capisco perchè.

fbcyborg
01-03-2008, 17:59
Per che distribuzione ti servono questi driver?
Io ad esempio con Gentoo basta che faccio l'emerge del pacchetto iwlwifi.

Che errori ti da in compilazione?

Cobra78
01-03-2008, 18:08
Per che distribuzione ti servono questi driver?
Io ad esempio con Gentoo basta che faccio l'emerge del pacchetto iwlwifi.

Che errori ti da in compilazione?

Ubuntu 7.10, ma il kernel è il vanilla 2.6.24.3

Questo mi da cercando ci compilare la versione 1.2.25 scaricata

marcello@Jota:~/Software/Driver/iwlwifi-1.2.25$ make SHELL=/bin/bash
Checking kernel compatibility in:
/lib/modules/2.6.24.3-c2d64/source
* Kernel requires compatibility version:
- Requires IEEE80211_CONF_CHANNEL_SWITCH compat.
- Remove CONFIG_IWL4965_HT option if defined
- Remove CONFIG_IWL4965_HT_AGG option if defined
Building compatibility version in 'compatible/' directory:
Copying compatible/ from origin/...done
+ Applying: patches/06-csa.patch
diff -urp old/iwl-helpers.h origin/iwl-helpers.h
make -C /lib/modules/2.6.24.3-c2d64/source O=/lib/modules/2.6.24.3-c2d64/build M=/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/ EXTRA_CFLAGS="-DCONFIG_IWL3945_DEBUG=y -DCONFIG_IWL4965_DEBUG=y -DCONFIG_IWL3945_SPECTRUM_MEASUREMENT=y -DCONFIG_IWL4965_SPECTRUM_MEASUREMENT=y -DCONFIG_IWL4965_SENSITIVITY=y -DCONFIG_IWL3945_QOS=y -DCONFIG_IWL4965_QOS=y" modules
make[1]: Entering directory `/usr/src/linux-source-2.6.24.3'
CC [M] /home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.o
In file included from /home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:51:
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl-3945.h:443: error: expected specifier-qualifier-list before ‘ieee80211_key_alg’
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c: In function ‘iwl3945_add_station’:
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:539: error: implicit declaration of function ‘MAC_ARG’
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:539: warning: too few arguments for format
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c: In function ‘iwl3945_commit_rxon’:
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:1161: warning: too few arguments for format
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c: In function ‘iwl3945_update_sta_key_info’:
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:1400: error: ‘struct iwl3945_hw_key’ has no member named ‘alg’
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:1401: error: ‘struct iwl3945_hw_key’ has no member named ‘keylen’
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:1402: error: ‘struct iwl3945_hw_key’ has no member named ‘key’
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:1402: error: ‘struct iwl3945_hw_key’ has no member named ‘key’
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c: In function ‘iwl3945_build_tx_cmd_hwcrypto’:
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:2594: error: ‘struct iwl3945_hw_key’ has no member named ‘alg’
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:2597: error: ‘struct iwl3945_hw_key’ has no member named ‘keylen’
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:2597: error: ‘struct iwl3945_hw_key’ has no member named ‘keylen’
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:2597: error: ‘struct iwl3945_hw_key’ has no member named ‘key’
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:2597: error: ‘struct iwl3945_hw_key’ has no member named ‘key’
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:2617: error: ‘struct iwl3945_hw_key’ has no member named ‘keylen’
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:2620: error: ‘struct iwl3945_hw_key’ has no member named ‘keylen’
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:2620: error: ‘struct iwl3945_hw_key’ has no member named ‘keylen’
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:2620: error: ‘struct iwl3945_hw_key’ has no member named ‘key’
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:2620: error: ‘struct iwl3945_hw_key’ has no member named ‘key’
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:2626: error: ‘ALG_NONE’ undeclared (first use in this function)
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:2626: error: (Each undeclared identifier is reported only once
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:2626: error: for each function it appears in.)
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:2631: error: ‘struct iwl3945_hw_key’ has no member named ‘alg’
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c: In function ‘iwl3945_get_sta_id’:
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:2739: warning: too few arguments for format
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c: In function ‘iwl3945_tx_skb’:
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:2820: warning: too few arguments for format
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:2903: warning: comparison is always true due to limited range of data type
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c: In function ‘iwl3945_print_rx_config_cmd’:
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:4514: warning: too few arguments for format
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:4516: warning: too few arguments for format
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c: In function ‘iwl3945_bg_post_associate’:
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:6804: warning: too few arguments for format
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c: In function ‘iwl3945_mac_add_interface’:
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:7096: warning: too few arguments for format
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c: In function ‘iwl3945_mac_config_interface’:
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:7282: warning: too few arguments for format
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:7286: error: ‘IEEE80211_HW_NO_PROBE_FILTERING’ undeclared (first use in this function)
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:7302: warning: too few arguments for format
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c: At top level:
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:7447: error: expected declaration specifiers or ‘...’ before ‘set_key_cmd’
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c: In function ‘iwl3945_mac_set_key’:
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:7463: warning: too few arguments for format
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:7472: error: ‘cmd’ undeclared (first use in this function)
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c: At top level:
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:8441: error: unknown field ‘open’ specified in initializer
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:8442: warning: initialization from incompatible pointer type
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:8447: warning: initialization from incompatible pointer type
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c: In function ‘iwl3945_pci_probe’:
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:8516: error: ‘IEEE80211_HW_WEP_INCLUDE_IV’ undeclared (first use in this function)
/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.c:8665: warning: too few arguments for format
make[3]: *** [/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible/iwl3945-base.o] Error 1
make[2]: *** [_module_/home/marcello/Software/Driver/iwlwifi-1.2.25/compatible] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-source-2.6.24.3'
make: *** [modules] Error 2


Se riuscissi ad aggiornarli avrei il supporto per il led, e spero qualcosina in più in stabilità, ognittanto fanno i capricci!

fbcyborg
01-03-2008, 18:26
Si, anche a me da quegli stessi errori se provo a compilare i driver, usando un kernel 2.6.24. Riesci a compilarlo utilizzando un kernel 2.6.23?

EDIT: controlla anche queste cose:
* Kernel requires compatibility version:
- Requires IEEE80211_CONF_CHANNEL_SWITCH compat.
- Remove CONFIG_IWL4965_HT option if defined
- Remove CONFIG_IWL4965_HT_AGG option if defined

Cobra78
02-03-2008, 00:42
Si, anche a me da quegli stessi errori se provo a compilare i driver, usando un kernel 2.6.24. Riesci a compilarlo utilizzando un kernel 2.6.23?

EDIT: controlla anche queste cose:
* Kernel requires compatibility version:
- Requires IEEE80211_CONF_CHANNEL_SWITCH compat.
- Remove CONFIG_IWL4965_HT option if defined
- Remove CONFIG_IWL4965_HT_AGG option if defined

Allora, ho provato ad aggiornare il mac802.11, ma nemmeno quello si compila, la parte relativa ai 4965 invece non mi tange perchè ho una 3945.

Boooh, è si che ad esempio nel patchset zen vengono aggiornati, non capisco davvero cosa mi sfugga :|

fbcyborg
02-03-2008, 11:55
Allora, ho provato ad aggiornare il mac802.11, ma nemmeno quello si compila, la parte relativa ai 4965 invece non mi tange perchè ho una 3945.

Boooh, è si che ad esempio nel patchset zen vengono aggiornati, non capisco davvero cosa mi sfugga :|
Guarda, io ho la tua stessa scheda ed utilizzo mac80211 del kernel 2.6.24 (in realtà lo uso anche da un kernel precedente). Poi per i driver iwlwifi ho emerso il pacchetto iwlwifi specificando che mi serve iwl3945.
Nel tuo caso forse potresti fare una cosa simile e fregartene di compilarli a mano in questo modo.
Non sei l'unico ad avere questo (http://ubuntuforums.org/showthread.php?t=711806) problema infatti. Forse per il momento ti conviene usare la vecchia versione presente nel kernel (dimenticando per il momento il problema del led). Anche io lavoro senza led per il momento.
Prova a fare come dice quì (http://www.frank17.it/linux/fz18m.htm), nel paragrafo relativo alla scheda wifi ovviamente...

Cobra78
02-03-2008, 12:05
Alla fine ho risolto usando il linux-compat-wireless che contiene tutti i driver aggiornati, ma non ho visto chissà quali miglioramenti, e il led continua a non andare, quindi per adesso provo col kernel patchato zen3, che ha gli 1.2.23 e se va tutto bene con quello mi accontento :P

fbcyborg
02-03-2008, 12:10
Alla fine ho risolto usando il linux-compat-wireless che contiene tutti i driver aggiornati, ma non ho visto chissà quali miglioramenti, e il led continua a non andare, quindi per adesso provo col kernel patchato zen3, che ha gli 1.2.23 e se va tutto bene con quello mi accontento :P

Pazienta ancora un po' per il led. Anche io sono in attesa, ma l'importante è che funzioni. E funziona bene mi pare!!! :)