Hi again, committed the patch now with some modifications to the style to make it match the rest of VirtualBox. Should appear in the public svn soon. Thanks again for this contribution it works really well here so far! I tested it successfully with a flash card reader and a USB scanner/printer device under FreeBSD 9. A USB dvb-t stick I tested doesn't work yet. It asserts somewhere in the USB stack with a debug build when scanning for stations from the guest.
Regards, Alexander Eichner Alexander Eichner wrote: > Hi, > > thanks a lot for the great work! I'll commit the patches soon. > One thing I noticed already is that resetting an USB device from a normal > user account is not possible with that code. > The best approach to fix that is to implement a kernel driver included in > VBox which implements the missing > functionality imho. We have a USB support kernel driver for every supported > host except Linux (and now FreeBSD) > for this and to properly support USB filters to prevent another driver from > capturing the device. > > Regards, > Alexander Eichner > > Hans Petter Selasky wrote: > >> Hi, >> >> Please find attached files and patches needed to make USB support fully work >> in VirtualBox under FreeBSD 8/9+. All patches and code is given under the >> MIT >> license, if that was not already clear to you. >> >> I also want to thank all the people that sponsored me to do this "upgrade" >> of >> the existing FreeBSD USB code in VirtualBox with $500. >> >> Instructions: >> >> 1) Replace the USBProxyDevice-freebsd.cpp found in the virtualbox >> sources by the one attached to this e-mail. >> >> 2) Apply the attached patches >> >> Additional, how to automatically give VirtualBox rights to USB devices: >> >> # >> # /usr/local/etc/devd/virtualbox_dev_0x1234.conf >> # >> notify 50 { >> match "system" "USB"; >> match "subsystem" "DEVICE"; >> match "type" "ATTACH"; >> match "vendor" "0x1234"; >> action "chown virtualbox:virtualbox /dev/$cdev"; >> }; >> >> 3) If USB 2.0 support is not present in VirtualBox, try: >> >> sysctl hw.usb.ehci.no_hs=1 >> >> And then re-plug the device. Then the all USB HIGH speed USB devices will >> attach like FULL speed ones. >> >> --HPS (one of the maintainers of the USB stack in FreeBSD 8+) >> _______________________________________________ >> vbox-dev mailing list >> vbox-dev@virtualbox.org >> http://vbox.innotek.de/mailman/listinfo/vbox-dev > > ORACLE Deutschland B.V. & Co. KG Alexander Eichner > Werkstrasse 24 Engineer, VirtualBox > 71384 Weinstadt, Germany mailto:alexander.eich...@oracle.com > > Hauptverwaltung: Riesstr. 25, D-80992 München > Registergericht: Amtsgericht München, HRA 95603 > > Komplementärin: ORACLE Deutschland Verwaltung B.V. > Rijnzathe 6, 3454PV De Meern, Niederlande > Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697 > Geschäftsführer: Jürgen Kunz, Marcel van de Molen, Alexander van der Ven > > _______________________________________________ > vbox-dev mailing list > vbox-dev@virtualbox.org > http://vbox.innotek.de/mailman/listinfo/vbox-dev ORACLE Deutschland B.V. & Co. KG Alexander Eichner Werkstrasse 24 Engineer, VirtualBox 71384 Weinstadt, Germany mailto:alexander.eich...@oracle.com Hauptverwaltung: Riesstr. 25, D-80992 München Registergericht: Amtsgericht München, HRA 95603 Komplementärin: ORACLE Deutschland Verwaltung B.V. Rijnzathe 6, 3454PV De Meern, Niederlande Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697 Geschäftsführer: Jürgen Kunz, Marcel van de Molen, Alexander van der Ven
_______________________________________________ vbox-dev mailing list vbox-dev@virtualbox.org http://vbox.innotek.de/mailman/listinfo/vbox-dev