In order to run the project, follow the following guides:
- https://github.com/rm-hull/barebones-toolchain
- http://crosstool-ng.github.io/docs/install/#clone
- http://crosstool-ng.github.io/docs/install/#install-method
When you do ct-ng menuconfig
make sure you select the option:
Target options -> Target architecture (x86) -> x86
- Make sure you have qemu installed, and run
run.sh
to build and run the kernel in qemu.
- Run
build.sh
.
- Run
gdb.sh
in terminal 1. - Run
debug.sh
in terminal 2, and execute the printed commands in gdb. - Continue debugging with gdb as you wish.