04-03-2021, 10:12 AM
Hello,
I'm trying to use Debian on a Pinebook Pro using the official bullseye installer. (I'm aware of the unofficial installer!)
Mostly, it works quite well! For the record:
* the installer created an additional partition (dummy partition to protect the bootloader, maybe?) that confused u-boot; deleting the partition fixed the problem (I plan to reproduce the unofficial installer's nice partition scheme later);
* the screen remains blank (I installed using a serial cable) because the kernel gets confused by the video + usb-c port; this can be worked around by removing
from the .dts (in the kernel sources), rebuilding the .dtb, and inserting the .dtb in /etc/flash-kernel/dtbs. (Information from https://www.reddit.com/r/PINE64official/...ne_kernel/ );
* the battery gauge is not working (this is the reason for this post);
* there is something wrong with the audio output, which I have not investigated (the uart/audio switch is set to uart, for serial output, it would make sense to try setting it to audio first).
From dmesg, I see a few messages related to the battery gauge:
(The two lines about cw2015 are repeated a few times, later.)
My understanding is that cw2015 support has been mainlined and should work with a mainline kernel. I don't really understand what the "Not all required supplies found" message is about, but dmesg does not seem to have errors relating to the DC input not the USB-C input. This is the only occurrence of "power supply" in these messages.
The same errors appear with the original .dtb file, so this is not a side effect of the above change.
Do you know what is causing the cw2015 driver to fail? Any suggestion for a fix or workaround would be highly appreciated!
Best regards,
Lionel
I'm trying to use Debian on a Pinebook Pro using the official bullseye installer. (I'm aware of the unofficial installer!)
Mostly, it works quite well! For the record:
* the installer created an additional partition (dummy partition to protect the bootloader, maybe?) that confused u-boot; deleting the partition fixed the problem (I plan to reproduce the unofficial installer's nice partition scheme later);
* the screen remains blank (I installed using a serial cable) because the kernel gets confused by the video + usb-c port; this can be worked around by removing
Code:
&cdn_dp {
status = "okay";
};
* the battery gauge is not working (this is the reason for this post);
* there is something wrong with the audio output, which I have not investigated (the uart/audio switch is set to uart, for serial output, it would make sense to try setting it to audio first).
From dmesg, I see a few messages related to the battery gauge:
Code:
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.10.0-3-arm64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.1) #1 SMP Debian 5.10.13-1 (2021-02-06)
[ 0.000000] Machine model: Pine64 Pinebook Pro
(snip)
[ 7.150366] power_supply cw2015-battery: Not all required supplies found, defer probe
[ 7.150384] cw2015 4-0062: Failed to register power supply
(snip)
My understanding is that cw2015 support has been mainlined and should work with a mainline kernel. I don't really understand what the "Not all required supplies found" message is about, but dmesg does not seem to have errors relating to the DC input not the USB-C input. This is the only occurrence of "power supply" in these messages.
The same errors appear with the original .dtb file, so this is not a side effect of the above change.
Do you know what is causing the cw2015 driver to fail? Any suggestion for a fix or workaround would be highly appreciated!
Best regards,
Lionel