This commit is contained in:
nub31
2025-08-31 20:23:52 +02:00
parent cc7b16ee1e
commit b3ceaa5eaf
4 changed files with 68 additions and 55 deletions

View File

@@ -4,24 +4,15 @@
### Building the kernel
- `make`
- `i386-elf-gcc`
- `i386-elf-ld`
- `nasm`
### Creating a disk image
- `grub`
- `mtools`
- `make`
- `x86_64-elf-gcc`
- `x86_64-elf-ld`
- `nasm`
## Building
### Kernel
```sh
make kernel
```
### Disk image
```sh
@@ -30,8 +21,15 @@ make iso
## Running
After building, run the following:
After building the iso, run the following:
```sh
qemu-system-i386 -kernel .build/kernel
qemu-system-x86_64 -cdrom .build/nub-os.iso
```
## Debugging
```sh
qemu-system-x86_64 -s -S -cdrom .build/nub-os.iso
gdb -tui .build/kernel -ex "target remote localhost:1234"
```