Skip to contentSkip to conversation

usb not working in dom0

DISCUSSION Adhamh Findlay 6 participants 11 messages Nov 19, 2004 – Nov 21, 2004

lore
Share & tools
lore
#0 lore raw

Hello,

I have tried xen 2.0 and 2.0.1, but I can't get my USB mouse to work in either under Fedora or Debian as dom0.

I've tired recompiling the kernel after edited .config or used menuconfig, but no luck with either way.

Enabled legacy USB support got the light on the USB mouse to light up, but it still didn't move in X.

When I boot debian or fedora without Xen the mouse works fine.

Are there any tricks I missed to get USB support?

Is there a way to verify that the new .config is being read when I recompile Xen?

Adhamh

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8

#1 lore raw
Quoted 2 lines

When I boot debian or fedora without Xen the mouse works fine.

It's conceivable their kernels have some patch that isn't in mainstream, though I doubt it.

Quoted 1 line

Are there any tricks I missed to get USB support?

Nope - it normally just works.

Quoted 2 lines

Is there a way to verify that the new .config is being read when I recompile Xen?

Look in dist/install/boot/config-x.x.x-xen0 to check that's the config you want.

Ian

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8

#2 lore raw
Quoted 4 lines · Ian Pratt
Quoted 1 line

When I boot debian or fedora without Xen the mouse works fine.

It's conceivable their kernels have some patch that isn't in mainstream, though I doubt it.

Nothing USB related that I'm aware of, but let me check here...

Signature · 10 lines
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
#3 lore raw
In reply to Ian Pratt
Quoted 10 lines · Ian Pratt
Quoted 3 lines

Is there a way to verify that the new .config is being read when I recompile Xen?

Look in dist/install/boot/config-x.x.x-xen0 to check that's the config you want.

Ian

Okay, this is the problem. None of the USB options are in my dist/install/boot/config-2.6.9-xen0 file.

I used this:

grep USB config-2.6.9-1.667 >> ~/xen-2.0/linux-2.6.9-xen0/.config

to get all my USB parameters from a working config. I then ran "make ARCH=xen oldconfig". After this the .config file no longer had the USB options in it.

Should I be running the make command in a different manner? I'm trying to do what is in the docs.

Thanks,

Adhamh

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8

#4 lore raw

Hi,

Using the make menuconfig option --- helps in easily selecting what
functionality u want and wht u dont want.

try making all USB functionality as built in - ie not modules ---
then see if it still doesnt work.

Deepak

Quoted 34 lines · Adhamh Findlay
Quoted 11 lines · Ian Pratt
Quoted 4 lines

Is there a way to verify that the new .config is being read when I recompile Xen?

Look in dist/install/boot/config-x.x.x-xen0 to check that's the config you want.

Ian

Okay, this is the problem. None of the USB options are in my dist/install/boot/config-2.6.9-xen0 file.

I used this:

grep USB config-2.6.9-1.667 >> ~/xen-2.0/linux-2.6.9-xen0/.config

to get all my USB parameters from a working config. I then ran "make ARCH=xen oldconfig". After this the .config file no longer had the USB options in it.

Should I be running the make command in a different manner? I'm trying to do what is in the docs.

Thanks,

Adhamh

Quoted 10 lines

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8

#5 lore raw
In reply to Adhamh Findlay
Quoted 6 lines

Okay, this is the problem. None of the USB options are in my dist/install/boot/config-2.6.9-xen0 file.

I used this:

grep USB config-2.6.9-1.667 >> ~/xen-2.0/linux-2.6.9-xen0/.config

The dist/install/boot/config-2.6.9-xen0 file is the master - you should be adding the USB options into this otherwise it'll overwrite the .config file if you make world. Then run make world in the top level directory to build everything.

Quoted 3 lines

to get all my USB parameters from a working config. I then ran "make ARCH=xen oldconfig". After this the .config file no longer had the USB options in it.

If you run this in the Linux directory it shouldn't be removing any options... Are you sure you didin't run the command in a different dir?

HTH,
Mark

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8

#6 lore raw
Quoted 11 lines
Quoted 6 lines

Okay, this is the problem. None of the USB options are in my dist/install/boot/config-2.6.9-xen0 file.

I used this:

grep USB config-2.6.9-1.667 >> ~/xen-2.0/linux-2.6.9-xen0/.config

The dist/install/boot/config-2.6.9-xen0 file is the master - you should be adding the USB options into this otherwise it'll overwrite the .config file if you make world. Then run make world in the top level directory to build everything.

You should be able to modify the .config and then do a 'make dist' from the top-level.

'make world' is far more draconian -- it blows all the build trees away and remakes them, and is intended to be used if you've re-synced your repository and want to be sure you're in a consistent state. It will blow your newly edited .config away -- copy it to dist/install/boot/config-XXX

Ian

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8

#7 lore raw
Quoted 5 lines · Ian Pratt
Quoted 5 lines
Quoted 5 lines

Okay, this is the problem. None of the USB options are in my dist/install/boot/config-2.6.9-xen0 file.

I used this:

Quoted 9 lines
Quoted 6 lines
Quoted 3 lines

grep USB config-2.6.9-1.667 >> ~/xen-2.0/linux-2.6.9-xen0/.config

The dist/install/boot/config-2.6.9-xen0 file is the master - you should be adding the USB options into this otherwise it'll overwrite the .config file if you make world. Then run make world in the top level directory to build everything.

You should be able to modify the .config and then do a 'make dist' from the top-level.

Well that didn't work either. After running "make dist" in the top level the edits to the .config file are gone, and the resulting config-2.6.9-xen0 file doesn't have the USB options either.

Am I the only one seeing this?

Adhamh

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8

#8 lore raw

Fixed! Re: usb not working in dom0

Okay, so I got this working. I compiled the unstable version and followed these instructions.

http://www.cl.cam.ac.uk/Research/SRG/netos/xen/faq.html#q3.1

I had to use "make ARCH=xen menuconfig" instead of "make ARCH=xen xconfig"

Now even my USB sound sticks work!

For the record, here's the .config I ended up with after menuconfig:

[root@fedora linux-2.6.9-xen0]# grep USB .config
# ALSA USB devices
CONFIG_SND_USB_AUDIO=y
CONFIG_SND_USB_USX2Y=y
# USB support
CONFIG_USB=y
CONFIG_USB_DEBUG=y
# Miscellaneous USB options
# CONFIG_USB_DEVICEFS is not set
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_OTG is not set
# USB Host Controller Drivers
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_SPLIT_ISO=y CONFIG_USB_EHCI_ROOT_HUB_TT=y
# CONFIG_USB_OHCI_HCD is not set
CONFIG_USB_UHCI_HCD=y
# USB Device Class drivers
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_BLUETOOTH_TTY is not set
# CONFIG_USB_MIDI is not set
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set
# CONFIG_USB_STORAGE is not set
# USB Human Interface Devices (HID)
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
# CONFIG_USB_HIDDEV is not set
# CONFIG_USB_AIPTEK is not set
# CONFIG_USB_WACOM is not set
# CONFIG_USB_KBTAB is not set
# CONFIG_USB_POWERMATE is not set
# CONFIG_USB_MTOUCH is not set
# CONFIG_USB_EGALAX is not set
# CONFIG_USB_XPAD is not set
# CONFIG_USB_ATI_REMOTE is not set
# USB Imaging devices
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USB_HPUSBSCSI is not set
# USB Multimedia devices
# CONFIG_USB_DABUSB is not set
# Video4Linux support is needed for USB Multimedia device support # USB Network adaptors
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_USBNET is not set
# USB port drivers
# USB Serial Converter support
# CONFIG_USB_SERIAL is not set
# USB Miscellaneous drivers
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_TIGL is not set
# CONFIG_USB_AUERSWALD is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_LED is not set
# CONFIG_USB_CYTHERM is not set
# CONFIG_USB_PHIDGETSERVO is not set
# USB Gadget Support
# CONFIG_USB_GADGET is not set

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/

#9 lore raw

Fixed! Re: usb not working in dom0

In reply to Adhamh Findlay

Okay, so I got this working. I compiled the unstable version and followed these instructions.

http://www.cl.cam.ac.uk/Research/SRG/netos/xen/faq.html#q3.1

I had to use "make ARCH=xen menuconfig" instead of "make ARCH=xen xconfig"

Now even my USB sound sticks work!

For the record, here's the .config I ended up with after menuconfig:

[root@fedora linux-2.6.9-xen0]# grep USB .config
# ALSA USB devices
CONFIG_SND_USB_AUDIO=y
CONFIG_SND_USB_USX2Y=y
# USB support
CONFIG_USB=y
CONFIG_USB_DEBUG=y
# Miscellaneous USB options
# CONFIG_USB_DEVICEFS is not set
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_OTG is not set
# USB Host Controller Drivers
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_SPLIT_ISO=y CONFIG_USB_EHCI_ROOT_HUB_TT=y
# CONFIG_USB_OHCI_HCD is not set
CONFIG_USB_UHCI_HCD=y
# USB Device Class drivers
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_BLUETOOTH_TTY is not set
# CONFIG_USB_MIDI is not set
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set
# CONFIG_USB_STORAGE is not set
# USB Human Interface Devices (HID)
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
# CONFIG_USB_HIDDEV is not set
# CONFIG_USB_AIPTEK is not set
# CONFIG_USB_WACOM is not set
# CONFIG_USB_KBTAB is not set
# CONFIG_USB_POWERMATE is not set
# CONFIG_USB_MTOUCH is not set
# CONFIG_USB_EGALAX is not set
# CONFIG_USB_XPAD is not set
# CONFIG_USB_ATI_REMOTE is not set
# USB Imaging devices
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USB_HPUSBSCSI is not set
# USB Multimedia devices
# CONFIG_USB_DABUSB is not set
# Video4Linux support is needed for USB Multimedia device support # USB Network adaptors
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_USBNET is not set
# USB port drivers
# USB Serial Converter support
# CONFIG_USB_SERIAL is not set
# USB Miscellaneous drivers
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_TIGL is not set
# CONFIG_USB_AUERSWALD is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_LED is not set
# CONFIG_USB_CYTHERM is not set
# CONFIG_USB_PHIDGETSERVO is not set
# USB Gadget Support
# CONFIG_USB_GADGET is not set

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8

#10 lore raw

Re: Fixed! Re: usb not working in dom0

Quoted 6 lines

Okay, so I got this working. I compiled the unstable version and followed these instructions.

http://www.cl.cam.ac.uk/Research/SRG/netos/xen/faq.html#q3.1

I had to use "make ARCH=xen menuconfig" instead of "make ARCH=xen xconfig"

How was it failing? I frequently use xconfig without problems.

Ian

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8