#1794: Unable to make madwifi for MIPS Architecture
---------------------------------------+------------------------------------
      Reporter:  [EMAIL PROTECTED]  |       Owner:              
          Type:  defect                |      Status:  new         
      Priority:  major                 |   Milestone:              
     Component:  madwifi: other        |     Version:  v0.9.4      
    Resolution:                        |    Keywords:  make failure
Patch_attached:  0                     |  
---------------------------------------+------------------------------------
Comment (by anonymous):

 Replying to [comment:5 anonymous]:
 > Replying to [comment:3 anonymous]:
 > > Replying to [comment:2 anonymous]:
 > > > There exists a patch for madwifi in OpenWRT's trunk named
 100-kernel_cflags.patch. This should fix the problem above.
 > >
 > > Thank you very much for your help. But minutes before you posted this
 I was able to figure that out. But changing '''hal/public/mips-le-
 elf.inc''' 's '''71st line''' to '''COPTS+= -G 0 -mno-abicalls -fno-pic
 -mips32 -Wa,--trap \''' fails to compile. If it is '''COPTS+= -G 0 -mno-
 abicalls -fno-pic -mips32r2 -Wa,--trap \''', it compiles fine.
 > >
 > > Making the above modification I was able to successfully compile the
 driver. Also install them on my board. The modules I installed are :-
 > >
 > > $ '''lsmod''' [[BR]]
 > > Module                  Size  Used by[[BR]]
 > > ath_pci               112640  0 [[BR]]
 > > ath_rate_sample        15488  0 [[BR]]
 > > ath_rate_onoe           7824  0 [[BR]]
 > > ath_rate_amrr           8752  0 [[BR]]
 > > ath_hal               239936  2 ath_pci,ath_rate_sample[[BR]]
 > > wlan_xauth              1984  0 [[BR]]
 > > wlan_wep                7616  0 [[BR]]
 > > wlan_tkip              14592  0 [[BR]]
 > > wlan_scan_sta          16000  0 [[BR]]
 > > wlan_scan_ap            6624  0 [[BR]]
 > > wlan_ccmp              10080  0 [[BR]]
 > > wlan_acl                5696  0 [[BR]]
 > > wlan                  240928  11[[BR]]
 
ath_pci,ath_rate_sample,ath_rate_onoe,ath_rate_amrr,wlan_xauth,wlan_wep,wlan_tkip,wlan_scan_sta,wlan_scan_ap,wlan_ccmp,wlan_acl
 > >
 > > '''dmesg''' says :-[[BR]]
 > >
 > > wlan: 0.9.4[[BR]]
 > > wlan: mac acl policy registered[[BR]]
 > > ath_hal: module license 'Proprietary' taints kernel.[[BR]]
 > > ath_hal: 0.9.18.0 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413,
 RF5413, REGOPS_FUNC)[[BR]]
 > > ath_rate_amrr: 0.1 (0.9.4)[[BR]]
 > > ath_rate_onoe: 1.0 (0.9.4)[[BR]]
 > > ath_rate_sample: 1.2 (0.9.4)[[BR]]
 > > ath_pci: 0.9.4[[BR]]
 > > PCI: Enabling device 0000:00:00.0 (0000 -> 0002)[[BR]]
 > > PCI: Setting cache line size of device 0000:00:00.0 to 16 bytes[[BR]]
 > > wifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps
 54Mbps[[BR]]
 > > wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps[[BR]]
 > > wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps
 24Mbps 36Mbps 48Mbps 54Mbps[[BR]]
 > > wifi0: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps
 54Mbps[[BR]]
 > > wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps
 54Mbps[[BR]]
 > > wifi0: H/W encryption support: WEP AES AES_CCM TKIP[[BR]]
 > > wifi0: mac 5.9 phy 4.3 radio 3.6[[BR]]
 > > wifi0: Use hw queue 1 for WME_AC_BE traffic[[BR]]
 > > wifi0: Use hw queue 0 for WME_AC_BK traffic[[BR]]
 > > wifi0: Use hw queue 2 for WME_AC_VI traffic[[BR]]
 > > wifi0: Use hw queue 3 for WME_AC_VO traffic[[BR]]
 > > wifi0: Use hw queue 8 for CAB traffic[[BR]]
 > > wifi0: Use hw queue 9 for beacons[[BR]]
 > > wifi0: Atheros 5212: mem=0xd0000000, irq=28[[BR]]
 > >
 > > After this I tried the following steps:-
 > >
 > > '''$ wlanconfig ath0 destroy'''
 > >
 > > '''$ wlanconfig ath0 create wlandev wifi0 wlanmode sta'''
 > >
 > > '''$ iwconfig'''
 > > Warning: Driver for device eth0 has been compiled with an ancient
 version
 > > of Wireless Extension, while this program support version 11 and
 later.
 > > Some things may be broken...
 > >
 > > eth0      `|  ESSID:off/any  Nickname:""
 > >           NWID:137C60  Mode:Unknown/bug  Frequency:1.27702e+13 GHz
 > >           Access Point: 00:00:06:00:00:00   Bit Rate=49.488 kb/s
 Sensitivity=2139219328/0
 > >           RTS thr=2139219328 B   Fragment thr=2139219328 B
 > >           Encryption key:<too big>
 > >           Power Management:on
 > >
 > > lo        no wireless extensions.
 > >
 > > wifi0     no wireless extensions.
 > >
 > > ath0      IEEE 802.11b  ESSID:""  Nickname:""
 > >           Mode:Managed  Channel:0  Access Point: Not-Associated
 > >           Bit Rate:0 kb/s   Tx-Power:0 dBm   Sensitivity=1/1
 > >           Retry:off   RTS thr:off   Fragment thr:off
 > >           Encryption key:off
 > >           Power Management:off
 > >           Link Quality=0/70  Signal level=0 dBm  Noise level=0 dBm
 > >           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
 > >           Tx excessive retries:0  Invalid misc:0   Missed beacon:0
 > >
 > > '''$ ifconfig ath0 up'''
 > >
 > > which results in :-
 > >
 > > wifi0: ath_chan_set: unable to reset channel 1 (2412 MHz) flags 0xc0
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 11 (2462 MHz) flags 0xc0
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 52 (5260 MHz) flags 0x140
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 60 (5300 MHz) flags 0x140
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 36 (5180 MHz) flags 0x140
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 44 (5220 MHz) flags 0x140
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 2 (2417 MHz) flags 0xc0
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 4 (2427 MHz) flags 0xc0
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 8 (2447 MHz) flags 0xc0
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 10 (2457 MHz) flags 0xc0
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 153 (5765 MHz) flags
 0x140 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 161 (5805 MHz) flags
 0x140 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 42 (5210 MHz) flags 0x150
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 58 (5290 MHz) flags 0x150
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 160 (5800 MHz) flags
 0x150 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 48 (5240 MHz) flags 0x140
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 153 (5765 MHz) flags
 0x140 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 6 (2437 MHz) flags 0xc0
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 6 (2437 MHz) flags 0xc0
 '' (HAL status 0)
 > > wifi0: ath_chan_set: unable to reset channel 7 (2442 MHz) flags 0xc0
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 56 (5280 MHz) flags 0x140
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 64 (5320 MHz) flags 0x140
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 40 (5200 MHz) flags 0x140
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 48 (5240 MHz) flags 0x140
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 3 (2422 MHz) flags 0xc0
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 5 (2432 MHz) flags 0xc0
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 9 (2452 MHz) flags 0xc0
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 149 (5745 MHz) flags
 0x140 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 157 (5785 MHz) flags
 0x140 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 165 (5825 MHz) flags
 0x140 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 50 (5250 MHz) flags 0x150
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 152 (5760 MHz) flags
 0x150 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 40 (5200 MHz) flags 0x140
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 56 (5280 MHz) flags 0x140
 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > > wifi0: ath_chan_set: unable to reset channel 161 (5805 MHz) flags
 0x140 'Hardware didn't respond as expected' (HAL status 3)[[BR]]
 > >
 > > This error is being repeated. Do you have any idea whats wrong?
 > >
 > > -- anees
 >
 >    I figured out what was wrong. It was some bus arbitration issue with
 the board which when solved, solved the whole issue. But only after
 applying the above mentioned patch i was able to compile the driver.
 >
 >    Thank you very much for the interest you people have shown in this
 matter
 >
 > -- anees k A
     Please conside this ticket as closed.

 Thanks and regards

 -- anees k A

-- 
Ticket URL: <http://madwifi.org/ticket/1794#comment:6>
madwifi.org <http://madwifi.org/>
Multiband Atheros Driver for Wireless Fidelity
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Madwifi-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/madwifi-tickets

Reply via email to