Re: ath patch+hal for test



Ryan R wrote:

Oh, my apologies, I was being too hasty.. I should have noted that a
couple of days ago I tried this exact process and wasn't successfull
at all, so something major happened since then I'm assuming..

Also, the card I am using is probably a pretty common one, so I'd
expect this to work for lots of people

My wireless card is an "EnGenius EMP-8602" which uses a "6th
Generation Atheros AR5006" chipset.
http://www.netgate.com/product_info.php?products_id=279 is the card I've got.

It is also the exact same as the Senao NMP-8602 models and similar
cards I had all seen with this Atheros chipset..

ath_hal: 0.9.16.13 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413, DFS)
npx0: <math processor> on motherboard
ath0: <Atheros 5212> mem 0xfafe0000-0xfafeffff irq 9 at device 3.0 on pci2
ath0: Ethernet address: 00:02:6f:3e:1c:9e
ath0: mac 10.4 phy 6.1 radio 6.3

Just thought that might be useful in case anyone with similar cards
was interested

Cheers




On 2/9/06, Ryan R <air.lightz@xxxxxxxxx> wrote:





Hi all!

Just reporting in.. The patch worked EXCELLENT, not a single error
during patching (Which I had loads of before) and not a single issue
compiling the kernel. Here's exactly what I did:


1. Popped in my original 6.0-BOOTONLY ISO image, with a wired
ethernet connection plugged in.

2. Chose the MINIMAL install, and only chose the cvsup-without-gui
package, bash, and lynx (to view the handbook or websites).

3. Edited the stock 'standard-supfile' and synced my source tree (To
6.1-PRERELEASE)

4. cd /usr/src , then patch -p0 < /path/to/ath.patch (You have to
manually type in which files to patch though once the process starts,
the ath.patch refers to a customized /usr/ncvs directory which doesn't
exist) and patched each file respectively.

5. cd /usr/src/sys/contrib/dev and renamed the original ath directory,
unpacked the ath_hal-20051212.tgz here and renamed it in place of the
original ath

6. make buildworld , make buildkernel , make installkernel, reboot,
mergemaster -p, make installworld

7. created a real simple /etc/wpa_supplicant.conf file for my network,
with my WPA2 PSK and home network SSID info in it

8. added 'ifconfig_ath0="ssid my_ssid WPA DHCP" ' to /etc/rc.conf

9. manually loaded the if_ath module to make sure I got the dmesg info
and it displayed itself properly, which it did, then added
'if_ath_load="YES" , and , wlan_ccmp_load="YES" ' to my
/boot/loader.conf file to make sure they loaded automatically;
rebooted again for good measure and to bring everything up, and
voila!!works like a charm! My WPA2 home network finally works with my
laptop!!

Just wanted to say thanks again, I can now actually make use of this
laptop and use it all over the house

Excellent job!! Thanks!!
Cheers!

-Ryan

On 2/6/06, Sam Leffler <sam@xxxxxxxxx> wrote:


