Kernel kills init

I'm trying to run OpenWRT/LEDE on a sama5d3 xplained board.

So far, I have everything set up, but after booting the kernel, init fails to load.

Kernel panics, and the device reboots.

[    2.840000] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[    2.840000] 
[    2.840000] CPU: 0 PID: 1 Comm: init Not tainted 4.9.77 #0
[    2.840000] Hardware name: Atmel SAMA5
[    2.840000] Backtrace: 
[    2.840000] [<c000d3fc>] (dump_backtrace) from [<c000d6bc>] (show_stack+0x18/0x1c)
[    2.840000]  r7:cf77c034 r6:cf42a000 r5:c04c86a8 r4:00000000
[    2.840000] [<c000d6a4>] (show_stack) from [<c01be6dc>] (dump_stack+0x20/0x28)
[    2.840000] [<c01be6bc>] (dump_stack) from [<c0067dbc>] (panic+0xc0/0x250)
[    2.840000] [<c0067d00>] (panic) from [<c001851c>] (do_exit+0x394/0x74c)
[    2.840000]  r3:cf43e000 r2:cf43e00c r1:00000004 r0:c04240a6
[    2.840000]  r7:cf77c034
[    2.840000] [<c0018188>] (do_exit) from [<c00197f4>] (do_group_exit+0x54/0xac)
[    2.840000]  r7:00000000
[    2.840000] [<c00197a0>] (do_group_exit) from [<c002210c>] (get_signal+0x404/0x450)
[    2.840000]  r5:cf43ded0 r4:00000004
[    2.840000] [<c0021d08>] (get_signal) from [<c000cb6c>] (do_signal+0x94/0x3dc)
[    2.840000]  r10:cf43c000 r9:cf43c000 r8:00000000 r7:00000000 r6:cf43dfb0 r5:00000000
[    2.840000]  r4:00000000
[    2.840000] [<c000cad8>] (do_signal) from [<c000d028>] (do_work_pending+0x58/0xb8)
[    2.840000]  r9:cf43c000 r8:00000000 r7:10c53c7d r6:cf43dfb0 r5:cf43c010 r4:00000000
[    2.840000] [<c000cfd0>] (do_work_pending) from [<c000a320>] (slow_work_pending+0xc/0x20)
[    2.840000]  r7:10c53c7d r6:ffffffff r5:60000010 r4:b6eec724
[    2.840000] Rebooting in 1 seconds..

This is with OpenWrt GCC 5.5.0 r5932-9c4fe10.

Any help welcome.

hi leventelist,

we need some more information.
Is this a upstream Image or did you made some tweaks?
Are some additional hardware and kmod installed?

Flo

Thank you for coming back to me.

This is the same with the upstream SD-card image, and also with my own
built one.

https://downloads.lede-project.org/snapshots/targets/at91/sama5/openwrt-at91-sama5-at91-sama5d3_xplained-sdcard.img.gz

This is where I've downloaded the image. I've copied it to an SD-card with
dd.

The hardware is a recent D3 Xplained board. I don't really installed kmod.

Any help appreciated. Also, I want to port the whole thing to the SAMA52D
chip with internal memory.

Strange/Stupid question but did you gunzip the image and the made a dd?

Yes. Otherwise it would not even boot the kernel.