Arbitrary DOS device name

Daniel Kucera wine at danman.eu
Fri Jan 28 03:03:22 CST 2022


On 2022-01-27 21:49, Daniel Kucera wrote:
> On 2022-01-27 20:52, Daniel Kucera wrote:
>> 
>> Despite these problems, the libusb seems to work correctly in the
>> driver and I can query it's version:
>> 
> 
> It probably won't be that easy. After some more calls, it is failing:
> 
> 002a:trace:hantek:DriverEntry Using libusb v1.0.24.11584
> 
> tem32\winedevice.exe: ../../libusb/os/threads_posix.h:46:
> usbi_mutex_lock: Assertion `pthread_mutex_lock(mutex) == 0' failed.
> wine: Assertion failed at address 00007FDB2BA96808 (thread 002a),
> starting debugger...
> 002d:fixme:dbghelp:elf_search_auxv can't find symbol in module
> 002d:fixme:dbghelp:elf_search_auxv can't find symbol in module
> 002d:fixme:dbghelp:elf_search_auxv can't find symbol in module
> 002d:fixme:dbghelp:elf_search_auxv can't find symbol in module
> 002d:fixme:dbghelp:elf_search_auxv can't find symbol in module
> 002d:fixme:dbghelp:elf_search_auxv can't find symbol in module
> 002d:fixme:dbghelp:elf_search_auxv can't find symbol in module
> 002d:fixme:dbghelp:elf_search_auxv can't find symbol in module
> 002d:fixme:dbghelp:elf_search_auxv can't find symbol in module
> 002d:fixme:dbghelp:elf_search_auxv can't find symbol in module
> 002d:fixme:dbghelp:elf_search_auxv can't find symbol in module
> 000f:err:service:process_send_command service protocol error - failed
> to read pipe r = 0  count = 0!
> 000f:fixme:service:scmdatabase_autostart_services Auto-start service
> L"Hantek" failed to start: 1053
> 
> 
> Is there any native wine usb api I can call?

Good news!

I have been able to fix configure and mutex issue by removing 
-mno-cygwin option from Makefile.in
The other linker issue I fixed by specifying the lib name as:
IMPORTS   = ntoskrnl usb-1.0.
this removes the last dot and anything behind.

The driver works and I can run my scope app on wine!

My last question is how to build the driver off the tree? Is there any 
example/guide?

I plan to write a blog post after everything is solved to help others 
trying to write a driver.

Thank you.



More information about the wine-devel mailing list