Jump to content

A20-Lime2 reboot at shutdown


splite

Recommended Posts

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

 

Link to comment
Share on other sites

It's a known AXP209 driver bug and the only known solution is migrating to vanilla kernel (4.x) where this is fixed - perhaps even written from scratch.

 

New kernel has other limitations.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines