You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
464 B
Plaintext
18 lines
464 B
Plaintext
run:
|
|
qemu-system-x86_64 -monitor stdio -drive format=raw,file=disk.bin
|
|
|
|
build:
|
|
nasm -f bin -o boot0.bin boot0.s
|
|
|
|
zero_disk:
|
|
dd if=/dev/zero of=disk.bin bs=64K count=16
|
|
|
|
partition_disk:
|
|
parted --script disk.bin mklabel gpt
|
|
parted --script disk.bin mkpart test 34s 50%
|
|
parted --script disk.bin type 1 0fc63daf-8483-4772-8e79-3d69d8477de4
|
|
|
|
write_stage0:
|
|
dd if=/dev/zero of=disk.bin bs=440 count=1 conv=notrunc
|
|
dd if=boot0.bin of=disk.bin conv=notrunc
|