Jump to content

/sys/class/power_supply/axp20x-ac is missing (on CubieTruck)


Recommended Posts

Posted

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

 

Posted

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

Posted

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?

Posted

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)

Posted

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."

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines