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

SD940 (IXUS120) porting thread

  • 542 Replies
  • 202955 Views
Re: SD940 (IXUS120) porting thread
« Reply #470 on: 21 / May / 2011, 12:44:19 »
Advertisements
Thanks. I appreciate your suggestions so far.

Re: SD940 (IXUS120) porting thread
« Reply #471 on: 22 / May / 2011, 05:36:14 »
Here you go - at least I think so as I don't have a 1.00e camera to test this with.
IXUS120SD940 Firmware 1.00e
Great stuff Waterwingz. I should be able to test monday evening. Many Thanks.

Wow that works a treat! Nice one.

I Haven't used it in anger yet but it seems the same as my 1.03b. Did your porting app work smoothly?

Re: SD940 (IXUS120) porting thread
« Reply #472 on: 22 / May / 2011, 16:26:05 »
Wow that works a treat! Nice one.
I Haven't used it in anger yet but it seems the same as my 1.03b. Did your porting app work smoothly?

Submitted a patch file to add the 100e to the autobuild server.  I believe this means that all know firmware versions of the SD940 are now supported.

Using CHDK-PT got the process of porting to a different firmware version down to a couple of hours.

Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: SD940 (IXUS120) porting thread
« Reply #473 on: 23 / May / 2011, 05:18:36 »
Hi waterwingz,

During the integration of the firmware version 100.e  in CHDK-DE I noticed the following difference:

Your adress: NSTUB(SetFileTimeStamp, 0xff9257d0)
My adress: NSTUB(SetFileTimeStamp, 0xff835640)

Can you please check this difference.

msl
CHDK-DE:  CHDK-DE links


Re: SD940 (IXUS120) porting thread
« Reply #474 on: 23 / May / 2011, 07:55:28 »
During the integration of the firmware version 100.e  in CHDK-DE I noticed the following difference:

Your adress: NSTUB(SetFileTimeStamp, 0xff9257d0)
My adress: NSTUB(SetFileTimeStamp, 0xff835640)

Can you please check this difference.
I wonder if this is related to the recent changes in the findsig.c tool ?

The NSTUB values in stubs_entry.S are found automatically and your version automatically found a different value than my version.   In fact,  your version found the correct value - in my version I had to override the value of SetFileTImeStamp via an entry in stubs_entry_2.S with the correct 0xff835640 value.

The resulting executable code will be the same in both our versions.   The reason for the difference probably needs some attention.


Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: SD940 (IXUS120) porting thread
« Reply #475 on: 23 / May / 2011, 08:18:40 »
During the integration of the firmware version 100.e  in CHDK-DE I noticed the following difference:

Your adress: NSTUB(SetFileTimeStamp, 0xff9257d0)
My adress: NSTUB(SetFileTimeStamp, 0xff835640)

Can you please check this difference.
I wonder if this is related to the recent changes in the findsig.c tool ?

The NSTUB values in stubs_entry.S are found automatically and your version automatically found a different value than my version.   In fact,  your version found the correct value - in my version I had to override the value of SetFileTImeStamp via an entry in stubs_entry_2.S with the correct 0xff835640 value.

The resulting executable code will be the same in both our versions.   The reason for the difference probably needs some attention.


The changes to finsig.c were performance optimisations only - it did not affect the generated stubs.

CHDK-DE has differences in sig_ref_dryos_3.txt and sig_ref_dryos_1.txt. Two additional signatures exist in sig_ref_dryos_3.txt for CHDK-DE that are not in CHDK, one of which is SetFileTimeStamp.

This is why CHDK-DE is finding the correct signature match and CHDK is not.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

*

Offline Maron

  • *
  • 24
Re: SD940 (IXUS120) porting thread
« Reply #476 on: 31 / May / 2011, 03:42:35 »
Any updates on the manual flash not working on 1.01A?

Re: SD940 (IXUS120) porting thread
« Reply #477 on: 31 / May / 2011, 21:07:12 »
Any updates on the manual flash not working on 1.01A?
If there were updates,  they would have been posted here.

I tried changing the flash power on the 1.03c version and was able to get 3 very different pictures from an exposure point of view.   I won't bore you by posting pictures of my desk here.

I also checked the entry in stubs_min.S for FlashParamsTable.  The 1.01a entry from the table at 0xFFA759FC is 0xFFB972DC, matching the table entry of 0xFFB974C8 at 0xFFA75BE8 for the 1.03C.   I believe it is correct - the same analysis works for the other versions of the SD940.

This is the only thing related to the camera flash that I know of related to porting between firmware versions.   As the 1.03c works,  the 1.01a should too.   Without a camera with the 1.01a firmware to test with, that's the best I can do. 

Unless any of the other developers who monitor this forum have ideas ?
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline reyalp

  • ******
  • 14082
Re: SD940 (IXUS120) porting thread
« Reply #478 on: 31 / May / 2011, 22:04:24 »
FWIW FlashParams is for parameters stored in onboard flash memory (see http://chdk.wikia.com/wiki/Params ) not the electronic strobe light.
Don't forget what the H stands for.

Re: SD940 (IXUS120) porting thread
« Reply #479 on: 31 / May / 2011, 22:20:25 »
FWIW FlashParams is for parameters stored in onboard flash memory (see http://chdk.wikia.com/wiki/Params ) not the electronic strobe light.
Okay - wondered about that. 

So do you know if there is anything at all in stubs_entry.S, stubs_entry_2.S, stubs_min.S, lib.c,  boot.c, capt_seq.c or capture_seq.c that might be worth looking at to explain why manual flash control does not seem to work on 1 out of 5 firmware versions for the SD940.

Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics