openwrt self builds causing r3s failed to boot with init crash:
[ 1.149756] Run /sbin/init as init process
Error relocating /lib/libgcc_s.so.1: __aarch64_cas8_acq_rel: symbol not found
Error relocating /lib/libgcc_s.so.1: __aarch64_sw[ 1.471280] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
p8_acq_rel: symbol not found
[ 1.472233] CPU: 3 UID: 0 PID: 1 Comm: init Not tainted 6.12.87 #0
[ 1.472993] Hardware name: FriendlyElec NanoPi R3S (DT)
[ 1.473462] Call trace:
[ 1.473688] dump_backtrace.part.0+0xbc/0xc8
[ 1.474092] show_stack+0x18/0x24
[ 1.474406] dump_stack_lvl+0x5c/0x7c
[ 1.474748] dump_stack+0x18/0x24
[ 1.475056] panic+0x128/0x320
[ 1.475343] make_task_dead+0x0/0x158
[ 1.475686] do_group_exit+0x34/0x90
[ 1.476018] pid_child_should_wake+0x0/0x60
[ 1.476405] invoke_syscall.constprop.0+0x4c/0xc0
[ 1.476836] do_el0_svc+0x40/0xc0
[ 1.477146] el0_svc+0x30/0x134
[ 1.477443] el0t_64_sync_handler+0x120/0x12c
[ 1.477842] el0t_64_sync+0x178/0x17c
[ 1.478182] SMP: stopping secondary CPUs
[ 1.478548] Kernel Offset: disabled
[ 1.478863] CPU features: 0x0c,00000004,00280908,4200700b
[ 1.479349] Memory Limit: none
[ 1.479635] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00 ]---
Caused by gcc outline atomics. To make R3S boot, recompile without outline atomics.
CONFIG_TARGET_OPTIONS=y
CONFIG_TARGET_OPTIMIZATION="-Os -pipe -mcpu=generic -mno-outline-atomics"