Visit snacklinux.org for downloads, wiki and more information about SnackLinux.
export PATH=$PATH:/path/to/toolchain/bin
Compile your own toolchain with musl-cross
Compiling SnackLinux from source is done through the Makefile
make kernel
make musl
make busybox
make bash
make binutils
make syslinux
make install
If you would also like to install binutils, use:
make binutils-install
Prerequisites:
#Base files (/etc)
git clone https://github.com/snacsnoc/snacklinux-base.git
cp -R snacklinux-base/rootfs/* /opt/snacklinux_rootfs/
#Create ./dev files
./createdev.sh
#fbpkg (package manager)
git clone https://github.com/snacsnoc/fbpkg.git
cp fbpkg/src/fbpkg /opt/snacklinux_rootfs/usr/bin
Run make iso
. The output ISO will be in iso/
Note: you do not have to have the toolchain to create the ISO
Create a gzipped rootfs by running:
cd /opt/snacklinux_rootfs/; find . -print | cpio -o -H newc --quiet | gzip -6 > ../rootfs.gz
Then boot in qemu:
qemu-system-x86_64 -m 256 -kernel bzImage -initrd rootfs.gz -append "root=/dev/ram rdinit=/sbin/init"
Read the Packages page for building packages. For SnackLinux's package manager fbpkg, see here.
Edit anything in /opt/snacklinux_rootfs
, it is the root filesystem.
The kernel can also be recompiled to fit your needs.
The boot/isolinux
directory is where ISOLINUX resides, edit the menu to adjust to your needs.
Mike Chirico for http://souptonuts.sourceforge.net/cdrom.htm
Tiny Core Linux distribution for inspiration and documentation http://tinycorelinux.net
Gregor Richards for the many Musl compiler scripts https://github.com/GregorR
Linux From Scratch for excellent documentation http://www.linuxfromscratch.org/
The Arch Linux wiki https://wiki.archlinux.org/
Here are links to the software used in SnackLinux: