Hi all,
We wanna use CC2564B in our device and I am trying to get it running. We have linux system with 4.0 Kernel (actually rc7 but it doesn't matter) and BlueZ 5.27. The system compiled using Buildroot. Also we are using bluetooth_init_cc2564B_1.2_BT_Spec_4.1.bts script that was placed in /lib/firmware/ti-connectivity/TIInit_6.7.16.bts and I changed in BlueZ in hciattach_ti.c
"if (hci_send_req(fd, &rq, 15) < 0) { "
to
"if (hci_send_req(fd, &rq, 150) < 0) {"
But when we execute "hciattach ttyS4 texas" we get error message "Can't init device hci0: Device or resource busy (16)Can't initialize device Device or resource busy
I activated debug messages in kernel and got pretty long list at the end of it I see:
[ 40.644531] hu c324a880 count 8 rx_state 0 rx_count 0
[ 40.652343] Event packet
[ 40.652343] Event header: evt 0x0e plen 12
[ 40.656250] len 12 room 1846
[ 40.660156] hu c324a880 count 7 rx_state 4 rx_count 7
[ 40.664062] Complete data
[ 40.667968] hci0
[ 40.667968] hdev c33ac000 len 14
[ 40.671875] hci0 Event packet
[ 40.675781] hci0 status 0x00
[ 40.679687] opcode 0x2003 status 0x00
[ 40.683593] hci0 opcode 0x2003
[ 40.683593] hci0 cmd_cnt 1 cmd queued 8
[ 40.691406] hci0 type 1 len 3
[ 40.691406] hdev c33ac000 len 3
[ 40.695312] hci0: type 1 len 3
[ 40.699218] hu c324a880 skb c33b43e0
[ 40.703125] device awake, sending normally
[ 40.707031]
[ 40.707031]
[ 40.710937] hu c324a880 count 9 rx_state 0 rx_count 0
[ 40.714843] Event packet
[ 40.714843] Event header: evt 0x0e plen 12
[ 40.722656] len 12 room 1846
[ 40.722656] hu c324a880 count 6 rx_state 4 rx_count 6
[ 40.730468] Complete data
[ 40.730468] hci0
[ 40.734375] hdev c33ac000 len 14
[ 40.734375] hci0 Event packet
[ 40.738281] hci0 status 0x0c
[ 40.742187] opcode 0x201c status 0x0c
[ 40.746093] hci0 opcode 0x201c
[ 40.750000] hci0 result 0x0c
[ 40.750000] hci0 end: err -16
Also linux sent telegram with opcode 0x2003 ("LE read local features" ) and got event with 0 in status. That was last good answer. Then linux sent telegram with opcode 0x201C ("LE read supported states") and got event with 0x0C (busy) in status. Do you have any idea why it happened and how can we fix it?
Thanks a lot,
Best regards,
Sergey