Hi Rich,
Thanks for responding so quickly! I'll use the Code Tags from now on.
About, the swap partition, I have one of 3145724k. Here's an excerpt of the logs which print on the screen at
boot up for 14.0:
[...]
fb0: VESA VGA frame buffer device
ccp_crypto: Cannot load: there are no available CC
Driver for HIFM 795x crypto accelerator chip has been successfully registered.
hid: raw HID events driver (C) Jiri Kosina
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
usb 1-1: new full-speed USB device number 2 using uhci_hcd
ipip: IPv4 amd MPLS over IPv4 tunneling driver
initializing XFRM netlink socket
MET: Registered PF_PACKET protocol family
Key type dns_resolver registered
microcode: sig=0x652, pf=0x2, revision=0x2c
microcode: Microcode Update Driver: v2.2
IPI shorthand broadcast: enabled
registered taskstats version 1
Key type .fscrypt registered
Key type fscrypt-provisioning registered
Key type encrypted registered
Freeing unused kernel image (initmem) memory: 732K
Write protecting kernel text and read-only data: 8500k
Run /init as init process
init started: BusyBox v1.36.0 (2023-01-17 10:14:32 UTC)
[...screen clears out...]
Booting Core 14.0
Running Linux Kernel 6.1.2-tinycore
[...]
Adding 3145724k swap on /dev/sda2. Priority:-2 extents:1 accross:3145724k SS
Possible swap partition(s) enabled.
With 15.0, I get:
[...]
MET: Registered PF_PACKET protocol family
Key type dns_resolver registered
microcode: Microcode Update Driver: v2.2
IPI shorthand broadcast: enabled
registered taskstats version 1
Key type .fscrypt registered
Key type fscrypt-provisioning registered
Key type encrypted registered
Freeing unused kernel image (initmem) memory: 772K
Write protecting kernel text and read-only data: 8780k
Run /init as init process
Failed to execute /init (error -26)
Run /sbin/init as init process
Starting init: /sbin/init exists but couldn't execute it (error -26)
Run /etc/init as init process
Run /bin/init as init process
Run /bin/sh as init process
Starting init: /bin/sh exists but couldn't execute it (error -26)
Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
Kernel Offset: disabled
Rebooting in 60 seconds..
It looks like swap is only loaded when init and BusyBox have started.
Interestingly I was able to boot using this entry
LABEL vmlinuz15withcore14
KERNEL /tce/boot/c15/vmlinuz15
INITRD /tce/boot/c14/core14.gz
APPEND vga=789 base norestore syslog showapps nozswap
and I get:
[...]
MET: Registered PF_PACKET protocol family
Key type dns_resolver registered
microcode: Microcode Update Driver: v2.2
IPI shorthand broadcast: enabled
registered taskstats version 1
Key type .fscrypt registered
Key type fscrypt-provisioning registered
Key type encrypted registered
clk: Disabling unused clocks
Freeing unused kernel image (initmem) memory: 772K
Write protecting kernel text and read-only data: 8780k
Run /init as init process
init started: BusyBox v1.36.0 (2023-01-17 10:14:32 UTC)
[...screen clears out...]
Booting Core 14.0
Running Linux Kernel 6.6.8-tinycore
[...]
Adding 3145724k swap on /dev/sda2. Priority:-2 extents:1 accross:3145724k SS
Possible swap partition(s) enabled.
Does /init comes from BusyBox? Since swapping the core.gz makes init work, it looks like my issue comes from the version of BusyBox which comes with 15.0.
Additionaly, I searched for error -26 and it looks like it is ETXTBSY and happens when something writes to a file that is being executed (
https://lwn.net/Articles/866493/). I don't understand which file init would be modifying which is also being executed. init is the first process and the parent of all other processes. Would it be trying to modify itself after it has started execution? Could another possibility maybe be that error -26 is not accurate and the new init has an insctruction that the CPU doesn't support and this fails in a weird way returning error -26?