Tiny Core Linux
Tiny Core Base => Micro Core => Topic started by: ulfr on August 22, 2020, 03:31:12 PM
-
hi guys
how do you build core.gz from scratch
ulfr
-
Hi ulfr
Do really want to build core.gz from scratch, or do you just want to modify the contents?
-
thanks for your reply
and all your work - tinycore is the best designed distro there is
no i know how to modify the contents of core.gz
i would like to know how you guys build core.gz
ulfr
-
Hi ulfr
core.gz can be created by combining rootfs.gz and modules.gz like this:
cat rootfs.gz modules.gz > core.gz
You are probably aware that rootfs.gz and modules.gz can be found under release/distribution_files/ for each architecture:
http://tinycorelinux.net/11.x/x86/release/distribution_files/
modules.gz is created by the sorter.sh script available from Github:
https://github.com/tinycorelinux/sorter
After running make modules and make modules_install you use sorter.sh to create modules.sh and all the kernel module
extensions. You can find the instructions included in these kernel compile instructions:
http://forum.tinycorelinux.net/index.php/topic,23272.msg147325.html#msg147325
There may be a script to create rootfs.gz or they might just unpack/repack the existing rootfs.gz. I don't know, but I don't
think it changes very often. You can create a root directory manually in some work directory, or you can modify an existing one.
To unpack:
mkdir tempdir
cd tempdir
zcat /path/to/existing/rootfs.gz | sudo cpio -i
To repack:
sudo find . | sudo cpio -o -H newc | gzip > /path/to/new/rootfs.gz
Found here:
http://forum.tinycorelinux.net/index.php/topic,22398.msg140327.html#msg140327
-
thank you very much
i was not aware of where things were or how they were built
i will check things out
fascinating stuff
the more one learns about tinycore the more amazed and impressed one is
ulfr
-
i would like to now how rootfsgz is built
because it contains busybox it must have to be updated regularly
that would be one of the final pieces
ulfr
-
Hi ulfr
As I said, I don't know the details of how rootfs.gz is built. There is a busybox build script located here:
http://tinycorelinux.net/11.x/x86/release/src/busybox/
It does appear to do some kind of install, though I can't tell if it also creates all of the symlinks in /bin and /sbin.
-
than you so much rich
you have been a great help
i will look at your link
ulfr
-
hi rich
i note that there is a script called compile tc11 x86
in /releases/src/toolchain/
which appears to be the script that compiles core.gz
(if you want to) take a look and tell me what you think
ulfr
-
Hi ulfr
I think that script just compiles all of the source packages in that directory.
-
It does appear to do some kind of install, though I can't tell if it also creates all of the symlinks in /bin and /sbin.
Yes, busybox install creates all of the symlinks.
-
I think that script just compiles all of the source packages in that directory.
It's basically the build notes for the new toolchain, which is then copied into rootfs.gz
-
it has a lot of make install
wouldn't that put the completed binary in the proper directory after it was compiled
ulfr
-
so what is the sequence of the scripts
ulfr
-
It's not a script, it is just build notes - you start at the beginning and work your way to the end ;)
-
thank you very much guys for all your time
you have set me on the path
i now have a good general idea of where to look and how things are done
i'll poke around and see if i can learn a little more
and thanks for making such a great distro
its my favorite
ulfr