ptp-gadget (by denx) on beaglebone black

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

 



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
guessing I need a device file for /etc/udev/rules.d, but I don't know how
to do this right.  if there is a document for me to read how to get the
device files up, please let me know.  help appreciated.

/iaw


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