Hi everyone!<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>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/~dilinger/testing/">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>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.">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>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