-
Notifications
You must be signed in to change notification settings - Fork 49
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
Incoming_packet : Read Error (-1)! on v1.0.0 #27
Comments
When I change usb_max_packet_size from 0x200 to 0x100 umtp sometimes works. |
Can you rebuild the umtpd with the "DEBUG" flag and post the result ? |
same error
|
2106863 broken commit |
also after e075230 I see many reset on usb
|
@a1ien : Same target ? (i.MX 6 ?) |
Yes, same target. And same kernel version. But without realtime patch |
Can you try to just change CONFIG_MAX_TX_USB_BUFFER_SIZE and CONFIG_MAX_RX_USB_BUFFER_SIZE to 2048 ? |
With this config
work. But low speed( around 6.7MB/s) and periodical kernel print
If if change CONFIG_READ_FILE_BUFFER_SIZE to 16*1024 |
Ok thanks. It is quite strange that reducing CONFIG_READ_FILE_BUFFER_SIZE suppress the kernel message. It looks like there is a timing or USB buffer overflow issue in the iMX USB driver. Reducing these buffers just make uMTPrd slower and write and read data chunk size to the usb stack are lower. |
@a1ien |
I will try this Wednesday |
With option in config I make more test.
If set to 0x400 I prosodical get |
EDIT: Sorry for confusion. Setting above mentioned buffers indeed solved the problem, I just thought they were default values since they were commented out, but I didn't read the comments very well... I'm also getting read errors with the current master branch and default config files and starting with umtprd-ffs.sh. Connecting to Windows, I get nothing. Connecting to Linux, device is recognized with correct name but trying to open it fails (and file manager crashes). Trying to mount manually with jmtpfs gives |
ok fine. I suppose you are using an iMX 6 based hardware ? |
Seems like v1.0.0 offers much improvements over previous versions, nice going!
I've tried running v1.0.0 on our iMX.6 based product, but there is an USB read error.
UMTP outputs this information:
Was previously working on v0.14.1
Device does show up on both Windows 10 and Debian, but neither of them can see the mounted storage.
Our host device runs kernel 5.2.19 with an realtime patch.
The text was updated successfully, but these errors were encountered: