Skip to content

Conversation

tomfitzhenry
Copy link
Contributor

@tomfitzhenry tomfitzhenry commented Jul 28, 2021

Fixes #395.

See commit messages for explanation.

devices/pine64-pinephone/kernel/config.aarch64 has had bin/kernel-normalize-config executed against it.

Fixes #395

This defers driver load time until the the firmware is available.

Before this commit:

```
$ dmesg | grep bluetooth
[    2.334077] bluetooth hci0: Direct firmware load for
rtl_bt/rtl8723cs_xx_fw.bin failed with error -2

$ dmesg | grep mount
[   53.621916] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[   55.970923] EXT4-fs (dm-0): re-mounted. Opts: (null). Quota mode: none.
[   62.637665] systemd[1]: Starting Remount Root and Kernel File Systems...
[   62.794153] EXT4-fs (dm-0): re-mounted. Opts: (null). Quota mode: none.
[   62.893141] systemd[1]: Finished Remount Root and Kernel File Systems.
[   90.878063] EXT4-fs (mmcblk2p3): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[   90.925604] EXT4-fs (mmcblk2p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
```

After this commit:

```
$ dmesg | grep 8723
[   63.155972] 8723cs: module is from the staging directory, the quality is unknown, you have been warned.
[   64.973319] Bluetooth: hci0: RTL: loading rtl_bt/rtl8723cs_xx_fw.bin
[   65.171927] Bluetooth: hci0: RTL: loading rtl_bt/rtl8723cs_xx_config-pinephone.bin

$ bluetoothctl list
Controller XX:XX:XX:XX:XX:XX nixos [default]
```
@tomfitzhenry
Copy link
Contributor Author

This PR is not needed. To get bluetooth working, it's sufficient to:

  mobile.boot.stage-1.firmware = [
    config.mobile.device.firmware
  ];

Prior to this PR, I only had:

  hardware.firmware = [
    config.mobile.device.firmware
  ];

... which was not sufficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

pinephone: bluetooth firmware failing to load
2 participants