New baby step today :
Messing around with syslinux, I finally got round to getting the console to spew out the kernel loading, then after being stuck on “Waiting for root” for a while and tinkering with the option, I finally got round to finding an option that would do something :
LABEL batocera.linux.busybox
LINUX /boot/linux
FDT /boot/sun8i-r16-clockworkpi-cpi3.dtb
APPEND root=/dev/mmcblk0p1 init=/busybox label=BATOCERA rootwait loglevel=9 console=ttyS0,115200 console=tty3 vt.global_cursor_default=0
And copying /busybox
on the FAT partition I got the following error :
[ 13.301594] VFS: Mounted root (vfat filesystem) readonly on device 179:1.
[ 13.320430] devtmpfs: error mounting -2
[ 13.334296] Freeing unused kernel memory: 1024K
[ 13.347176] Run /busybox as init process
[ 13.352072] with arguments:
[ 13.355522] /busybox
[ 13.358537] with environment:
[ 13.362139] HOME=/
[ 13.365057] TERM=linux
[ 13.424841] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[ 13.436280] CPU: 2 PID: 1 Comm: busybox Not tainted 5.7.0-clockworkpi-cpi3-g5c715d2cd-dirty #1
[ 13.448660] Hardware name: Allwinner sun8i Family
[ 13.455902] [<c010d70c>] (unwind_backtrace) from [<c010a5a0>] (show_stack+0x10/0x14)
[ 13.467428] [<c010a5a0>] (show_stack) from [<c03cb5bc>] (dump_stack+0x90/0xa4)
[ 13.478425] [<c03cb5bc>] (dump_stack) from [<c011c554>] (panic+0x110/0x2fc)
[ 13.488543] [<c011c554>] (panic) from [<c011fd40>] (do_exit+0xa28/0xa9c)
[ 13.499709] [<c011fd40>] (do_exit) from [<c0120cf0>] (do_group_exit+0x3c/0xc8)
[ 13.508629] [<c0120cf0>] (do_group_exit) from [<c012c614>] (get_signal+0x12c/0x82c)
[ 13.517979] [<c012c614>] (get_signal) from [<c0109e8c>] (do_work_pending+0x10c/0x55c)
[ 13.527505] [<c0109e8c>] (do_work_pending) from [<c01000cc>] (slow_work_pending+0xc/0x20)
[ 13.537377] Exception stack(0xdf047fb0 to 0xdf047ff8)
[ 13.543557] 7fa0: 00000000 be9c6b50 00000000 00000005
[ 13.553391] 7fc0: 0013decc 0013f000 0013decc b6f41000 00000001 000e2d94 00000000 be9c6dc0
[ 13.563217] 7fe0: 00000000 be9c6c60 0005ed50 000102ec 600f0010 ffffffff
[ 13.570807] CPU3: stopping
[ 13.573991] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 5.7.0-clockworkpi-cpi3-g5c715d2cd-dirty #1
[ 13.584163] Hardware name: Allwinner sun8i Family
[ 13.589791] [<c010d70c>] (unwind_backtrace) from [<c010a5a0>] (show_stack+0x10/0x14)
[ 13.598918] [<c010a5a0>] (show_stack) from [<c03cb5bc>] (dump_stack+0x90/0xa4)
[ 13.607533] [<c03cb5bc>] (dump_stack) from [<c010c8f0>] (handle_IPI+0x164/0x19c)
[ 13.616351] [<c010c8f0>] (handle_IPI) from [<c03e3e84>] (gic_handle_irq+0x8c/0x90)
[ 13.625351] [<c03e3e84>] (gic_handle_irq) from [<c0100b0c>] (__irq_svc+0x6c/0x90)
[ 13.634275] Exception stack(0xdf089f80 to 0xdf089fc8)
[ 13.640302] 9f80: 00000000 00003194 df79d4f0 c01161c0 df088000 00000003 c0c03ee8 c0c03f24
[ 13.649940] 9fa0: 4000406a 410fc075 00000000 00000000 00000003 df089fd0 c01078b8 c01078bc
[ 13.659572] 9fc0: 60000013 ffffffff
[ 13.663554] [<c0100b0c>] (__irq_svc) from [<c01078bc>] (arch_cpu_idle+0x38/0x3c)
[ 13.672388] [<c01078bc>] (arch_cpu_idle) from [<c01474e0>] (do_idle+0xc8/0x150)
[ 13.681135] [<c01474e0>] (do_idle) from [<c0147814>] (cpu_startup_entry+0x18/0x1c)
[ 13.690140] [<c0147814>] (cpu_startup_entry) from [<401014ec>] (0x401014ec)
[ 13.698068] CPU1: stopping
[ 13.701259] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.7.0-clockworkpi-cpi3-g5c715d2cd-dirty #1
[ 13.711464] Hardware name: Allwinner sun8i Family
Where do I go from here ? Did I compile with the wrong flags ? for the wrong architecture ?