OpenWrt Forum Archive

Topic: gphoto2 segmentation error on TL-MR3020 and TL-MR3040

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi All,

Has anyone experienced segmentation error while gphoto2 is trying to detect the camera over usb? (e.g. ghoto2 --auto-detect, gphoto2 --capture-image)

Previously, I've managed to run an older version gphoto2 in the TL-MR3020, but after my usb drive which contain my overlay broke down, I reinstalled gphoto2 2.4.11 and realized that it wouldn't work anymore.

Similar error was experience with the TL-MR3040 (also running ar71xx), I've tried using the gphoto2 packages both from the repository and self compile but none of it works.

Does anyone has similar experience or have solutions to share?

Below is the log from gphoto2, I'm using a Nikon D90 in my test.

Camera Model "Nikon DSC D90 (PTP mode)"

root@OpenWrt:/# gphoto2 --debug --auto-detect
0.000032 main(2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
0.001791 main(2): gphoto2 2.4.11
0.002080 main(2): gphoto2 has been compiled with the following options:
0.002347 main(2):  + mips-openwrt-linux-uclibc-gcc (C compiler used)
0.002612 main(2):  + popt (mandatory, for handling command-line parameters)
0.002879 main(2):  + exif (for displaying EXIF information)
0.003141 main(2):  + no cdk (for accessing configuration options)
0.003406 main(2):  + no aa (for displaying live previews)
0.003666 main(2):  + jpeg (for displaying live previews in JPEG format)
0.003931 main(2):  + readline (for easy navigation in the shell)
0.004221 main(2): libgphoto2 2.4.12
0.004511 main(2): libgphoto2 has been compiled with the following options:
0.004779 main(2):  + mips-openwrt-linux-uclibc-gcc (C compiler used)
0.005054 main(2):  + ltdl (for portable loading of camlibs)
0.005317 main(2):  + EXIF (for special handling of EXIF files)
0.005602 main(2): libgphoto2_port 0.8.0
0.005887 main(2): libgphoto2_port has been compiled with the following options:
0.006153 main(2):  + mips-openwrt-linux-uclibc-gcc (C compiler used)
0.006417 main(2):  + ltdl (for portable loading of camlibs)
0.006680 main(2):  + USB (libusb, for USB cameras)
0.006942 main(2):  + serial (for serial cameras)
0.007203 main(2):  + no resmgr (serial port access and locking)
0.007468 main(2):  + no ttylock (serial port locking)
0.007730 main(2):  + no lockdev (serial port locking)
0.007998 main(2): CAMLIBS env var not set, using compile-time default instead
0.008242 main(2): IOLIBS env var not set, using compile-time default instead
0.008750 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto
0.009299 setting/gphoto2-setting.c(2): Can't open settings file for reading
0.009586 setting/gphoto2-setting.c(2): Loading settings from file "/root/.gphoto/settings"
0.009896 setting/gphoto2-setting.c(2): Can't open settings for reading
0.010190 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto
0.010478 setting/gphoto2-setting.c(2): Can't open settings file for reading
0.010730 setting/gphoto2-setting.c(2): Loading settings from file "/root/.gphoto/settings"
0.011021 setting/gphoto2-setting.c(2): Can't open settings for reading
0.016220 gphoto2-port-info-list(2): Using ltdl to load io-drivers from '/usr/lib/libgphoto2_port/0.8.0'...
0.022596 gphoto2-port-info-list(2): Called for filename '/usr/lib/libgphoto2_port/0.8.0/disk'.
0.025001 gphoto2-port/disk(2): found fstab fsname /dev/sda1
0.025931 gphoto2-port/disk(2): found mtab fsname rootfs
0.026325 gphoto2-port/disk(2): found mtab fsname /dev/root
0.026625 gphoto2-port/disk(2): found mtab fsname proc
0.026891 gphoto2-port/disk(2): found mtab fsname sysfs
0.027154 gphoto2-port/disk(2): found mtab fsname tmpfs
0.027464 gphoto2-port/disk(2): found mtab fsname tmpfs
0.027789 gphoto2-port/disk(2): found mtab fsname devpts
0.028078 gphoto2-port/disk(2): found mtab fsname /dev/sda1
0.028379 gphoto2-port/disk(2): found mtab fsname overlayfs:/overlay
0.028676 gphoto2-port/disk(2): found mtab fsname debugfs
0.029003 gphoto2-port/disk(2): found mtab fsname none
0.029818 gphoto2-port-info-list(2): Could not load port driver list: 'Unspecified error'.
0.030223 gphoto2-port-info-list(2): Called for filename '/usr/lib/libgphoto2_port/0.8.0/ptpip'.
0.033842 gphoto2-port-info-list(2): Loaded 'PTP/IP Connection' ('ptpip:') from '/usr/lib/libgphoto2_port/0.8.0/ptpip'.
0.041639 gphoto2-port-info-list(2): Loaded '' ('^ptpip') from '/usr/lib/libgphoto2_port/0.8.0/ptpip'.
0.041999 gphoto2-port-info-list(2): Called for filename '/usr/lib/libgphoto2_port/0.8.0/serial'.
0.044938 gphoto2-port-info-list(2): Loaded 'Serial Port 0' ('serial:/dev/ttyS0') from '/usr/lib/libgphoto2_port/0.8.0/serial'.
0.045454 gphoto2-port-info-list(2): Loaded '' ('^serial') from '/usr/lib/libgphoto2_port/0.8.0/serial'.
0.045792 gphoto2-port-info-list(2): Called for filename '/usr/lib/libgphoto2_port/0.8.0/usb1'.
0.057233 gphoto2-port-info-list(2): Loaded '' ('^usb:') from '/usr/lib/libgphoto2_port/0.8.0/usb1'.
0.061769 gphoto2-port-info-list(2): Loaded 'Universal Serial Bus' ('usb:001,003') from '/usr/lib/libgphoto2_port/0.8.0/usb1'.
0.062128 gphoto2-port-info-list(2): Loaded 'Universal Serial Bus' ('usb:001,011') from '/usr/lib/libgphoto2_port/0.8.0/usb1'.
0.062485 gphoto2-port-info-list(2): Called for filename '/usr/lib/libgphoto2_port/0.8.0/usbdiskdirect'.
0.065350 gphoto2-port-info-list(2): Loaded 'USB Mass Storage direct IO' ('usbdiskdirect:/dev/sda') from '/usr/lib/libgphoto2_port/0.8.0/usbdiskdirect'.
0.065859 gphoto2-port-info-list(2): Called for filename '/usr/lib/libgphoto2_port/0.8.0/usbscsi'.
0.068000 gphoto2-port-info-list(2): Counting entries (9 available)...
0.068412 gphoto2-port-info-list(2): 5 regular entries available.
0.068662 gphoto2-port-info-list(2): Counting entries (9 available)...
0.068928 gphoto2-port-info-list(2): 5 regular entries available.
0.072437 gphoto2-abilities-list(2): Using ltdl to load camera libraries from '/usr/lib/libgphoto2/2.4.12'...
0.083681 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/adc65'.
0.090460 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/agfa_cl20'.
0.091878 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/aox'.
0.092156 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/ax203'.
0.092433 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/barbie'.
0.092708 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/canon'.
0.092983 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/casio_qv'.
0.093258 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/clicksmart310'.
0.093534 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/digigr8'.
0.093809 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/digita'.
0.094085 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/dimagev'.
0.094360 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/dimera3500'.
0.094637 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/directory'.
0.094912 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/enigma13'.
0.095189 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/fuji'.
0.095464 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/gsmart300'.
0.095738 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/hp215'.
0.096013 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/iclick'.
0.096289 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/jamcam'.
0.096565 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/jd11'.
0.096838 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/jl2005a'.
0.097115 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/jl2005c'.
0.097389 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/kodak_dc120'.
0.097667 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/kodak_dc210'.
0.097942 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/kodak_dc240'.
0.098218 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/kodak_dc3200'.
0.098494 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/kodak_ez200'.
0.098768 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/konica'.
0.099045 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/konica_qm150'.
0.099321 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/largan'.
0.099595 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/lg_gsm'.
0.099872 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/mars'.
0.100147 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/mustek'.
0.100407 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/panasonic_coolshot'.
0.100667 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/panasonic_dc1000'.
0.100927 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/panasonic_dc1580'.
0.101187 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/panasonic_l859'.
0.104040 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/pccam300'.
0.110032 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/pccam600'.
0.112155 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/polaroid_pdc320'.
0.112415 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/polaroid_pdc640'.
0.112671 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/polaroid_pdc700'.
0.112927 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/ptp2'.
0.113180 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/ricoh'.
0.113434 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/ricoh_g3'.
0.113688 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/samsung'.
0.113942 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/sierra'.
0.114196 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/sipix_blink2'.
0.114451 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/sipix_web2'.
0.114708 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/smal'.
0.114964 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/sonix'.
0.115219 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/sony_dscf1'.
0.115475 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/sony_dscf55'.
0.115731 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/soundvision'.
0.115985 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/spca50x'.
0.116240 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/sq905'.
0.116497 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/st2205'.
0.116753 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/stv0674'.
0.117006 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/stv0680'.
0.117260 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/sx330z'.
0.117515 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/topfield'.
0.117770 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/toshiba_pdrm11'.
0.118025 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.12/tp6801'.
0.118378 gp-abilities-list(2): Found 63 camera drivers.
1.585610 gphoto2-port-info-list(2): Counting entries (9 available)...          
1.591521 gphoto2-port-info-list(2): 5 regular entries available.
1.591799 gphoto2-port(2): Creating new device...
1.592091 gphoto2-port-info-list(2): Getting info of entry 0 (9 available)...
1.593968 gphoto2-port(2): Setting settings...
1.594308 gphoto2-port-info-list(2): Getting info of entry 1 (9 available)...
1.596513 gphoto2-port(2): Setting timeout to 500 milliseconds...
1.596901 gphoto2-port(2): Setting settings...
1.597139 gphoto2-port-info-list(2): Getting info of entry 2 (9 available)...
1.603044 gphoto2-port(2): Setting timeout to 5000 milliseconds...
1.609166 gphoto2-port(2): Setting settings...
1.611675 libusb1(2): gp_port_usb_update(old int=0, conf=-1, alt=-1), (new int=0, conf=-1, alt=-1)
1.612248 gphoto2-abilities-list.c(1): Auto-detecting USB cameras...
Segmentation fault

same issue after updating MR3020 to r33288,..

Cameras used: Nikon D300, Canon EOS 1100D

(Last edited by joky on 2 Sep 2012, 12:55)

seems that gphoto2 should be compiled against libusb instead of libusb-1.0,...

http://sourceforge.net/mailarchive/foru … hange+View

Hi TinY,

you can fix the problem by using libusb instead of libusb-1.0. Try the
Openwrt-Makefile attached to this mail.

Deti

Same problem here with WR842ND Tplink family....

I found a patch here: http://sourceforge.net/mailarchive/mess … d=29751984

But i'm a noob and i don't know how to install it..i have stored it in root dir but now?!?!?
Anyone can help me?? Please!
Thanx to all

For those that have my problem...i solve it!!!


1) Change repository: modify the /etc/opkg.conf (using WinSCP in example) and in the first line save the url in a local file and replace with this:
http://downloads.openwrt.org/backfire/1 … /packages/

2) Connect via SSH and type:
opkg update
(wait)
opkg install gphoto2
(wait)
opkg install libgphoto2
(wait)
opkg install libphoto2-drivers

then return in opkg.conf and replace the url in the original form. Then

opkg update
(wait)
opkg install gphoto2

(and just this!!!!)

At the end of installation all goes in the true way!

Nothig to do: today i reinstalled any possible version of gphoto and router gives me always

Segmentation Fault

Test with
2.4.9-1
2.4.9-2
2.4.11
2.5.0

It's very frustrating to see that resetting the router and do the same step of yesterday (gphoto worked until this morning) doesn't produce the same result. It's possible that there is an error in the repository????

Finally solved.....i'hope

opkg install pthread

and then i can use 2.5.0 that is faster than the old version!!!
Now ready for others problems (they are jey arrived: Could not change shutter speed Could not change aperture)

Hope it's usefull for others

Help?  NOOB to everything OpenWrt - Just got the TL-MR3040
Firmware: OpenWrt Attitude Adjustment 12.09-rc1 | Load: 0.01 0.10 0.07

Loaded packages - gphoto2 - 2.4.11-1, libgphoto2 - 2.4.11-1, libusb - 0.1.12-3
AFTER those loads - I only have 29% mem left 316 kb
COULD NOT Load Package:      libgphoto2-drivers - 2.4.11-1
Got the following trying to load the libgphoto2-drivers

Installing libgphoto2-drivers (2.4.12-1) to root...
Collected errors:
* verify_pkg_installable: Only have 316kb available on filesystem /overlay, pkg libgphoto2-drivers needs 594
* opkg_install_cmd: Cannot install package libgphoto2-drivers.

Below is gphoto debug results

root@OpenWrt:~# gphoto2 --debug -auto-detect
0.000033 main(2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
0.002116 main(2): gphoto2 2.4.11
0.002384 main(2): gphoto2 has been compiled with the following options:
0.002630 main(2):  + ccache_cc (C compiler used)
0.002873 main(2):  + popt (mandatory, for handling command-line parameters)
0.003123 main(2):  + exif (for displaying EXIF information)
0.003368 main(2):  + no cdk (for accessing configuration options)
0.003794 main(2):  + no aa (for displaying live previews)
0.004039 main(2):  + jpeg (for displaying live previews in JPEG format)
0.004286 main(2):  + readline (for easy navigation in the shell)
0.004568 main(2): libgphoto2 2.4.12
0.004837 main(2): libgphoto2 has been compiled with the following options:
0.005083 main(2):  + ccache_cc (C compiler used)
0.005490 main(2):  + ltdl (for portable loading of camlibs)
0.005865 main(2):  + EXIF (for special handling of EXIF files)
0.006143 main(2): libgphoto2_port 0.8.0
0.006538 main(2): libgphoto2_port has been compiled with the following options:
0.006788 main(2):  + ccache_cc (C compiler used)
0.007067 main(2):  + ltdl (for portable loading of camlibs)
0.007312 main(2):  + USB (libusb, for USB cameras)
0.007554 main(2):  + serial (for serial cameras)
0.007798 main(2):  + no resmgr (serial port access and locking)
0.008041 main(2):  + no ttylock (serial port locking)
0.008285 main(2):  + no lockdev (serial port locking)
0.008535 main(2): CAMLIBS env var not set, using compile-time default instead
0.008763 main(2): IOLIBS env var not set, using compile-time default instead
0.009436 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto
0.018399 setting/gphoto2-setting.c(2): Can't open settings file for reading
0.023867 setting/gphoto2-setting.c(2): Loading settings from file "/root/.gphoto/settings"
0.030191 setting/gphoto2-setting.c(2): Can't open settings for reading
0.035831 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto
0.041124 setting/gphoto2-setting.c(2): Can't open settings file for reading
0.042031 setting/gphoto2-setting.c(2): Loading settings from file "/root/.gphoto/settings"
0.042339 setting/gphoto2-setting.c(2): Can't open settings for reading
0.043028 main(2): The user has not specified both a model and a port. Try to figure them out.
0.043397 gphoto2-port-info-list(2): Using ltdl to load io-drivers from '/usr/lib/libgphoto2_port/0.8.0'...
0.044681 gphoto2-port-info-list(2): Counting entries (0 available)...
0.045027 gphoto2-port-info-list(2): 0 regular entries available.
0.047391 gphoto2-abilities-list(2): Using ltdl to load camera libraries from '/usr/lib/libgphoto2/2.4.12'...
0.050044 gp-abilities-list(2): Found 0 camera drivers.
0.052315 gphoto2-port-info-list(2): Counting entries (0 available)...         
0.052468 gphoto2-port-info-list(2): 0 regular entries available.
0.052575 gphoto2-port(2): Creating new device...
0.052767 gphoto2-port(2): Freeing port...
0.052917 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto
0.053102 setting/gphoto2-setting.c(2): Can't open settings file for reading
0.053204 setting/gphoto2-setting.c(2): Loading settings from file "/root/.gphoto/settings"
0.053331 setting/gphoto2-setting.c(2): Can't open settings for reading
0.053427 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto
0.053565 setting/gphoto2-setting.c(2): Can't open settings file for reading
0.053664 setting/gphoto2-setting.c(2): Loading settings from file "/root/.gphoto/settings"
0.053792 setting/gphoto2-setting.c(2): Can't open settings for reading
0.053933 gphoto2-camera(2): Initializing camera...
0.055854 gphoto2-camera(2): pinfo.type 0
0.055997 gphoto2-camera(2): pinfo.path
0.056093 gphoto2-camera(2): pinfo.name
0.056188 gphoto2-camera(2): Neither port nor model set. Trying auto-detection...
0.056330 gphoto2-abilities-list(2): Using ltdl to load camera libraries from '/usr/lib/libgphoto2/2.4.12'...
0.058649 gp-abilities-list(2): Found 0 camera drivers.
0.059721 gphoto2-port-info-list(2): Using ltdl to load io-drivers from '/usr/lib/libgphoto2_port/0.8.0'...
0.060067 gphoto2-port-info-list(2): Counting entries (0 available)...
0.060196 gphoto2-port-info-list(2): 0 regular entries available.
0.060305 gphoto2-port(2): Creating new device...
0.060417 gphoto2-port(2): Freeing port...
0.060563 context(0): Could not detect any camera

*** Error ***             
Could not detect any camera
*** Error (-105: 'Unknown model') ***       

0.061099 gp-camera(2): Freeing camera...
0.061197 gphoto2-port(2): Freeing port...
0.061298 gphoto2-filesystem(2): resetting filesystem
0.061395 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list...
0.061490 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty
0.061587 gphoto2-filesystem(2): Internally deleting all folders from '/'...
0.068144 gphoto2-filesystem(2): Lookup folder '/'...
0.072294 gphoto2-filesystem(2): Found! / is 0x60d2c8
0.072608 gphoto2-filesystem(2): Recurse delete folder 0x60d2c8//
root@OpenWrt:~# gphoto2 --list-ports
Devices found: 0

Essentially - 1st step just want to at least get to the point where my Nikon camera is detected.  Should I be using a different image - create my own?  If so, what should the absolute minimum be?  I am using a combo of Luci and command line.  Luci to just get the router network setup.

Thanks in advance.

(Last edited by sjunk111 on 16 May 2013, 18:45)

Hi!

I've read just now..but i can understand that you can't install libgphoto2-drivers due to not enough free space on memory. So you need to use a usb external sotrage (it's not simple to install over it) or a router that have more free space..
Waiting for more expert answer!

<Lork> wrote:

Waiting for more expert answer!

So what exactly are you waiting for?
There are not many ways to install a software which exceed your available size on your router, computer,...

1.) Expand space
can be EASILY done via USB. As you're using a camera I assume you connect this to the router also via USB so you will need a Hub to connect both. I use that one:
http://www.delock.de/produkte/G_61724/m … anguage=en

The only issue is to get an USB-Stick which is stable enough for your application. If you put it on your desk it doesn't matter, if you put it 100 miles away it does.

2.1) Save space - own image
You can cook your openwrt and exclude a lot of software you may not need and install gphoto2 instead. That option is not really easy but may suit if you want to setup more than one device.

2.2) Save space - drivers
The drivers-package includes more drivers than you may need. If you need the support for a canon dslr you just need to copy ptp2.so.



From my experience, Option 1 is the easiest for many situations, but the hub and the usb-stick doesn't really increase the stability of the system. On the other side you can install a lot of utilities on the USB-stick as you are not limited to the integrated flash and you can use the stick as swap.

Thank you for the quick replies.  So am I to deduce, that one of the issues may simply be the drivers package?  I guess I'm wondering if there's a difference between detection of the device vs. driver needed to execute camera functions.  As you may guess, I am really a NOOB and learning, the quick response in the community sure is appreciated.

I will try Option 1 (have to learn how to do that as well =p all fun though) first, to at least attempt to get to detection and camera control on my desk, then move to baking own packages.

You are searching for extroot (that keyword has been missing in this thread so far).

http://wiki.openwrt.org/doc/howto/extroot

Setup extroot, install whatever you want, be happy. smile

Hi Guys,

I just succeeded to compile a gphoto2 package using the latest gphoto2 version 2.5.2:
https://cloud.smart-mt.at/data/public/ad9dda.php#1 **UPDATED**


If you need compiled packages let me know! I only included the most common ptp2-driver in this patch, if you need more just modify the libgphoto2-Makefile accordingly (eg. removing "--with-camlibs=ptp2 \" to build all drivers).


bests

(Last edited by joky on 30 Jul 2013, 10:55)

<Lork> wrote:

Now ready for others problems (they are jey arrived: Could not change shutter speed Could not change aperture)

Which camera do you use?
I usually only change some specific settings, eg. exposure-compensation or ISO and those work fine on Canon EOS cameras. But the features vary by each camera, most cameras doesn't support tethered capturing at all,..

Has anyone got a good compiled package, ideally of libgphoto2, libgphoto2-drivers and gphoto2 ideally from 2.5.2 source that work on these TP-Link routers? It seems this problem has been running around for awhile, but the Attitude Adjustment binaries don't work. I'm a noob to OpenWRT and setting up the environments to cross compile this code. I'm knee deep in it now, but if someone can help us out here and either post or submit binaries, it would be greatly appreciated.

google those packages (all of them) "gphoto2_2.5.0-1_ar71xx.ipk, libgphoto2_2.5.0-1_ar71xx.ipk, libgphoto2-drivers_2.5.0-1_ar71xx.ipk"

one single source smile

oh, yes, only 2.5.0, but they're working for me on an EOS 400D and DIR-505 (formerly on a TL-MR3020, which also worked).

(Last edited by tmo26 on 20 Jul 2013, 23:39)

Ah, Herzlichen Dank!

I suppose in my searches prior I wasn't looking hard enough or in the right way. It took a search on an individual package name to find them. They are working now just as described and while I still want to get the environment set up to cross compile, (for gphotofs) it's not a necessity now.

Also it was good to see the remote camera setup on foto-webcam,

Thanks again!

(Last edited by jdietzphoto on 21 Jul 2013, 17:06)

joky wrote:

Hi Guys,

I just succeeded to compile a gphoto2 package using the latest gphoto2 version 2.5.2:
https://cloud.smart-mt.at/public.php?se … e375894e7d

If you need compiled packages let me know! I only included the most common ptp2-driver in this patch, if you need more just modify the libgphoto2-Makefile accordingly (eg. removing "--with-camlibs=ptp2 \" to build all drivers).


bests

Hi joky

i found your post right now, but the link that you reported here and here seems to be broken...

Have you got the precompiled packages of gphoto2 2.5.2 for tp-link routers? I have a WR842ND, my default repository (ar71xx) has not the updated version of gphoto, and due to the famous problem of "segmentation fault" (libusb1 problem) i can't use my Canon G2 with this routers...

If you have them, you make my day! :-)

In case you can't get hold of the 2.5.2 version: Have you tried 2.5.0 already?

The other question is: How can we get 2.5.2 into the official openwrt distribution?

tmo26 wrote:

In case you can't get hold of the 2.5.2 version: Have you tried 2.5.0 already?

Tried some month ago, but i remember that i met some problem

tmo26 wrote:

The other question is: How can we get 2.5.2 into the official openwrt distribution?

QUOTE

Hoping for a joky answer :-)

Many thanx joky...sorry but..i'm noob about compiling on openwrt.
The two .zip files contains makefile, not .ipk how i must use them?
Many thanx!

edit: just tried to download SDK, to compile makefile under openwrt, but i can't do it due to not enough free space...

(Last edited by <Lork> on 30 Jul 2013, 11:24)

Hi Lork,

the ipk file contains compiled packages for a specific architecture and openwrt version.

Which Router do you use? Which camera?
I can compile it for Openwrt 12.09.


kind regards

(Last edited by joky on 21 Jul 2014, 06:59)

Many thanx Erwin!

i've Openwrt 12.09 and a Canon Powershot G2. It would be P-E-R-F-E-C-T if you can build .ipk :-)

Unfortunately i can't compile them on my openwrt platform...

The discussion might have continued from here.