Sunday, September 08, 2013

Gentoo and Atheros AR3012 Bluetooth chipset

I used the guides on the following websites to set up my bluetooth:
1. Gentoo WIKI
2. Fitzcarraldo's blog for installation of linux-firmware
3. Linux Wireless

This is my bluetooth chipset according to lsusb:

Bus 001 Device 006: ID 0cf3:3004 Atheros Communications, Inc.

lsusb -v shows:

Bus 001 Device 006: ID 0cf3:3004 Atheros Communications, Inc.
Device Descriptor:
  bLength                    18
  bDescriptorType       1
  bcdUSB                     1.10
  bDeviceClass            224 Wireless
  bDeviceSubClass      1 Radio Frequency
  bDeviceProtocol       1 Bluetooth
  bMaxPacketSize0      64
  idVendor                   0x0cf3 Atheros Communications, Inc.
  idProduct                  0x3004
  bcdDevice                 0.02
  iManufacturer           1 Atheros Communications
  iProduct                    2 Bluetooth USB Host Controller
  iSerial                       3 Alaska Day 2006

The steps to setting up my bluetooth:

1. Compile kernel as written in the wiki.
2. This error popped up in dmesg:
 
usbcore: registered new interface driver btusb
Bluetooth: Patch file not found ar3k/AthrBT_0x01020200.dfu
Bluetooth: Loading patch file failed
ath3k: probe of 1-1.1:1.0 failed with error -2

3. I realised that this patch file is found in linux-firmware package.  However this package installs a bunch of other firmwares which I do not need. In order to just install the firmware that I needed, I followed the instructions on Fitzcarraldo's blog.

emerge linux-firmware 

cp /etc/portage/savedconfig/sys-kernel/linux-firmware-currentversion /home/username/linux-firmware-currentversion.bak

awk '{ printf "#"; print }' /home/username/linux-firmware-currentversion.bak > /etc/portage/savedconfig/sys-kernel/linux-firmware-currentversion
- This actually place the sign "#" in front of every line in the file so that you don't have to insert them manually.

vim  /etc/portage/savedconfig/sys-kernel/linux-firmware-currentversion
# Remove the comment symbol from the files I want to install. The files that i needed were:
ar3k/AthrBT_0x01020200.dfu
ar3k/ramps_0x01020200_26.dfu
ar3k/ramps_0x01020200_40.dfu

USE="savedconfig" emerge linux-firmware

or echo sys-kernel/linux-firmware savedconfig >> /etc/portage/package.use and emerge linux-firmware

4. Continue with the instructions on the WIKI

emerge bluez

/etc/init.d/bluetooth start

rc-update add bluetooth default

gpasswd -a username plugdev

5. For the usage of bluetooth, I installed gnome-bluetooth and gnome-user-share. Blueman and bluedevil didn't work for me.

No comments: