Kernel: Implement NVMe driver

I'm  actually able to boot this os fine on own laptop now!
This commit is contained in:
2024-01-14 01:39:48 +02:00
parent 812e9efd41
commit 54a92293da
11 changed files with 956 additions and 2 deletions

View File

@@ -13,11 +13,16 @@ if (($BANAN_UEFI_BOOT)); then
BIOS_ARGS="-bios $OVMF_PATH -net none"
fi
if [[ $BANAN_DISK_TYPE == "NVME" ]]; then
DISK_ARGS="-device nvme,serial=deadbeef,drive=disk"
else
DISK_ARGS="-device ahci,id=ahci -device ide-hd,drive=disk,bus=ahci.0"
fi
qemu-system-$BANAN_ARCH \
-m 128 \
-smp 2 \
$BIOS_ARGS \
-drive format=raw,id=disk,file=${BANAN_DISK_IMAGE_PATH},if=none \
-device ahci,id=ahci \
-device ide-hd,drive=disk,bus=ahci.0 \
$DISK_ARGS \
$@ \