Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: jnovacek on February 07, 2014, 06:14:05 PM
-
Hi all,
I need to pack some files directly into the kernel piCore. I used
cd /tmp/picore
sudo find | sudo cpio -o -H newc | gzip -2 > ../140123.gz
cd /tmp
advdef -z4 140123.gz
but this does not work. How do I pack?
Jiri
-
What are you trying to pack? repacking the initrd is a chore. And you will have to re-do this if you ever upgrade the core.
I would investigate making your own extension, or even just it is easier to add the filesname to /opt/.filetool.lst
Then put the files in the appropriate location, then run filetool.sh -b
this will back them up
-
You'd have to reconfigure the kernel specifying adequate options and probably point it to the files unpacked from core.gz.
Most likely you will have to search for (kernel) documentation how to do such exactly beyond from Core, I've never seen that discussed here and there is nothing specific to Core about it, though Core may be an ideal candidate for inclusion in the kernel, as its whole base system is contained in a cpio archive.
My guess would be that a reason this is not more popular would be the lack of options to upgrade or make dynamical changes to base without recompiling the kernel.
-
You'd have to reconfigure the kernel specifying adequate options and probably point it to the files unpacked from core.gz.
Guess we are no talking about custom kernel but adding files to the base system which means modifying initrd.
-
Hi all,
I need to pack some files directly into the kernel piCore. I used
cd /tmp/picore
sudo find | sudo cpio -o -H newc | gzip -2 > ../140123.gz
cd /tmp
advdef -z4 140123.gz
but this does not work. How do I pack?
Jiri
Do not use advdef. Also -2 is not needed.
-
You'd have to reconfigure the kernel specifying adequate options and probably point it to the files unpacked from core.gz.
Guess we are no talking about custom kernel but adding files to the base system which means modifying initrd.
I guessed that by
need to pack some files directly into the kernel
OP means to pack files into the cpio archive which is embedded in the kernel (as opposed to external), in which case reconfiguring kernel would be required.
-
Hi all,
I need to pack some files directly into the kernel piCore. I used
cd /tmp/picore
sudo find | sudo cpio -o -H newc | gzip -2 > ../140123.gz
cd /tmp
advdef -z4 140123.gz
but this does not work. How do I pack?
Jiri
Do not use advdef. Also -2 is not needed.
I left out "advdef" and "-2", but it still will not boot. System writes a kernel panic unsupported filesystem.
-
Did you change initrd size in cmdline.txt?
-
Did you change initrd size in cmdline.txt?
Yes, this helped.
Thank you