Re: Status of USB driver support?
2009/2/22 Emiliano Esposito : > Thank you very much. I forgot to say I'm using udev.rules with a line > like this: > > # MARX CryptoBox Datentechnik GmbH > ATTRS{idVendor}=="0d7a", ATTRS{idProduct}=="0001", MODE="0666", > OWNER="root", GROUP="root" It's up to you of course, but it would probably be more secure to use MODE="660" and some appropriate GROUP that you can then put your user in. Doesn't matter so much if you're the only user on the system.
Re: Status of USB driver support?
Alexander Morozov ha scritto: > On Thursday 19 February 2009 16:55:20 emiliano esposito wrote: > >> Unhandled exception: unimplemented function >> usbd.sys.USBD_GetUSBDIVersion called in 32-bit code (0x7ee2e923) >> > > You can try attached patch > Thank you very much. I forgot to say I'm using udev.rules with a line like this: # MARX CryptoBox Datentechnik GmbH ATTRS{idVendor}=="0d7a", ATTRS{idProduct}=="0001", MODE="0666", OWNER="root", GROUP="root" Now I get these errors: E: shm.c: shm_open() failed: Permission denied E: shm.c: shm_open() failed: Permission denied E: shm.c: shm_open() failed: Permission denied fixme:ntoskrnl:KeInitializeSpinLock stub: 0x12d1fc err:usbhub:__wine_usbhub_internal_ioctl error sending control message: Value too big for defined data type wine: Call from 0x7ee2e8b0 to unimplemented function usbd.sys.USBD_ParseConfigurationDescriptor, aborting wine: Unimplemented function usbd.sys.USBD_ParseConfigurationDescriptor called at address 0x7ee2e8b0 (thread 0022), starting debugger... Unhandled exception: unimplemented function usbd.sys.USBD_ParseConfigurationDescriptor called in 32-bit code (0x7ee2e923). Register dump:
Re: Status of USB driver support?
On Thursday 19 February 2009 16:55:20 emiliano esposito wrote: > Unhandled exception: unimplemented function > usbd.sys.USBD_GetUSBDIVersion called in 32-bit code (0x7ee2e923) You can try attached patch From b7fad82130608126244ba2aee3f91b3337229fb3 Mon Sep 17 00:00:00 2001 From: Alexander Morozov Date: Fri, 20 Feb 2009 12:14:33 +0300 Subject: [PATCH 3/3] usbd.sys: Implement USBD_GetUSBDIVersion. --- dlls/usbd.sys/usbd.c|7 +++ dlls/usbd.sys/usbd.sys.spec |2 +- include/ddk/usb.h |6 ++ 3 files changed, 14 insertions(+), 1 deletions(-) diff --git a/dlls/usbd.sys/usbd.c b/dlls/usbd.sys/usbd.c index 8c2a8f9..c7c8fab 100644 --- a/dlls/usbd.sys/usbd.c +++ b/dlls/usbd.sys/usbd.c @@ -132,6 +132,13 @@ PURB WINAPI USBD_CreateConfigurationRequest( return urb; } +void WINAPI USBD_GetUSBDIVersion( PUSBD_VERSION_INFORMATION VersionInformation ) +{ +TRACE( "%p\n", VersionInformation ); +VersionInformation->USBDI_Version = 0x300; +VersionInformation->Supported_USB_Version = 0x100; +} + NTSTATUS WINAPI DriverEntry( DRIVER_OBJECT *driver, UNICODE_STRING *path ) { return STATUS_SUCCESS; diff --git a/dlls/usbd.sys/usbd.sys.spec b/dlls/usbd.sys/usbd.sys.spec index 5d0377c..a18bbf8 100644 --- a/dlls/usbd.sys/usbd.sys.spec +++ b/dlls/usbd.sys/usbd.sys.spec @@ -19,7 +19,7 @@ @ stub USBD_GetInterfaceLength @ stub USBD_GetPdoRegistryParameter @ stub USBD_GetSuspendPowerState -@ stub USBD_GetUSBDIVersion +@ stdcall USBD_GetUSBDIVersion(ptr) @ stub USBD_InitializeDevice @ stub USBD_MakePdoName @ stub USBD_ParseConfigurationDescriptor diff --git a/include/ddk/usb.h b/include/ddk/usb.h index b8f5f3f..a5db726 100644 --- a/include/ddk/usb.h +++ b/include/ddk/usb.h @@ -82,6 +82,12 @@ typedef PVOID USBD_PIPE_HANDLE; typedef PVOID USBD_CONFIGURATION_HANDLE; typedef PVOID USBD_INTERFACE_HANDLE; +typedef struct _USBD_VERSION_INFORMATION { +ULONG USBDI_Version; +ULONG Supported_USB_Version; +} USBD_VERSION_INFORMATION; +typedef struct _USBD_VERSION_INFORMATION *PUSBD_VERSION_INFORMATION; + typedef enum _USBD_PIPE_TYPE { UsbdPipeTypeControl, UsbdPipeTypeIsochronous, -- 1.6.1.3.GIT
Re: Status of USB driver support?
> Unhandled exception: unimplemented function > usbd.sys.USBD_GetUSBDIVersion called in 32-bit code (0x7ee2e923) Should implement USBD_GetUSBDIVersion to fix this.
Re: Status of USB driver support?
Alexander Morozov ha scritto: >> git clone git://source.winehq.org/git/wine.git ~/wine-git >> git-am 0001... >> git-am 0002... >> > > You should run tools/make_makefiles before configuring. Thanks. I redid it from scratch, and imported the relevant keys directly from windows. Now this is what I get after launching the program: fixme:ntoskrnl:KeInitializeSpinLock stub: 0x129824 wine: Call from 0x7ee2e8b0 to unimplemented function usbd.sys.USBD_GetUSBDIVersion, aborting wine: Unimplemented function usbd.sys.USBD_GetUSBDIVersion called at address 0x7ee2e8b0 (thread 0022), starting debugger... Unhandled exception: unimplemented function usbd.sys.USBD_GetUSBDIVersion called in 32-bit code (0x7ee2e923) Then a lot of debug info follows, register dumps and so on. After that, the program continues normally. Don't know if it would be worth posting, please let me know.
Re: Status of USB driver support?
Alexander Morozov wrote: >> If that USB Key is not of a supportable kind, then I apologize for >> asking. >> > > I think you should try. > Thanks. I tried this way: git clone git://source.winehq.org/git/wine.git ~/wine-git git-am 0001... git-am 0002... ./tools/wineinstall When launching a Wine application, I get some errors, I think this is the important one: err:winedevice:ServiceMain driver L"Usbhub" failed to load I have installed the Key driver but not yet added the registry keys. Should I do that or something else first? Thanks.
Re: Status of USB driver support?
Alexander Morozov wrote: > I know nothing about these devices and I did not test them. But I think for > working with them a driver is also necessary (not only dll). To clarify, does your patch provide the general services on which all (many) USB .sys drivers are built? or is it very specific to usb security keys? I'm wondering whether to try your patch with the following drivers. Eg. I have a USB device. One driver is used to bootload the device, which then reappears with a different ID, and a second driver is used: Vid_0a63&Pid_0001 -> [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DSLOADER] "Type"=dword:0001 "Start"=dword:0003 "ErrorControl"=dword:0001 "Tag"=dword:0014 "ImagePath"=hex(2):73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,\ 73,00,6c,00,6f,00,61,00,64,00,65,00,72,00,2e,00,73,00,79,00,73,00,00,00 "DisplayName"="Prism Sound dScope Series III - uninitialised (dsloader.sys)" "Group"="Base" Vid_0a63&Pid_0002 -> [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DSUSBDRV] "Type"=dword:0001 "Start"=dword:0003 "ErrorControl"=dword:0001 "Tag"=dword:0015 "ImagePath"=hex(2):73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,\ 73,00,75,00,73,00,62,00,64,00,72,00,76,00,2e,00,73,00,79,00,73,00,00,00 "DisplayName"="Prism Sound dScope Series III (dsusbdrv.sys)" "Group"="Base" regards Eliot
Re: Status of USB driver support?
> Now I kindly ask: is there a simple way to integrate the official branch > with just the USB patches? You can use patches for wine-1.1.15 and git am. > If that USB Key is not of a supportable kind, then I apologize for asking. I think you should try.
Status of USB driver support?
Hi, first of all, thanks for your great effort in adding USB to Wine! I have an app. needing a Marx Cryptobox USB, here drivers and info: http://www.marx.com/rc1/en/support_downloads.php I would like to help by testing it. I've tried to download the etherhack branch of wine sources and compile it, compiling succeeds, but the application behaves a bit erratically (graphic buttons are missing, for example), and this also makes it freeze. I've also compiled the master git branch, and that is instead working. Now I kindly ask: is there a simple way to integrate the official branch with just the USB patches? I've tried to understand by reading wine wiki and git manual pages but couldn't figure it out. Some sort of link (or help, if you can) would be greatly appreciated. If that USB Key is not of a supportable kind, then I apologize for asking. Thank you, Regards. E.E.
Re: Status of USB driver support?
This patch is made, first of all, for running applications protected with USB keys. For using native USB driver should copy HKLM\System\CurrentControlSet\Enum\USB\Vid_&Pid_ and HKLM\System\CurrentControlSet\Services\ from Windows registry. The driver should be put in the directory specified by HKLM\System\CurrentControlSet\Services\\ImagePath. Also you need to have permissions to read/write to USB device. For using HASP HL keys aksclass.sys should be placed in windows/system32 instead of windows/system32/drivers. Also you should copy HKLM\System\CurrentControlSet\Enum\Hasp from Windows registry. I tested last patch with Eutron SmartKey 3 (eusk3usb.sys, vid:pid 073d:0025) and HASP HL 3.21 (aksusb.sys, akshasp.sys, aksclass.sys, 0529:0001). Also SafeNet UltraPro (sntnlusb.sys, 04b9:0300) should work (tested with previous versions). For testing keys I used protected applications and simple test programs using API from key vendors. > E.g. I have FTDI devices, using ftd2xx.dll. Can I expect to get them > working? I know nothing about these devices and I did not test them. But I think for working with them a driver is also necessary (not only dll).
Re: Status of USB driver support?
> "Alexander" == Alexander Morozov writes: Alexander> Minor updated patches: Alexander> ftp://ftp.etersoft.ru/pub/people/amorozov/usb/1.1.15/0001-Add-support-of-native-Windows-drivers-for-USB-tokens.txt Alexander> ftp://ftp.etersoft.ru/pub/people/amorozov/usb/1.1.15/0002-Re-generate-some-files.txt Please, be more verbose. What should we expect to work with your patch now? What kind of applications can be get to work with your modifications when completed? What application did you test? Anything more needed? E.g. I have FTDI devices, using ftd2xx.dll. Can I expect to get them working? Thanks -- Uwe Bonnesb...@elektron.ikp.physik.tu-darmstadt.de Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt - Tel. 06151 162516 Fax. 06151 164321 --
Re: Status of USB driver support?
Minor updated patches: ftp://ftp.etersoft.ru/pub/people/amorozov/usb/1.1.15/0001-Add-support-of-native-Windows-drivers-for-USB-tokens.txt ftp://ftp.etersoft.ru/pub/people/amorozov/usb/1.1.15/0002-Re-generate-some-files.txt
Re: Status of USB driver support?
On Sat, Feb 14, 2009 at 3:09 PM, Dan Kegel wrote: > Is http://wiki.winehq.org/USB up to date? > > I could have sworn that Alexander Morozov > had submitted a new version of his patch, > but I can't find it. Found it and added to the wiki page. Has anybody tried the Jan 20 patch? - Dan
Status of USB driver support?
Is http://wiki.winehq.org/USB up to date? I could have sworn that Alexander Morozov had submitted a new version of his patch, but I can't find it.