SD940 (IXUS120) porting thread - page 23 - DryOS Development - CHDK Forum supplierdeeply

SD940 (IXUS120) porting thread

  • 542 Replies
  • 202806 Views
Re: SD940 (IXUS120) porting thread
« Reply #220 on: 09 / January / 2011, 19:20:06 »
Advertisements
@waldo  -  Working on why PTP crashes,  I think I found that the stub_entry.s for set_control_event in both our versions is wrong.  Comparing to the S90,  its looks like your STUB(set_control_event, 0xff88a500) should be NHSTUB(set_control_event, 0xFF88A550)  Likewise,  the 103c needs NHSTUB(set_control_event, 0xff88a5ac) rather than 0xff88a55c.

Unfortunately,  that did not solve my problem with PTP hanging.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SD940 (IXUS120) porting thread
« Reply #221 on: 10 / January / 2011, 10:00:19 »
Lua should be working in Beta 4, right? I tried with the script from this thread (first page), it shut down the camera (crash?). Is it too old script to work? I'm using the 103c version (camera firmware 103c, checked). Tried the romlog.lua too and it gave me this:
Code: [Select]
SystemEventInit failed
GetLogToFile return -1
A/ROMLOG.LOG not written
I'm REALLY new to this, so excuse me. Did I just mess up something or is it not working yet?

*

Offline reyalp

  • ******
  • 14082
Re: SD940 (IXUS120) porting thread
« Reply #222 on: 10 / January / 2011, 12:10:42 »
Use the current version of the script, foun
Tried the romlog.lua too and it gave me this:
Code: [Select]
SystemEventInit failed
GetLogToFile return -1
A/ROMLOG.LOG not written
I'm REALLY new to this, so excuse me. Did I just mess up something or is it not working yet?
Use the latest version of the script, from a "full build" on the autobuild or http://tools.assembla.com/chdk/browser/trunk/CHDK/SCRIPTS/TEST/romlog.lua

You also need a CHDK with native calls enabled, but you should have got a different error if you didn't have that.
Don't forget what the H stands for.

Re: SD940 (IXUS120) porting thread
« Reply #223 on: 10 / January / 2011, 13:33:50 »
Use the latest version of the script, from a "full build" on the autobuild or http://tools.assembla.com/chdk/browser/trunk/CHDK/SCRIPTS/TEST/romlog.lua
Alright, that worked, thanks.
I wonder why the zoom lua script crashes though. Should it work or is it incompatible with the current CHDK?
EDIT: I think the line that causes it is set_zoom(max_zoom), now I'm getting the feeling I'm asking this in the wrong place.
Same with set_zoom(0) but then it zooms out a tiny bit before crashing.
« Last Edit: 10 / January / 2011, 13:53:25 by Dzre »


Re: SD940 (IXUS120) porting thread
« Reply #224 on: 10 / January / 2011, 14:11:56 »
Same with set_zoom(0) but then it zooms out a tiny bit before crashing.
The SD940 port has not had a lot of testing.  However,  see http://chdk.setepontos.com/index.php?topic=5855.msg59663#msg59663 up above - might be related.  I'll  upload a build with that change made tonight - let's see what happens ?

Ported :   A1200    SD940   G10    Powershot N    G16

Re: SD940 (IXUS120) porting thread
« Reply #225 on: 10 / January / 2011, 14:57:11 »
Yeah, I figured it probably isn't that stable yet, I just wasn't sure if my problem was with CHDK in general or this particular port.
Thanks for making this port happen! :)

Re: SD940 (IXUS120) porting thread
« Reply #226 on: 10 / January / 2011, 23:16:45 »
Yeah, I figured it probably isn't that stable yet, I just wasn't sure if my problem was with CHDK in general or this particular port.
Here's my latest build with the fix for set_control_event() mentioned earlier.
http://www.zshare.net/download/85042418e5f996a6/
Does it help ?
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SD940 (IXUS120) porting thread
« Reply #227 on: 11 / January / 2011, 07:57:16 »
The set_zoom(0) part of the script seems to be working but it still crashed when it tries set_zoom(max_zoom) so I did some tests.
Code: [Select]
max_zoom = get_zoom_steps() - 1get_zoom_steps() returns 11 so max_zoom is 10, but apparently the range that works is only 0-8 and anything above that will result in a crash. Set_zoom_speed() will crash too, though I'm not sure if that's even available in this camera(?).

So, yeah, I think that fixed it, unless you can make set_zoom_speed() somehow available.
« Last Edit: 11 / January / 2011, 08:24:55 by Dzre »


Re: SD940 (IXUS120) porting thread
« Reply #228 on: 11 / January / 2011, 09:23:20 »
So, yeah, I think that fixed it, unless you can make set_zoom_speed() somehow available.

@ Drze : To clarify,  did things start working with the new version I sent you that did not work with the Beta4 release ?
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SD940 (IXUS120) porting thread
« Reply #229 on: 11 / January / 2011, 09:57:10 »
To clarify,  did things start working with the new version I sent you that did not work with the Beta4 release ?

Yes, the set_zoom did not work at all and now works as long as you don't go out of range.

 

Related Topics