It seems to me the case of a cat that tries to bite its own tail. I need to access the controls through the GUI of chdkptp because the camera is in an expensive to open box; but it crashes, so I need to retrieve the debug log; but to do so I have to issue some commands on the controls.
Unless there is a way to enable native commands (why are they disabled in the first place?) form the chdkptp command line?
Sorry, I forgot about this
There currently isn't a way to enable them over PTP.
If you have another camera that isn't in the box, you could enable them and then copy the CFG file. Zeno's CFG editor
http://zenoshrdlu.com/cfgedit/chdkcfgedit.html might also let you do this.
Another option is to build your own CHDK with native calls permanently enabled, using OPT_FORCE_LUA_CALL_NATIVE=1 in your localbuildconf.inc. I think the chdkde builds (see
http://forum.chdk-treff.de/download.php) are set this way by default, so you could use one of those.
Native calls are disabled by default because it makes it trivial to write a script that would permanently brick the camera.