Driver Installation Ubuntu kernel 2.6.17 Basic Help

Bob Beers bob.beers
Thu Mar 22 05:52:21 PDT 2007

On 3/21/07, Jouni Malinen <j at> wrote:
> On Wed, Mar 21, 2007 at 12:01:14PM +0100, ahuguet at 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
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

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...

More information about the Hostap mailing list