EtlARM 5 Posted October 21, 2020 Share 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 0 Quote Link to post Share on other sites More sharing options...
fsky3 0 Posted January 17 Share Posted January 17 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 0 Quote Link to post Share on other sites More sharing options...
EtlARM 5 Posted January 17 Author Share Posted January 17 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? 0 Quote Link to post Share on other sites More sharing options...
EtlARM 5 Posted January 18 Author Share Posted January 18 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) 0 Quote Link to post Share on other sites More sharing options...
CryBaby 0 Posted July 9 Share Posted July 9 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." 0 Quote Link to post Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.