Re: Can't compile ath(4) into kernel

2010-08-30 Thread Adrian Chadd
Please just create a PR for it.

I haven't tried compiling ath without AR5416 support so I have no idea
whether it'll work.


adrian

On 25 August 2010 22:03, Mikhail T. mi+th...@aldan.algebra.com wrote:
  On 8/25/2010 8:27 AM, John Baldwin wrote:
 You are missing:

 options         AH_SUPPORT_AR5416       # enable AR5416 tx/rx descriptors

 But I don't have the ar5416 chipset... Mine is AR2312... And it is an
 option, so should not it be optional? Anyway, I tried adding that option
 and the error is the same (did cleandepend  depend, saw ah.c
 recompiled anew).
 For the 6.x - 8 upgrade you are doing, I strongly suggest looking at the
 changes to GENERIC across your upgrade. It would save you several e-mails to
 the mailing list
 Thanks, I did that. After several attempts to fiddle with
 options/devices, the wireless section now looks like:

    # Wireless NIC cards
    device          wlan            # 802.11 support
    options         IEEE80211_DEBUG # enable debug msgs
    options         IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's
    options         IEEE80211_SUPPORT_MESH  # enable 802.11s draft support
    device          wlan_wep        # 802.11 WEP support
    device          wlan_ccmp       # 802.11 CCMP support
    device          wlan_tkip       # 802.11 TKIP support
    device          wlan_amrr       # AMRR transmit rate control algorithm
    device          ath
    device          ath_rate_sample # SampleRate tx rate control for ath
    device          ath_ar5212
    #device         ath_rate_onoe
    #options        AH_SUPPORT_AR5416       # enable AR5416 tx/rx
    descriptors

 Generic simply uses the entire ath_hal, but ath_hal(4) suggests, that
 picking out a single driver should work...

    -mi

 ___
 freebsd-stable@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-stable
 To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Can't compile ath(4) into kernel

2010-08-25 Thread Mikhail T.
 My laptop's kernel config file reads:

device  wlan# 802.11 support
device  ath
device  ath_ar5212
device  ath_rate_onoe

Config raises no objections and the compilation succeeds, but linking
the kernel breaks:

...
linking kernel.debug
ah.o(.text+0x218): In function `ath_hal_rfprobe':
/home/mi/src/sys/dev/ath/ath_hal/ah.c:142: undefined reference to
`__start_set_ah_rfs'
ah.o(.text+0x21d):/home/mi/src/sys/dev/ath/ath_hal/ah.c:142:
undefined reference to `__stop_set_ah_rfs'
ah.o(.text+0x236):/home/mi/src/sys/dev/ath/ath_hal/ah.c:142:
undefined reference to `__stop_set_ah_rfs'
*** Error code 1

What could this be? All modules (including ath_hal) build correctly...
Thank you!

-mi

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Can't compile ath(4) into kernel

2010-08-25 Thread John Baldwin
On Wednesday, August 25, 2010 12:39:40 am Mikhail T. wrote:
  My laptop's kernel config file reads:
 
 device  wlan# 802.11 support
 device  ath
 device  ath_ar5212
 device  ath_rate_onoe
 
 Config raises no objections and the compilation succeeds, but linking
 the kernel breaks:
 
 ...
 linking kernel.debug
 ah.o(.text+0x218): In function `ath_hal_rfprobe':
 /home/mi/src/sys/dev/ath/ath_hal/ah.c:142: undefined reference to
 `__start_set_ah_rfs'
 ah.o(.text+0x21d):/home/mi/src/sys/dev/ath/ath_hal/ah.c:142:
 undefined reference to `__stop_set_ah_rfs'
 ah.o(.text+0x236):/home/mi/src/sys/dev/ath/ath_hal/ah.c:142:
 undefined reference to `__stop_set_ah_rfs'
 *** Error code 1
 
 What could this be? All modules (including ath_hal) build correctly...
 Thank you!

You are missing:

options AH_SUPPORT_AR5416   # enable AR5416 tx/rx descriptors

For the 6.x - 8 upgrade you are doing, I strongly suggest looking at the 
changes to GENERIC across your upgrade.  It would save you several e-mails to 
the mailing list.

-- 
John Baldwin
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Can't compile ath(4) into kernel

2010-08-25 Thread Mikhail T.
 On 8/25/2010 8:27 AM, John Baldwin wrote:
 You are missing:

 options AH_SUPPORT_AR5416   # enable AR5416 tx/rx descriptors

But I don't have the ar5416 chipset... Mine is AR2312... And it is an
option, so should not it be optional? Anyway, I tried adding that option
and the error is the same (did cleandepend  depend, saw ah.c
recompiled anew).
 For the 6.x - 8 upgrade you are doing, I strongly suggest looking at the 
 changes to GENERIC across your upgrade. It would save you several e-mails to 
 the mailing list
Thanks, I did that. After several attempts to fiddle with
options/devices, the wireless section now looks like:

# Wireless NIC cards
device  wlan# 802.11 support
options IEEE80211_DEBUG # enable debug msgs
options IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's
options IEEE80211_SUPPORT_MESH  # enable 802.11s draft support
device  wlan_wep# 802.11 WEP support
device  wlan_ccmp   # 802.11 CCMP support
device  wlan_tkip   # 802.11 TKIP support
device  wlan_amrr   # AMRR transmit rate control algorithm
device  ath
device  ath_rate_sample # SampleRate tx rate control for ath
device  ath_ar5212
#device ath_rate_onoe
#optionsAH_SUPPORT_AR5416   # enable AR5416 tx/rx
descriptors

Generic simply uses the entire ath_hal, but ath_hal(4) suggests, that
picking out a single driver should work...

-mi

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org