qemu-riscv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-riscv] [Qemu-devel] [PATCH v1 1/1] default-configs: Enable USB


From: Palmer Dabbelt
Subject: Re: [Qemu-riscv] [Qemu-devel] [PATCH v1 1/1] default-configs: Enable USB support for RISC-V machines
Date: Thu, 10 Jan 2019 08:53:30 -0800 (PST)

On Wed, 09 Jan 2019 16:01:34 PST (-0800), Alistair Francis wrote:
Signed-off-by: Alistair Francis <address@hidden>
---
 default-configs/riscv32-softmmu.mak | 1 +
 default-configs/riscv64-softmmu.mak | 1 +
 2 files changed, 2 insertions(+)

diff --git a/default-configs/riscv32-softmmu.mak 
b/default-configs/riscv32-softmmu.mak
index dbc9398284..c9c5971409 100644
--- a/default-configs/riscv32-softmmu.mak
+++ b/default-configs/riscv32-softmmu.mak
@@ -1,6 +1,7 @@
 # Default configuration for riscv-softmmu
include pci.mak
+include usb.mak
CONFIG_SERIAL=y
 CONFIG_VIRTIO_MMIO=y
diff --git a/default-configs/riscv64-softmmu.mak 
b/default-configs/riscv64-softmmu.mak
index dbc9398284..c9c5971409 100644
--- a/default-configs/riscv64-softmmu.mak
+++ b/default-configs/riscv64-softmmu.mak
@@ -1,6 +1,7 @@
 # Default configuration for riscv-softmmu
include pci.mak
+include usb.mak
CONFIG_SERIAL=y
 CONFIG_VIRTIO_MMIO=y
--
2.19.1

Does this work for you? I tried it out but my kernel hangs in early boot if I enable the generic PCI controller. This is my WIP kernel so the problem is probably on my end.

I'm trying to boot with

   -device usb-ehci
   -drive id=my_usb_disk,file=usbdisk.img,if=none,format=raw
   -device usb-storage,drive=my_usb_dis



reply via email to

[Prev in Thread] Current Thread [Next in Thread]