A barebones OS kernel written in go
The kernel contains some code modified from osdev barebones tutorial http://wiki.osdev.org/Bare_Bones
To compile bootgo You need a gccgo cross-compiler(my gccgo version is 5.2.0)
-
build a target i386/i686 gcc cross-compiler with go enabled, follow the article http://wiki.osdev.org/GCC_Cross-Compiler (gcc 5.2.0 is recommended)
-
install nasm from your repositories
-
install qemu for test
-
compile:
make GCC=i686-elf-gcc GCCGO=i686-elf-gccgo
, replaceGCC
andGCCGO
with your binary name -
run on qemu:
make run-qemu QEMU=qemu-system-i386
, replaceQEMU
with your target binary name