Hello CHDK enthusiasts!
I'm currently trying (and failing miserably) to build a working version of chdkptp on GNU/Linux (ubuntu 11.10, i686).
First of all, I use the last CHDK and CHDKPTP svn trunk sources (resp. Rev 2103 / Rev 286). (I also tried with other versions with same result).
I can build the complete chdk "firzipsubcomplete" image for my ixus40_sd300_100k, which installs on sd card and works great.
I can build the chdkptp tool in order to help pushing/debugging lua scripts on the camera, but always get the same kind of errors when I try to use it:
(first I disabled the libgphoto2 udev rules to avoid gvfs automounting of ptp device)
$ cd lua/
$ ../chdkptp -i
___> list
unexpected return code 0x2fd
ERROR: Could not close session!
!1: b=002 d=019 ERROR: error
___> connect
unexpected return code 0x2fd
ERROR: error
con> ls
unexpected return code 0x2ff
ERROR: ptp error
con> reboot
unexpected return code 0x2ff
ERROR: failed
con> dis
ERROR: Could not close session!
I've also tried to change the CHDK_SRC_DIR, pointing to chdk source dir and rebuild, but same result.
I'm trying to sniff the usb trafic with usbmon (as attached to this post) corresponding to a chdkptp "list" command:
___> list
unexpected return code 0x2fd
ERROR: Could not close session!
!1: b=002 d=020 ERROR: error
So, I'm stuck here, no big deal though, I can remove the SD card, write my lua script on it and put it back in the camera, but this is quite tedious.
Is there any possibility to find what's going wrong or enable a "debug" mode in chdkptp ?
Anyway, I'm fond of chdk and associated tools, fantastic work, you all rock !
Regards,
sebh