How to compile Madwifi package
1. Download and unzip the madwifi package. eg. madwifi-ng-r3344-20080207.tar.gz
2. Run the following command,
make CROSS_COMPILE=powerpc-405-linux-gnu- KERNELPATH=/localhome/wli/linux-2.6.24 TARGET=powerpc-be-elf DESTDIR=/localhome/wli/rootfs install
where: CROSS_COMPILE= powerpc-405-linux-gnu- specifies the cross-compiler prefix. Make sure cross-compiler path is exported and accessible to current user.
DESTDIR =root directory to install. Usually it's a path to root file system
TARGET= target processor and image format for cross compiling, powerpc, big-endian and elf
KERNELPATH= pah of kernel where the modules to be compiled with.
install -- install after compile. This will install the following modules in ~/rootfs/lib/modules/net/
ath_hal.ko ath_pci.ko ath_rate_amrr.ko ath_rate_minstrel.ko ath_rate_onoe.ko ath_rate_sample.ko wlan_acl.ko
3.. Run the following command,depmod.pl script to create modules.dep on the net module directory
../depmod.pl -b ~/rootfs/lib/modules/2.6.24/net -F ~/linux-2.6.24/System.map
This will generate modules.dep on net directory. It is needed by modprobe command.
Note: depmod.pl is a perl script from busybox-1.8.2 package.
2. Run the following command,
make CROSS_COMPILE=powerpc-405-linux-gnu- KERNELPATH=/localhome/wli/linux-2.6.24 TARGET=powerpc-be-elf DESTDIR=/localhome/wli/rootfs install
where: CROSS_COMPILE= powerpc-405-linux-gnu- specifies the cross-compiler prefix. Make sure cross-compiler path is exported and accessible to current user.
DESTDIR =root directory to install. Usually it's a path to root file system
TARGET= target processor and image format for cross compiling, powerpc, big-endian and elf
KERNELPATH= pah of kernel where the modules to be compiled with.
install -- install after compile. This will install the following modules in ~/rootfs/lib/modules/net/
ath_hal.ko ath_pci.ko ath_rate_amrr.ko ath_rate_minstrel.ko ath_rate_onoe.ko ath_rate_sample.ko wlan_acl.ko
wlan_ccmp.ko wlan.ko wlan_scan_ap.ko wlan_scan_sta.ko wlan_tkip.ko wlan_wep.ko wlan_xauth.ko
as well as WLAN command tools in ~/rootfs/usr/local/bin
80211debug 80211stats athchans athctrl athdebug ath_info athkey athstats madwifi-unload wlanconfig
80211debug 80211stats athchans athctrl athdebug ath_info athkey athstats madwifi-unload wlanconfig
3.. Run the following command,depmod.pl script to create modules.dep on the net module directory
../depmod.pl -b ~/rootfs/lib/modules/2.6.24/net -F ~/linux-2.6.24/System.map
This will generate modules.dep on net directory. It is needed by modprobe command.
Note: depmod.pl is a perl script from busybox-1.8.2 package.
0 Comments:
Post a Comment
<< Home