My hobby Unix clone. Name credit to @9len
You will need the following on a mac:
- GCC cross-compiler for building elf binaries ** homebrew formulas: i586-elf-gcc, i586-elf-binutils, i586-elf-gdb
- mkisofs ** homebrew: cdrtools
It's an ISO image, you should be able to figure it out. If you have qemu installed, you can crib the command line found in run.sh
From Terminal
run df -k
, look for your disk in /Volumes
, you are looking for its location in /disk/*
. Let's assume it's /dev/disk3
which is one of the USB slots on a 2012 MacBook Pro retina.
Use diskutil to unmount the disk
diskutil unmountDisk /dev/disk3
and dd
to overwrite the contents with our boot floppy image.
sudo dd if=stevienix.iso of=/dev/disk3
I'm able to boot this on an old Thinkpad t42p from 2004.
Thanks to the following projects for code that inspired me (or that I just plain borrowed, attributed appropriately):
Thanks to the hobbyist community for making lots of great tutorials
- Skelix OS tutorial
- Bran's Kernel Tutorial
- JamesM's kernel tutorial
- Fogus' collection of OSDev links
- OSDev wiki
Books that helped me: