Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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

 

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

  • Author

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?

  • Author

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)

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

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.