Results 1 to 15 of 32

Thread: Bluez drivers compilation: 90% done

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Bluez drivers compilation: done and PAN working!

    Hi,

    I've been trying to get my bluetooth CSR dongle to work on the Asus Wl-HDD (I know this is not the right forum, but this is of interest for any user of this firmware) and I'm using uclibc to make it work on Oleg's latest firmware (1.8.1.7-3)

    I have already compiled libusb, and the necessary package for bluez (lib and tools). Programs are working, but I need to get hci_usb.o module to compile.

    I've been enabling Bluez=m and USB_bluetooth=m in .config for the kernel. The only file I get in return is bluetooth.o which is not working for CSR. I don't find any option to get the ..../linux/drivers/bluetooth/hci_usb.c to compile. Of course, I might try to use a hand made build command, but I never compiled kernel modules without a full makefile.

    This is the last stone to get this stack working. Applying the kernel patch for 2.4.20 kernel from bluez website give some errors, including in the hci_usb.c file, so I decided not to use them.

    Could anybody give me the last push to make this working? I think the PAN profile could be working with this stack. I just need the hci_usb.o file and the necessary instruction to get it.

    Thanks


    EDIT: Done it. I'll post the Wiki page later on. Here is the tarball for bluez. a sample bluez script is at root, but it's not fully working. Just need to change a few thinks. Any PAN how to will show you how to end this script. I(ve been testing succesfully with my Ipaq, and i'll post more on this later.
    Attached Files Attached Files
    Last edited by hugo; 10-12-2004 at 19:25.

  2. #2
    Hi Hugo,

    I have already compiled the tools and modules for bluez. Take a look at
    this thread.

    http://wl500g.info/showthread.php?t=749

    Dex

  3. #3
    Thanks dex for your binary. It was the missing link. May I ask you how you managed to compile the kernel modules? I think I'll create a wiki page for the tutorial because this is an interesting project.

    I'll post my binary also, because I've been compiling all the other tools from bluez, so it can be of interest for some.

    My purpose was at the begining to get hid2hci working for my dongle, to use affix stack. But it ended up to be compiled wholly.

  4. #4
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Quote Originally Posted by hugo
    I think I'll create a wiki page for the tutorial because this is an interesting project.
    That would be a terrific contribution, thanks in advance.

  5. #5

    Bluez drivers compilation: done and PAN working!

    First post edited. Is it possible to change the title in today posts?
    Last edited by hugo; 10-12-2004 at 19:27.

  6. #6
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Hugo, tarball means something produced with tar, not with rar. Your attachments looks like a rarball.

  7. #7
    Hello hugo,

    to compile the bluez module hci_usb.o you have to use the kernel option:

    Bluetooth Support -> Bluetooth device drivers -> <M> HCI USB driver (-> hci_usb.o)

    The option USB Support -> USB Bluetooth Support must be disabled. The module bluetooth.o
    can't be used with the bluez protocol stack.

    I got an error message after applying the latest bluez kernel patch too. Therefore I build
    the modules from the original WL-HDD GPL v1.1.2.6 and until now my applications using
    the bluez protocol stack are running fine. The only problem I recognize is that the WL-HDD
    does not recognize the USB Bluetooth dongle (Acer BT 600) at all. I don't know what the
    problem is, but I realized that this situation only happens after 10 minutes the WL-HDD is
    running and when the device is warm. I assume it's an hardware problem.

    Dex
    Last edited by Dex; 08-12-2004 at 23:16.

  8. #8
    Join Date
    Jul 2005
    Location
    Czech Republic
    Posts
    1
    Hi there,

    in accordance with this Hugo&Dex's how-to thread I've been trying to get BT dongle (MSI MS-6967) to work on the Asus WL-500gx with Oleg's firmware 1.9.2.7-CR6b.

    Everything works well until the last line of this script:

    Code:
    insmod /tmp/harddisk/bluetooth/lib/modules/bluez.o
    insmod /tmp/harddisk/bluetooth/lib/modules/hci_usb.o
    insmod /tmp/harddisk/bluetooth/lib/modules/l2cap.o
    insmod /tmp/harddisk/bluetooth/lib/modules/bnep.o
    export LD_LIBRARY_PATH='/tmp/harddisk/bluetooth/lib'
    /tmp/harddisk/bluetooth/sbin/sdpd
    /tmp/harddisk/bluetooth/sbin/hcid
    /tmp/harddisk/bluetooth/bin/sdptool add NAP
    /tmp/harddisk/bluetooth/bin/sdptool add DUN
    /tmp/harddisk/bluetooth/bin/pand --listen --role NAP
    When I start pand, there are a lot of these lines in syslog:

    Code:
    Jul 24 10:48:06 pand[2590]: Accept failed. Resource temporarily unavailable(11)
    and their amount rapidly increases (aprox. 100 lines per second) until I kill pand.

    Can someone tell me what's wrong and how to set it right?

    Thank you.

  9. #9
    Yep, I am definitely having the same problem as m.scholze on 1.9.2.7-5a using an Acer BT500.

    My script is setup the same as m.scholzes with all the files in the appropriate places. I have also copied the correct files to /etc/bluetooth/

    My script is slightly different to m.scholze as it has the -M

    /tmp/harddisk/bluetooth/bin/pand --listen --role NAP -M

    But I just get that same error:
    Jan 1 00:17:17 pand[549]: Bluetooth PAN daemon
    Jan 1 00:17:17 pand[549]: Accept failed. Resource temporarily unavailable(11)
    Jan 1 00:17:17 pand[549]: Accept failed. Resource temporarily unavailable(11)
    Jan 1 00:17:17 pand[549]: Accept failed. Resource temporarily unavailable(11)
    Jan 1 00:17:18 pand[549]: Accept failed. Resource temporarily unavailable(11)

    Any ideas?

  10. #10
    Don't forget the drivers are usually compiled using one version of the system, and there has been one major evolution in Oleg's firmware since then. I guess there is some incompatibility, but I haven't tested. I don't want to go back to this, because there is already a bluez project available as a package, and it should be this one to be maintained from now on.

  11. #11
    Okay, I understand, I'm willing to have a go at getting this working again in any case......

    Ironically I am in a similar situation to xlephant in that I have an mda compact.
    I got the bluesoleil stack detailed forums.xda-developers.com working for PAN on my device, and I managed to get good internet access over bluetooth and ran SkyPE on my pocketpc! Now I just want the bluetooth intregrated with the router!

    I mean I even had to install a hacked stack to get my dongle working under XP SP2, as mine is no longer supported, I guess since I've come this far, I may as well carry on.

    Xlephant judging my his log entries managed to get pand running using 1.9.2.7-3b, so I may try downgrading to that to see if I get the same result.

    I can also try another bluetooth dongle, failing these options I presume I'd have to go and recompile the modules against the lastest source.

  12. #12
    You can try an older version, if you have PAN profile on your XDA compact. I've been testing this also for a pocket pc, but lost interest because all my pocket pc have wi-fi. Actually, you can get a full network connection using the firmware version that was up to date at the date of my first post in the thread, but I wanted to make DUN working to automaticaly connect. PAN was perfectly operational for me, but needed to be activated by hand, and also needed a fixed IP on pocket pc side (on the bluetooth network card).
    Your dongle should be working because you don't have any error message in the loading of the modules ( .o files)

Similar Threads

  1. Compilation HOWTO for modules useful?
    By Styno in forum WL-500g Q&A
    Replies: 10
    Last Post: 01-09-2008, 16:08
  2. help with bluez
    By kvborg in forum WL-500g Q&A
    Replies: 0
    Last Post: 28-08-2005, 16:35
  3. ntop compilation
    By David07 in forum WL-500g Custom Development
    Replies: 0
    Last Post: 05-07-2005, 22:53
  4. web cam drivers
    By ela002 in forum WL-500g Q&A
    Replies: 4
    Last Post: 07-04-2005, 18:21
  5. libstdc++.so.5 and c++ compilation on unified firmware
    By hugo in forum WL-500g Custom Development
    Replies: 1
    Last Post: 22-12-2004, 08:32

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •