sonyxperiadev / bug_tracker

Empty repository that is used as a bugtracker for Open Devices project
52 stars 13 forks source link

Wifi, Bluetooth and ADB not working on AOSP XQ- DQ54 with android-13.0.0_r75 #841

Open gecko19 opened 3 months ago

gecko19 commented 3 months ago

Platform: : Android 13 Device: : XQ- DQ54 Kernel version: Android version: Android 13 Software binaries version:

Previously working on Has this always been a problem, or is it a new issue? New issue

Description With Android 13, branch android-13.0.0_r75, SW_binaries_for_Xperia_Android_13_5.15_v3a_yodo.img, The following issues are noticed:

  1. Wifi networks are not found.
  2. Bluetooth does not switch on
  3. ADB does not allow debugging the device, since the device does not ask to trust the connected computer.

Sorry for raising these issues.

bartcubbins commented 3 months ago
  1. WIFi simply not working because our kernel-defconfig is not synced with the kernel. Rebuilding the kernel with updated defconfigs will fix this.

  2. With bluetooth it's a bit more complicated. I sent one of the patches[1], but we need an update of the ODM with support for this chip.

    08-23 09:18:20.413  2375  2532 I vendor.qti.bluetooth@1.0-patch_dl_manager:  SocInit 
    08-23 09:18:20.413  2375  2532 D vendor.qti.bluetooth@1.0-patch_dl_manager: PatchVerReq: Sending Get Version CMD to SOC
    08-23 09:18:20.413  2375  2532 D vendor.qti.bluetooth@1.0-patch_dl_manager: HciSendVsCmd: Get Version Cmd sent to SOC
    08-23 09:18:20.417  2375  2532 I vendor.qti.bluetooth@1.0-patch_dl_manager: ReadVsHciEvent: Expected CC
    08-23 09:18:20.417  2375  2532 I vendor.qti.bluetooth@1.0-patch_dl_manager: HCI Unified command interface supported
    08-23 09:18:20.417  2375  2532 I vendor.qti.bluetooth@1.0-patch_dl_manager:      unified Current Product ID     : 0x00000019
    08-23 09:18:20.417  2375  2532 I vendor.qti.bluetooth@1.0-patch_dl_manager:      unified Current Patch Version      : 0x43fb
    08-23 09:18:20.417  2375  2532 I vendor.qti.bluetooth@1.0-patch_dl_manager:      unified Current ROM Build Version  : 0x0200
    08-23 09:18:20.417  2375  2532 I vendor.qti.bluetooth@1.0-patch_dl_manager:      unified Current SOC Version        : 0x40170200
    08-23 09:18:20.417  2375  2532 D vendor.qti.bluetooth@1.0-patch_dl_manager: HandleEdlCmdResEvt: Writing version info. in /data/vendor/bluetooth/bt_fw_version.txt
    08-23 09:18:20.417  2375  2532 D vendor.qti.bluetooth@1.0-patch_dl_manager: HandleEdlCmdResEvt: Done writing version info. in /data/vendor/bluetooth/bt_fw_version.txt
    08-23 09:18:20.417  2375  2532 E vendor.qti.bluetooth@1.0-power_manager: 
    08-23 09:18:20.417  2375  2532 E vendor.qti.bluetooth@1.0-power_manager: bt soc version  (1075249664)
    08-23 09:18:20.417  2375  2532 E vendor.qti.bluetooth@1.0-patch_dl_manager: PatchVerReq: rsp[CMD_RSP_OFFSET] = 1 ,  rsp[RSP_TYPE_OFFSET] = 0
    08-23 09:18:20.417  2375  2532 I vendor.qti.bluetooth@1.0-patch_dl_manager: SocInit: Chipset Version (0x4017020000190200)
    08-23 09:18:20.417  2375  2532 I vendor.qti.bluetooth@1.0-uart_transport: ## userial_vendor_ioctl: UART Flow Off 
    03-10 12:04:16.002     0     0 W bt_ioctl: unified Current SOC Version : 40170200
    08-23 09:18:20.437  2375  2532 I vendor.qti.bluetooth@1.0-uart_transport: ## userial_vendor_set_baud: 17
    08-23 09:18:20.439   935   935 I update_engine: [INFO:cleanup_previous_update_action.cc(112)] Executing task 8
    08-23 09:18:20.441  2375  2532 I vendor.qti.bluetooth@1.0-uart_transport: SetBaudRate: in BOTHER
    08-23 09:18:20.441  2375  2532 I vendor.qti.bluetooth@1.0-uart_transport: GetBaudRate: Current Baudrate = 3200000 bps
    08-23 09:18:20.441  2375  2532 I vendor.qti.bluetooth@1.0-uart_transport: ## userial_vendor_ioctl: UART Flow On 
    08-23 09:18:20.441  2375  2532 D vendor.qti.bluetooth@1.0-patch_dl_manager: ReadHciEvent: Expected CC
    08-23 09:18:20.441  2375  2532 I vendor.qti.bluetooth@1.0-patch_dl_manager: SocInit: Baud rate changed successfully 
    08-23 09:18:20.441  2375  2532 E vendor.qti.bluetooth@1.0-patch_dl_manager: /bt_firmware/image/tpbtfw00.tlv File Open Fail No such file or directory (2)
    08-23 09:18:20.441  2375  2532 E vendor.qti.bluetooth@1.0-patch_dl_manager:  File Opening from alternate path: Fail No such file or directory (2)
    08-23 09:18:20.441  2375  2532 D vendor.qti.bluetooth@1.0-patch_dl_manager: FrameHciCmdPkt: Sending EDL_GET_BOARD_ID
    08-23 09:18:20.441  2375  2532 D vendor.qti.bluetooth@1.0-patch_dl_manager: HCI-CMD -1: 0x1     0x0     0xfc    0x1     0x23
    08-23 09:18:20.441  2375  2532 I vendor.qti.bluetooth@1.0-patch_dl_manager: GetBoardIdReq: Sending EDL_GET_BOARD_ID
    08-23 09:18:20.441  2375  2532 D vendor.qti.bluetooth@1.0-patch_dl_manager: ReadHciEvent: Expected CC
    08-23 09:18:20.441  2375  2532 I vendor.qti.bluetooth@1.0-patch_dl_manager: HandleEdlCmdResEvt: Board Id 0 31!!
    08-23 09:18:20.441  2375  2532 E vendor.qti.bluetooth@1.0-patch_dl_manager: /bt_firmware/image/tpnv00.b31 File Open Fail No such file or directory (2)
    08-23 09:18:20.441  2375  2532 E vendor.qti.bluetooth@1.0-patch_dl_manager:  File Opening from alternate path: Fail No such file or directory (2)
    08-23 09:18:20.441  2375  2532 I vendor.qti.bluetooth@1.0-patch_dl_manager: DownloadTlvFile: /bt_firmware/image/tpnv00.b31: file doesn't exist, falling back to default file
    08-23 09:18:20.441  2375  2532 E vendor.qti.bluetooth@1.0-patch_dl_manager: /bt_firmware/image/tpnv00.bin File Open Fail No such file or directory (2)
    08-23 09:18:20.441  2375  2532 E vendor.qti.bluetooth@1.0-patch_dl_manager:  File Opening from alternate path: Fail No such file or directory (2)
    08-23 09:18:20.441  2375  2532 E vendor.qti.bluetooth@1.0-patch_dl_manager: SocInit: Download TLV file failed!
    08-23 09:18:20.441  2375  2532 E vendor.qti.bluetooth@1.0-patch_dl_manager: PerformChipInit: SoC initialization failed: -1
    08-23 09:18:20.441  2375  2532 E vendor.qti.bluetooth@1.0-uart_controller: Init failed

    As you can see Current SOC Version: 0x40170200 corresponds https://github.com/sonyxperiadev/kernel-techpack-bt-kernel/commit/cc92023f48768c7bfba04609a4e5580c85277db8#diff-83111c57fdde0eab79f556974a3aca457584d86d0e3a82c8f988e8b0b7b6cd83R128 and therefore we are incorrectly configuring the chip, which is evident even from the inappropriate firmware name for the BT chip.

  3. ADB works great in userdebug build.

[1] https://github.com/sonyxperiadev/device-sony-yodo/pull/12

bartcubbins commented 3 months ago

ping @jerpelea because when it comes to blobs we need his magic

jerpelea commented 2 months ago

let's see what can be done

gecko19 commented 2 months ago

Thanks @bartcubbins and @jerpelea .