<br><br><div><span class="gmail_quote">On 4/4/07, <b class="gmail_sendername"><a href="mailto:ahuguet@cttc.es">ahuguet@cttc.es</a></b> <<a href="mailto:ahuguet@cttc.es">ahuguet@cttc.es</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Update:<br><br>If I run:<br><br>make -C /usr/src/linux-source-2.6.17<br>without the SUBDIRS=./ modules part, seems that the compilation process is<br>launched.<br><br>Any ideas about why it does so without that?</blockquote>
<div><br>Leaving out the SUBDIRS= is fine, you'll just build all modules in the<br> entire tree, could take a little longer is all.<br><br>try first removing the old *.ko files in your wireless/hostap/ directory,<br> or "make -C /usr/src/linux-
source-2.6.17 SUBDIRS=./ clean"<br><br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> Thank you Jouni and Bob.<br>>
<br>> I found out I needed to compile the kernel sources at least one time<br>> before using your recipe Bob, so I did compile the kernel sources, and<br>> installed the .deb resulting packages to have the kernel (which is now
<br>> 2.6.17-14)<br>><br>> I'm trying then to edit some files of the driver.<br>><br>> So I do:<br>> gedit<br>> /usr/src/linux-source-2.6.17/drivers/net/wireless/hostap/hostap_80211_rx.c<br>><br>
> in order to edit the .c file and add code to it. (I previously became<br>> superuser with the su command)<br>><br>> I make my changes to the file, then exit the editor.<br>> After that, I try to use your recipe, Bob.
<br>> So:<br>><br>> make -C /usr/src/linux-source-2.6.17 SUBDIRS=./ modules<br>><br>> it then says it enters into /usr/src/linux-source-2.6.17<br>> and I get this:<br>><br>> Building modules, stage 2.
<br>> MODPOST<br>><br>> Then it says it exits /usr/src/linux-source-2.6.17</blockquote><div><br><br>see above, maybe compiler didn't think it needed to do anything since .o and<br> .ko files are already there.
<br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">><br>> After I keep with your recipe:<br>><br>> make -C /usr/src/linux-
source-2.6.17 SUBDIRS=./ modules_install<br>><br>> I get, enters into directory then:<br>> DEPMOD 2.6.17.14-ubuntu1<br>> then exits directory.<br>><br>> I keep with:<br>><br>> depmod -ae<br>><br>
> that returns no message.</blockquote><div><br><br>no news is good news in this case, but maybe this was already done<br> from modules_install command, which probably just re-installed the same<br> (previous) *.ko files into /lib/modules/2.6.17.14-ubuntu1/whatever/
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">><br>> The point is, how is it that I've not been notified of any error or
<br>> warning at all? I even purposedly added a garbage line there, in order to<br>> try if when doing the make command, the errors were showed to me, but no.<br>><br>> I'll list you the content of:<br>>
<br>> /usr/src/linux-source-2.6.17/drivers/net/wireless/hostap# ls<br>><br>> built-in.o hostap_config.h hostap_ioctl.o hostap_plx.c<br>> hostap_80211.h hostap_cs.c hostap.ko hostap_plx.ko
<br>> hostap_80211.h~ hostap_cs.ko hostap_main.c hostap_plx.mod.c<br>> hostap_80211_rx.c hostap_cs.mod.c hostap_main.o hostap_plx.mod.o<br>> hostap_80211_rx.c~ hostap_cs.mod.o hostap.mod.c
hostap_plx.o<br>> hostap_80211_rx.o hostap_cs.o hostap.mod.o hostap_proc.c<br>> hostap_80211_tx.c hostap_download.c hostap.o hostap_proc.o<br>> hostap_80211_tx.o hostap.h hostap_pci.c hostap_wlan.h
<br>> hostap_ap.c hostap_hw.c hostap_pci.ko Kconfig<br>> hostap_ap.h hostap_info.c hostap_pci.mod.c Makefile<br>> hostap_ap.o hostap_info.o hostap_pci.mod.o<br>> hostap_common.h hostap_ioctl.c hostap_pci.o
<br>></blockquote><div><br>If you list with "ls -ltr" your newest files will be at the bottom of the list and<br> you can tell conclusively if the *.ko is newer than your edited *.[ch]'s.<br><br></div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> I notice that files "hostap_80211.h" and "hostap_80211_rx.c" have a copy
<br>> with a ~ on them, as if they were temporary files. Those two, the ones<br>> ending with .c and .h have been the ones I've tried to modify.<br>> I saved the changes in the editor, and closed the editor program.
</blockquote><div><br>The editor created the *.c~ and *.h~ files, they are backups of the .c and .h<br> files from when you opened them with the editor, but not necessarily<br> the originals. You can always re-install the originals from the tarball,
<br> or manually copy them to something like hostap_80211.c.orig, in case<br> you want to generate a nice diff.<br><br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> The only thing I've opened right now is Firefox to compose this mail.<br>> Could it be that no errors are being shown, because the files have not yet<br>> been properly saved?<br>> If so, what am I doing wrong?
<br>><br>> Thank you again for all your cooperation.<br>><br>><br>><br>><br>>> On 3/21/07, Jouni Malinen <<a href="mailto:j@w1.fi">j@w1.fi</a>> wrote:<br>>>><br>>>> On Wed, Mar 21, 2007 at 12:01:14PM +0100,
<a href="mailto:ahuguet@cttc.es">ahuguet@cttc.es</a> wrote:<br>>>><br>>>> > Reading it, seems that the only way to make use of that HostAP driver<br>>>> > (with modified code lines on .c and .h files) is to compile the
<br>>>> kernel<br>>>> > anew?<br>>>> ><br>>>> > Couldn't be a way to just tell the system to compile HostAP, and use<br>>>> that<br>>>> > "new" version, without need of recompiling the whole kernel?
<br>>><br>>><br>>> My "secret recipe" for compiling just an individual driver is<br>>> approximately this:<br>>><br>>> 1 - cd to the hostap directory, /usr/src/linux-source-2.6.17
<br>>> /drivers/net/wireless/hostap<br>>> 2 - make your changes and save them</blockquote><div><br>maybe add a <br>2.5 'make -C /usr/src/linux-source-2.6.17 SUBDIRS=./ clean'<br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
>> 3 - 'make -C /usr/src/linux-source-2.6.17 SUBDIRS=./ modules'<br>>> 4 - 'make -C /usr/src/linux-source-2.6.17 SUBDIRS=./ modules_install'<br>>> 5 - 'depmod -ae'<br>>><br>
>> Then do the rest of what Jouni says; reload (the new) modules, and try<br>>> it<br>>> out.<br>>><br>>> If you build Host AP driver as a kernel module, you can just rebuild it<br>>>> and reload the modules to update the driver without having to
<br>>>> rebuild or reboot the full kernel.<br>>>><br>>>><br>>><br>>> I hope this is helpful, (and anyone who finds an error, please correct<br>>> me!)<br>>><br>>> Bob Beers
<br>>> _______________________________________________<br>>> HostAP mailing list<br>>> <a href="mailto:HostAP@shmoo.com">HostAP@shmoo.com</a><br>>> <a href="http://lists.shmoo.com/mailman/listinfo/hostap">
http://lists.shmoo.com/mailman/listinfo/hostap</a><br>>><br>><br>><br>> _______________________________________________<br>> HostAP mailing list<br>> <a href="mailto:HostAP@shmoo.com">HostAP@shmoo.com
</a><br>> <a href="http://lists.shmoo.com/mailman/listinfo/hostap">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>><br><br><br>_______________________________________________<br>HostAP mailing list<br><a href="mailto:HostAP@shmoo.com">
HostAP@shmoo.com</a><br><a href="http://lists.shmoo.com/mailman/listinfo/hostap">http://lists.shmoo.com/mailman/listinfo/hostap</a><br></blockquote></div><br>