EtlARM Posted October 21, 2020 Posted October 21, 2020 I just installed latest CubieTruck image (Armbian_20.08.2_Cubietruck_buster_current_5.8.6) and /sys/class/power_supply/axp20x-ac is missing. With older image (Armbian_20.05.4_Cubietruck_buster_current_5.4.45) it was present. Any ideas? ls /sys/class/power_supply/ lrwxrwxrwx 1 root root 0 Okt 21 00:00 axp20x-battery -> ../../devices/platform/soc/1c2ac00.i2c/i2c-0/0-0034/axp20x-battery-power-supply/power_supply/axp20x-battery lrwxrwxrwx 1 root root 0 Okt 21 00:00 axp20x-usb -> ../../devices/platform/soc/1c2ac00.i2c/i2c-0/0-0034/axp20x-usb-power-supply/power_supply/axp20x-usb
fsky3 Posted January 17, 2021 Posted January 17, 2021 Hi there EtlARM, I was debugging the same problem with different A20 board. In my case the issue was wrong device tree. After using the right device tree, symlinks under /sys/class/power_supply appeared. You might want to double-check you have this node on your DT: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6df31af7d827ab8dbcf0baec0411813d7a709150 BR, Filip
EtlARM Posted January 17, 2021 Author Posted January 17, 2021 Hi, thanks for the input Your link is for the Cubieboard 2, I have the CubieTruck (also numbered 3) Looking at: https://linux-sunxi.org/Cubietech_Cubietruck my Device-Tree should be: sun7i-a20-cubietruck.dtb On my board, this file has a timestamp: 2020-10-20 22:15:29 (like all other .dtb files) This also looks ok to me: > cat /proc/device-tree/model Cubietech Cubietruck I have no experience with Device-Tree. Has someone an idea how to evaluate that further?
EtlARM Posted January 18, 2021 Author Posted January 18, 2021 Just installed the missing Armbian updates -> no change to missing symlink. Now timestamp of Device-Tree-Binary is 2021-01-05 23:17:53 (as expected with Armbian 20.11.6)
CryBaby Posted July 9, 2021 Posted July 9, 2021 Looks like it has moved again: /sys/power/axp_pmu/ac on Armbian 21.08.0-trunk.77 Focal The old battery info is at /sys/power/axp_pmu/axp20x-battery-power-supply/power_supply/axp20x-battery "A foolish consistency is the hobgoblin of little minds."
Recommended Posts