From bc9b63a3dbc63d818e90237beb019f584acfe133 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 22 Mar 2024 03:47:51 +0100 Subject: NewBoot: Working ATA driver, and new drive scheme, each data has a padding of 1 byte. Example: { "H", "\0", "e", "\0", "y" } So that the drive doesnt skip any bytes. Signed-off-by: Amlal El Mahrouss --- Private/NewBoot/Source/makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Private/NewBoot/Source/makefile') diff --git a/Private/NewBoot/Source/makefile b/Private/NewBoot/Source/makefile index 631550c9..948a6519 100644 --- a/Private/NewBoot/Source/makefile +++ b/Private/NewBoot/Source/makefile @@ -16,7 +16,8 @@ else EMU=qemu-system-x86_64w.exe endif -EMU_FLAGS=-net none -smp 2 -m 4G -M q35 -bios OVMF.fd -drive file=fat:rw:CDROM,index=1,format=raw -serial stdio +IMG=epm.img +EMU_FLAGS=-net none -smp 2 -m 4G -M q35 -bios OVMF.fd -device piix3-ide,id=ide -drive id=disk,file=$(IMG),format=raw,if=none -device ide-hd,drive=disk,bus=ide.0 -drive file=fat:rw:CDROM,index=2,format=raw -serial stdio LD_FLAGS=-e efi_main --subsystem=10 OBJ=$(wildcard *.o) $(wildcard ../../Objects/*.obj) $(wildcard HEL/AMD64/*.obj) @@ -45,6 +46,10 @@ compile-amd64: run-efi-amd64: $(EMU) $(EMU_FLAGS) +.PHONY: epm-img +epm-img: + qemu-img create -f raw $(IMG) 256M + .PHONY: download-edk download-edk: $(HTTP_GET) https://retrage.github.io/edk2-nightly/bin/DEBUGX64_OVMF.fd -O OVMF.fd -- cgit v1.2.3