From 6a89c2b28e62cc0979e5e7b31ed30295164773f5 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 4 Oct 2011 12:05:34 +0800 Subject: [PATCH] USB Testing --- Makefile.cfg | 8 +++++++- RunQemu | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile.cfg b/Makefile.cfg index c349d5ae..174f896a 100644 --- a/Makefile.cfg +++ b/Makefile.cfg @@ -53,6 +53,7 @@ MODULES += Display/BochsGA MODULES += Interfaces/UDI MODULES += Input/PS2KbMouse MODULES += x86/ISADMA x86/VGAText +MODULES += USB/Core endif ifeq ($(ARCHDIR),x86_64) @@ -62,8 +63,13 @@ MODULES += Display/BochsGA MODULES += Interfaces/UDI MODULES += Input/PS2KbMouse MODULES += x86/ISADMA x86/VGAText +MODULES += USB/Core +endif + +ifeq ($(ARCHDIR),armv7) +MODULES += Input/PS2KbMouse endif MODULES += IPStack # So the other modules are loaded before it -DYNMODS := USB/Core +#DYNMODS := USB/Core #DYNMODS += Filesystems/InitRD diff --git a/RunQemu b/RunQemu index 7029dffa..cf21f558 100755 --- a/RunQemu +++ b/RunQemu @@ -9,7 +9,10 @@ QEMU_PARAMS=$QEMU_PARAMS" -hda AcessHDD.img" QEMU_PARAMS=$QEMU_PARAMS" -vga std" QEMU_PARAMS=$QEMU_PARAMS" -smp 2" QEMU_PARAMS=$QEMU_PARAMS" -net nic" + QEMU_PARAMS=$QEMU_PARAMS" -usb" +QEMU_PARAMS=$QEMU_PARAMS" -drive id=test_usb_image,file=USB_Test_Image.img,if=none" +QEMU_PARAMS=$QEMU_PARAMS" -device usb-storage,drive=test_usb_image" _NETTYPE="user" while [ $# -ne 0 ]; do -- 2.20.1