[Voyage-linux] Building modified madwifi for voyage
David Murray
(spam-protected)
Thu Dec 6 13:23:45 HKT 2007
Hi,
I am building a modified version of madwifi for the WRAP. I have never
done this before so I am going to write how I have done it and maybe
people might be able to point out where I have gone wrong.
First thing I did was follow the instructions [1] to build a emulated
version of my WRAP/voyage install. This worked well and the
instructions are really good :)
Upon logging into my emulated voyage I installed all of the build tools
through apt including the kernel source. To go with the kernel source I
need the correct .config file from [2]. First question: I am using the
2.6.17 kernel, and I think I am using 2.6.17-486-voyage_3.0-3, but how
do I know with certainty that I am using 3.0-3 and not 3.0-2 or 3.0-1.
The next thing I did was a make menuconfig to configure the kernel
prior to building it. I am not making any changes to the standard
kernel so I left everything as is. following this I did a "make" (wait
4 hours :).
After making the kernel I could then build madwifi with "make
KERNELPATH=/usr/src/blah" Second question: why can you not just compile
against the source? why do you have to build the kernel first?
Following my make, madwifi built fine so I extracted the .ko modules
copied them to my running WRAP. I then unloaded the running modules and
replaced them with the new modules. Then "depmod -ae" and "modprobe
ath_pci"
This gives me the following errors:
Error inserting ath_hal
(/lib/modules/2.6.17-486-voyage/kernel/net/ath_hal.ko): Invalid module
format
WARNING: Error inserting wlan
(/lib/modules/2.6.17-486-voyage/kernel/net/wlan.ko): Invalid module
format
FATAL: Error inserting ath_pci
(/lib/modules/2.6.17-486-voyage/kernel/net/ath_pci.ko): Invalid module
format
Does this suggest a mismatch between my kernel source and running
kernel or gcc (eg the kernel source was built with a different gcc
version to the one I got though apt)? Can anyone spot anything that I
have done wrong?
Really appreciate the help
Dave
[1] http://wiki.voyage.hk/dokuwiki/doku.php?id=voyage_in_qemu
[2] http://www.voyage.hk/download/kernel_config/
More information about the Voyage-linux
mailing list