Driver Installation Ubuntu kernel 2.6.17 Basic Help

Bob Beers bob.beers at gmail.com
Thu Mar 22 08:52:21 EDT 2007


On 3/21/07, Jouni Malinen <j at w1.fi> wrote:
>
> On Wed, Mar 21, 2007 at 12:01:14PM +0100, ahuguet at cttc.es wrote:
>
> > Reading it, seems that the only way to make use of that HostAP driver
> > (with modified code lines on .c and .h files) is to compile the kernel
> > anew?
> >
> > Couldn't be a way to just tell the system to compile HostAP, and use
> that
> > "new" version, without need of recompiling the whole kernel?


My "secret recipe" for compiling just an individual driver is
 approximately this:

1 - cd to the hostap directory, /usr/src/linux-source-2.6.17
/drivers/net/wireless/hostap
2 - make your changes and save them
3 - 'make -C /usr/src/linux-source-2.6.17 SUBDIRS=./ modules'
4 - 'make -C /usr/src/linux-source-2.6.17 SUBDIRS=./ modules_install'
5 - 'depmod -ae'

Then do the rest of what Jouni says; reload (the new) modules, and try it
out.

If you build Host AP driver as a kernel module, you can just rebuild it
> and reload the modules to update the driver without having to
> rebuild or reboot the full kernel.
>
>

I hope this is helpful, (and anyone who finds an error, please correct me!)

Bob Beers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20070322/dcea6784/attachment.htm 


More information about the HostAP mailing list