After some configuration changes on A13 Debian I executed "shutdown -r now". The system did shutdown but did not restart again; I had to use the reset button instead.
Looking at the messages log there is an entry: "shutting down for system reboot" so, at some point my reboot intentions were accepted.
I did try the command and left the system for 10 minutes in case the watchdog might pick this up but I don't think the watchdog is operational at this time.
Any idea why the restart never occurs?
i always use the command: reboot
I tried <reboot> and that doesn't work either - it just shuts down the processor. I also tried <poweroff> and the end result was the same. This is not surprising since <halt>, <reboot> and <poweroff> are all really <halt> anyway.
In both cases to restart the system after the "shutdown" I have to press the reset button not power so the board is not powered off it seems.
The question is what state is the board in after <reboot> or <poweroff>? Is it in some form of hibernation? The USB network dongle LED goes off so it is it just halted/paused?
Providing the system state is ok to change the SD card or plug in a USB device then, for me, a complete software controlled power-off is not a deal breaker. The ability to reset correctly using <reboot> or <shutdown -r now> is more important as I might be 2000 miles away and unable to reach the reset button. Since currently we don't have a working watchdog (subject of another post) then I need to crack this problem with a reliable solution.
Update:
Just once, the <reboot> command did work for me. I need to reproduce the conditions but it seems there is an interaction going on somewhere with a file or a part of the A13. Once we understand this I think a workaround or permanent solution ought to be possible.
If it helps I am using the A13-wifi with USB keyboard and mouse with Olimex USB network dongle and Olimex supplied Debian Linux. Nothing else is attached to the A13 and no extra software has been downloaded.
shutdown -rn now ?
change sd card
My version of <shutdown> does not have the -m option.
It's
-n
Cheers
mmmm, shutting down without syncing data seems a bit extreme and might leave the SD card corrupted. The command option is only allowed with halt or reboot.
Anyway, with a spare SD card to hand, I tried <reboot -n> to see what happens. The result is just a "shutdown" which requires a press of the reset button to restart.
I quoted shutdown as the actual state of the system is not clear to me. The Ethernet dongle LED is off and just the single power LED is lit. Is this actually powered off or some form of suspended state? If powered off then why does reset restart it rather than power?
I'm going to try my other system with a fresh SD card to see if this is a one-off or normal response.
Similar issues with A13-Olinuxino Rev.C using different images and kernels.
Reboot command works time to time (~50/50).
When it won't reboot last dmesg lines are:
==========
* Will now restart
<6>[sw-ohci1]: shutdown start
[sw-ohci1]: close clock
<6>[sw-ohci1]: shutdown end
<6>[sw-ehci1]: shutdown start
[sw-ehci1]: Set USB Power OFF
[sw-ehci1]: close clock
<6>[sw-ehci1]: shutdown end
[sw_hcd0]: sw_hcd shutdown start
[sw_hcd_host0]: Set USB Power OFF
[sw_hcd0]: sw_hcd shutdown end
<0>Restarting system.
[ 346.790000] Restarting system.
==========
... and hangs.
Somebody knows how to fix it?
This problem makes board useless for industrial applications till fixed.
I know you've said "different images and kernels" but can you list which ones?
Quote from: anubis on March 22, 2013, 02:54:27 AM
Similar issues with A13-Olinuxino Rev.C using different images and kernels.
Reboot command works time to time (~50/50).
When it won't reboot last dmesg lines are:
==========
* Will now restart
<6>[sw-ohci1]: shutdown start
[sw-ohci1]: close clock
<6>[sw-ohci1]: shutdown end
<6>[sw-ehci1]: shutdown start
[sw-ehci1]: Set USB Power OFF
[sw-ehci1]: close clock
<6>[sw-ehci1]: shutdown end
[sw_hcd0]: sw_hcd shutdown start
[sw_hcd_host0]: Set USB Power OFF
[sw_hcd0]: sw_hcd shutdown end
<0>Restarting system.
[ 346.790000] Restarting system.
==========
... and hangs.
Somebody knows how to fix it?
This problem makes board useless for industrial applications till fixed.
on the schematic the axp209 has the poweron/off on pin47 so one of the Gpios needs to send a pulse to this pin during shutdown sequence.
there is suppose to be a PWR_But on the board also but I can't locate it.
On my WiFi board PWR_BUT is by the power jack and labelled PWR_BUT.
John
Thanks John, I completely missed it.
Just tested all public Images.
Problem is reproduced on all 3.4.29 kernel images only:
3.4.29-jwischka-3.4-video-20130308-R18+
3.4.29-kickstart-anubis-R1+
I am having the issue with "3.0.57+" as well.
Has anyone looked into the driver of AXP209.
I am looking into the source, finding out how does it toggle "PWROK" to reset the uP.
I can't even get my board to reboot reliably from uboot! (Using its reset command.)
Looking at the code it relies on the chip's watchdog to reset the system.
John
Hi All,
looks like it's watchdog related.
I reproduced bug using hansg's Fedora image (from linux-sunxi google group)
http://scotland.proximity.on.ca/contrib-images/hansg/
Traces are on so it's possible to see what is going on...
It hangs and trying to reboot each 30 seconds...
(last dump block repeating each 30 sec).
BTW, jwischka, do you have watchdog support compiled in you kernel?
(I mean 3.4.29-jwischka-3.4-video-20130308-R18+)
--------------
Unmounting file systems.
Not all file systems unmounted, 1 left.
Cannot finalize remaining file systems and devices, giving up.
[ 81.990000] [sw-ohci1]: close clock
[ 82.010000] [sw-ehci1]: Set USB Power OFF
[ 82.020000] [sw-ehci1]: close clock
[ 82.030000] wrn: hcd is disable, need not shutdown
[ 82.050000] Restarting system.
[ 108.110000] BUG: soft lockup - CPU#0 stuck for 22s! [systemd-shutdow:1]
[ 108.110000] Modules linked in: nf_conntrack_netbios_ns nf_conntrack_broadcast ipt_MASQUERADE ip6table_mangle ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6
iptable_nat nf_nat bnep iptable_mangle bluetooth nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ebtable_filter ebtables ip6table_filter ip6_table
s vfat fat snd_usb_audio snd_hwdep snd_usbmidi_lib snd_rawmidi uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core videodev media joydev dm9601 qf9700
usbnet uinput
[ 108.110000]
[ 108.110000] Pid: 1, comm: systemd-shutdow
[ 108.110000] CPU: 0 Not tainted (3.4.29.sun5i #18)
[ 108.110000] PC is at sun4i_restart+0x28/0x34
[ 108.110000] LR is at sun4i_restart+0x20/0x34
[ 108.110000] pc : [<c002b90c>] lr : [<c002b904>] psr: 600f0013
[ 108.110000] sp : df837e78 ip : 00000000 fp : b6ff4f54
[ 108.110000] r10: 00000000 r9 : df836000 r8 : c000e2c8
[ 108.110000] r7 : c0701bc0 r6 : 45584543 r5 : 00000000 r4 : f1c20000
[ 108.110000] r3 : 00000003 r2 : c002b8e4 r1 : 00000000 r0 : 00000000
[ 108.110000] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 108.110000] Control: 10c5387d Table: 5d930019 DAC: 00000015
[ 108.110000]
[ 108.110000] PC: 0xc002b88c:
[ 108.110000] b88c e5913000 e12fff33 e1a00004 e8bd8010 f1c20000 e24dd008 e52de004 e8bd4000
[ 108.110000] b8ac e59f302c e5933d3c f57ff04f e58d3004 e59d3004 e7e13353 e58d3004 e59d0004
[ 108.110000] b8cc e2503003 e2730000 e0b00003 e28dd008 e12fff1e f1c20000 e92d4010 e52de004
[ 108.110000] b8ec e8bd4000 e3a03000 e59f4014 e59f0014 e5843c94 eb07491a e3a03003 e5843c94
[ 108.110000] b90c eafffffe f1c20000 000186a0 e92d4013 e52de004 e8bd4000 e3500002 e59f4090
[ 108.110000] b92c 0a000002 e3500003 1a000016 ea00000d e59f0080 eb121a34 f57ff04f e3033a98
[ 108.110000] b94c e5843c14 e5943c10 f57ff04f e58d3004 e59d3004 e3c33080 e58d3004 e59d3004
[ 108.110000] b96c e3833001 ea00000c e59f004c eb121a26 e5943c10 f57ff04f e58d3004 e59d3004
[ 108.110000]
[ 108.110000] LR: 0xc002b884:
[ 108.110000] b884 e1a00001 e5834c04 e5913000 e12fff33 e1a00004 e8bd8010 f1c20000 e24dd008
[ 108.110000] b8a4 e52de004 e8bd4000 e59f302c e5933d3c f57ff04f e58d3004 e59d3004 e7e13353
[ 108.110000] b8c4 e58d3004 e59d0004 e2503003 e2730000 e0b00003 e28dd008 e12fff1e f1c20000
[ 108.110000] b8e4 e92d4010 e52de004 e8bd4000 e3a03000 e59f4014 e59f0014 e5843c94 eb07491a
[ 108.110000] b904 e3a03003 e5843c94 eafffffe f1c20000 000186a0 e92d4013 e52de004 e8bd4000
[ 108.110000] b924 e3500002 e59f4090 0a000002 e3500003 1a000016 ea00000d e59f0080 eb121a34
[ 108.110000] b944 f57ff04f e3033a98 e5843c14 e5943c10 f57ff04f e58d3004 e59d3004 e3c33080
[ 108.110000] b964 e58d3004 e59d3004 e3833001 ea00000c e59f004c eb121a26 e5943c10 f57ff04f
[ 108.110000]
[ 108.110000] SP: 0xdf837df8:
[ 108.110000] 7df8 df836000 00000000 b6ff4f54 c008e728 c0705e7c c0090bb0 00000017 c008df44
[ 108.110000] 7e18 00000017 c000f024 c002b904 c002b90c 600f0013 c04ba9f4 00000000 00000000
[ 108.110000] 7e38 c002b8e4 00000003 f1c20000 00000000 45584543 c0701bc0 c000e2c8 df836000
[ 108.110000] 7e58 00000000 b6ff4f54 00000000 df837e78 c002b904 c002b90c 600f0013 ffffffff
[ 108.110000] 7e78 000003e9 c000f4f4 01234567 c004192c df861938 c0058c84 c0703578 c04bc5ac
[ 108.110000] 7e98 c0008f14 ffffffff 00000000 c04bc5ac dd8d001c c04b99f4 df836000 dd8c7c00
[ 108.110000] 7eb8 00000000 df860000 c0703530 dd8a8c80 df837f54 c04b99f4 db43da00 dd8a8cb0
[ 108.110000] 7ed8 df860000 c0059d50 c0703998 c0055b58 df837f24 c0059d70 c0703530 df860000
[ 108.110000]
[ 108.110000] R2: 0xc002b864:
[ 108.110000] b864 e12fff1e f1c20000 e92d4010 e52de004 e8bd4000 f57ff04f e59f3018 e3a04001
[ 108.110000] b884 e1a00001 e5834c04 e5913000 e12fff33 e1a00004 e8bd8010 f1c20000 e24dd008
[ 108.110000] b8a4 e52de004 e8bd4000 e59f302c e5933d3c f57ff04f e58d3004 e59d3004 e7e13353
[ 108.110000] b8c4 e58d3004 e59d0004 e2503003 e2730000 e0b00003 e28dd008 e12fff1e f1c20000
[ 108.110000] b8e4 e92d4010 e52de004 e8bd4000 e3a03000 e59f4014 e59f0014 e5843c94 eb07491a
[ 108.110000] b904 e3a03003 e5843c94 eafffffe f1c20000 000186a0 e92d4013 e52de004 e8bd4000
[ 108.110000] b924 e3500002 e59f4090 0a000002 e3500003 1a000016 ea00000d e59f0080 eb121a34
[ 108.110000] b944 f57ff04f e3033a98 e5843c14 e5943c10 f57ff04f e58d3004 e59d3004 e3c33080
[ 108.110000]
[ 108.110000] R4: 0xf1c1ff80:
[ 108.110000] ff80 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 108.110000] ffa0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 108.110000] ffc0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 108.110000] ffe0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 108.110000] 0000 a1005100 0a10100e 8c105615 00000000 8010d05d 00000000 a1080f00 00000000
[ 108.110000] 0020 b1059191 1488001d a1009900 00000000 8010d063 00000000 00000000 00000000
[ 108.110000] 0040 00000000 00000000 00000000 00000000 00138013 00020110 00000000 00000000
[ 108.110000] 0060 0000e141 00085814 00000021 00020007 00000000 00000000 00000000 00000000
[ 108.110000]
[ 108.110000] R7: 0xc0701b40:
[ 108.110000] 1b40 c05cf737 df419780 00000000 c070f9c8 c0701ed8 c0701ae4 00000024 c0701bb0
[ 108.110000] 1b60 c04c2679 00000000 00000000 00000000 00000000 00000000 00000000 c060a2ea
[ 108.110000] 1b80 c003d0d0 c003cfe0 c00a9e54 c003d46c 00000000 df8de0c0 df8dcc40 c00a963c
[ 108.110000] 1ba0 c003cc80 c00a312c c00a312c c00a312c c003cd5c c00a312c c00a312c c00a312c
[ 108.110000] 1bc0 6962732f 6f702f6e 6f726577 00006666 00000000 00000000 00000000 00000000
[ 108.110000] 1be0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 108.110000] 1c00 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 108.110000] 1c20 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 108.110000]
[ 108.110000] R8: 0xc000e248:
[ 108.110000] e248 e28d1008 e3a08000 e357080f e2270000 2a0010d8 ea00f7bb e1a02007 e28d1008
[ 108.110000] e268 e3a00000 eb000982 e28fe014 e1a07000 e28d1008 e3570f5f 3891000f 3798f107
[ 108.110000] e288 eaffffef e5ad0008 e1a02007 e1a0100d e3a00001 eb000976 eaffff9e e320f000
[ 108.110000] e2a8 e320f000 e320f000 e320f000 e320f000 e320f000 e320f000 c06fbd9c c000e97c
[ 108.110000] e2c8 c003fd6c c0033878 c000e8e0 c00f5878 c00f58e8 c00f4b00 c00f358c c004c150
[ 108.110000] e2e8 c00f4b38 c01028c4 c01026e0 c000e8f0 c00f44c4 c004c150 c01025b8 c00f4700
[ 108.110000] e308 c006b8a4 c004c150 c004c150 c00f50c0 c003c6e4 c010e4d8 c004c150 c006b93c
[ 108.110000] e328 c006bd6c c004c150 c00395a0 c004c150 c004c150 c0040e30 c004c150 c004c150
[ 108.110000]
[ 108.110000] R9: 0xdf835f80:
[ 108.110000] 5f80 f0000086 0002416d 00000000 00000000 00000000 00000000 c04ce680 c04ce600
[ 108.110000] 5fa0 df835e80 df82c400 df882000 00000000 00000000 00000000 00000001 00000000
[ 108.110000] 5fc0 00000000 df835fc4 df835fc4 00393502 7ff7edb3 46f36dff 3df5abcf ebfff7d5
[ 108.110000] 5fe0 477b6beb defdbf19 7afffff5 cd55fac7 be5f7a55 ffdff3ff ba77dcff ebfffee9
[ 108.110000] 6000 00000002 00010001 00000000 df860000 c06ffc04 00000000 00000015 dd8c7c00
[ 108.110000] 6020 00000000 df860000 c0703530 df862580 c0703530 df836000 df837e4c df837dc8
[ 108.110000] 6040 c04b99f0 00000000 00000000 00000000 00000000 00000000 01000000 00000000
[ 108.110000] 6060 b6fe44c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 108.110000] [<c0014aa4>] (unwind_backtrace+0x0/0x124) from [<c008dd8c>] (watchdog_timer_fn+0xe8/0x13c)
[ 108.110000] [<c008dd8c>] (watchdog_timer_fn+0xe8/0x13c) from [<c004e524>] (__run_hrtimer+0xb0/0x1cc)
[ 108.110000] [<c004e524>] (__run_hrtimer+0xb0/0x1cc) from [<c004ed1c>] (hrtimer_interrupt+0x104/0x250)
[ 108.110000] [<c004ed1c>] (hrtimer_interrupt+0x104/0x250) from [<c002bdb8>] (aw_clkevt_irq+0x3c/0x4c)
[ 108.110000] [<c002bdb8>] (aw_clkevt_irq+0x3c/0x4c) from [<c008e508>] (handle_irq_event_percpu+0x38/0x228)
[ 108.110000] [<c008e508>] (handle_irq_event_percpu+0x38/0x228) from [<c008e728>] (handle_irq_event+0x30/0x40)
[ 108.110000] [<c008e728>] (handle_irq_event+0x30/0x40) from [<c0090bb0>] (handle_level_irq+0xbc/0xcc)
[ 108.110000] [<c0090bb0>] (handle_level_irq+0xbc/0xcc) from [<c008df44>] (generic_handle_irq+0x28/0x38)
[ 108.110000] [<c008df44>] (generic_handle_irq+0x28/0x38) from [<c000f024>] (handle_IRQ+0x68/0x8c)
[ 108.110000] [<c000f024>] (handle_IRQ+0x68/0x8c) from [<c04ba9f4>] (__irq_svc+0x34/0xf8)
[ 108.110000] [<c04ba9f4>] (__irq_svc+0x34/0xf8) from [<c002b90c>] (sun4i_restart+0x28/0x34)
[ 108.110000] [<c002b90c>] (sun4i_restart+0x28/0x34) from [<c000f4f4>] (machine_restart+0x24/0x54)
[ 108.110000] [<c000f4f4>] (machine_restart+0x24/0x54) from [<c004192c>] (sys_reboot+0x198/0x224)
[ 108.110000] [<c004192c>] (sys_reboot+0x198/0x224) from [<c000e0c0>] (ret_fast_syscall+0x0/0x30)
[ 136.110000] BUG: soft lockup - CPU#0 stuck for 22s! [systemd-shutdow:1]
[ 136.110000] Modules linked in: nf_conntrack_netbios_ns nf_conntrack_broadcast ipt_MASQUERADE ip6table_mangle ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6
iptable_nat nf_nat bnep iptable_mangle bluetooth nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ebtable_filter ebtables ip6table_filter ip6_table
s vfat fat snd_usb_audio snd_hwdep snd_usbmidi_lib snd_rawmidi uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core videodev media joydev dm9601 qf9700
usbnet uinput
[ 136.110000]
[ 136.110000] Pid: 1, comm: systemd-shutdow
[ 136.110000] CPU: 0 Not tainted (3.4.29.sun5i #18)
[ 136.110000] PC is at sun4i_restart+0x28/0x34
[ 136.110000] LR is at sun4i_restart+0x20/0x34
[ 136.110000] pc : [<c002b90c>] lr : [<c002b904>] psr: 600f0013
[ 136.110000] sp : df837e78 ip : 00000000 fp : b6ff4f54
[ 136.110000] r10: 00000000 r9 : df836000 r8 : c000e2c8
[ 136.110000] r7 : c0701bc0 r6 : 45584543 r5 : 00000000 r4 : f1c20000
[ 136.110000] r3 : 00000003 r2 : c002b8e4 r1 : 00000000 r0 : 00000000
[ 136.110000] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 136.110000] Control: 10c5387d Table: 5d930019 DAC: 00000015
[ 136.110000]
[ 136.110000] PC: 0xc002b88c:
[ 136.110000] b88c e5913000 e12fff33 e1a00004 e8bd8010 f1c20000 e24dd008 e52de004 e8bd4000
[ 136.110000] b8ac e59f302c e5933d3c f57ff04f e58d3004 e59d3004 e7e13353 e58d3004 e59d0004
[ 136.110000] b8cc e2503003 e2730000 e0b00003 e28dd008 e12fff1e f1c20000 e92d4010 e52de004
[ 136.110000] b8ec e8bd4000 e3a03000 e59f4014 e59f0014 e5843c94 eb07491a e3a03003 e5843c94
[ 136.110000] b90c eafffffe f1c20000 000186a0 e92d4013 e52de004 e8bd4000 e3500002 e59f4090
[ 136.110000] b92c 0a000002 e3500003 1a000016 ea00000d e59f0080 eb121a34 f57ff04f e3033a98
[ 136.110000] b94c e5843c14 e5943c10 f57ff04f e58d3004 e59d3004 e3c33080 e58d3004 e59d3004
[ 136.110000] b96c e3833001 ea00000c e59f004c eb121a26 e5943c10 f57ff04f e58d3004 e59d3004
[ 136.110000]
[ 136.110000] LR: 0xc002b884:
[ 136.110000] b884 e1a00001 e5834c04 e5913000 e12fff33 e1a00004 e8bd8010 f1c20000 e24dd008
[ 136.110000] b8a4 e52de004 e8bd4000 e59f302c e5933d3c f57ff04f e58d3004 e59d3004 e7e13353
[ 136.110000] b8c4 e58d3004 e59d0004 e2503003 e2730000 e0b00003 e28dd008 e12fff1e f1c20000
[ 136.110000] b8e4 e92d4010 e52de004 e8bd4000 e3a03000 e59f4014 e59f0014 e5843c94 eb07491a
[ 136.110000] b904 e3a03003 e5843c94 eafffffe f1c20000 000186a0 e92d4013 e52de004 e8bd4000
[ 136.110000] b924 e3500002 e59f4090 0a000002 e3500003 1a000016 ea00000d e59f0080 eb121a34
[ 136.110000] b944 f57ff04f e3033a98 e5843c14 e5943c10 f57ff04f e58d3004 e59d3004 e3c33080
[ 136.110000] b964 e58d3004 e59d3004 e3833001 ea00000c e59f004c eb121a26 e5943c10 f57ff04f
[ 136.110000]
[ 136.110000] SP: 0xdf837df8:
[ 136.110000] 7df8 df836000 00000000 b6ff4f54 c008e728 c0705e7c c0090bb0 00000017 c008df44
[ 136.110000] 7e18 00000017 c000f024 c002b904 c002b90c 600f0013 c04ba9f4 00000000 00000000
[ 136.110000] 7e38 c002b8e4 00000003 f1c20000 00000000 45584543 c0701bc0 c000e2c8 df836000
[ 136.110000] 7e58 00000000 b6ff4f54 00000000 df837e78 c002b904 c002b90c 600f0013 ffffffff
[ 136.110000] 7e78 000003e9 c000f4f4 01234567 c004192c df861938 c0058c84 c0703578 c04bc5ac
[ 136.110000] 7e98 c0008f14 ffffffff 00000000 c04bc5ac dd8d001c c04b99f4 df836000 dd8c7c00
[ 136.110000] 7eb8 00000000 df860000 c0703530 dd8a8c80 df837f54 c04b99f4 db43da00 dd8a8cb0
[ 136.110000] 7ed8 df860000 c0059d50 c0703998 c0055b58 df837f24 c0059d70 c0703530 df860000
[ 136.110000]
[ 136.110000] R2: 0xc002b864:
[ 136.110000] b864 e12fff1e f1c20000 e92d4010 e52de004 e8bd4000 f57ff04f e59f3018 e3a04001
[ 136.110000] b884 e1a00001 e5834c04 e5913000 e12fff33 e1a00004 e8bd8010 f1c20000 e24dd008
[ 136.110000] b8a4 e52de004 e8bd4000 e59f302c e5933d3c f57ff04f e58d3004 e59d3004 e7e13353
[ 136.110000] b8c4 e58d3004 e59d0004 e2503003 e2730000 e0b00003 e28dd008 e12fff1e f1c20000
[ 136.110000] b8e4 e92d4010 e52de004 e8bd4000 e3a03000 e59f4014 e59f0014 e5843c94 eb07491a
[ 136.110000] b904 e3a03003 e5843c94 eafffffe f1c20000 000186a0 e92d4013 e52de004 e8bd4000
[ 136.110000] b924 e3500002 e59f4090 0a000002 e3500003 1a000016 ea00000d e59f0080 eb121a34
[ 136.110000] b944 f57ff04f e3033a98 e5843c14 e5943c10 f57ff04f e58d3004 e59d3004 e3c33080
[ 136.110000]
[ 136.110000] R4: 0xf1c1ff80:
[ 136.110000] ff80 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 136.110000] ffa0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 136.110000] ffc0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 136.110000] ffe0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 136.110000] 0000 a1005100 0a10100e 8c105615 00000000 8010d05d 00000000 a1080f00 00000000
[ 136.110000] 0020 b1059191 1488001d a1009900 00000000 8010d063 00000000 00000000 00000000
[ 136.110000] 0040 00000000 00000000 00000000 00000000 00138013 00020110 00000000 00000000
[ 136.110000] 0060 0000e141 00085814 00000021 00020007 00000000 00000000 00000000 00000000
[ 136.110000]
[ 136.110000] R7: 0xc0701b40:
[ 136.110000] 1b40 c05cf737 df419780 00000000 c070f9c8 c0701ed8 c0701ae4 00000024 c0701bb0
[ 136.110000] 1b60 c04c2679 00000000 00000000 00000000 00000000 00000000 00000000 c060a2ea
[ 136.110000] 1b80 c003d0d0 c003cfe0 c00a9e54 c003d46c 00000000 df8de0c0 df8dcc40 c00a963c
[ 136.110000] 1ba0 c003cc80 c00a312c c00a312c c00a312c c003cd5c c00a312c c00a312c c00a312c
[ 136.110000] 1bc0 6962732f 6f702f6e 6f726577 00006666 00000000 00000000 00000000 00000000
[ 136.110000] 1be0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 136.110000] 1c00 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 136.110000] 1c20 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 136.110000]
[ 136.110000] R8: 0xc000e248:
[ 136.110000] e248 e28d1008 e3a08000 e357080f e2270000 2a0010d8 ea00f7bb e1a02007 e28d1008
[ 136.110000] e268 e3a00000 eb000982 e28fe014 e1a07000 e28d1008 e3570f5f 3891000f 3798f107
[ 136.110000] e288 eaffffef e5ad0008 e1a02007 e1a0100d e3a00001 eb000976 eaffff9e e320f000
[ 136.110000] e2a8 e320f000 e320f000 e320f000 e320f000 e320f000 e320f000 c06fbd9c c000e97c
[ 136.110000] e2c8 c003fd6c c0033878 c000e8e0 c00f5878 c00f58e8 c00f4b00 c00f358c c004c150
[ 136.110000] e2e8 c00f4b38 c01028c4 c01026e0 c000e8f0 c00f44c4 c004c150 c01025b8 c00f4700
[ 136.110000] e308 c006b8a4 c004c150 c004c150 c00f50c0 c003c6e4 c010e4d8 c004c150 c006b93c
[ 136.110000] e328 c006bd6c c004c150 c00395a0 c004c150 c004c150 c0040e30 c004c150 c004c150
[ 136.110000]
[ 136.110000] R9: 0xdf835f80:
[ 136.110000] 5f80 f0000086 0002416d 00000000 00000000 00000000 00000000 c04ce680 c04ce600
[ 136.110000] 5fa0 df835e80 df82c400 df882000 00000000 00000000 00000000 00000001 00000000
[ 136.110000] 5fc0 00000000 df835fc4 df835fc4 00393502 7ff7edb3 46f36dff 3df5abcf ebfff7d5
[ 136.110000] 5fe0 477b6beb defdbf19 7afffff5 cd55fac7 be5f7a55 ffdff3ff ba77dcff ebfffee9
[ 136.110000] 6000 00000002 00010001 00000000 df860000 c06ffc04 00000000 00000015 dd8c7c00
[ 136.110000] 6020 00000000 df860000 c0703530 df862580 c0703530 df836000 df837e4c df837dc8
[ 136.110000] 6040 c04b99f0 00000000 00000000 00000000 00000000 00000000 01000000 00000000
[ 136.110000] 6060 b6fe44c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 136.110000] [<c0014aa4>] (unwind_backtrace+0x0/0x124) from [<c008dd8c>] (watchdog_timer_fn+0xe8/0x13c)
[ 136.110000] [<c008dd8c>] (watchdog_timer_fn+0xe8/0x13c) from [<c004e524>] (__run_hrtimer+0xb0/0x1cc)
[ 136.110000] [<c004e524>] (__run_hrtimer+0xb0/0x1cc) from [<c004ed1c>] (hrtimer_interrupt+0x104/0x250)
[ 136.110000] [<c004ed1c>] (hrtimer_interrupt+0x104/0x250) from [<c002bdb8>] (aw_clkevt_irq+0x3c/0x4c)
[ 136.110000] [<c002bdb8>] (aw_clkevt_irq+0x3c/0x4c) from [<c008e508>] (handle_irq_event_percpu+0x38/0x228)
[ 136.110000] [<c008e508>] (handle_irq_event_percpu+0x38/0x228) from [<c008e728>] (handle_irq_event+0x30/0x40)
[ 136.110000] [<c008e728>] (handle_irq_event+0x30/0x40) from [<c0090bb0>] (handle_level_irq+0xbc/0xcc)
[ 136.110000] [<c0090bb0>] (handle_level_irq+0xbc/0xcc) from [<c008df44>] (generic_handle_irq+0x28/0x38)
[ 136.110000] [<c008df44>] (generic_handle_irq+0x28/0x38) from [<c000f024>] (handle_IRQ+0x68/0x8c)
[ 136.110000] [<c000f024>] (handle_IRQ+0x68/0x8c) from [<c04ba9f4>] (__irq_svc+0x34/0xf8)
[ 136.110000] [<c04ba9f4>] (__irq_svc+0x34/0xf8) from [<c002b90c>] (sun4i_restart+0x28/0x34)
[ 136.110000] [<c002b90c>] (sun4i_restart+0x28/0x34) from [<c000f4f4>] (machine_restart+0x24/0x54)
[ 136.110000] [<c000f4f4>] (machine_restart+0x24/0x54) from [<c004192c>] (sys_reboot+0x198/0x224)
[ 136.110000] [<c004192c>] (sys_reboot+0x198/0x224) from [<c000e0c0>] (ret_fast_syscall+0x0/0x30)
--------------
The problem seems to be that the watchdog inside the A13 simply does not work reliably. Kernel build/module details are going to be irrelevant!
I doubt Allwinner are going to change the chip...
John
Dear John,
yep it's possible buggy MCU issue, but if we need a solution we can't ignore the fact this bug IS NOT
reproducing (at least by me on same board) on other images/kernels.
Still looking for any solution which will reboot board reliebly.
Alex.
Which kernel works reliably i.e. never fails?
No-one has posted any that works.
John
I do not believe that it is a MCU bug.
On a "github" discussion, as it seems, it is misconfigured u-boot.
https://github.com/linux-sunxi/linux-sunxi/issues/118#issuecomment-15611995
So far as I can tell that is a different problem.
John