-
Notifications
You must be signed in to change notification settings - Fork 179
Build
Simply use git to get the sources.
git checkout --recursive https://github.com/wichtounet/thor-os.git
Note: the --recursive option will checkout the submodules as well.
To build Thor-OS, you need a cross compiler. You need to follow these steps to build one: Cross-Compiler.
To run it you need either Qemu or Bochs.
Once you have build the cross compiler, you can run Thor-OS using one of these two ways:
- On Qemu:
make qemu
- On Bochs
make bochs
and normally, Thor should be running.
If you have any problem, open an issue on this project or contact me directly.
For some obscure reason, Bochs 2.6.8 does not work on Gentoo (and it is the only possible version for recent kernels). It is then necessary to build it from sources:
svn co http://svn.code.sf.net/p/bochs/code/trunk/bochs bochs
./configure --enable-all-optimizations --enable-idle-hack --enable-cdrom --enable-clgd54xx --enable-cpu-level=6 --enable-disasm --enable-e1000 --enable-gameport --enable-iodebug --enable-monitor-mwait --enable-ne2000 --enable-plugins --enable-pci --enable-pnic --enable-raw-serial --enable-sb16=linux --disable-usb --disable-usb-ohci --disable-usb-xhci --prefix=/usr --with-nogui --enable-avx --enable-debugger --enable-readline --enable-smp --enable-x86-64 --with-sdl --with-term --with-sdl --with-x --with-x11 LDFLAGS='-pthread'
make -j9
sudo make install
Note that USB is disabled on purpose because there seems to be a bug on Bochs that makes it not load with them.
Moreover, it seems that on some computer, it is necessary to disable plugins, for some reasons...