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

libmtp copy files error. Rock Pi 4. #69

Open
lasdasdas opened this issue Nov 10, 2021 · 1 comment
Open

libmtp copy files error. Rock Pi 4. #69

lasdasdas opened this issue Nov 10, 2021 · 1 comment

Comments

@lasdasdas
Copy link

Hi,

Thank you for this project! I am currently trying to use it in a Rock Pi 4. First of all I had to do some kernel tweaking but FunctionFS is working with the rockchip-dwc3 / dwc3 drivers.

UBUNTU host

Now I have two problems. The first one is that when copying files into the device from an Ubuntu computer I am unable to do so. I will attach the umtpmd log with verbose output first:
log.txt

On the host side, the libmtp errors I get:

e@e:~$ mtp-sendfile testsend /
libmtp version: 1.1.13
Device 0 (VID=1d6b and PID=0100) is UNKNOWN in libmtp v1.1.13.
Please report this VID/PID and the device model to the libmtp development team
Android device detected, assigning default bug flags
Sending testsend to /
type: , 44
Sending file...
Progress: 29 of 29 (100%)
Error sending file.
Error 2: PTP Layer error 2002: get_suggested_storage_id(): could not get storage id from parent id.
Error 2: Error 2002: PTP General Error
Error 2: PTP Layer error 02ff: add_object_to_cache(): couldn't add object to cache
Error 2: Error 02ff: PTP I/O Error
Error 1: LIBMTP_Send_File_From_File_Descriptor(): Could not retrieve updated metadata.
ERROR: Could not close session!

Mind you this was compiled using the SS_SUPPORT flags. The rest of the operations work as expected and superspeed is enabled AFAIK judging by the transfer speed and the output of:

root@rockpi4b:/home/rock/UMTP3# cat /sys/class/udc/fe800000.dwc3/maximum_speed 
super-speed

@lasdasdas
Copy link
Author

Windows host

Everything is working perfectly however there USB superspeed is not working. Here is the log on the uMPT side.

log_windows.txt

And also the output of the device speed.

root@rockpi4b:/home/rock/UMTP3# cat /sys/class/udc/fe800000.dwc3/current_speed 
high-speed
root@rockpi4b:/home/rock/UMTP3# cat /sys/class/udc/fe800000.dwc3/maximum_speed 
super-speed

If you chose to take a look into this issue lmk if I can do anything to help troubleshooting. The demsg output does not show anything of interest and my investigations have pointed me towards a failure to respond to a MTP_OPERATION_SEND_OBJECT request on the Ubuntu case but I could not get anything else.

Thank you!

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

1 participant