ffs-test fails with warning (-19) No such device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to establish a high performance USB connection from device/gadget to host. On the USB gadget side I'm running on a Atmel ATSAMA5D35-EK. The Linux Kernel version is 4.1 (4.1.0-linux4sam_5.2-00045-g633e08a) and I'm using configfs to set things up.

I strictly followed the steps according to the presentations from the Embedded Linux Conference 2014 (by Alan Ott and Matt Porter)

Here is what I did on the USB device side so far:

# insmod atmel_usba_udc.ko
# insmod usb_f_fs.ko

# mkdir -p /home/root/configfs
# mount -t configfs none /home/root/configfs
# mkdir -p /home/root/configfs/usb_gadget/g1

# echo "0x1a0a" > /home/root/configfs/usb_gadget/g1/idVendor
# echo "0xbadd" > /home/root/configfs/usb_gadget/g1/idProduct

# mkdir -p /home/root/configfs/usb_gadget/g1/strings/0x409
# echo "1234" > /home/root/configfs/usb_gadget/g1/strings/0x409/serialnumber
# echo "manufacturer" > /home/root/configfs/usb_gadget/g1/strings/0x409/manufacturer
# echo "product" > /home/root/configfs/usb_gadget/g1/strings/0x409/product

# mkdir -p /home/root/configfs/usb_gadget/g1/configs/c.1
# mkdir -p /home/root/configfs/usb_gadget/g1/configs/c.1/strings/0x409
# echo "Config1" > /home/root/configfs/usb_gadget/g1/configs/c.1/strings/0x409/configuration

# mkdir -p /home/root/configfs/usb_gadget/g1/functions/ffs.usb0
# ln -s /home/root/configfs/usb_gadget/g1/functions/ffs.usb0 /home/root/configfs/usb_gadget/g1/configs/c.1

# mkdir -p /home/root/ffs
# mount usb0 /home/root/ffs -t functionfs

# cd /home/root/ffs
# ../ffs-test 64 &

Setting up the device and functionfs works perfectly fine, but when executing the ffs-test I get the following log messages:

ffs-test: info: ep0: writing descriptors (in v2 format)
ffs-test: info: ep0: writing strings
ffs-test: dbg:  ep1: starting
ffs-test: dbg:  ep2: starting
ffs-test: info: ep0: starts
ffs-test: info: ep2: starts
ffs-test: info: ep1: starts
ffs-test: warn: ep1: write: (-19) No such device
ffs-test: warn: ep2: read: (-19) No such device
ffs-test: info: ep1: ends
ffs-test: info: ep2: ends
Event BIND
Event ENABLE

On the host side I am using tools/usb/testusb.c which only performs test 0, 9 and 10 (probably because of the -19 error above?)

sudo ./testusb -D /dev/bus/usb/002/006
./testusb: /dev/bus/usb/002/006 may see only control tests
/dev/bus/usb/002/006 test 0,    0.000011 secs
/dev/bus/usb/002/006 test 9,    0.535505 secs
/dev/bus/usb/002/006 test 10,    3.080686 secs

Can anyone tell what might be causing "ep1: write" and "ep2: read"
to fail with error (-19) No such device?

Best regards
Jan--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux