New stubs/signature finder (gensig2/finsig2) for DryOS cameras. - page 4 - General Discussion and Assistance - CHDK Forum

New stubs/signature finder (gensig2/finsig2) for DryOS cameras.

  • 103 Replies
  • 36136 Views
*

Offline pixeldoc2000

  • ****
  • 356
  • IXUS900Ti 1.00C, IXUS300HS 1.00D
    • pixel::doc homebase
Re: New stubs/signature finder (gensig2/finsig2) for DryOS cameras.
« Reply #30 on: 04 / August / 2011, 15:55:26 »
Advertisements
Awesome stuff philmoz, very handy!
This will save us a lot of time and headache if it work reliable with all dumps.

Tested it on ixus300_sd4000.
finsig2 found 3 errors in my port...

*

Offline reyalp

  • ******
  • 13673
Re: New stubs/signature finder (gensig2/finsig2) for DryOS cameras.
« Reply #31 on: 04 / August / 2011, 23:58:38 »
Works fine for me on D10. A540 (vxworks) also continues to build and work fine.

I don't see much reason not to go ahead with this.
My confusion is about the temporary entries in stubs_entry_2.S that you mention above.  If the new sigfinder wants to use a different entry in stubs_entry.S than that found by the original sigfinder,  does is put that new entry into stubs_entry.S and then an override to the old address in stubs_entry_2.S ?   That would allow somebody "maintaining" the port to decide whether to start using the new address by simply deleting the entry in stubs_entry_2.S.
Yup, that's the idea.
Quote
UPDATE :  took a look through the patch.  I think the answer to my question is that the executable change but only because some of the addresses are hooked through NHSTUB rather than NSTUB macros.  So I'd say - thumbs up, lets go.
One other possible issue that occurred to me is that a few ports override functions in lib.c rather than a stubs_entry_2.s stub or nullsub (for reasons that escape me, if they ever made sense in the first place). However, if this happens it should cause a duplicate symbol compile error rather than subtle breakage, so that would be OK anyway.
Don't forget what the H stands for.

*

Offline msl

  • *****
  • 1276
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: New stubs/signature finder (gensig2/finsig2) for DryOS cameras.
« Reply #32 on: 05 / August / 2011, 04:08:44 »
A first interim report for CHDK-DE:

With a small marginal change the patch works. Changeset 1234 is not yet included in CHDK-DE. At the moment Tools/Makefile needs some changes.

I have compiled some VxWorks and DryOS cameras - no problems. My A720 & SX220 works fine.

Really good work. Many thanks for it.

msl

CHDK-DE:  CHDK-DE links

*

Offline philmoz

  • *****
  • 3407
    • Photos
Re: New stubs/signature finder (gensig2/finsig2) for DryOS cameras.
« Reply #33 on: 05 / August / 2011, 06:01:55 »
Thanks for the feedback everyone.

Attached are updated patches.
- Included SX130 and IXUS300 for CHDK
- Fixed tools/Makefile for CHDKDE

I've included the relevant changeset number that the patch is against to avoid confusion.

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 philmoz

  • *****
  • 3407
    • Photos
Re: New stubs/signature finder (gensig2/finsig2) for DryOS cameras.
« Reply #34 on: 12 / August / 2011, 03:57:53 »
If there are no objections I will commit this to the CHDK SVN over the weekend (13 & 14 Aug).

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)

Re: New stubs/signature finder (gensig2/finsig2) for DryOS cameras.
« Reply #35 on: 12 / August / 2011, 19:35:07 »
The SX20 CHDK wiki page (http://chdk.wikia.com/wiki/SX20) has a few links for firmwares but none seems to be working. At box.net I could only find v1.00f and that one was only 4MB...

So I had a firmware dump from my camera (SX20 v1.02d) created some time ago and uploaded on mediafire.
This is the link http://www.mediafire.com/?1y1nb99xcrbg783, I also put it in the firmware section of the SX20 wiki page.

Re: New stubs/signature finder (gensig2/finsig2) for DryOS cameras.
« Reply #36 on: 13 / August / 2011, 00:23:34 »
If there are no objections I will commit this to the CHDK SVN over the weekend (13 & 14 Aug).

Phil.

Works for me.  Looking forward to it.

Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 13673
Re: New stubs/signature finder (gensig2/finsig2) for DryOS cameras.
« Reply #37 on: 13 / August / 2011, 00:41:27 »
If there are no objections I will commit this to the CHDK SVN over the weekend (13 & 14 Aug).
Sounds good to me :)
Don't forget what the H stands for.


*

Offline philmoz

  • *****
  • 3407
    • Photos
Re: New stubs/signature finder (gensig2/finsig2) for DryOS cameras.
« Reply #38 on: 13 / August / 2011, 03:14:55 »
Added in changeset 1291.

Phil.

Attached is also a patch for CHDK-DE trunk 748.
« Last Edit: 13 / August / 2011, 05:27:54 by philmoz »
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)

Re: New stubs/signature finder (gensig2/finsig2) for DryOS cameras.
« Reply #39 on: 20 / August / 2011, 18:36:44 »
@philmoz :  What decides which signatures the sigfinder puts into stubs_entry.S ?   I'm trying to add GetImageFolder() to the G10 port.  The G12 port has an address in stubs_entry.S but the G10 does not. How does that work ?
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics