-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
XIS kernel needs only 2MB of memory to run.<br> | ||
<b>XIS</b> operating system needs only 2MB of memory to run.<br> | ||
|
||
It supports boot loader, kernel with protected mode, paging, E820 enumeration, interrupt and exception handling, system calls and user mode. | ||
|
||
Instructions for building kernel -<br> | ||
<b>Instructions for building kernel -</b><br> | ||
as --32 boot32.S -o boot32.o<br> | ||
gcc -m32 -std=gnu99 -nostdlib -nostdinc -fno-builtin -fno-stack-protector -nostartfiles -nodefaultlibs -ffreestanding -fno-pic -Wall -Wextra -Werror -c util.c -o util.o<br> | ||
gcc -m32 -std=gnu99 -nostdlib -nostdinc -fno-builtin -fno-stack-protector -nostartfiles -nodefaultlibs -ffreestanding -fno-pic -Wall -Wextra -Werror -c system.c -o system.o<br> | ||
|
@@ -17,20 +17,20 @@ gcc -m32 -std=gnu99 -nostdlib -nostdinc -fno-builtin -fno-stack-protector -nosta | |
ld -static -T kernel32.ld -m elf_i386 -nostdlib --nmagic boot32.o util.o system.o setup32.o handlr32.o memory.o page32.o usermode.o start.o -o xiskernel.elf<br> | ||
objcopy -O binary xiskernel.elf xiskernel.bin<br> | ||
|
||
Instructions for building boot loader -<br> | ||
<b>Instructions for building boot loader -</b><br> | ||
echo ".equ KERNEL_SIZE, `ls -l xiskernel.bin | cut -f5 -d\ `" > krnlsize.h<br> | ||
as --32 bootldr.S -o bootldr.o<br> | ||
ld -static -T bootldr.ld -m elf_i386 -nostdlib --nmagic -o bootldr.elf bootldr.o<br> | ||
objcopy -O binary bootldr.elf bootldr.bin<br> | ||
|
||
Creating QEMU image -<br> | ||
<b>Creating QEMU image -</b><br> | ||
dd if=bootldr.bin of=hda.raw<br> | ||
dd if=xiskernel.bin of=hda.raw seek=1<br> | ||
qemu-img convert -O qcow2 hda.raw hda.qcow2<br> | ||
|
||
Running using QEMU -<br> | ||
<b>Running using QEMU -</b><br> | ||
sudo qemu-system-i386 -hda hda.qcow2 -m 2 --enable-kvm -cpu host<br> | ||
|
||
Contact - | ||
<b>Contact -</b> | ||
|
||
[email protected] |