USB in DomU: Unterschied zwischen den Versionen

Aus Neobikers Wiki
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:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 01)
00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (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.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)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 81)
00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 01)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01)
02:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
02:08.0 Ethernet controller: Intel Corporation 82801DB PRO/100 VM (LOM) Ethernet Controller (rev 81)
02:0d.0 Network controller: AVM Audiovisuelles MKTG & Computer System GmbH Fritz!PCI v2.0 ISDN (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'