Hello guys,
I also have same wlan hardware, Atheros AR5006EG / AR5007EG (Atheros AR5BXB63 chipset). I managed to get it working using latest ndiswrapper ver 1.47. I also recompile my kernel to disable CONFIG_4KSTACKS since windows driver need 8k of stacks. This is how I did it:-
You need to remove madwifi driver before continue.
** You can use any kernel version. I recommended the latest one.
So, I download kernel source package from fedora mirror:
http://mirror.newnanutilities.org/pu...dates/7/SRPMS/
A) Install kernel source rpm. This is what I do:-
# sudo bash
# mkdir /usr/src/redhat
# rpm -ivh kernel-2.6.22.4-65.fc7.src.rpm
# cd /usr/src/redhat/SPECS
Build the kernel for i686 architecture since Fedora 7 is i686 architecture:-
# rpmbuild -bp --target=
i686 kernel-2.6.spec
Wait for a while until it finish.
Change to your new
kernel source directory:-
# cd ../BUILD/kernel-2.6.22/linux-2.6.22.
i686
# vi Makefile
Find: EXTRAVERSION = .4
change to: EXTRAVERSION = .4
-65.fc7.kizwan
and save & exit.
NOTE: You can change this value to any value that you like. So we can identify our kernel later on.
# vi .config
Find: CONFIG_4KSTACKS
and delete the line containing CONFIG_4KSTACKS.
and save & exit.
Create RPM package for our new kernel:-
# make rpm
It will ask you about CONFIG_4KSTACKS. Just enter "N"
Wait for a while, this should take a very long time, 1 hour maybe.
Pay attention where exactly "make rpm" create your RPM package
and change to that directory:-
# cd ../../../RPMS/i386/
Install your new kernel:-
# rpm -ivh kernel-2.6.22.465.fc7.kizwan-2.i386.rpm
We must create a ramdisk for our new kernel.
# mkinitrd /boot/initrd-2.6.22.4
-65.fc7.kizwan.img 2.6.22.4
-65.fc7.kizwan
2.6.22.4
-65.fc7.kizwan is taken from Makefile at the top of the file:-
VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 22
EXTRAVERSION = .4
-65.fc7.kizwan
NOTE: "Makefile" file is located at the root of your
kernel source directory.
This is the format of your kernel version VERSION.PATCHLEVEL.SUBLEVEL.EXTRAVERSION
So, your version should be = 2.6.22.4
-65.fc7.kizwan
Update grub boot menu
# vi /boot/grub/menu.lst
NOTE: Be carefull. Your Fedora 7 may located in different location than mine. Refer to your existing boot (menu.lst) configuration. You may need to change the value, that marked with
bold font, with your values/settings.
add this line at the bottom of the file:-
title Fedora (2.6.22.4
-65.fc7.kizwan)
root (
hd0,5)
kernel /boot/vmlinuz-2.6.22.4
-65.fc7.kizwan ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.22.4
-65.fc7.kizwan.img
And reboot your computer and boot with new installed kernel.
B) Now I will install ndiswrapper ver 1.47 from tarball.
Please remove any madwifi driver from your system and reboot your laptop before continue with below step.
Untar the tarball package. This is what I do:-
# cd ndiswrapper-1.47
# make
# make install
Now I have latest ndiswrapper.
Unzip winxp driver for Atheros AR5007EG, and locate net5211.inf file.
Now I will install the driver:-
# ndiswrapper -i net5211.inf
Confirm it by using this command:-
# ndiswrapper -l
It should look like this:-
net5211 : driver installed
device (168C:001C) present
Need to run this command to write configuration for modprobe:-
# ndiswrapper -m
Test the driver by issuing this command:-
# modprobe ndiswrapper
Run dmesg to see it working.
# dmesg
You should see something like this:-
ndiswrapper version 1.47 loaded (smp=yes)
ndiswrapper: driver net5211 (,06/21/2007,5.3.0.56) loaded
PCI: Enabling device 0000:03:00.0 (0000 -> 0002)
ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 17 (level, low) -> IRQ 17
ndiswrapper (ZwClose:2246): closing handle 0xf7a5d728 not implemented
PCI: Setting latency timer of device 0000:03:00.0 to 64
ndiswrapper: using IRQ 17
wlan0: ethernet device 00:19:7e:43:e9:4a using serialized NDIS driver: net5211, version: 0x50003, NDIS version: 0x501, vendor: 'NDIS Network Adapter', 168C:001C.5.conf
wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK
usbcore: registered new interface driver ndiswrapper
ADDRCONF(NETDEV_UP): wlan0: link is not ready
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Run ifconfig, and you should see interface wlan0.
# ifconfig
Put this line in /etc/rc.local so it will auto-start when reboot.
/sbin/modprobe ndiswrapper
If everything is ok, we should have a working Atheros AR5007EG in Fedora 7.
This should work with all redhat based OS and other distro too.