Ramdisk images are too large.
Re: Ramdisk images are too large.
A follow up post to this. So after some research I found it is plymouth that is bloating it out. Plymouth is used for the startup screen. But if it's inactive it's redundant and wasting space. I don't recall ever seeing a startup screen when a Linux kernel boots.
On my older Ubuntu it attempts to use plymouth when building ramdisk but fails. So the size is cut down. On my Fienix it includes plymouth which causes the bloat. By removing it the size can be brought from 11MB to a more manageable 4MB. Still more than 2MB but bootable.
It's hard to fix as mkinitramfs gives little control over the process. It allows you to change config but it uses hooks to include all the binaries that cannot be disabled or diverted. However it allows custom hooks to be added so a hook can be added to remove what isn't wanted. Not as clean as stopping what isn't wanted. But it can work.
I am also getting constant errors now when booting a systemd system from init ramdisk. One cause is building ramdisk from a 5.x kernel fails to boot a kernel 6.x system. I don't know to build a systemd friendly ramdisk from init system. Suppose installing systemd would help. But matching kernel releases does help.
My manager will include an update so ramdisks can be built again and also updated if desired.
On my older Ubuntu it attempts to use plymouth when building ramdisk but fails. So the size is cut down. On my Fienix it includes plymouth which causes the bloat. By removing it the size can be brought from 11MB to a more manageable 4MB. Still more than 2MB but bootable.
It's hard to fix as mkinitramfs gives little control over the process. It allows you to change config but it uses hooks to include all the binaries that cannot be disabled or diverted. However it allows custom hooks to be added so a hook can be added to remove what isn't wanted. Not as clean as stopping what isn't wanted. But it can work.
I am also getting constant errors now when booting a systemd system from init ramdisk. One cause is building ramdisk from a 5.x kernel fails to boot a kernel 6.x system. I don't know to build a systemd friendly ramdisk from init system. Suppose installing systemd would help. But matching kernel releases does help.
My manager will include an update so ramdisks can be built again and also updated if desired.
Re: Ramdisk images are too large.
Booting with a 5.10 initial ramdisk works with the kernel 6.5.
-
Code: Select all
CFE> setenv bootargs "root=LABEL=void"
-
Code: Select all
CFE> ramdisk -z -addr=0x24000000 -fatfs cf0:initrd-5.10.img
-
Code: Select all
CFE> boot -elf -noints -fatfs -z cf0:zImage-6.5
-
Code: Select all
bash-5.1# tune2fs -L DEBIAN64 /dev/sdb6
-
Code: Select all
CFE> setenv bootargs "root=LABEL=DEBIAN64"
-
Code: Select all
CFE> ramdisk -z -addr=0x24000000 -fatfs cf0:initrd-5.10.img
-
Code: Select all
CFE> boot -elf -noints -fatfs -z cf0:zImage-6.5
-
Code: Select all
CFE> setenv bootargs "root=LABEL=DEBIAN64"
-
Code: Select all
CFE> ramdisk -z -addr=0x24000000 -fatfs cf0:initrd-5.10.img
-
Code: Select all
CFE> boot -elf -noints -fatfs cf0:vmlinux-6.5
Download: linux-image-5.10.177-X1000_X5000.tar.gz
http://www.amigalinux.org
http://www.supertuxkart-amiga.de
Running Linux on AmigaONEs can require some tinkering.
http://www.supertuxkart-amiga.de
Running Linux on AmigaONEs can require some tinkering.
Re: Ramdisk images are too large.
Booting with a UUID: initrd to boot Linux from USB flash drives
http://www.amigalinux.org
http://www.supertuxkart-amiga.de
Running Linux on AmigaONEs can require some tinkering.
http://www.supertuxkart-amiga.de
Running Linux on AmigaONEs can require some tinkering.
Re: Ramdisk images are too large.
Funny, I recall at some point you couldn't get them to work.
But do both the 5.10 ramdisk and 6.5 void/Debian systems use systemd?
I've found similar errors to what the initramfs break with online about failing to find init.
Download: linux-image-5.10.177-X1000_X5000.tar.gz
Thanks.
But this does reveal a limitation of my manager which is intentional. It doesn't allow to set arbitrary ramdisks that don't match the kernel version. It installs a ramdisk if one is included in archive. Otherwise it will generate one on the fly to match that exact kernel.
Re: Ramdisk images are too large.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de
Running Linux on AmigaONEs can require some tinkering.
http://www.supertuxkart-amiga.de
Running Linux on AmigaONEs can require some tinkering.
Re: Ramdisk images are too large.
I made a collection of ramdisks a couple of years ago but it seems I may have forgotten to upload the links.
RamdisksXZ.tar:
https://drive.google.com/file/d/177GNsU ... sp=sharing
RamdisksGZ.tar:
https://drive.google.com/file/d/1nni7kd ... sp=sharing
RamdisksXZ.tar:
https://drive.google.com/file/d/177GNsU ... sp=sharing
RamdisksGZ.tar:
https://drive.google.com/file/d/1nni7kd ... sp=sharing
Re: Ramdisk images are too large.
Thank you!Hypex wrote: ↑Wed Jul 26, 2023 6:28 am I made a collection of ramdisks a couple of years ago but it seems I may have forgotten to upload the links.
RamdisksXZ.tar:
https://drive.google.com/file/d/177GNsU ... sp=sharing
RamdisksGZ.tar:
https://drive.google.com/file/d/1nni7kd ... sp=sharing
http://www.amigalinux.org
http://www.supertuxkart-amiga.de
Running Linux on AmigaONEs can require some tinkering.
http://www.supertuxkart-amiga.de
Running Linux on AmigaONEs can require some tinkering.