secowu
Please write step-by-step manual to get to work my TL-WN722N (AR9271) on clean BT4 vm.
Printable View
secowu
Please write step-by-step manual to get to work my TL-WN722N (AR9271) on clean BT4 vm.
The aforementioned build error is a bug in drivers/net/wireless/ath/ath9k/debug.h. I am not sure if it is a known bug, but I am pretty confident that somebody from compat-wireless is going to notice very soon :-) In order to get around this, you need to modify debug.h, and replace
withCode:static inline void ath_debug_stat_tx(struct ath_softc *sc,
struct ath_txq *txq,
struct ath_buf *bf)
After this change you will be able to compile the bleeding edge compat drivers just fine (tested on 2010-04-06). However, you probably will still run into the second problem:Code:static inline void ath_debug_stat_tx(struct ath_softc *sc,
struct ath_txq *txq,
struct ath_buf *bf,
struct ath_tx_status *ts)
I think this is similar to what I experienced when trying to use the bleeding edge drivers for my Intel 5100 AGN, which also needs to load firmware. For future reference, the error I was getting was:
After hours of debugging I discovered the most likely root cause. I believe that the problem only happens with the bleeding edge. Some of the drivers in the package have been rendered unusable, probably due to this change described by one of the developers of the package:Code:iwlagn 0000:03:00.0: firmware: requesting iwlwifi-5000-2.ucode
iwlagn 0000:03:00.0: request for firmware file 'iwlwifi-5000-2.ucode' failed.
iwlagn 0000:03:00.0: firmware: requesting iwlwifi-5000-1.ucode
iwlagn 0000:03:00.0: request for firmware file 'iwlwifi-5000-1.ucode' failed.
iwlagn 0000:03:00.0: no suitable firmware found!
firmware loading vs. initrd
I *think* (but I am not completely confident) that the patch described in the aforementioned thread is also officially described here:
https://patchwork.kernel.org/patch/89007/
I have never tested the patch, did not want to rebuild the kernel. Instead, I simply switched to the most recent *stable* (not bleeding edge) compat-wireless drivers for my kernel (using the BT4 default kernel, 2.6.30), and support for my card started to work just fine.
Hope this helps.
1. download
Code:
2.make & make installCode:root@bt:~# ln -s /usr/src/linux /lib/modules/2.6.30.9/build
root@bt:~# wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-04-21.tar.bz2
--2010-04-22 21:21:31-- http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-04-21.tar.bz2
Resolving wireless.kernel.org... 78.46.109.217
Connecting to wireless.kernel.org|78.46.109.217|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2424098 (2.3M) [application/octet-stream]
Saving to: `compat-wireless-2010-04-21.tar.bz2'
100%[==================================================================================================================>] 2,424,098 44.0K/s in 56s
2010-04-22 21:22:29 (42.1 KB/s) - `compat-wireless-2010-04-21.tar.bz2' saved [2424098/2424098]
root@bt:~# tar -xf compat-wireless-2010-04-21.tar.bz2
root@bt:~# cd compat-wireless-2010-04-21.tar.bz2
Code:
3.download ar9271.fw & ar9170.fw ar9170_1.fw ar9170_2.fwCode:oot@bt:~/compat-wireless-2010-04-21# sudo make && sudo make install
make -C /lib/modules/2.6.30.9/build M=/root/compat-wireless-2010-04-21 modules
make[1]: Entering directory `/usr/src/linux-source-2.6.30.9'
....
CC [M] /root/compat-wireless-2010-04-21/drivers/net/wireless/b43/main.o
/root/compat-wireless-2010-04-21/drivers/net/wireless/b43/main.c: In function ‘b43_request_firmware’:
/root/compat-wireless-2010-04-21/drivers/net/wireless/b43/main.c:2271: warning: format not a string literal and no format arguments
....
root/compat-wireless-2010-04-21/drivers/net/wireless/b43/phy_n.c:465: warning: ‘b43_nphy_rx_cal_phy_cleanup’ defined but not used
/root/compat-wireless-2010-04-21/drivers/net/wireless/b43/phy_n.c:488: warning: ‘b43_nphy_rx_cal_phy_setup’ defined but not used
/root/compat-wireless-2010-04-21/drivers/net/wireless/b43/phy_n.c:1574: warning: ‘b43_nphy_bphy_init’ defined but not used
/root/compat-wireless-2010-04-21/drivers/net/wireless/b43/phy_n.c: In function ‘b43_nphy_set_chanspec’:
/root/compat-wireless-2010-04-21/drivers/net/wireless/b43/phy_n.c:3376: warning: ‘tabent_r3’ may be used uninitialized in this function
/root/compat-wireless-2010-04-21/drivers/net/wireless/b43/phy_n.c: In function ‘b43_nphy_cal_tx_iq_lo’:
/root/compat-wireless-2010-04-21/drivers/net/wireless/b43/phy_n.c:2631: warning: ‘last’ may be used uninitialized in this function
/root/compat-wireless-2010-04-21/drivers/net/wireless/b43/phy_n.c: In function ‘b43_nphy_rev2_cal_rx_iq’:
/root/compat-wireless-2010-04-21/drivers/net/wireless/b43/phy_n.c:2886: warning: ‘cur_hpf2’ may be used uninitialized in this function
/root/compat-wireless-2010-04-21/drivers/net/wireless/b43/phy_n.c:2886: warning: ‘cur_hpf1’ may be used uninitialized in this function
...
/root/compat-wireless-2010-04-21/drivers/net/wireless/b43/xmit.c: In function ‘b43_rx’:
/root/compat-wireless-2010-04-21/drivers/net/wireless/b43/xmit.c:613: warning: ‘noise’ is deprecated (declared at /root/compat-wireless-2010-04-21/include/net/mac80211.h:564)
...
/root/compat-wireless-2010-04-21/drivers/net/wireless/b43legacy/xmit.c: In function ‘b43legacy_rx’:
/root/compat-wireless-2010-04-21/drivers/net/wireless/b43legacy/xmit.c:551: warning: ‘noise’ is deprecated (declared at /root/compat-wireless-2010-04-21/include/net/mac80211.h:564)
...
/root/compat-wireless-2010-04-21/drivers/net/wireless/ipw2x00/libipw_wx.c: In function ‘libipw_wx_set_encodeext’:
/root/compat-wireless-2010-04-21/drivers/net/wireless/ipw2x00/libipw_wx.c:623: warning: format not a string literal and no format arguments
...
/root/compat-wireless-2010-04-21/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c: In function ‘iwlagn_gain_computation’:
/root/compat-wireless-2010-04-21/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c:145: warning: comparison of distinct pointer types lacks a cast
...
root/compat-wireless-2010-04-21/drivers/net/wireless/iwlwifi/iwl-core.c: In function ‘__check_bt_coex_active’:
/root/compat-wireless-2010-04-21/drivers/net/wireless/iwlwifi/iwl-core.c:68: warning: return from incompatible pointer type
CC [M] /root/compat-wireless-2010-04-21/drivers/net/wireless/iwlwifi/iwl-eeprom.o
CC [M] /root/compat-wireless-2010-04-21/drivers/net/wireless/iwlwifi/iwl-hcmd.o
CC [M] /root/compat-wireless-2010-04-21/drivers/net/wireless/iwlwifi/iwl-power.o
/root/compat-wireless-2010-04-21/drivers/net/wireless/iwlwifi/iwl-power.c: In function ‘__check_no_sleep_autoadjust’:
/root/compat-wireless-2010-04-21/drivers/net/wireless/iwlwifi/iwl-power.c:58: warning: return from incompatible pointer type
....
root/compat-wireless-2010-04-21/drivers/net/wireless/libertas/if_sdio.c: In function ‘if_sdio_probe’:
/root/compat-wireless-2010-04-21/drivers/net/wireless/libertas/if_sdio.c:948: warning: unused variable ‘host’
CC [M] /root/compat-wireless-2010-04-21/drivers/net/wireless/libertas/if_usb.o
LD [M] /root/compat-wireless-2010-04-21/drivers/net/wireless/libertas/libertas.o
LD [M] /root/compat-wireless-2010-04-21/drivers/net/wireless/libertas/usb8xxx.o
LD [M] /root/compat-wireless-2010-04-21/drivers/net/wireless/libertas/libertas_cs.o
LD [M] /root/compat-wireless-2010-04-21/drivers/net/wireless/libertas/libertas_sdio.o
CC [M] /root/compat-wireless-2010-04-21/drivers/net/wireless/libertas_tf/main.o
/root/compat-wireless-2010-04-21/drivers/net/wireless/libertas_tf/main.c: In function ‘lbtf_rx’:
/root/compat-wireless-2010-04-21/drivers/net/wireless/libertas_tf/main.c:513: warning: ‘noise’ is deprecated (declared at /root/compat-wireless-2010-04-21/include/net/mac80211.h:564)
CC [M] /root/compat-wireless-2010-
...
root/compat-wireless-2010-04-21/drivers/net/wireless/p54/txrx.c: In function ‘p54_rx_data’:
/root/compat-wireless-2010-04-21/drivers/net/wireless/p54/txrx.c:353: warning: ‘noise’ is deprecated (declared at /root/compat-wireless-2010-04-21/include/net/mac80211.h:564)
...
/root/compat-wireless-2010-04-21/drivers/net/wireless/rt2x00/rt2x00dev.c: In function ‘rt2x00lib_rxdone’:
/root/compat-wireless-2010-04-21/drivers/net/wireless/rt2x00/rt2x00dev.c:438: warning: ‘noise’ is deprecated (declared at /root/compat-wireless-2010-04-21/include/net/mac80211.h:564)
...
/root/compat-wireless-2010-04-21/drivers/net/wireless/wl12xx/wl1251_rx.c: In function ‘wl1251_rx_status’:
/root/compat-wireless-2010-04-21/drivers/net/wireless/wl12xx/wl1251_rx.c:81: warning: ‘noise’ is deprecated (declared at /root/compat-wireless-2010-04-21/include/net/mac80211.h:564)
...
root/compat-wireless-2010-04-21/net/bluetooth/hidp/core.c: In function ‘hidp_setup_hid’:
/root/compat-wireless-2010-04-21/net/bluetooth/hidp/core.c:872: warning: assignment from incompatible pointer type
....
/root/compat-wireless-2010-04-21/net/mac80211/main.c: In function ‘__check_ieee80211_disable_40mhz_24ghz’:
/root/compat-wireless-2010-04-21/net/mac80211/main.c:37: warning: return from incompatible pointer type
...
this url only for ar9271.fw
'[PATCH 0/3] ath9k: add initial ar9271 support' - MARC
sorry 4 lupin,when i just demo again,both bcm4311 and wn722n & wn821n,also can not be work after update comapt drivers.
I had put fw into /lib/firmware & /usr/local/lib/firmware,but failed
I'm a little confused here... I click the url, and it takes me to a patch description, but nowhere can I get the patch itself...
I've had this card for a couple days and am about to shoot myself in the head trying to get it to work. I've done a make && make install on the latest version of compat-wireless, and after unloading / reloading and restarting the networking service (or even rebooting), I end up with a wlan0 and wlan1, neither of which will do ANYTHING.
Any ideas here guys?
I have tp-link TL-WN422G v2 and the same problem. Cant build and install compat-wireless
make - error
make install - error
make load - iwconfig shows wlan0 and wlan1 (both are not working).
Smb. know how to install usb wifi card with chipset ar9271 on backtrack ?
Regards