From 1585f596d1f88ee638bd4a3ba2c0d6ec2592ef4a Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 11 May 2018 22:40:12 +0200 Subject: [PATCH] qemu-coreboot: Add modules libata, libahci and ahci to initrd To be able to boot a disk image, passed to QEMU with `-hda /path/qemu.img`, the appropriate modules are needed. Strange, `libata` is not enough, and the drive is only detected, when the module `ahci` is loaded. > ata1.00: ATA-7: QEMU HARDDISK, 2.5+, max UDMA/100 Tested with QEMU emulator version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7) with the command below, qemu-system-x86_64 -enable-kvm -M q35 -m 1G -bios \ qemu-coreboot/coreboot.rom -serial stdio -L /dev/shm -hda \ /dev/shm/qemu-debian.img where `qemu-debian.img` is created with grml-debootstrap. grml-debootstrap --vmfile --vmsize 3G --target \ /dev/shm/qemu-debian.img -r sid --- boards/qemu-coreboot/qemu-coreboot.config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boards/qemu-coreboot/qemu-coreboot.config b/boards/qemu-coreboot/qemu-coreboot.config index e095bed5..eb0e0dd2 100644 --- a/boards/qemu-coreboot/qemu-coreboot.config +++ b/boards/qemu-coreboot/qemu-coreboot.config @@ -25,6 +25,8 @@ CONFIG_NEWT=y CONFIG_SLANG=y endif +CONFIG_LINUX_ATA=y +CONFIG_LINUX_AHCI=y CONFIG_LINUX_USB=y CONFIG_LINUX_E1000=y