This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/PROCESSOR-SDK-AM335X: RTL8723B firmware load fails

Part Number: PROCESSOR-SDK-AM335X

Tool/software: Linux

Hey ,

I am using 4.3 yocto build kernel with debian 8.7 rootfs ,wants to add rtl8723b wifi/bluetooth driver. sometimes i am facing firmware issue. Initially on the first boot the device works fine but after 2nd or further boot the driver search for firmware before the rootfs gets mounted

log when it gets fail

----------------------------------------------------------------------------------------------------------

usb 1-1: New USB device found, idVendor=0bda, idProduct=b720
[    1.981507] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.988840] usb 1-1: Product: 802.11n WLAN Adapter
[    1.993689] usb 1-1: Manufacturer: Realtek
[    1.997920] usb 1-1: SerialNumber: 00e04c000001
[    2.008425] Bluetooth: hci0: rtl: examining hci_ver=06 hci_rev=000b lmp_ver=06 lmp_subver=8723
[    2.017245] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_fw.bin
[    2.023520] bluetooth hci0: Direct firmware load for rtl_bt/rtl8723b_fw.bin failed with error -2
[    2.032543] Bluetooth: hci0: Failed to load rtl_bt/rtl8723b_fw.bin
[    2.057454] EXT4-fs (mmcblk0p2): recovery complete
[    2.063442] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.071720] VFS: Mounted root (ext4 filesystem) on device 179:2.
----------------------------------------------------------------------------------------------------------------------------------------------------

log when it works

--------------------------------------------------------------------------------------------------------------------------------------------

EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.893956] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.918292] devtmpfs: mounted
[    2.923096] Freeing unused kernel memory: 372K (c0a8f000 - c0aec000)
[    2.935513] usb 1-1: New USB device found, idVendor=0bda, idProduct=b720
[    2.944423] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.953735] usb 1-1: Product: 802.11n WLAN Adapter
[    2.959698] usb 1-1: Manufacturer: Realtek
[    2.964861] usb 1-1: SerialNumber: 00e04c000001
[    3.000335] Bluetooth: hci0: rtl: examining hci_ver=06 hci_rev=000b lmp_ver=06 lmp_subver=8723
[    3.011374] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_fw.bin
[    3.044901] Bluetooth: hci0: rom_version status=0 version=1

dmesg op when it does not work

------------------------------------------------

dmesg | grep -i bluetooth
[    0.292846] Bluetooth: Core ver 2.21
[    0.292952] Bluetooth: HCI device and connection manager initialized
[    0.292987] Bluetooth: HCI socket layer initialized
[    0.293016] Bluetooth: L2CAP socket layer initialized
[    0.293079] Bluetooth: SCO socket layer initialized
[    1.671406] Bluetooth: RFCOMM TTY layer initialized
[    1.676467] Bluetooth: RFCOMM socket layer initialized
[    1.681703] Bluetooth: RFCOMM ver 1.11
[    1.685556] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    1.691558] Bluetooth: HIDP socket layer initialized
[    2.007864] Bluetooth: hci0: rtl: examining hci_ver=06 hci_rev=000b lmp_ver=06 lmp_subver=8723
[    2.016660] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_fw.bin
[    2.023008] bluetooth hci0: Direct firmware load for rtl_bt/rtl8723b_fw.bin failed with error -2
[    2.031956] Bluetooth: hci0: Failed to load rtl_bt/rtl8723b_fw.bin
[   11.297150] Bluetooth: hci0: rtl: examining hci_ver=06 hci_rev=000b lmp_ver=06 lmp_subver=8723
[   11.444429] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_fw.bin
[   11.505598] Bluetooth: hci0: rom_version status=0 version=1

-------------------------------------------------

dmesg op when it works

-------------------------------------------

dmesg | grep -i bluetooth
[    0.292830] Bluetooth: Core ver 2.21
[    0.292934] Bluetooth: HCI device and connection manager initialized
[    0.292969] Bluetooth: HCI socket layer initialized
[    0.292998] Bluetooth: L2CAP socket layer initialized
[    0.293059] Bluetooth: SCO socket layer initialized
[    1.671409] Bluetooth: RFCOMM TTY layer initialized
[    1.676461] Bluetooth: RFCOMM socket layer initialized
[    1.681696] Bluetooth: RFCOMM ver 1.11
[    1.685548] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    1.691549] Bluetooth: HIDP socket layer initialized
[    2.010845] Bluetooth: hci0: rtl: examining hci_ver=06 hci_rev=000b lmp_ver=06 lmp_subver=8723
[    2.020162] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_fw.bin
[    2.034734] Bluetooth: hci0: rom_version status=0 version=1

hey sir can you tell me the reason of this random behaviour.

with regards

pranav