mirror of
https://github.com/encounter/osdev.git
synced 2026-03-30 11:33:54 -07:00
master
mkdir build && cd build cmake -DCMAKE_BUILD_TYPE=Debug .. cd .. make -C build # directly qemu-system-i386 -kernel kernel.bin # via Grub: # https://wiki.osdev.org/GRUB_2#Installing_GRUB_2_on_OS_X # brew install xorriso ./mkiso.sh kernel.bin qemu-system-i386 -cdrom os.iso # support exit -device isa-debug-exit,iobase=0xf4,iosize=0x04 # remote gdb (port 1234): -s # stdio serial: -serial stdio # IDE drive: -drive file=hd.img,if=ide,format=raw # HAXM (macOS) -enable-hax # KVM (Linux) -enable-kvm # ----------------- # Full example: make -C build && ./mkiso.sh build/kernel.bin && ./mkhd.sh build && \ qemu-system-i386 -cdrom os.iso -serial stdio \ -device isa-debug-exit,iobase=0xf4,iosize=0x04 \ -drive file=hd.img,if=ide,format=raw -boot d
Description
Languages
C
99.5%
CMake
0.2%
Assembly
0.2%