Jump to content

bpi m1 with a battery: kernel panic when shutdown -h 0


Recommended Posts

Hello armbianers !


Armbian 22.11.1 Bullseye with Linux 5.15.80-sunxi on a banana pi m1


I've connected a lipo battery to my bpi m1, and now when I try to shutdown -h 0, it ends up in a kernel panic and instead of shutting down it remains powered up. Is there anything I can do to fix that? I'd know how to shut it down talking to the axp209 via i2c, but I'm not sure how/where to put that, or if that would be or not the proper way to go.





Link to comment
Share on other sites

Ok, never mind. I went in a loop to [ armbian-config/switch to other kernels, chose the next newer kernel, apt update && upgrade ], and after a few rounds I got to:


Armbian 22.11.1 Bullseye with bleeding edge Linux 6.0.10-sunxi


In which everything works as it should ! :-)


shutdown -h 0 is now turning it off.




Link to comment
Share on other sites



Lemaker Banana Pi M1

Armbian 22.11.1 Bullseye with bleeding edge Linux 6.0.10-sunxi


The problem with the kernel 6.0.10 is that /sys/power/axp_pmu/ is no longer there... nor anywhere else as far I know.


tree /sys/power/axp_pmu/battery/


├── amperage

├── capacity

├── charge

├── charging

├── connected

├── power

├── ts_voltage

└── voltage


Any ideas why? Can I fix that? How?




Edited by seif
Link to comment
Share on other sites

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.

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.

  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines