From 6265560ccf21504e73e2113579bf08b6984b698e Mon Sep 17 00:00:00 2001 From: TheOddGarlic Date: Mon, 8 Aug 2022 13:02:57 +0300 Subject: [PATCH] ATA: configure qemu to boot from an IDE drive --- ableos/Cargo.toml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/ableos/Cargo.toml b/ableos/Cargo.toml index deca9cfa..f8b2669a 100644 --- a/ableos/Cargo.toml +++ b/ableos/Cargo.toml @@ -8,6 +8,18 @@ version = "0.1.1" panic = "abort" [package.metadata.bootimage] +run-command = [ + "qemu-system-x86_64", + + "-device", + "piix4-ide,id=ide", + + "-drive", + "file={},format=raw,if=none,id=disk", + + "-device", + "ide-hd,drive=disk,bus=ide.0" +] run-args = [ # "--nodefaults", "-cpu", @@ -38,14 +50,8 @@ run-args = [ # "-machine", "pcspk-audiodev=0", - - "-hdb", - "../userland/root_fs/ext2.img", - - # "-qmp", # "unix:../qmp-sock,server,nowait", - ] test-args = [