Jump to content

__Dirk__

Members
  • Posts

    16
  • Joined

  • Last visited

Reputation Activity

  1. Like
    __Dirk__ got a reaction from _JK_ in Finally.... got Bluetooth working on Pine64 H64 model-B   
    All,
     
    Don´t know if anybody else did it... but I got Bluetooth running by modifying the device tree and adding support for communication between the RTL8723BS and UART1 and loading the needed RTL8723B firmware.
     
    Distro: Armbian Buster
    Kernel version: 5.4.30-sunxi64 
     
    This is how I did it:
     
    1) Create a patch (xx.patch) with the next content and place it in  ~/build/userpatches/kernel/sunxi-current/
     
    --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts    2020-04-06 12:37:45.584912094 +0200
    +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts    2020-04-06 12:37:45.584912094 +0200
    @@ -498,6 +498,21 @@
         status = "okay";
     };
     
    +/* On Wifi/BT connector, with RTS/CTS */
    +&uart1 {
    +    pinctrl-names = "default";
    +    pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
    +    status = "okay";
    +
    +    bluetooth {
    +        compatible = "realtek,rtl8723bs-bt";
    +        device-wake-gpios = <&r_pio 1 1 GPIO_ACTIVE_HIGH>; /* PM1 */
    +        host-wake-gpios = <&r_pio 1 2 GPIO_ACTIVE_HIGH>; /* PM2 */
    +        reset-gpios = <&r_pio 1 4 GPIO_ACTIVE_LOW>; /* PM4 */
    +        post-power-on-delay-ms = <200>;
    +    };
    +};
    +
     &usb2otg {
         dr_mode = "host";
         status = "okay";
     
    2) Run sudo ./compile with your favorite  config (Desktop/server/blablabla)
    3) Flash the image to an SD card or eMMC module.
    4) Start your Pine64 H64 model-B
    4) Connect to a network and run the firmware update/upgrades (armbian-config) and install the Bluetooth tools.
    5) DO NOT ENABLE SERIAL 1 !!!! in armbian-config
    6) Download the next git repo to your board:  https://github.com/lwfinger/rtl8723bs_bt.git
    7) Unpack the archive, run make
    8) Copy the next firmware files to /lib/firmwares/rtl_bt:
      sudo cp rtlbt_fw_new /lib/firmware/rtl_bt/rtl8723bs_fw.bin sudo cp rtlbt_config /lib/firmware/rtl_bt/rtl8723bs_config.bin 9) Reboot
     
    Expected dmesg output:
     
    [   45.107273] Bluetooth: HCI UART driver ver 2.3
    [   45.107279] Bluetooth: HCI UART protocol H4 registered
    [   45.107281] Bluetooth: HCI UART protocol BCSP registered
    [   45.107329] Bluetooth: HCI UART protocol LL registered
    [   45.107331] Bluetooth: HCI UART protocol ATH3K registered
    [   45.107375] Bluetooth: HCI UART protocol Three-wire (H5) registered
    [   45.107509] Bluetooth: HCI UART protocol Intel registered
    [   45.107592] Bluetooth: HCI UART protocol Broadcom registered
    [   45.107614] Bluetooth: HCI UART protocol QCA registered
    [   45.107616] Bluetooth: HCI UART protocol AG6XX registered
    [   45.107642] Bluetooth: HCI UART protocol Marvell registered

    [   45.845446] Bluetooth: hci0: RTL: examining hci_ver=06 hci_rev=000b lmp_ver=06 lmp_subver=8723
    [   45.849521] Bluetooth: hci0: RTL: rom_version status=0 version=1
    [   45.849529] Bluetooth: hci0: RTL: loading rtl_bt/rtl8723bs_fw.bin
    [   46.055000] Bluetooth: hci0: RTL: loading rtl_bt/rtl8723bs_config.bin
    [   46.096579] Bluetooth: hci0: RTL: cfg_sz 55, total sz 23699
     
    [   46.929071] Bluetooth: hci0: RTL: fw version 0x373e6962
     
     
    'hciconfig list' output:
     
    hci0:    Type: Primary  Bus: UART
        BD Address: 48:46:C1:3A:6B:5F  ACL MTU: 820:8  SCO MTU: 255:16
        UP RUNNING PSCAN ISCAN 
        RX bytes:1982677 acl:3028 sco:0 events:491 errors:0
        TX bytes:91688 acl:232 sco:0 commands:225 errors:0
     
    File transfer from Pine to Samsung is working... haven't tested anything else..
     
    Regards,
     
    __Dirk__ 

  2. Like
    __Dirk__ got a reaction from Tido in Finally.... got Bluetooth working on Pine64 H64 model-B   
    All,
     
    Don´t know if anybody else did it... but I got Bluetooth running by modifying the device tree and adding support for communication between the RTL8723BS and UART1 and loading the needed RTL8723B firmware.
     
    Distro: Armbian Buster
    Kernel version: 5.4.30-sunxi64 
     
    This is how I did it:
     
    1) Create a patch (xx.patch) with the next content and place it in  ~/build/userpatches/kernel/sunxi-current/
     
    --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts    2020-04-06 12:37:45.584912094 +0200
    +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts    2020-04-06 12:37:45.584912094 +0200
    @@ -498,6 +498,21 @@
         status = "okay";
     };
     
    +/* On Wifi/BT connector, with RTS/CTS */
    +&uart1 {
    +    pinctrl-names = "default";
    +    pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
    +    status = "okay";
    +
    +    bluetooth {
    +        compatible = "realtek,rtl8723bs-bt";
    +        device-wake-gpios = <&r_pio 1 1 GPIO_ACTIVE_HIGH>; /* PM1 */
    +        host-wake-gpios = <&r_pio 1 2 GPIO_ACTIVE_HIGH>; /* PM2 */
    +        reset-gpios = <&r_pio 1 4 GPIO_ACTIVE_LOW>; /* PM4 */
    +        post-power-on-delay-ms = <200>;
    +    };
    +};
    +
     &usb2otg {
         dr_mode = "host";
         status = "okay";
     
    2) Run sudo ./compile with your favorite  config (Desktop/server/blablabla)
    3) Flash the image to an SD card or eMMC module.
    4) Start your Pine64 H64 model-B
    4) Connect to a network and run the firmware update/upgrades (armbian-config) and install the Bluetooth tools.
    5) DO NOT ENABLE SERIAL 1 !!!! in armbian-config
    6) Download the next git repo to your board:  https://github.com/lwfinger/rtl8723bs_bt.git
    7) Unpack the archive, run make
    8) Copy the next firmware files to /lib/firmwares/rtl_bt:
      sudo cp rtlbt_fw_new /lib/firmware/rtl_bt/rtl8723bs_fw.bin sudo cp rtlbt_config /lib/firmware/rtl_bt/rtl8723bs_config.bin 9) Reboot
     
    Expected dmesg output:
     
    [   45.107273] Bluetooth: HCI UART driver ver 2.3
    [   45.107279] Bluetooth: HCI UART protocol H4 registered
    [   45.107281] Bluetooth: HCI UART protocol BCSP registered
    [   45.107329] Bluetooth: HCI UART protocol LL registered
    [   45.107331] Bluetooth: HCI UART protocol ATH3K registered
    [   45.107375] Bluetooth: HCI UART protocol Three-wire (H5) registered
    [   45.107509] Bluetooth: HCI UART protocol Intel registered
    [   45.107592] Bluetooth: HCI UART protocol Broadcom registered
    [   45.107614] Bluetooth: HCI UART protocol QCA registered
    [   45.107616] Bluetooth: HCI UART protocol AG6XX registered
    [   45.107642] Bluetooth: HCI UART protocol Marvell registered

    [   45.845446] Bluetooth: hci0: RTL: examining hci_ver=06 hci_rev=000b lmp_ver=06 lmp_subver=8723
    [   45.849521] Bluetooth: hci0: RTL: rom_version status=0 version=1
    [   45.849529] Bluetooth: hci0: RTL: loading rtl_bt/rtl8723bs_fw.bin
    [   46.055000] Bluetooth: hci0: RTL: loading rtl_bt/rtl8723bs_config.bin
    [   46.096579] Bluetooth: hci0: RTL: cfg_sz 55, total sz 23699
     
    [   46.929071] Bluetooth: hci0: RTL: fw version 0x373e6962
     
     
    'hciconfig list' output:
     
    hci0:    Type: Primary  Bus: UART
        BD Address: 48:46:C1:3A:6B:5F  ACL MTU: 820:8  SCO MTU: 255:16
        UP RUNNING PSCAN ISCAN 
        RX bytes:1982677 acl:3028 sco:0 events:491 errors:0
        TX bytes:91688 acl:232 sco:0 commands:225 errors:0
     
    File transfer from Pine to Samsung is working... haven't tested anything else..
     
    Regards,
     
    __Dirk__ 

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines