This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM355_gadgetfs

Dear experts,

     I want to implement PTP (Picture Transfer Protocol) for USB interfacing of my DM355 leopard board. I want to transfer Images over USB, where my board is a gadget and the Windows PC will be host. I have found one sample code for PTP on the following link

http://git.denx.de/ptp-gadget.git/?p=ptp-gadget.git;a=tree;h=bcfb54b759a62c76bb8e2e2b62a2c4a1838e03c4;hb=726d2320922cb215671de43ae69cda73cacb0924

     This creates an application for PTP which implements USB gadgetfs for communication. I have been able to compile this application successfully. I followed the following procedure on my board.

(1) insmod gadgetfs.ko

(2) mkdir /dev/gadget

(3) mount -t gadgetfs gadgetfs /dev/gadget

(4) ./ptp

     I didn't get any problem till step 3. When i executed the application in step 4, it said file cannot be executed. I have checked the permission and that is proper.

     Can someone guide me whats going wrong in this?

 

Thanking you.