Date: Fri, 10 Feb 2006 19:02:47 -0600 From: Patrick Bowen <pbowen@fastmail.fm> To: freebsd-current@freebsd.org Subject: Re: ath patch+hal for test Message-ID: <43ED37B7.4090405@fastmail.fm> In-Reply-To: <1b62a7390602082241v5efba56ew48e4e46487c498e2@mail.gmail.com> References: <43E822A4.3000806@errno.com> <1b62a7390602082226k5298cd65ma0aed781f1ce21e7@mail.gmail.com> <1b62a7390602082241v5efba56ew48e4e46487c498e2@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
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@gmail.com> 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@errno.com> 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@freebsd.org mailing list >>>http://lists.freebsd.org/mailman/listinfo/freebsd-current >>>To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >>> >>> >>> >_______________________________________________ >freebsd-current@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-current >To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > > 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, Patrickhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43ED37B7.4090405>
