From f6252154124edd1110905f6d48a8e0e125a3f131 Mon Sep 17 00:00:00 2001 From: secXsQuared Date: Tue, 13 Feb 2018 13:33:24 -0500 Subject: [PATCH] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 18ad769..15c1bff 100644 --- a/README.md +++ b/README.md @@ -12,24 +12,32 @@ nasm, xorriso, grub-common, grub-pc-bin ### Cross-compiler ##### Method 1 - Compile one yourself. Just follow the instructions here: https://wiki.osdev.org/GCC_Cross-Compiler + Remember to set the "TARGET" to x86_64-elf instead of i686-elf and build libgcc without redzone https://wiki.osdev.org/Libgcc_without_red_zone. ##### Method 2 - Precompiled binaries Here is my precompiled cross compiler. Feel free to use it. + VERSION: GCC 7.3 + Binutils 2.30 + HOST: x86_64-pc-linux-gnu + CONFIGURED WITH: --target=x86_64-elf --disable-nls --enable-languages=c,c++ --without-headers + 1. Download "cross.tar.gz" from https://drive.google.com/file/d/1ssQblBLk7I3ZqFPoeViVlsBvDMXcJFa1/view?usp=sharing + 2. Run "tar -xvf cross.tar.gz -C $HOME/opt/cross" ### Compiling Run "make all" in the root directory + The makefile generates secxkrnl.iso (kernel image), secxkrnl.elf(kernel executable), secxkrnl.dmp(kernel disassembly) at the end. To clean all generated files, run "make clean" # Running On windows run "qemu.bat" + On linux run "./qemu.bat"