You can find the 0.9.16.13 hal (that's been out for a while) and an
updated ath.patch at http://www.freebsd.org/~sam/ath. Please test and
report any regressions against what is in CVS. This patch should work
on both HEAD and RELENG_6. I hope to get things in CVS in time to make
the 6.1 release so timely feedback is important.

This hal is required if you have one of the newer Atheros parts (e.g.
5414). I've mainly tested station mode so beware of ap mode problems.

I am aware of one issue that is not fixed in this patch: beacon miss
handling may not work correctly if the beacon timers are initialized
with a stale tsf (as can happen when scanning many channels). This
affects both station and adhoc mode operation and will be fixed when I
commit the changes.

If you have a laptop with a radio on/off switch I've tried to add the
necessary glue to make it functional but since I don't have any laptops
of this sort the code is untested.

Sam
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Mr. Leffler:

Cvsup'ed -current yesterday (which apparently contains your patched "ath"files -- diff(1) showed no , uh, difference...), then copied the
un-archived ath_hal-20051212 to /usr/src/sys/contrib/dev/ath. When I did make buildworld && make kernel KERNCONF=GENERIC, I got the following errors;

===> ath (all)
cc -O -pipe -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I- -I. -I/usr/src/sys/mod
ules/ath/../../contrib/dev/ath/freebsd -I/usr/src/sys/modules/ath/../../contrib/
dev/ath -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/GENERIC/opt_g
lobal.h -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=
100 --param large-function-growth=1000 -fno-common -g -I/usr/obj/usr/src/sys/GEN
ERIC -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -
mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-exte
rns -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qu
al -fformat-extensions -std=c99 -c /usr/src/sys/modules/ath/../../dev/ath/if_at
h.c
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c: In function `ath_stop':
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c:1047: error: too many arguments
to function
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c: In function `ath_beacon_setup':
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c:1928: error: too few arguments t
o function
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c: In function `ath_rx_proc':
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c:2793: error: too few arguments t
o function
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c:2983: error: too few arguments t
o function
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c: In function `ath_tx_start':
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c:3637: error: too few arguments t
o function
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c: In function `ath_stoprecv':
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c:4023: error: too few arguments t
o function
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c: In function `ath_chan_set':
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c:4120: warning: passing arg 1 of
`ath_hal_mhz2ieee' makes pointer from integer without a cast
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c:4120: error: too few arguments t
o function `ath_hal_mhz2ieee'
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c:4120: warning: passing arg 1 of
`ath_hal_mhz2ieee' makes pointer from integer without a cast
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c:4120: error: too few arguments t
o function `ath_hal_mhz2ieee'
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c: In function `ath_calibrate':
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c:4208: error: too few arguments t
o function
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c: In function `ath_getchannels':
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c:4455: warning: passing arg 5 of
`ath_hal_init_channels' makes pointer from integer without a cast
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c:4455: error: incompatible type f
or argument 7 of `ath_hal_init_channels'
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c:4455: error: too few arguments t
o function `ath_hal_init_channels'
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c:4471: warning: passing arg 1 of
`ath_hal_mhz2ieee' makes pointer from integer without a cast
/usr/src/sys/modules/ath/../../dev/ath/if_ath.c:4471: error: too few arguments t
o function `ath_hal_mhz2ieee'
*** Error code 1

Stop in /usr/src/sys/modules/ath.
*** Error code 1

Stop in /usr/src/sys/modules.
*** Error code 1

Stop in /usr/obj/usr/src/sys/GENERIC.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

This happened on a stock GENERIC. I don't have one of the new cards. I was just checking to make sure it still worked for my old card. It's a D-Link DWL-G630.

ath_hal: 0.9.14.9 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413)
ath0: <Atheros 5212> mem 0x88000000-0x8800ffff at device 0.0 on cardbus1
ath0: Ethernet address: 00:13:46:b6:19:ea
ath0: mac 7.8 phy 4.5 radio 5.6

If you require more info, or just need to point out the error of my ways, please advise.

Thanks,
Patrick



_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • todays buildworld breaks
    ... md2hl.c:47: warning: return makes pointer from integer without a cast ... *** Error code 1 ...
    (freebsd-current)
  • buildworld failure (libmd)
    ... md2hl.c:47: warning: return makes pointer from integer without a cast ... *** Error code 1 ...
    (freebsd-current)
  • Re: buildworld error
    ... *** Error code 2 ... md2hl.c:47: warning: return makes pointer from integer without a cast ...
    (freebsd-current)
  • buildworld error
    ... md2hl.c:47: warning: return makes pointer from integer without a cast ... *** Error code 1 ...
    (freebsd-current)
  • Re: Random Crashes
    ... the My Computer icon on your Desktop and select Properties, ... graphics card. ... There must have been something wrong with the driver ... Without the card it finally wrote the error code. ...
    (microsoft.public.windowsxp.perform_maintain)