Sample Header Ad - 728x90

switch_root from initramfs is failing

3 votes
1 answer
3443 views
we're trying to implement an initramfs with the intent of: Open a LUKS partition (using a key saved on TPM) Mounting the partition RO Mounting an OverlayFS switch_root to the new system The first part of the script seems to work fine. Our problem is in the "switch_root" part which ends in a kernel panic. Please note that we have the same problem also without the encryption/overlay part. The problem seems strictly related to the switch_root. We are using Yocto Sumo and the initramfs image is bundled with the kernel. Please find attached the kernel panic log. bash-4.4# exec switch_root /newroot /sbin/init BusyBox v1.27.2 (2020-05-20 09:00:12 UTC) multi-call binary. Us[ 593.127118] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100 [ 593.127118] age: switch_root [-c [/ d e59v3/.137247] CPU: 1 PID: 1 Comm: init Tainted: G W 4.14.98+g80655a2d3532 #1 [ 593.147478] Hardware name: Engicam i.Core MX8MM module (DT) onsole] N[E W _5R9O3O.T1 5N3E0W8_] Call trace: [ 593.157367] [] dump_backtrace+0x0/0x3c8 [ 593.162798] [] show_stack+0x14/0x20 INIT [ARGS] [ 593.167891] [] dump_stack+0x9c/0xbc [ 593.174075] [] panic+0x11c/0x28c [ 593.178902] [] complete_and_exit+0x0/0x20 [ 593.184495] [] do_group_exit+0x38/0xa0 [ 593.189828] [] __wake_up_parent+0x0/0x28 [ 593.195338] Exception stack(0xffff00000805bec0 to 0xffff00000805c000) [ 593.201800] bec0: 0000000000000001 0000000000000001 0000000000000001 0000ffffa819b700 [ 593.209644] bee0: 0000000000000020 0000ffffcb90abc8 0000000000010000 0000ffffa81a4a18 [ 593.217490] bf00: 000000000000005e fffffffffffffff0 0101010101010101 0000000000000000 [ 593.225336] bf20: 0101010101010101 00000000004f2f10 0000ffffa7fe92c8 0000ffffa7fdbde0 [ 593.233184] bf40: 0000ffffa7fd7028 0000ffffa800cb68 00000000000005c2 0000000000000008 [ 593.241030] bf60: 0000000000000008 0000ffffa8122bb8 0000000000000001 0000ffffa8125000 [ 593.248874] bf80: 0000ffffa81265a0 0000ffffa81a3738 0000000000000001 0000000000000000 [ 593.256719] bfa0: 0000ffffa812a000 0000ffffcb90ac70 0000ffffa800c7f0 0000ffffcb90ac70 [ 593.264564] bfc0: 0000ffffa807946c 0000000060000000 0000000000000001 000000000000005e [ 593.272408] bfe0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 [ 593.280259] [] el0_svc_naked+0x34/0x38 [ 593.285620] SMP: stopping secondary CPUs [ 593.290003] Kernel Offset: disabled [ 593.293520] CPU features: 0x080200c [ 593.297028] Memory Limit: none [ 593.300135] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100 [ 593.300135] Thanks!
Asked by pgentili (173 rep)
May 29, 2020, 10:06 PM
Last activity: Jun 11, 2020, 08:49 AM