Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dorydev/linuxfromscratch
Simple kernel
https://github.com/dorydev/linuxfromscratch
c grub kernel
Last synced: about 1 month ago
JSON representation
Simple kernel
- Host: GitHub
- URL: https://github.com/dorydev/linuxfromscratch
- Owner: dorydev
- Created: 2024-01-14T18:01:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-01T10:33:12.000Z (3 months ago)
- Last Synced: 2024-11-06T01:36:30.440Z (3 months ago)
- Topics: c, grub, kernel
- Language: C
- Homepage:
- Size: 4.18 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Linux from scratch #
A simple Linux based kernel written in C & x86_64 assembly.\
It'll be upgraded soon, check versions & update ;)## How to compile ? ##
Prerequisite:
- grub
- nasm
- gcc
- xorriso
- qemu(Or use `build.sh` when it'll be available)
Compile assembly & C files in object files with nasm & gcc:
```nasm -f elf32 boot.s -o boot.o```\
```gcc -m32 -ffreestanding -c kernel.c -o kernel.o```Link objectfs files:
```ld -m elf_i386 -T linker.ld -o kernel.bin boot.o kernel.o```
Create iso file with grub:
```grub-mkrescue -o LinuxFromScratch.iso LinuxFromScratch/*```
Launch in QEMU:
Open the project forlder in your terminal and type
```$ cd LinuxFromScratch``` //PATH of .iso's folder\
```qemu-system-i386 -cdrom LinuxFromScratch.iso```**GG it works !**