toy linux distro

rain1 3dcfd4f678 0 8 years ago
repack 3dcfd4f678 0 8 years ago
LICENSE d30aeef0d9 Init commit 8 years ago
README.md 93131e40bb 0 8 years ago
dl.sh 069bb237d0 0 8 years ago
mk.sh 3dcfd4f678 0 8 years ago
pkg.sh cac000dbd8 0 8 years ago
repack_all.sh 3dcfd4f678 0 8 years ago
trinity.png cac000dbd8 0 8 years ago

README.md

trinity

toy linux distro based on morpheus

setup

Please use a chroot when building this in case of bugs in the scripts.

dependencies

gcc-toolchain gcc:lib coreutils which binutils make wget git tar gzip qemu e2fsprogs util-linux sed grep bash ld-wrapper gawk

binutils needs flex and bison.

instructions

To download the source code and hash it into dump/

./dl.sh

To compile and install the base system into root/

./mk.sh

To create a qemu image

$ qemu-img create -f raw os.img 1G
$ mkfs.ext4 os.img
$ mkdir osroot
# mount -t ext4 -o loop os.img osroot
# cp -r root/* osroot/
# umount osroot

To boot it (you need a linux kernel bzImage too),

qemu-system-x86_64 -enable-kvm -kernel bzImage -hda os.img -append "root=/dev/sda vga=788"