You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And this is the script I use to setup the gadget and start umtprd (basically the umtprd-ffs.sh examples) I run it from /home/
#!/bin/sh
mkdir cfg
mount none cfg -t configfs
mkdir cfg/usb_gadget/g1
cd cfg/usb_gadget/g1
mkdir configs/c.1
mkdir functions/ffs.mtp
mkdir strings/0x409
mkdir configs/c.1/strings/0x409
echo 0x0100 > idProduct
echo 0x1D6B > idVendor
echo "01234567" > strings/0x409/serialnumber
echo "Viveris Technologies" > strings/0x409/manufacturer
echo "The Viveris Product !" > strings/0x409/product
echo "Conf 1" > configs/c.1/strings/0x409/configuration
echo 120 > configs/c.1/MaxPower
ln -s functions/ffs.mtp configs/c.1
mkdir /dev/ffs-mtp
mount -t functionfs mtp /dev/ffs-mtp
# Start the umtprd service
umtprd > /home/umtp_log 2>&1 &
cd /
sleep 1
# enable the usb functions
ls /sys/class/udc/ > /home/cfg/usb_gadget/g1/UDC
dmesg output on the host when the device is connected:
[ 2138.381204] usb 1-6: new high-speed USB device number 39 using xhci_hcd
[ 2138.398729] usb 1-6: New USB device found, idVendor=1d6b, idProduct=0100, bcdDevice= 4.19
[ 2138.398735] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2138.398738] usb 1-6: Product: The Viveris Product !
[ 2138.398741] usb 1-6: Manufacturer: Viveris Technologies
[ 2138.398743] usb 1-6: SerialNumber: 01234567
The output from running mtpfs on the host:
Listing raw device(s)
Device 0 (VID=1d6b and PID=0100) is UNKNOWN in libmtp v1.1.17.
Please report this VID/PID and the device model to the libmtp development team
Found 1 device(s):
1d6b:0100 @ bus 1, dev 39
Attempting to connect device
error returned by libusb_claim_interface() = -6LIBMTP PANIC: Unable to initialize device
Unable to open raw device 0
I have also attached the umtprd debug output (compiled with -DDEBUG)... Am I doing anything wrong ? Please let me know if I can help debug this better. umtp_log.txt
The text was updated successfully, but these errors were encountered:
iabdalkader
changed the title
umtprd + functions fs Read Error (-64480)
umtprd + functions fs Read Error (-64480) v1.3.6
Jun 5, 2020
Hi I just saw issue #27 and un-commenting the buffers fixes it. I'm Not using an iMX based hardware, maybe the defaults should be lower since this seems to be a general issue.. Anyway, thanks and sorry for the noise!
Hi, I'm getting this error when trying to run umtprd with ffs: incoming_packet : Read Error (-64480)!
This is the stripped down config:
And this is the script I use to setup the gadget and start umtprd (basically the umtprd-ffs.sh examples) I run it from /home/
dmesg output on the host when the device is connected:
The output from running mtpfs on the host:
I have also attached the umtprd debug output (compiled with -DDEBUG)... Am I doing anything wrong ? Please let me know if I can help debug this better.
umtp_log.txt
The text was updated successfully, but these errors were encountered: