I've forgot to mention that I get this warning when compiling the modules:<br><br><div>WARNING: Symbol version dump /home/root/rpmbuild/SOURCES/linux-2.6.31/Module.symvers</div><div>           is missing; modules will have no dependencies and modversions.</div>

<br><div class="gmail_quote">On Wed, Jan 5, 2011 at 4:12 PM, Emiliano Pastorino <span dir="ltr"><<a href="mailto:epastorino@plan.ceibal.edu.uy">epastorino@plan.ceibal.edu.uy</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi, it's me again with new problems.<br><br>I'm trying to compile the bluetooth modules again, but now I've new issues.<div>When I try to insmod any module, I get the same error:</div><div><br>insmod: error inserting 'net/bluetooth/bluetooth.ko': -1 Invalid module format</div>


<div><br>I'm working on an XO-1 with a Dextrose based build, using kernel 2.6.31.<br>uname -r shows this:</div><div><br>2.6.31_xo1-20100701.1605.1.olpc.a8f1b26</div><div><br></div><div>and rpm -qa | grep kernel this:</div>


<div><br></div><div><div>kernel-firmware-2.6.31_xo1-20100701.1605.1.olpc.a8f1b26.i586</div><div>kernel-devel-2.6.31_xo1-20100701.1605.1.olpc.a8f1b26.i586</div><div>kernel-2.6.31_xo1-20100701.1605.1.olpc.a8f1b26.i586</div>


<div>kernel-headers-2.6.31_xo1-20100701.1605.1.olpc.a8f1b26.i586</div><br><div>I've downloaded kernel-2.6.31_xo1-20100701.1605.1.olpc.a8f1b26.src.rpm</div><div>from <a href="http://dev.laptop.org/~kernels/olpc-2.6.31-xo1/" target="_blank">http://dev.laptop.org/~kernels/olpc-2.6.31-xo1/</a> and installed it.</div>


<div><br></div><div>The steps I followed were the same as with the 2.6.25 kernel, with little<br>modifications since now there's a configuration for XO-1.5 also:</div><div><br></div><div>make ARCH=i386 INSTALL_MOD_STRIP=1<b> xo_1_defconfig</b><div class="im">

<br>
make ARCH=i386 INSTALL_MOD_STRIP=1 menuconfig<br>there, I activated bluetooth<br></div>make ARCH=i386 INSTALL_MOD_STRIP=1 M=net/bluetooth<br></div><div><br></div><div>Then, when i execute "insmod net/bluetooth/bluetooth.ko", I get:</div>


<div>insmod: error inserting 'net/bluetooth/bluetooth.ko': -1 Invalid module format</div>
<div><br></div><div>modinfo net/bluetooth/bluetooth.ko shows:</div><div><br></div><div><div>filename:       net/bluetooth/bluetooth.ko</div><div>alias:          net-pf-31</div><div>license:        GPL</div><div>version:        2.15</div>


<div>description:    Bluetooth Core ver 2.15</div><div>author:         Marcel Holtmann <<a href="mailto:marcel@holtmann.org" target="_blank">marcel@holtmann.org</a>></div><div>srcversion:     934DDFF641FDE73DF4A50F3</div>

<div>depends:        </div>
<div>vermagic:       2.6.31.6 preempt mod_unload modversions GEODE 4KSTACKS</div><div><br></div><div>so bluetooth.ko can't be just garbage.<br><br>I'm getting the same behaviour with all the other modules from net/bluetooth<br>


and drivers/bluetooth.</div><div><br></div><div>Any clues?<br><br>Thanks</div><div><div></div><div class="h5"><br><div class="gmail_quote">On Fri, Aug 28, 2009 at 5:01 PM, Emiliano Pastorino <span dir="ltr"><<a href="mailto:epastorino@plan.ceibal.edu.uy" target="_blank">epastorino@plan.ceibal.edu.uy</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">OK, it worked.<br>This is what I did:<br><br>make ARCH=i386 INSTALL_MOD_STRIP=1 olpc_defconfig<br>make ARCH=i386 INSTALL_MOD_STRIP=1 menuconfig<br>


there, I activated bluetooth<br>make ARCH=i386 INSTALL_MOD_STRIP=1 modules<br>
make ARCH=i386 INSTALL_MOD_STRIP=1 modules_install<br><br>modules compiled and ?worked?<br><br>well, it seems I need /usr/sbin/bluetoothd provided by bluez,<br>but there's no bluez package avaiable, so I'll try to compile<br>



the source code and see what happens...<br><br>I'll tell you whether I succeeded or not....<br><br>thanks!<div><div></div><div><br><br><div class="gmail_quote">On Fri, Aug 28, 2009 at 12:25 PM, Paul Fox <span dir="ltr"><<a href="mailto:pgf@laptop.org" target="_blank">pgf@laptop.org</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">emiliano wrote:<br>
 > Hi everyone!<br>
<br>
hi emiliano --<br>
<div><br>
 ><br>
 > I have a USB Bluetooth adapter and I need to make it work on an XO.<br>
 > Don't want to recompile the whole kernel but to compile only the kernel<br>
 > module.<br>
<br>
</div>it's probably easier to compile the whole thing, and then just use<br>
the resulting module.<br>
<div><br>
 ><br>
 > I've never done this, so maybe I'm missing something...<br>
 > The module I'm trying to compile is "btusb" (I hope this is the one I need).<br>
 > I'm using kernel 2.6.25-20090223.1.olpc.69098d87d56945c, so I got<br>
 > the corresponding src.rpm from <a href="http://dev.laptop.org/%7Edilinger/testing/" target="_blank">http://dev.laptop.org/~dilinger/testing/</a> .<br>
 > I've also installed kernel-devel, kernel-headers, gcc, glibc, glibc-devel,<br>
 > glibc-headers and make in my XO (maybe I forgot others).<br>
 ><br>
 > I moved to /usr/src/redhat/SOURCES/linux-2.6.25/drivers/bluetooth<br>
 > and edited Makefile so it looks like this:<br>
<br>
</div>don't do that.  at the top level directory, run "make menuconfig".<br>
navigate to Network->Bluetooth and Network->Bluetooth->Bluetooth Drivers.<br>
enable what you need.  when in doubt, turn it on -- you don't<br>
have to put the module on your XO, but if you need it, you'd<br>
rather not build again.<br>
<br>
after saving your new config, type "make".<br>
<br>
paul<br>
<div><br>
 ><br>
 > obj-m := btusb.o<br>
 ><br>
 > KDIR := /lib/modules/$(shell uname -r)/build<br>
 > PWD := $(shell pwd)<br>
 ><br>
 > default:<br>
 >         $(MAKE) -C $(KDIR) M=$(PWD) modules<br>
 ><br>
 > Then I ran make but I get 5 warnings about functions which aren't<br>
 > defined: hci_recv_fragment, hci_register_dev, hci_alloc_dev,<br>
 > hci_free_dev and hci_unregister_dev. Those functions are defined<br>
 > in /usr/src/kernels/<a href="http://2.6.25." target="_blank">2.6.25.</a>......./include/net/bluetooth/hci_core.h<br>
 ><br>
 > I've successfully compiled the module in my desktop PC, but it<br>
 > won't compile in my XO. Actually, it does compile, but when I<br>
<br>
</div>it's likely that module relationships between the kernel versions<br>
you're building for your desktop, and for your XO.<br>
<br>
paul<br>
<div><br>
 > run "insmod btusb.ko" it gives an error about the above symbols<br>
 > being undefined.<br>
 ><br>
 > Any tips? Am I missing something like defining a path?<br>
 ><br>
 > Thanks!<br>
 > Emiliano<br>
</div> > part 2     text/plain                 129<br>
 > _______________________________________________<br>
 > Devel mailing list<br>
 > <a href="mailto:Devel@lists.laptop.org" target="_blank">Devel@lists.laptop.org</a><br>
 > <a href="http://lists.laptop.org/listinfo/devel" target="_blank">http://lists.laptop.org/listinfo/devel</a><br>
<br>
=---------------------<br>
<font color="#888888"> paul fox, <a href="mailto:pgf@laptop.org" target="_blank">pgf@laptop.org</a><br>
</font></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>Ing. Emiliano Pastorino<br>LATU - Plan Ceibal<br>Av. Italia 6201 CP: 11500, Montevideo, Uruguay<br>Tel: (598 2) 601 5773 int.: 213<br>



</font></blockquote></div><br><br clear="all"><br></div></div>-- <br>Ing. Emiliano Pastorino<div class="im"><br>Plan Ceibal<br>Av. Italia 6201 CP: 11500, Montevideo, Uruguay<br></div>Tel: (598) 2 601 5773 int.: 2232 <br>


</div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Ing. Emiliano Pastorino<br>Plan Ceibal<br>Av. Italia 6201 CP: 11500, Montevideo, Uruguay<br>Tel: (598) 2 601 5773 int.: 2232 <br>