RT3290 Bluetooth driver not compiling

[LEFT]I got the bluetooth driver for Ralink RT3290 wifi+BT chip from here http://downloads.zotac.com/mediadrivers/mb/download/NB087_Ubuntu.zip


02:00.0 Network controller [0280]: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe [1814:3290]
        Subsystem: Hewlett-Packard Company Device [103c:18ec]
        Kernel driver in use: rt2800pci
02:00.1 Bluetooth [0d11]: Ralink corp. RT3290 Bluetooth [1814:3298]
        Subsystem: Hewlett-Packard Company Device [103c:18ec]

I read the instructions and tried to compile the driver with:


mohit@linux-xmln:~/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3> make
make -C /lib/modules/3.7.10-1.4-desktop/build M=/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3 modules
make[1]: Entering directory `/usr/src/linux-3.7.10-1.4-obj/x86_64/desktop'
  CC [M]  /home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_main.o
  CC [M]  /home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_init.o
  CC [M]  /home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.o
/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: In function ‘rtbt_pci_suspend’:
/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:60:43: error: ‘struct hci_dev’ has no member named ‘driver_data’
/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: In function ‘rtbt_pci_resume’:
/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:87:46: error: ‘struct hci_dev’ has no member named ‘driver_data’
/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: In function ‘rtbt_pci_probe’:
/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:198:1: warning: label ‘err_hps_iface’ defined but not used -Wunused-label]
/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: In function ‘rtbt_pci_remove’:
/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:240:43: error: ‘struct hci_dev’ has no member named ‘driver_data’
/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: In function ‘BthIsr’:
/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:346:40: error: ‘struct hci_dev’ has no member named ‘driver_data’
make[4]: *** [/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.o] Error 1
make[3]: *** [_module_/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-3.7.10-1.4-obj/x86_64/desktop'
make: *** [all] Error 2

which resulted in errors
However the driver compiled fine when i was on Ubuntu 12.04 but not on Ubuntu 13.04.

Could anyone please point me in the right direction ?
[/LEFT]

On 05/17/2013 06:46 AM, ThePerfectPunk wrote:
>
> I got the bluetooth driver for Ralink RT3290 wifi+BT chip from
> here
> http://downloads.zotac.com/mediadrivers/mb/download/NB087_Ubuntu.zip
>
>
> Code:
> --------------------
>
> 02:00.0 Network controller [0280]: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe [1814:3290]
> Subsystem: Hewlett-Packard Company Device [103c:18ec]
> Kernel driver in use: rt2800pci
> 02:00.1 Bluetooth [0d11]: Ralink corp. RT3290 Bluetooth [1814:3298]
> Subsystem: Hewlett-Packard Company Device [103c:18ec]
>
> --------------------
>
>
>
> I read the instructions and tried to compile the driver with:
>
>
> Code:
> --------------------
>
> mohit@linux-xmln:~/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3> make
> make -C /lib/modules/3.7.10-1.4-desktop/build M=/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3 modules
> make[1]: Entering directory `/usr/src/linux-3.7.10-1.4-obj/x86_64/desktop’

CC [M] /home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_main.o
CC [M] /home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_init.o
CC [M] /home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.o
/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: In function ‘rtbt_pci_suspend’:
/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:60:43: error: ‘struct hci_dev’ has no member named ‘driver_data’
/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: In function ‘rtbt_pci_resume’:
/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:87:46: error: ‘struct hci_dev’ has no member named ‘driver_data’
/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: In function ‘rtbt_pci_probe’:
/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:198:1: warning: label ‘err_hps_iface’ defined but not used -Wunused-label]
/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: In function ‘rtbt_pci_remove’:
/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:240:43: error: ‘struct hci_dev’ has no member named ‘driver_data’
/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c: In function ‘BthIsr’:
/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.c:346:40: error: ‘struct hci_dev’ has no member named ‘driver_data’
make[4]: *** [/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3/rtbth_core_pci.o] Error 1
make[3]: *** [module/home/mohit/Downloads/NB087_Ubuntu/NB087_BT_ubuntu_release/rtbth_v3.9.3/rtbth_v3.9.3] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-3.7.10-1.4-obj/x86_64/desktop’
> make: *** [all] Error 2
>
> --------------------
>
>
> which resulted in errors
> However the driver compiled fine when i was on Ubuntu 12.04 but not on
> Ubuntu 13.04.
>
> Could anyone please point me in the right direction ?

As the kernel evolves, the API changes. The person responsible for any such
changes has to fix every driver in the kernel that breaks, but for out-of-kernel
drivers, the vendor is responsible for such modifications. As this change
happened prior to kernel 3.7, it would be quite difficult to chase back through
the kernel patch record to find that change and apply the necessary mods to the
driver. Perhaps RaLink has an updated driver on their web site.

The source of the bluetooth driver contains a make command only and not a make install command. The make command generates a rtbth.ko file which is the only thing i need to setup the bluetooth (the readme said i need to paste it in a folder don’t remeber what :-(), also need to run some binaries that are precompiled in the package. The Bluetooth driver compiles fine in Ubuntu 12.04 so it should compile in a previous release of openSUSE too. What if i compile the source from ‘Ubuntu 12.04/older openSUSE with same kernel’ and then usertbth.ko file the rtbth.ko in openSUSE 12.3.

Is there a chance that it could work?

On 05/17/2013 02:26 PM, ThePerfectPunk wrote:
>
> The source of the bluetooth driver contains a make command only and not
> a make install command. The make command generates a rtbth.ko file which
> is the only thing i need to setup the bluetooth (the readme said i need
> to paste it in a folder don’t remeber what :-(), also need to run some
> binaries that are precompiled in the package. The Bluetooth driver
> compiles fine in Ubuntu 12.04 so it should compile in a previous release
> of openSUSE too. What if i compile the source from ‘Ubuntu 12.04/older
> openSUSE with same kernel’ and then usertbth.ko file the rtbth.ko in
> openSUSE 12.3.
>
> Is there a chance that it could work?

Not a chance!

Is there anything else i can do? I have emailed the manufacturer to provide drivers for the new kernel but haven’t got any reply

What would you do?

On 05/18/2013 02:06 AM, ThePerfectPunk wrote:

> Is there anything else i can do? I have emailed the manufacturer to
> provide drivers for the new kernel but haven’t got any reply
>
> What would you do?

I would (a) use a kernel for which the driver compiles until I (b) had time to
update the driver to build with more modern kernels.

Does that mean that you could update the driver when u have time?

Please say yes…

plz plz plz

I wanna use linux permanently on my notebook :slight_smile:

On 05/18/2013 02:16 PM, ThePerfectPunk wrote:
>
> lwfinger;2557915 Wrote:
>> On 05/18/2013 02:06 AM, ThePerfectPunk wrote:
>>
>>> Is there anything else i can do? I have emailed the manufacturer to
>>> provide drivers for the new kernel but haven’t got any reply
>>>
>>> What would you do?
>>
>> I would (a) use a kernel for which the driver compiles until I (b) had
>> time to
>> update the driver to build with more modern kernels.
>
> Does that mean that you could update the driver when u have time?
>
> Please say yes…
>
> plz plz plz
>
> I wanna use linux permanently on my notebook :slight_smile:

Yes, I could do the update, but only if I actually had a device for testing.
Fixing it to compile would take a few hours. As I have no device, that could be
as a donation to the community. Unfortunately, I already have 4 drivers that I
am working toward getting into the kernel. Sorry to say that your problem would
be quite far down my priority list.