How to enable Bluetooth in CIC?
by CW1 Huang(黃志偉)
Hi,
I’m testing CIC with Ubuntu-mate 20.04 on an Apollo Lake tablet.
Basically it works fine except Bluetooth.
I used the command to set it up:
sudo ./setup-aic –p wifi,bt -ns
But the Bluetooth service crashes continuously after Android booted
I saw the error in logcat:
01-25 16:08:37.895 4827 4845 D bt_hci : hci_module_start_up starting async portion
01-25 16:08:37.896 68 68 I bt_vendor: bt_vendor_init
01-25 16:08:37.896 68 68 I bt_vendor: Using interface hci0
01-25 16:08:37.896 68 68 D android.hardware.bluetooth(a)1.0-service.vbt: Open vendor library loaded
01-25 16:08:37.896 68 68 I bt_vendor: bt_vendor_op op 0
01-25 16:08:37.896 68 68 I bt_vendor: bt_vendor_op op 0 retval 0
01-25 16:08:37.896 68 68 I bt_vendor: bt_vendor_op op 3
01-25 16:08:37.896 68 68 I bt_vendor: bt_vendor_open
01-25 16:08:37.896 68 68 E bt_vendor: socket create error Address family not supported by protocol
01-25 16:08:37.896 68 68 I bt_vendor: bt_vendor_op op 3 retval -1
01-25 16:08:37.896 68 68 E android.hardware.bluetooth(a)1.0-service.vbt: Open: fd_count -1 is invalid!
01-25 16:08:37.896 4827 4861 F : [0125/160837.896159:FATAL:hci_layer_android.cc(78)] Check failed: status == Status::SUCCESS.
01-25 16:08:37.896 4827 4861 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 4861 (hci_thread), pid 4827 (droid.bluetooth)
If I use:
sudo ./setup-aic –p wifi –m bt –ns
It seems Bluetooth was disabled at all. There is no Bluetooth item in the Settings app.
On the other hand, Wifi pass-through works well in CIC.
I’m using the CIC_01.20.03.36_A09 released binary.
I also tried to build CIC from source and got the same result.
I saw Bluetooth(r) 4.2 is explicitly listed in the features list of CIC_01.20.03.36_A09.
What should I do to enable Bluetooth support in CIC?
PS. Bluetooth works well in the Ubuntu host.
===================================================================================================================================
This email and any attachments to it contain confidential information and are intended solely for the use of the individual to whom it is addressed.If you are not the intended recipient or receive it accidentally, please immediately notify the sender by e-mail and delete the message and any attachments from your computer system, and destroy all hard copies. If any, please be advised that any unauthorized disclosure, copying, distribution or any action taken or omitted in reliance on this, is illegal and prohibited. Furthermore, any views or opinions expressed are solely those of the author and do not represent those of ASUSTeK. Thank you for your cooperation.
===================================================================================================================================
1 month, 1 week
[CELADON] [CIV] [RMR0] [Production Manifest Release] [CML NUC] : CIV_01.20.04.50_A11
by Balan, Swaroop
[Single asset]
CIV R MR0 CELADON CIV_01.20.04.50_A11
[cid:image002.png@01D6E8DD.9CC71EC0]
January 13th 2021 - The Android SI team announces [CML-NUC] [CIV R MR0] [Production Manifest Release]
This Release supports the Platform: CML NUC:
* Manifest : https://github.com/projectceladon/manifest/blob/master/stable-build/CIV_0...
* Release Notes : https://github.com/projectceladon/celadon-documentation/blob/master/sourc...
* Documentation : https://01.org/projectceladon/documentation
CIV_01.20.04.50_A11<https://github.com/projectceladon/celadon-documentation/blob/master/sourc...>
* This is a Production Manifest Release for evaluation and development purposes. This release is supported on CML NUC - NUC10i7FN* Celadon in VM.
New Features
* API Level 30 & FCM target Level 5
* Other Changes that came as part of API level Up
* AIDL for Power and Light HALs
* Audio & Audio effects HAL 6.0
* Health HAL 2.1
* Boot HAL upgraded to 1.1
* Upgraded Mainline modules
* Soft restart
* Updatable APEX
* Config store HAL deprecated
* Graphics Memory Allocator (Gralloc) 4.0
* HWC 2.4 support for Display
Existing Features
* Trusty Hardware Seed binding
* Power Management - Suspend,Resume
* Android key Input Manager Framework is implemented for Power & Volume buttons
* Integrated Sensor Hub Enablement for Android Supported Sensors
* Ethernet Wired Network Bridge
* Android Thermal HAL and Thermal Manager Service
* BZIP2 performance improvements
* Audio Solution based on HDA
* Bluetooth Control from Android in VM
* HDMI Audio Output Support
* Virtio-gpu Support
* File Sharing between Guest OSes
* SDHCI mediation enabled and supported SD card
* CIV launch script for SD Card: sudo -E ./scripts/start_android_qcow2.sh --sdonly
* Graphics GVT-g and GVT-d support
* HDMI display support
* Mass Storage USB 2.0 and 3.x devices is supported
* Adb over WIFI and Ethernet is supported
* Audio playback over USB Headset and HDMI are supported
* Setting Proxy for Wireless Network
* Wi-Fi 802.11 a/b/g/n/ac and Bluetooth 4.2
* Wired Ethernet support
* Wifi Control from Android in VM using usb passthrough
* To passthrough USB host controller in CML NUC, run the CIV launch script like this: sudo -E ./start_android_qcow2.sh --usb-host-passthrough
* Power Management - Shutdown and Reboot
* Ethernet Wired Network Bridge is enabled
* Android Time keeping with Host OS
* Product Information to Guest OS
* ODM partition for vendor customizations
* Only logitech C922 pro stream webcam is supported for all camera related testing
* Video Codec support on celadon
Decoder
* AVC High profile @ Level 5.1 (4k@30fps<mailto:4k@30fps>)
* HEVC Main and Main 10 profile @ Level 5 (4k@30fps<mailto:4k@30fps>)(Main 10 with BT2020 and ST2084 information is not supported)
* VP9 profile 0 @ Level 5 (4k@30fps<mailto:4k@30fps>)
* Vp8 8 bits 1080p@60fps<mailto:1080p@60fps>
Encoder
* AVC High profile @ level 4.1 (1080P@30fps<mailto:1080P@30fps>)
* HEVC Main profile @ Level 4 (1080P@30fps<mailto:1080P@30fps>)
* Audio decoders supported: MP3, AAC-LC, AAC-ELD, HEAAC, HEAAC-V2, VORBIS, OPUS, MIDI, FLAC, PCM/WAV
* Generic storage HAL supported
* SATA emulation is supported
* 9pfs based file transfer
* Security SELinux enforcing, Trusty TEE, File Based Encryption, Trusty, Keymaster 3.0
* User guide:
? SELinux Configuration and Rules
? How to Enable or Disable Trusty for Debugging
Important Remarks
* For CaaS-CIV
* Recommended system requirements for Host
? CPU: 4 cores or more
? RAM: 4GB or more
? Disk: 40GB or more
* Recommended configuration for CPU cores & Memory allocated to Guest VM
? CPU: [default 1 core]
? RAM: [default 2GB]
* Note: Allocating 100% Host resources in terms of memory and cores to guest is not recommended currently and it can cause instabilities.
Known Issues
* After deprecation of sdcardFS in Android R, Storage stats are not having correct values
* ADB over DBC is not working
* /data/logs folder not seen after flashing the image
* Logs, Kpanic and hdcp directory not created in /data with CONFIG_SDCARDFS disabled
* Android is not booting in Mosaic mode
* GLrenderer : Virtio or Google swiftshader : Unable to launch Android
* Guest auto exit after several suspend/resume
* Suspend and wake up device, Wifi will re-connect
* GTS Exo-player failure due to DRM process crash
* After changing resolution, recorded video fallsback to default resolution
* BLE Scanner role is not working
* Sometimes Device doesnt show simultaneous two camera preview
* Camera Flicker in Preview and Recording
* Hotplug support for USB Camera fails
* Device hang , preview lags and camera application not responding
* AV1 Video doesn't play smoothly
* Unable to get media volume with adb shell
Validation Results
|C|<https://github.com/projectceladon/celadon-documentation/blob/master/sourc...> build has been validated on CML NUC - NUC10i7FN* in the following function domains:
Component
Results
Comments
Wi-Fi
OK
Host wifi is switched to Android UI in QEMU using usb pass through
BT
OK
Bluetooth is working
Audio over USB
OK
MP3, AAC-LC, AAC-ELD, HEAAC, HEAAC-V2, VORBIS, OPUS, FLAC, PCM/WAV formats supported
Adb connect over WIFI
OK
Adb connect over Ethernet
OK
Display /Touch and Gesture
OK
Security
OK
Boot
OK
Boots on QEMU 4.2.0
Ethernet
OK
Image Flash
OK
Web browsing
OK
Video playback
OK
H264/H265/MPEG2/VP8/VP9 Video Playback
USB
OK
Keyboard , Mouse , Pen drive
Tools/Configuration
* QEMU Version 4.2.0
* Host Ubuntu 20.04
* Host Kernel Version 5.4.76
* Guest kernel 5.4.76
Helpful Hints / Links
* Build Celadon in VM https://01.org/projectceladon/documentation/getting-started/build-source#...
* Flash Steps : https://01.org/projectceladon/documentation/getting-started/on-vm#build-c...
* Manifest Link :https://github.com/projectceladon/manifest/blob/master/stable-build/CIV_01.20.04.50_A11.xml
* If you plan to use Celadon in product, please replace all the test keys under device/intel/build/testkeys/ with your product key.
* Steps To build the host kernel for this Manifest
* Download caas-releasefiles-userdebug.tar.gz and put it under ~/civ
* cd ~/civ && tar zxvf caas-releasefiles-userdebug.tar.gz
* cd patches/kernel/lts2019-chromium
* ./build_weekly.sh
* Deb files will be generated in patches/kernel/lts2019-chromium/host_kernel
* sudo dpkg -i *<https://github.com/projectceladon/celadon-documentation/blob/master/sourc...>.deb
* Update grub to wait indefinitely for kernel selection on boot
? sudo vim /etc/default/grub
? Comment out GRUB_TIMEOUT_STYLE=hidden #GRUB_TIMEOUT_STYLE=hidden
? Uncomment following line and modify grub timeout to -1 for indefinite wait or 5 for 5secs wait #GRUB_TIMEOUT=-1
? Save the file
? sudo update-grub
* sudo reboot
* Select compiled kernel from "Advanced options for Ubuntu"
To subscribe/unsubscribe:
- subscribe/unsubscribe celadon mailing list using : https://lists.01.org/postorius/lists/celadon.lists.01.org/
1 month, 2 weeks