-
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
MTP Driver load, but no device appear in explorer #23
Comments
Can you rebuild umtprd with the "-DDEBUG" flag and post the debug output ? |
I just re-compile the server with debug option, and here is the syslog output. I hope this can help. Thanks for your help ! :) |
Look fine but you don't have any particular event/log when plug/unplug the usb cable ? |
I run mtp-detect under ubuntu16.04 and here is the output : libmtp version: 1.1.10 And the dmesg log when I connect the device : [ 3533.380000] gadgetfs: suspended from state 3 |
And at the device side ? |
the dmesg was at device side, the mtp-detect on the linux pc. here is also the syslog on the device side when I un-plug the re-plug : Jan 1 05:42:36 BrReader user.info kernel: gadgetfs: suspended from state 3 |
Try to set loop_on_disconnect to 1. |
The set loop_on_disconnect to 1 didn't fix the problem. I tried the functionfs mode, but it seems to not work at all... modprobe: module libcomposite not found in modules.dep Did I have to perform any init before ? Also, I notice in the script that the libcomposite module is loaded, but it's not in my system. Why it is used for the mtp ? I will try include it in my rootfs right now. |
I found the problem !!! The usb driver have multiple fifo mode and the default one is not good for mtp (0). For atmel devices we need to set the mode 3 : atmel_usba_udc.fifo_mode=3 Reference : https://www.at91.com/linux4sam/bin/view/Linux4SAM/USBGadgetConfig So the GadgetFS with mode3 is working perfectly ! Thank you so much for your support ! |
Perfect ! :) (yes the libcomposite module is needed for the FunctionFS mode). |
Hi,
I'm trying to run the server on my dev board and I have an issue with the MTP device. The umtpd start correctly, the driver appear in my W10 home device manager correctly (no error in all fields), but no device appear in the file explorer.
I use Buildroot to build umtpd, by using the package : https://stackoverflow.com/questions/54131103/buildroot-github-package-re-extracted-at-every-build
My kernel is : 4.14.73-linux4sam_6.0
My cpu is a : Atmel Sama5D3
I have enabled gadgetfs in the kernel.
I kept the default config file except for the driver at the end, I comment the linux driver and un-comment the GadgetFS driver for the Sama5D2 (it`s the same for D3 I suppose)
I run manually after the boot up the script : /usr/bin/umtprd_gfs.sh to start the server and it runs without any error. When connected it show :
gadgetfs: bound to atmel_usba_udc driver
gadgetfs: suspended from state 2
gadgetfs: connected
gadgetfs: configuration #1
Anyone had a similar issue ? Any way to help me debugging this more deeply ?
Thanks a lot,
Sylvain
The text was updated successfully, but these errors were encountered: