Re: ptp-gadget (by denx) on beaglebone black

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

 



W dniu 09.12.2014 o 04:47, ivo welch pisze:

dear usb experts---per request in the readme file, I am asking the question here.

I am trying to get a ptp-gadget device-side implementation of the Picture
Transfer Protocol to work on a beaglebone black (AM335x), running debian
7.7.  the hosts to use my beaglebone-black device will only be desktop
linux computers, so I won't have to worry about obsolete windows bugs.  my
USB mass storage and USB networking are running on the same gadget USB
client port, so I know I have connection and no power issues.

There is already a "simple" ptp implementation from denx that does what I
need.  I want my device to listen (and/or take over) my USB port, answer
connections, allow file transfers, and allow disconnections.  that's it.
(If there is a more solid standard implementation, please let me know.  I
only need the minimum ptp functions, but I would like them to be as fast
and robust as possible.)

after downloading the ptp-gadget git, an autoconf complains that
AM_MAINTAINER_MODE, AC_PROG_LIBTOOL and AM_INIT_AUTOMAKE are undefined.

probably not surprisingly, the resulting "./configure" script then does not
work, complaining that it cannot find install-sh, install.sh, or shtool.

this couldn't stop me.  ;-).  ptp.c is just one file, I just created my own
Makefile.  I had to -I/usr/include/grlib-2.0 and
-I/usr/lib/arm-linux-gnueabihf/glib-2.0/include in the first stage and
-lglib-2.0 in the second stage.

the source seems fairly clean, except for two warnings that could lead to a
segfault, based on bad formats %llx on long unsigned int's (instead of long
long unsigned int).

starting the program, either with "ptp" or with "ptp -v" or with "ptp -v
/var/cache/ptp/" (which I created and made user rwx, as well as its thumb
directory below it), tells me that I am running Linux PTP Gadget v1.1
(good) and then that it can't chdir to /dev/ptp (no such file or
directory).

this confuses me.  what is supposed to have created /dev/ptp?  I am


Not "what" but "who" in this case: yourself?

I don't know if Michael's implementation is "by denx".
You can have a look at these implementations:

http://www.spinics.net/lists/linux-usb/msg41962.html
http://www.spinics.net/lists/linux-usb/msg87093.html

They use FunctionFS.

AP
--
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