Closed ralflici closed 7 months ago
@ralflici thanks for reaching out. This seems to be related to some kernel changes (like this: https://github.com/torvalds/linux/commit/544a8d75f3d6e60e160cd92dc56321484598a993). I'll check if can find patch for sunxi. You're using kirkstone release right? Can you maybe try master to verify if it works or not? Thanks.
Thanks for your reply. Yes, I'm using kirkstone but to try master I would need to update the dependencies. I don't know if this is helpful but I found out that only the poweroff command triggers the kernel panic while the reboot does not.
@ralflici I don't have your board but maybe you can backport https://github.com/torvalds/linux/commit/544a8d75f3d6e60e160cd92dc56321484598a993 to kirkstone and try if it will be easier for you maybe? Thanks.
I just tried the patch and, although I god rid of that kernel panic, a different one appeared:
[ 145.711947] reboot: Power down
[ 146.228466] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000
[ 146.236155] CPU: 0 PID: 1 Comm: systemd-shutdow Not tainted 5.15.35 #1
[ 146.242692] Hardware name: Allwinner sun7i (A20) Family
[ 146.247930] [<c010d7c0>] (unwind_backtrace) from [<c0109d9c>] (show_stack+0x10/0x14)
[ 146.255707] [<c0109d9c>] (show_stack) from [<c0813800>] (dump_stack_lvl+0x40/0x4c)
[ 146.263294] [<c0813800>] (dump_stack_lvl) from [<c080fc14>] (panic+0xf0/0x2d4)
[ 146.270536] [<c080fc14>] (panic) from [<c012b108>] (do_exit+0x9f0/0x9fc)
[ 146.277257] [<c012b108>] (do_exit) from [<c014c43c>] (__do_sys_reboot+0x150/0x244)
[ 146.284849] [<c014c43c>] (__do_sys_reboot) from [<c0100060>] (ret_fast_syscall+0x0/0x48)
[ 146.292956] Exception stack(0xc1047fa8 to 0xc1047ff0)
[ 146.298016] 7fa0: 00000000 00000000 fee1dead 28121969 4321fedc 4321fedc
[ 146.306199] 7fc0: 00000000 00000000 00000000 00000058 00000000 00000000 00000000 00000000
[ 146.314380] 7fe0: 00000058 bedd4c44 b6cd9405 b6c51ae6
[ 146.319441] Rebooting in 10 seconds..
Anyway I found this forum post which suggested to apply both torvalds/linux@544a8d75f3d6e60e160cd92dc56321484598a993 and torvalds/linux@09b343038e3470e4d0da45f0ee09fb42107e5314 and it actually solved the problem. Now I don't get kernel panic on poweroff anymore.\ Thanks for your help.
@ralflici can you please post pull request with this change for kirkstone, so other can benefit from that fix also. Thanks.
@ralflici I've pushed those patches to kirkstone branch. Closing an issue.
I'm encountering a problem during every shutdown/reboot on the A20-OLinuXino-LIME board. As far as I can understand, when systemd tries to power down the board, a kernel panic occurs due to a problem on the i2c driver communicating with the power management IC (AXP209).
Here are the systemd messages
Since the problem is related to the AXP209, sometimes the system does not reboot at all and freezes on the line containing
---[ end trace 073d7082bd2319fa ]---
. \ I tried to communicate with the AXP209 through i2c-tools but was unsuccessful:\ Do you know if this is a hw related bug or a kernel bug? Any ideas how to solve the problem?