https://github.com/spaciouscoder78/ladakh-kernel
A 32-bit x86 based Kernel for khardunglaDOS
https://github.com/spaciouscoder78/ladakh-kernel
Last synced: 7 months ago
JSON representation
A 32-bit x86 based Kernel for khardunglaDOS
- Host: GitHub
- URL: https://github.com/spaciouscoder78/ladakh-kernel
- Owner: SpaciousCoder78
- License: gpl-3.0
- Created: 2024-12-12T01:04:57.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-13T07:11:11.000Z (about 1 year ago)
- Last Synced: 2025-05-13T23:46:11.003Z (9 months ago)
- Language: C
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ladakh-kernel




A 32-bit x86 based Kernel for khardunglaDOS based on i686-elf architecture
Supported Operating Systems for Building:


# Installing
- Build and Install GCC and binutils for i686-elf from this guide: https://wiki.osdev.org/GCC_Cross-Compiler
- Clone this repository
```sh
$ git clone https://github.com/SpaciousCoder78/ladakh-kernel.git
```
- Assemble `boot.s`
```sh
$ i686-elf-as boot/boot.s -o boot.o
```
- Compile `kernel.c`
```sh
$ i686-elf-gcc -c kernel/kernel.c -o kernel.o -std=gnu99 -ffreestanding -O2 -Wall -Wextra
```
- Link kernel and bootstrap using `linker.ld`
```sh
$ i686-elf-gcc -T linker.ld -o myos.bin -ffreestanding -O2 -nostdlib boot.o kernel.o -lgcc
```
- sd