Hi All I found the bring the interface hci0 up if I removed the hardware(AR3011 module) and inserted it again. Is it due to some timing issue about USB hubs when device booting up?
BRs Dean_Lin D.Ean Lin於 2013年1月5日星期六UTC+8上午1時33分08秒寫道: > > Hi All > > I'm trying to porting Bluetooth on Android-x86 > ICS(android-x86-4.0-RC2-amd_brazos.iso). > but it seems device cannot connected with built-in wireless chip(AR3011). > Is there any way to fix this problem? > > *# uname -r* > 3.0.36-android-x86-brazos+ > > *# lsusb* > Bus 001 Device 001: ID 1d6b:0002 > Bus 002 Device 001: ID 1d6b:0002 > Bus 003 Device 001: ID 1d6b:0002 > Bus 004 Device 001: ID 1d6b:0001 > Bus 005 Device 001: ID 1d6b:0001 > Bus 006 Device 001: ID 1d6b:0001 > Bus 001 Device 002: ID 8564:1000 > Bus 001 Device 003: ID 5986:031b > Bus 001 Device 006: ID 5986:031a > Bus 004 Device 002: ID 0eef:72fa > Bus 004 Device 003: ID 1770:ff00 > Bus 002 Device 003: ID 0b95:772b > Bus 002 Device 004: ID 0bda:0139 > Bus 005 Device 002: ID 10c4:ea60 > Bus 005 Device 005: ID 0cf3:3005 <---- AR3011 > Bus 006 Device 002: ID 0603:00f2 > > *# lsmod* > bsd_comp 3862 0 - Live 0xf8ed1000 > ppp_deflate 2862 0 - Live 0xf8eca000 > ppp_async 5070 0 - Live 0xf8ec2000 > pppoe 7058 0 - Live 0xf8eb8000 > pppox 1866 1 pppoe, Live 0xf8eae000 > ppp_generic 18811 5 bsd_comp,ppp_deflate,ppp_async,pppoe,pppox, Live > 0xf8ea2000 > slhc 4093 1 ppp_generic, Live 0xf8e94000 > option 15931 0 - Live 0xf8e85000 > usb_wwan 9171 1 option, Live 0xf8e6b000 > usbserial 25155 2 option,usb_wwan, Live 0xf8e58000 > cdc_acm 12074 0 - Live 0xf8e45000 > btusb 8980 0 - Live 0xf8e35000 <-- btusb.ko > rfcomm 23931 0 - Live 0xf8e24000 > bnep 7692 0 - Live 0xf8e11000 > hid_multitouch 5077 0 - Live 0xf8e06000 > ath3k 3631 0 - Live 0xf8dfd000 <-- ath3k.ko > bluetooth 113110 6 btusb,rfcomm,bnep,ath3k, Live 0xf8dd3000 > uvcvideo 47763 0 - Live 0xf8d9a000 > videodev 65702 1 uvcvideo, Live 0xf8d6f000 > pcspkr 1318 0 - Live 0xf8d54000 > ath9k 61928 0 - Live 0xf8d28000 > mac80211 146026 1 ath9k, Live 0xf8cdf000 > ath9k_common 2263 1 ath9k, Live 0xf8ca9000 > ath9k_hw 256231 2 ath9k,ath9k_common, Live 0xf8c5b000 > ath 12578 2 ath9k,ath9k_hw, Live 0xf8c0f000 > cfg80211 128554 3 ath9k,mac80211,ath, Live 0xf8bdd000 > rfkill 12780 2 bluetooth,cfg80211, Live 0xf8ba9000 > k10temp 2331 0 - Live 0xf877b000 > sp5100_tco 3989 0 - Live 0xf8774000 > snd_hda_codec_realtek 224486 1 - Live 0xf8b69000 > snd_hda_codec_hdmi 17841 1 - Live 0xf83d6000 > snd_hda_intel 18271 0 - Live 0xf83c1000 > snd_hda_codec 66845 3 > snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel, Live 0xf8359000 > snd_hwdep 4209 1 snd_hda_codec, Live 0xf82f6000 > radeon 757852 7 - Live 0xf81e1000 > ttm 47064 1 radeon, Live 0xf80e7000 > drm_kms_helper 23680 1 radeon, Live 0xf80c8000 > drm 152286 9 radeon,ttm,drm_kms_helper, Live 0xf8087000 > hwmon 1424 2 k10temp,radeon, Live 0xf804e000 > wmi 7326 0 - Live 0xf8045000 > > *# ll /sys/class/rfkill* > lrwxrwxrwx root root 2013-01-04 17:20 rfkill0 -> > ../../devices/pci0000:00/0000:00:15.0/0000:02:00.0/ieee80211/phy0/rfkill0 > lrwxrwxrwx root root 2013-01-04 17:22 rfkill3 -> > ../../devices/pci0000:00/0000:00:13.0/usb5/5-5/5-5:1.0/bluetooth/hci0/rfkill3 > <-- hci0 > > *shell@brazos:/sys/class/rfkill # cat /sys/class/rfkill/rfkill3/state* > cat /sys/class/rfkill/rfkill3/state > 1 > > *# cat /sys/class/rfkill/rfkill3/soft* > 0 > > *# cat /sys/class/rfkill/rfkill3/hard* > 0 > > *# cat /sys/class/rfkill/rfkill3/type* > bluetooth > > *# hciconfig* > hci0: Type: BR/EDR Bus: USB > BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0 > DOWN > RX bytes:0 acl:0 sco:0 events:0 errors:0 > TX bytes:15 acl:0 sco:0 commands:5 errors:0 > * > * > *# hciconfig hci0 down* > *# hciconfig hci0 up* > Can't init device hci0: No such device (19) > > *# hciconfig hci0 up* > Can't init device hci0: Connection timed out (110) > > > On the other hand, the Bluetooth works fine if I plug a USB Bluetooth > dongle. > And the Bluetooth also work well if I install Ubuntu 12.10. > > Thanks a lot > > Dean_Lin > > -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting