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

SD940 (IXUS120) porting thread

  • 542 Replies
  • 103779 Views
Re: SD940 rev 103c porting thread (IXUS120)
« Reply #40 on: 12 / December / 2010, 17:01:55 »
Advertisements
I believe init_file_modules should be 0xFF88E520, not 0xFF88E570 for 102C (the task, not the createTask).

I looked again and you are correct. Sort of confirms my concern about blindly porting to alternate firmware versions without a way to test.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline waldo

  • ***
  • 238
Re: SD940 rev 103c porting thread (IXUS120)
« Reply #41 on: 12 / December / 2010, 18:01:14 »
It appears that the SD940 uses propset3, not propset2 in camera.h.  Changing this should help.

*

Offline waldo

  • ***
  • 238
Re: SD940 rev 103c porting thread (IXUS120)
« Reply #42 on: 12 / December / 2010, 18:39:02 »
Here's where I am at on the 102C

Battery voltage = 0

Display button not working properly

Screen updates not 100%

Task patches:
   exp drv:
      overrides working ok
   capt seq:
      overrides working ok
      not all patches working yet
   kbd task
      working ok
   file modules:
      core_spytask_can_start ok
      FAT32 not working yet ("memory card error")
   movie record:
      optical zoom works
   
Edit: USB remote doesn't work either, but that's because it's commented out for now.
« Last Edit: 12 / December / 2010, 20:29:48 by waldo »

Re: SD940 rev 103c porting thread (IXUS120)
« Reply #43 on: 12 / December / 2010, 18:41:47 »
It appears that the SD940 uses propset3, not propset2 in camera.h.  Changing this should help.
Is there a short explanation of what the propset #defines control ? Some sort of offsets into the camera's data structures ?
Ported :   A1200    SD940   G10    Powershot N    G16


Re: SD940 rev 103c porting thread (IXUS120)
« Reply #44 on: 12 / December / 2010, 18:43:51 »
Here's where I am at on the 102C
Are you going to post your "alpha" build somewhere.  Seems like there are more than a few SD940 owners who are interested - my useless 103c version has had over 25 downloads.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline waldo

  • ***
  • 238
Re: SD940 rev 103c porting thread (IXUS120)
« Reply #45 on: 12 / December / 2010, 18:55:12 »
Here's where I am at on the 102C
Are you going to post your "alpha" build somewhere.  Seems like there are more than a few SD940 owners who are interested - my useless 103c version has had over 25 downloads.
I noticed the propset problem when all the pictures used the same shutter speed.  I traced it to the prop case for Tv being always 0.  I checked several other prop cases and it looks like propset 3 is a good match. Using the prop case debug screen helps to figure out which settings go with which prop case number.

My port has only started to be slightly useful in the last few minutes, but I'll post a version in a few hours.  I'll also post the source in case you want to merge it with your version.  I made almost no changes outside the platform folder (and no changes to the 103c files) so it shouldn't be too hard.

Re: SD940 rev 103c porting thread (IXUS120)
« Reply #46 on: 12 / December / 2010, 19:20:25 »
Wow - you are flying through this !   I think maybe I need a new computer.  Its taking 10 minutes to recompile on the command line - longer if I use the full GUI under Windows.  Averaging three iterations per hour,  this is taking a long time.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline waldo

  • ***
  • 238
Re: SD940 rev 103c porting thread (IXUS120)
« Reply #47 on: 12 / December / 2010, 19:29:53 »
I don't use the Windows shell - I just execute a batch file and that seems a little faster.  I also usually don't do a clean after the compile, so it does an incremental build.  Incremental builds don't always work properly, but if you just change .c files it seems to do the right thing.  Also, gcc 3 is faster than gcc 4 from what I've heard.  I think you could probably also remove the tools and lib directories from the compile part of the build if you know that those did not change, but I haven't tried that yet.


Re: SD940 rev 103c porting thread (IXUS120)
« Reply #48 on: 12 / December / 2010, 19:37:29 »
Did you find a better workaround for vid_bitmap_refresh() than what I did ?

I posted at http://chdk.setepontos.com/index.php?topic=5857.0 and a few other place but never came up with anything that actually worked properly.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline whim

  • ******
  • 2013
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: SD940 rev 103c porting thread (IXUS120)
« Reply #49 on: 12 / December / 2010, 20:02:38 »
Quote
Also, gcc 3 is faster than gcc 4 from what I've heard
About twice as fast
Quote
you could probably also remove the tools and lib directories from the compile part of the build if you know that those did not change, but I haven't tried that yet.
probably not much to be gained there; on the other hand, once your stubs & sigs are properly generated,
switching off OPT_GEN_STUBS and OPT_GEN_SIGS can save ~ 20 -30 sec.
Bern R managed to get his compile time down to 5.5 sec using gmake fir on GCC 3.4.6:
http://chdk.setepontos.com/index.php?topic=845.msg57717#msg57717

hope that helps, and sorry for off topic,

wim


 

Related Topics