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.

A20-Lime2 reboot at shutdown

Featured Replies

Hello,

 

I encounter a strange behaviour with Lime2. When on battery and AC plug-in if I ask for a shutdown -h now, the board reboot by itself and the system does not stop. When on battery only, the board stop with the command shutdown -h now

 

I read about those 2 variables

CONFIG_MFD_AXP20X=y
CONFIG_REGULATOR_AXP20X=y

to set in

u-boot/configs/A20-OLinuXino-Lime2_defconfig

But after building the a u-boot package with compil.sh this setting does not have any effect...

zgrep MFD /proc/config.gz

command does not show the CONFIG_MFD_AXP20X=y variable

 

Did I miss something, any ideas ?

 

Thanks

Florian

 

  • Author

Hello Igor,

 

Thank you, I using it as head less server, I don't need video/audio, so I think kernel 4.x would be a good bet !

 

But in your opinion kernel 3.x is too buggy to try anything to patch it ?

 

Thank you any way

  • Author

Hey Igor,

 

I made the move to 4x, however dealing with device tree is terrible !

 

Shutdown -h now is working and it properly shut down the board

When I plug-in the power supply the board is starting up by itself, I think it is possible to disable this behaviour in device tree

 

The hardest part then is to understand device tree. I have to admit that is quite high level and I have the felling I have to write some kind of driver to achieve my goal ! Do you know if there is anything done so far for Olimex board except this minimal DTS file : https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts

 

Thanks

Florian

Huh, I don't know if I can help you here either.

 

This functionality is shared among all Allwinner boards so it won't be in this file, but somewhere here:

#include "sun7i-a20.dtsi"
#include "sunxi-common-regulators.dtsi"

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pinctrl/sun4i-a10.h>

... then you could possible override it in Olimex dts.

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.