I have installed VirtualBox 4.2.2_r81494 on an updated Gentoo Linux host, running an updated Windows XP SP3 guest. I am trying to access a USB debugger tap on the host from within Freescale's CodeWarrior IDE 8.8.5 running inside the WinXP guest. (I need it to erase and burn sectors on a P2020 board's NOR flash.) The process works flawlessly on a native Windows XP install, but it fails with "USB open failure" and "Connection refused" error messages, as reported by CodeWarrior's "Protocol Log", which ultimately results in a dialog box, "JTAG Clock Speed Change Error - Please Check your JTAG clock speed", and the following Protocol log:
Code: Select all
CCS: 0000 : ccs_close
CCS: : serverh = 0
CCS: : ccs_close; ccs_error = 0
CCS: 0000 : ccs_open
CCS: : ipaddr = 127.0.0.1
CCS: : port = 41475
CCS: : timeout = 60
CCS: : serverh = 0
CCS: : ccs_open; ccs_error = 10
CCS: : Error message:
Connection refused
CCS: 0000 : ccs_open
CCS: : ipaddr = 127.0.0.1
CCS: : port = 41475
CCS: : timeout = 60
CCS: : serverh = 0
CCS: : ccs_open; ccs_error = 0
CCS: 0000 : ccs_get_connection_count
CCS: : serverh = 0
CCS: : count = 1
CCS: : ccs_get_connection_count; ccs_error = 0
CCS: 0000 : ccs_available_connections
CCS: : serverh = 0
CCS: : count = 0
CCS: : ccs_available_connections; ccs_error = 0
CCS: 0000 : ccs_available_connections
CCS: : serverh = 0
CCS: : count = 0
CCS: : ccs_available_connections; ccs_error = 0
CCS: 0000 : ccs_config_cc
CCS: : serverh = 0
CCS: : config_string = utap:0
CCS: : ccs_config_cc; ccs_error = 0
CCS: 0000 : ccs_available_connections
CCS: : serverh = 0
CCS: : count = 1
CCS: : ccs_available_connections; ccs_error = 0
CCS: 0000 : ccs_available_connections
CCS: : serverh = 0
CCS: : count = 1
CCS: : ccs_available_connections; ccs_error = 0
CCS: 0000 : ccs_set_timeout
CCS: : serverh = 0
CCS: : timeout = 60
CCS: : ccs_set_timeout; ccs_error = 0
CCS: 0000 : ccs_config_server
CCS: : serverh = 0
CCS: : cc = 0
CCS: : server_config = 0
CCS: : value = 500
CCS: : ccs_config_server; ccs_error = 25
CCS: : Error message:
USB open failure
I have tried the following to ensure that VirtualBox has the correct permissions to access the host's USB subsystem:
- Created a USB filter for VirtualBox, so the guest grabs the tap as soon as it is available.
- Verified that the guest captured the USB tap:
Code: Select all
$ VBoxManage list usbhost Host USB Devices: UUID: 44474934-f764-490a-acda-9d739f521b88 VendorId: 0x15a2 (15A2) ProductId: 0x50b3 (50B3) Revision: 0.0 (0000) Port: 1 USB version/speed: 2/2 Manufacturer: Freescale Semiconductor Inc Product: CodeWarrior USB TAP SerialNumber: 11270583 Address: sysfs:/sys/devices/pci0000:00/0000:00:1c.4/0000:08:00.0/usb3/3-2//device:/dev/vboxusb/003/004 Current State: Captured
- Disable guest's firewall.
- Bump guest's available CPUS down from 4 to 1.
- Add deprecated usbfs pseudofs to /etc/fstab:
Code: Select all
none /proc/bus/usb usbfs devgid=85,devmode=666 0 0
- Opened read-write to everyone in udev rules:
Code: Select all
$ cat /etc/udev/rules.d/10-vboxdrv.rules KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0666" SUBSYSTEM=="usb_device", GROUP="vboxusers", MODE="0666" SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="vboxusers", MODE="0666"
- Ensured that my host user was in groups, plugdev, vboxusers, wheel, usb (85), and sudo - and rebooted.
- Tried running VirtualBox as root!
Thanks!
FWIW, the VBox.log contains:
Code: Select all
00:00:16.949286 Guest Additions capability report: (0x5) seamless: yes, hostWindowMapping: no, graphics: yes
00:00:17.572559 OHCI: USB Operational
00:00:18.599909 OHCI: USB Suspended
00:00:26.619242 VUSB: detached '00007fcbed07d280[proxy 15a2:50b3]' from port 1
00:00:26.657834 OHCI: USB Operational
00:00:27.224836 EHCI: USB Suspended
00:00:27.365734 OHCI: USB Suspended
00:00:29.779284 OHCI: USB Operational
00:00:29.908220 EHCI: USB Operational
00:00:30.459579 OHCI: USB Suspended
00:00:30.834457 EHCI: USB Suspended
00:00:33.458915 OHCI: USB Operational
00:00:33.569298 EHCI: USB Operational
00:00:37.651808 VUSB: attached '00007fcbed07cd40[proxy 15a2:50b3]' to port 1
00:00:44.533384 PCNet#1: Init: ss32=1 GCRDRA=0x08d3e420[64] GCTDRA=0x08d3e020[64]