xeno74 wrote:Hypex is right. The compressed kernel is one-third smaller than the uncompressed kernel and it boots a little little little bit faster. I hope Hypex can help us with improving our Linux support. He posted here yesterday and it seems he is gone again.
Oh just over night. I went to bed.
I found some more info here. It targets x86 but talks about compressed kernels. So it's common for the kernel to unpack itself with a little unpacking wrapper in the boot code. Ha that's funny.
So it looks like PPC may miss out on the bzImage which creates a vmlinuz. Why I don't know. We could use it. Right now we are stuck at a vmlinux. Now I know the difference between a vmlinux and a vmlinuz. The later unpacks itself.
http://linuxdocs.org/HOWTOs/Kernel-HOWTO-5.html
I added initial ramdisks for the X5000 and X1000 to the
stable kernel
4.19.1 yesterday. I only use ramdisks for booting with a LABEL or UUID. Please test the
stable kernel
4.19.1.
Thankyou! Okay it took me an hour to get it working but I have good news and well, it's not bad, but it turns out even better.
So I got stuck in CFE for an hour. I copied the kernels to two USB sticks. Likely because OS4 doesn't unmount a drive and CFE's own bugs the kernels did not show up. So annoying. It even said my second one had a boot block error.
So then I thought I'll just copy them to my HDD. So I did. I tried to load up the ramdisk without a -z from HDD but it just crashed CFE. Just a raw file, why? BTW Linux can uncompress a ramdisk itself. I used XZ in the A1 installer. XZ is the best.
So I tried again. Being confident I just wrote some batch scripts to change my menus so the ramdisk and compressed kernel loaded off HDD. I reboot, run the batch script off HDD. Get an error about unknown command. I forgot CFE doesn't like Amiga files. Right now it doesn't look too well and an hour has passed but it ran the batch script and my menu was changed.
So I bring up the menu. Pick Linux. It loads in the ramdisk from HDD. It tries to load the kernel from HDD. Printing output to screen. Something is going on...
OMG! Oh MacGyver!! It works!!!
You can boot it with the ramdisk (from HDD) with the following commands:
Code: Select all
ramdisk -z -addr=0x2400000 -fs=amigafs ide0.1:initrd.img-4.19.1
setenv bootargs "root=LABEL=Ubuntu_16.04"
boot -z -elf- noints -nousb -fs=amigafs ide0.1:vmlinux-4.19
Ha! Both GZip compressed. Give it a shot.