Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flash drive is not working #70

Closed
kmvi-dev opened this issue Sep 27, 2019 · 8 comments
Closed

Flash drive is not working #70

kmvi-dev opened this issue Sep 27, 2019 · 8 comments

Comments

@kmvi-dev
Copy link

kmvi-dev commented Sep 27, 2019

@cezuni ,you can help me?
I am using the last version from the repository https://github.com/cezuni/usbip-win
The server part is deployed on 4.18.0-25 @26~18.04.1-Ubuntu SMP using usbutils from the distribution.
The client part is deployed on the VmWare virtual machine in the Windows 10 Pro (x64), in which debug mode is enabled.
The virtual machine is deployed on a host with a Windows 10 Pro (x64).
After building the client part, the usbip module and the driver were copied to the guest station.
Further, all actions were carried out according to the Readme.

As a result of buid and testing the assembly, it turned out the following:

Flash drive on Linux station [server side usb / ip]
Flash_drive-test

Mass storage device on windows usb/ip-client

issue-1

issue-2

issue-3

in vhci_write.c

static NTSTATUS store_urb_iso(PURB urb, struct usbip_header *hdr)...
hdr->u.ret_submit.status = 0xFFFFFFE0 ;
urb-> UrbHeader.Status = USBD_STATUS_STALL_PID;
изображение

Before describing the problem I acquainted myself with issues #6 ,#7 ,#22, but I did not find a solution of my problem in them . I did not also find any advice how I should localize the problem.
The archive contains screenshots, *.evtx file (windows event log) of issues with flash drive and kernel debug lines
ussues.zip
logs-usbip(win-lin).zip

@cezuni
Copy link

cezuni commented Oct 4, 2019

@kmvi-dev :
In flashdrive.LOG(usbip-win vhci log), there's no suspicious line except for this.

00000244	22:57:52.184	usbip_vhci: vpdo: minor: IRP_MN_REMOVE_DEVICE, IRP: 0xFFFFD00800E05010

From that line, the vhci device seems to have been removed by an upper driver.
Is there any such a driver in your Windows VM ?

@kmvi-dev
Copy link
Author

kmvi-dev commented Oct 5, 2019

@cezuni
No . I removed all the system USB hub drivers from the virtual machine before booting Windows.
http://prntscr.com/pf6bic
I want to note that forwarding does not work correctly with some devices from the manufacturer Alcor Micro Corp.
I found two such devices for the test. A flash drive and a card reader. The rest of the devices that I used in my projects work quite correctly
( Thank you for responding ) .

@cezanne
Copy link
Owner

cezanne commented Oct 31, 2019

@kmvi-dev : Sorry for my late response. Any progress on this closed issue?

@kmvi-dev
Copy link
Author

@cezuni
Yes ,the flash drive turned out to be malfunctioning. :).
But there is another problem. This is due to card readers.
If all card reader slots are filled with SD cards, then a card reader is available and SD cards are read.
But if at least one slot is free, then transferring a card reader is not possible.
Card readers in working condition.

@kmvi-dev
Copy link
Author

@cezuni
Open a new topic on this issue?

@cezanne
Copy link
Owner

cezanne commented Oct 31, 2019

@kmvi-dev :

Open a new topic on this issue?

Yes, it can be a new topic.

@kmvi-dev
Copy link
Author

@cezuni
Well, today I’ll try to collect debug information and create a new topic for this issue.

@kmvi-dev
Copy link
Author

kmvi-dev commented Nov 1, 2019

@cezuni
I checked the latest version from the repository and did not find any problems with the card reader. Everything works. Thank you for participating in solving problems with my devices.
P.S
I needed to update the driver version and the last question would not be :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants