-
Notifications
You must be signed in to change notification settings - Fork 7
Home
Kashyap edited this page Jan 11, 2015
·
13 revisions
A human readable kernel that can be used for experimentation and potentially some real world scenarios.
If you have the dependencies installed - its just a matter of hitting make from the root directory.
To run the kernel under qemu -
make run
- Rust compiler. You'd need to download and build RUST from source. And make sure that Rules.inc is set with the path to the RUST source.
- nasm
- Linker - ld You can download the latest binutils from ftp://ftp.gnu.org/gnu/binutils and then do the usual ./configure; make; make install I got the information from http://wiki.osdev.org/GCC_Cross-Compiler#Binutils
For mac, you can get pre-built binaries from http://crossgcc.rts-software.org/doku.php?id=compiling_for_linux
- Qemu - this is for running the kernel
Just make sure that you configure binutils with the following options
./configure --prefix=$PREFIXDIR --target=x86_64-linux-gnu --disable-nls --disable-werror
After this do a make and make install. Binutils should get installed at $PREFIX/bin.
LINKEDITOR=$PREFIXDIR/bin/x86_64-linux-gnu-ld
Just install nasm and rust and you should be good to go.