Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Compat-wireless and BackTrack

  1. #11
    Just burned his ISO
    Join Date
    Apr 2010
    Posts
    1

    Default Re: Compat-wireless and BackTrack

    secowu
    Please write step-by-step manual to get to work my TL-WN722N (AR9271) on clean BT4 vm.

  2. #12
    Just burned his ISO
    Join Date
    Apr 2010
    Posts
    1

    Default Re: Compat-wireless and BackTrack

    Quote Originally Posted by secowu View Post
    Code:
    CC [M]  /media/disk/compat-wireless-2010-04-05/drivers/net/wireless/ath/ath9k/xmit.o
    /media/disk/compat-wireless-2010-04-05/drivers/net/wireless/ath/ath9k/xmit.c: In function 'ath_tx_complete_buf':
    /media/disk/compat-wireless-2010-04-05/drivers/net/wireless/ath/ath9k/xmit.c:1880: error: too many arguments to function 'ath_debug_stat_tx'
    make[5]: *** [/media/disk/compat-wireless-2010-04-05/drivers/net/wireless/ath/ath9k/xmit.o] Error 1
    make[4]: *** [/media/disk/compat-wireless-2010-04-05/drivers/net/wireless/ath/ath9k] Error 2
    make[3]: *** [/media/disk/compat-wireless-2010-04-05/drivers/net/wireless/ath] Error 2
    make[2]: *** [/media/disk/compat-wireless-2010-04-05/drivers/net/wireless] Error 2
    make[1]: *** [_module_/media/disk/compat-wireless-2010-04-05] Error 2
    make[1]: Leaving directory `/usr/src/linux-source-2.6.30.9'
    make: *** [modules] Error 2
    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

    Code:
    static inline void ath_debug_stat_tx(struct ath_softc *sc,
                                         struct ath_txq *txq,
                                         struct ath_buf *bf)
    with

    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)
    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:

    Quote Originally Posted by khianhui View Post
    Similar problem with this one.Problem to locate ar9271.fw while I put it in both /lib/firmware and also /lib/firmware-2.6.30.9/ .
    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:

    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!
    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:

    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.

  3. #13
    Super Moderator lupin's Avatar
    Join Date
    Jan 2010
    Posts
    2,943

    Default Re: Compat-wireless and BackTrack

    Quote Originally Posted by sSpeaker View Post
    secowu
    Please write step-by-step manual to get to work my TL-WN722N (AR9271) on clean BT4 vm.
    And while you're at it secowu, my car could use a wash. Get on that will you?
    Capitalisation is important. It's the difference between "Helping your brother Jack off a horse" and "Helping your brother jack off a horse".

    The Forum Rules, Forum FAQ and the BackTrack Wiki... learn them, love them, live them.

  4. #14
    Just burned his ISO
    Join Date
    Mar 2010
    Posts
    24

    Default Re: Compat-wireless and BackTrack

    1. download
    Code:
    Code:
    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
    2.make & make install
    Code:
    Code:
    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
    ...
    3.download ar9271.fw & ar9170.fw ar9170_1.fw ar9170_2.fw
    this url only for ar9271.fw
    '[PATCH 0/3] ath9k: add initial ar9271 support' - MARC

  5. #15
    Just burned his ISO
    Join Date
    Mar 2010
    Posts
    24

    Default Re: Compat-wireless and BackTrack

    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

  6. #16
    Just burned his ISO
    Join Date
    Jan 2010
    Posts
    5

    Default Re: Compat-wireless and BackTrack

    Quote Originally Posted by secowu View Post
    3.download ar9271.fw & ar9170.fw ar9170_1.fw ar9170_2.fw
    this url only for ar9271.fw
    '[PATCH 0/3] ath9k: add initial ar9271 support' - MARC
    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?

  7. #17
    Member
    Join Date
    Jun 2010
    Posts
    62

    Default Re: Compat-wireless and BackTrack

    Quote Originally Posted by trismagis View Post
    Tried to reboot, tried /scripts/athenable, tried secowu's solution - nothing works.

    When I load the driver and run dmesg afterwards its says

    Code:
    usb 2-5: firmware: requesting ar9271.fw
    cfg80211: World regulatory domain updated:
        (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
        (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
        (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
        (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
        (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
        (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    usb 2-5: ath9k_htc: Firmware - ar9271.fw not found
    ath9k_hif_usb: probe of 2-5:1.0 failed with error -22
    usbcore: registered new interface driver ath9k_hif_usb
    It seems to have troubles locating the firmware - ar9271.fw, which is in /lib/firmware. Strange. Ideas?
    Quote Originally Posted by khianhui View Post
    Similar problem with this one.Problem to locate ar9271.fw while I put it in both /lib/firmware and also /lib/firmware-2.6.30.9/ .
    I have the same problem and I solved after I copied ~/compat-wireless-2010-06-27/udev/ubuntu/50-compat_firmware.rules to /etc/udev.

  8. #18
    Just burned his ISO
    Join Date
    Aug 2010
    Posts
    1

    Default Re: Compat-wireless and BackTrack

    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

Page 2 of 2 FirstFirst 12

Similar Threads

  1. AWUS050NH compat-wireless causing failed b43
    By PostalService in forum Beginners Forum
    Replies: 4
    Last Post: 03-10-2010, 07:07 AM
  2. Backtrack tools problem with wireless adapter.
    By sickness in forum Beginners Forum
    Replies: 2
    Last Post: 03-08-2010, 03:47 PM
  3. Wireless manager in backtrack 4 final...
    By jacobtc in forum Beginners Forum
    Replies: 1
    Last Post: 02-14-2010, 11:21 PM
  4. Using Backtrack as Wireless Access Point
    By quick in forum Beginners Forum
    Replies: 2
    Last Post: 02-04-2010, 11:19 AM
  5. does rtl8192e wireless card work on backtrack?
    By leeyj4951 in forum Beginners Forum
    Replies: 2
    Last Post: 02-04-2010, 08:40 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •