USB in DomU: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 3: | Zeile 3: | ||
Zuerst die USB Geräte in der Dom0 herausfinden: | Zuerst die USB Geräte in der Dom0 herausfinden: | ||
<pre> | <pre> | ||
xen0:~# lspci | xen0:~# lspci | grep -i usb | ||
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01) | 00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01) | ||
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01) | 00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01) | ||
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01) | 00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01) | ||
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 01) | 00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 01) | ||
xen0:~# | xen0:~# | ||
</pre> | </pre> | ||
PCI Devices mittels LateBinding in DomU einbinden: | PCI Devices mittels LateBinding in DomU einbinden: | ||
* Betroffene Module entladen | * USB Gerät identifizieren | ||
* Betroffene Module entladen (usb*) | |||
* Device ins PCI Backend exportieren | * Device ins PCI Backend exportieren | ||
<pre> | <pre> | ||
xen0:~# cat /proc/bus/usb/devices | grep P: | grep -v "Vendor=0000" | |||
P: Vendor=04a9 ProdID=1093 Rev= 1.10 | |||
xen0:~# | |||
xen0:~# lsmod | xen0:~# lsmod | ||
Module Size Used by | Module Size Used by | ||
Zeile 33: | Zeile 27: | ||
usbcore 113380 4 usblp,ehci_hcd,uhci_hcd | usbcore 113380 4 usblp,ehci_hcd,uhci_hcd | ||
... | ... | ||
xen0:~# | |||
xen0# rmmod usblp ehci_hcd uhci_hcd | xen0:~# rmmod usblp ehci_hcd uhci_hcd | ||
xen0# for slot in 0 1 2 7; do | xen0:~# for slot in 0 1 2 7; do | ||
SLOT=0000:00:1d.$slot | SLOT=0000:00:1d.$slot | ||
echo -n $SLOT > /sys/bus/pci/drivers/pciback/new_slot | echo -n $SLOT > /sys/bus/pci/drivers/pciback/new_slot | ||
echo -n $SLOT > /sys/bus/pci/drivers/pciback/bind | echo -n $SLOT > /sys/bus/pci/drivers/pciback/bind | ||
done | done | ||
xen0# | xen0:~# | ||
</pre> | |||
Einträge in DomU Konfiguration: | |||
<pre> | |||
pci = [ '00:1d.1','00:1d.2','00:1d.0','00:1d.7' ] | |||
usbdevice='host:04a9:1093' | |||
</pre> | </pre> |
Version vom 15. Januar 2007, 23:14 Uhr
USB Geräte in DomU einbinden
Zuerst die USB Geräte in der Dom0 herausfinden:
xen0:~# lspci | grep -i usb 00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01) 00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01) 00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01) 00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 01) xen0:~#
PCI Devices mittels LateBinding in DomU einbinden:
- USB Gerät identifizieren
- Betroffene Module entladen (usb*)
- Device ins PCI Backend exportieren
xen0:~# cat /proc/bus/usb/devices | grep P: | grep -v "Vendor=0000" P: Vendor=04a9 ProdID=1093 Rev= 1.10 xen0:~# xen0:~# lsmod Module Size Used by usblp 12768 0 ... ehci_hcd 28264 0 uhci_hcd 21192 0 usbcore 113380 4 usblp,ehci_hcd,uhci_hcd ... xen0:~# xen0:~# rmmod usblp ehci_hcd uhci_hcd xen0:~# for slot in 0 1 2 7; do SLOT=0000:00:1d.$slot echo -n $SLOT > /sys/bus/pci/drivers/pciback/new_slot echo -n $SLOT > /sys/bus/pci/drivers/pciback/bind done xen0:~#
Einträge in DomU Konfiguration:
pci = [ '00:1d.1','00:1d.2','00:1d.0','00:1d.7' ] usbdevice='host:04a9:1093'