wrote a basic bootloader
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Build the bootloader
|
||||
nasm -f bin mbr.asm -o mbr.bin
|
||||
|
||||
# Build the kernel
|
||||
cargo build --release
|
||||
|
||||
# Create disk image
|
||||
./create_image.sh
|
||||
|
||||
# Write MBR
|
||||
dd if=mbr.bin of=disk.img conv=notrunc
|
||||
|
||||
echo "Build complete! You can now boot disk.img"
|
||||
Reference in New Issue
Block a user