splite Posted September 4, 2015 Share Posted September 4, 2015 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 More sharing options...
Igor Posted September 4, 2015 Share Posted September 4, 2015 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 More sharing options...
splite Posted September 5, 2015 Author Share Posted September 5, 2015 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 More sharing options...
Igor Posted September 5, 2015 Share Posted September 5, 2015 I read the conversation from driver author saying its useless trying to bring this into 3.4.xx If you can cope with 4x, go for it. Link to comment Share on other sites More sharing options...
splite Posted September 8, 2015 Author Share Posted September 8, 2015 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 More sharing options...
Igor Posted September 8, 2015 Share Posted September 8, 2015 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 More sharing options...
Recommended Posts