dawnmist: My homebuilt gaming keyboard - version 1 (Default)
[personal profile] dawnmist

This is a quick post to record the changes I needed to make to the Bluetooth driver for an Edimax EW-7611ULB wifi & bluetooth usb dongle to get the bluetooth working on the (currently) new Raspberry Pi 4.9.11 kernel. Hopefully it can help anyone else using this adapter when they upgrade their Raspberry Pi.

The original instructions and source for installing the drivers for this adapter are published by Edimax themselves at: https://edimax.freshdesk.com/support/solutions/articles/14000047172-how-to-install-ew-7611ulb-adapter-on-raspberry-pi - but they currently cover installing the drivers for a Raspberry Pi running kernel 4.4. The wifi driver installation documented by Edimax works fine. There is one minor modification to the bluetooth driver source code required so that it will compile properly due to kernel api changes in kernel version 4.9 for the HCI driver interface.

In Section "(II.) Bluetooth Driver Installation", before running "sudo make install -s", you need to edit the file bluetooth_usb_driver/rtk_coex.c. At line 448, change

#if HCI_VERSION_CODE >= KERNEL_VERSION(3, 10, 0)
#if HCI_VERSION_CODE < KERNEL_VERSION(4, 4, 0)
	bt_cb(skb)->req.start = true;
#else
	bt_cb(skb)->hci.req_start = true;
#endif
#endif
to:
#if HCI_VERSION_CODE >= KERNEL_VERSION(3, 10, 0)
#if HCI_VERSION_CODE < KERNEL_VERSION(4, 4, 0)
	bt_cb(skb)->req.start = true;
#elif HCI_VERSION_CODE >= KERNEL_VERSION(4,9,0)
	bt_cb(skb)->hci.req_flags |= HCI_REQ_START;
#else
	bt_cb(skb)->hci.req_start = true;
#endif
#endif
Save the change, and then continue with the instructions by running the "sudo make install -s" command.

Otherwise, follow the instructions on the Edimax link to get both wifi and bluetooth working properly with this adapter on the Raspberry Pi.

Date: 2017-02-27 12:38 am (UTC)
kerravonsen: 9th Doctor wearing his headlamp: Technical wizard (technical-wiz)
From: [personal profile] kerravonsen
Just a note: the code is unreadable if one has a journal style which has dark text on a light background (as I do -- I can't see the code on my reading page). Do you think you could fix the style of your code box so that it sets the text foreground explicitly, as well as setting the background? Thanks. 8-)

Problem

Date: 2017-06-13 04:09 pm (UTC)
From: [personal profile] tysie
Hi
I really want to install it but i have a problem.
When i do the sudo make install -s it says the following:
Copy RTL8723BU fw/config to /lib/firmware
module btusb is not currently loaded
module rtk_btusb is not currently loaded
install rtk_btusb success!

the kernel is 4.9.24 and when i say lsusb it says device 004 id 7392:a611 edimax technology co. ltd.

can you please help me?


edit:
Okay now it seems to work!
Yesterday it didnt but i started again today after removing
Edited Date: 2017-06-14 07:35 am (UTC)

again problems while installing

Date: 2017-09-01 12:48 pm (UTC)
From: [personal profile] tysie
Hi,

I received my new raspberry 3 and I want to install the drivers but it doesn't work. Can you help me?

The error I receive is:

Copy RTL8723BU fw/config to /lib/firmware
rmmod: ERROR: Module btusb is not currently loaded
mv: cannot stat '/lib/modules/4.9.41-v7+/kernel/drivers/bluetooth/btusb.ko': No such file or directory
rmmod: ERROR: Module rtk_btusb is not currently loaded
depmod: ERROR: Bad version passed /lib/modules/4.9.41-v7+
Makefile:8: recipe for target 'install' failed
make: *** [install] Error 1


It looks like the same as last time but i cannot get it to work

Re: again problems while installing

Date: 2017-09-01 05:16 pm (UTC)
From: [personal profile] tysie
I installed the complete raspberry again and tried it twice. These are the errors:

Copy RTL8723BU fw/config to /lib/firmware
rmmod: ERROR: Module rtk_btusb is not currently loaded
depmod: ERROR: Bad version passed /lib/modules/4.9.41-v7+
Makefile:8: recipe for target 'install' failed
make: *** [install] Error 1




Copy RTL8723BU fw/config to /lib/firmware
rmmod: ERROR: Module btusb is not currently loaded
mv: cannot stat '/lib/modules/4.9.41-v7+/kernel/drivers/bluetooth/btusb.ko': No such file or directory
rmmod: ERROR: Module rtk_btusb is not currently loaded
depmod: ERROR: Bad version passed /lib/modules/4.9.41-v7+
Makefile:8: recipe for target 'install' failed
make: *** [install] Error 1



I hope you can help me

Re: again problems while installing

Date: 2017-09-02 12:07 pm (UTC)
From: [personal profile] tysie
Thanks that you are willing to help me.

I am using the raspberry pi 3 lite compute module on the official raspberry IO board. It has only one usb port so I use a usb hub to connect all my devices.

The following kernel when entered uname -r:
4.9.41-v7+

The following directories exist in /lib/modules/:
4.9.41+ 4.9.41-v7+

I checked also in the folder /lib/modules/4.9.41+/kernel/drivers/bluetooth
and there btusb.ko exists.

In /lib/modules/4.9.41-v7+/kernel/drivers/bluetooth
btusb.ko does not exist as the error message of the driver also tells me


If you need more information please tell me
Edited Date: 2017-09-02 12:10 pm (UTC)

Re: again problems while installing

Date: 2017-09-03 12:28 pm (UTC)
From: [personal profile] tysie
this did the job

Try to let depmod fall back to its default test for the kernel version instead of providing it. To do this, change that same line to:
depmod -a -v


Thanks a lot for your time and help!

Profile

dawnmist: My homebuilt gaming keyboard - version 1 (Default)
Dawnmist

February 2017

S M T W T F S
   1234
567891011
12131415161718
19202122232425
262728    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Wednesday, September 20th, 2017 03:44 am
Powered by Dreamwidth Studios