Author Topic: [REQ]Adding new cameras, applying patches into trunk (with source code prepared)  (Read 51185 times)

Offline waterwingz

  • Guru Member
  • ******
  • Posts: 2026


I think ubasic is not quite backward compatible.  b=get_usb_power would be equivalent to mode 0, but now it's a syntax error unless you explicitly give it a number.
Darn - tested that case for Lua,  missed it when testing uBasic.  Thanks for checking that for me.

Patch #6 for USB remote V2.  Changes are :

1) Modified get_usb_power for uBasic -  now act as if passed parameter = 0 if none is specified.
2) Deleted unnecessary input modules P.Width and P.Count. Values are maintained by usb_remote_key().
3) Changed code in remote_key() to only calculate USB remote information when conf.remote is true. (Can still get USB state though).
4) General clean-up of some hard coded constants using enums.

Offline reyalp

  • Guru Member
  • ******
  • Posts: 4490
Don't forget what the H stands for.

Offline srsa_4c

  • Full Member
  • ***
  • Posts: 142
A possible solution to the problem with the A495 keyboard. This was merged 2 days ago into CHDK-DE, a tester in the German forum reported a preliminary success (no 100% report yet).
Bug fixed (it was experienced with CHDK-DE): camera crashed on startup when any script was set to autostart.
The four buttons really seem to be inverted. Idle value of physw_status[2] has already been reported here: http://chdk.setepontos.com/index.php?topic=5570.msg56110#msg56110 .

As the A490's kbd.c is identical, this change may also be useful there.

Online philmoz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1184
    • Photos
A possible solution to the problem with the A495 keyboard. This was merged 2 days ago into CHDK-DE, a tester in the German forum reported a preliminary success (no 100% report yet).
Bug fixed (it was experienced with CHDK-DE): camera crashed on startup when any script was set to autostart.
The four buttons really seem to be inverted. Idle value of physw_status[2] has already been reported here: http://chdk.setepontos.com/index.php?topic=5570.msg56110#msg56110 .

As the A490's kbd.c is identical, this change may also be useful there.



Thanks, very elegant solution.

Applied in changeset 1604 for both A495 and A490.

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)

Offline mk11174

  • Sr. Member
  • ****
  • Posts: 412
Hi, I would like to apply this patch to the stable release-1 0 to update my a3300 port.

This is my first time doing this, but I think I did it correctly.

After creating my patch I reverted the release back so I could test the patch and everything went fine.

Thanks

Updated patch file with fixed hook raw address, and active area values, thanks to Phil!!
« Last Edit: 28 / January / 2012, 07:32:51 by mk11174 »

Offline waterwingz

  • Guru Member
  • ******
  • Posts: 2026
Patch #7 for USB Remote V2.   Changes are :

1) New & improved Ricoh CA-1 input module provided by vnd.
2) High speed remote status debugging code provided by vnd.  Available but currently disabled in this patch.
3) Modified pulse counting code so that logic modules get an identical but seperate pulse count from that provide to Lua and uBasic scripts. Avoids a potential race condition when scripts poll for pulse counts and logic modules are also using that value.

Online philmoz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1184
    • Photos
Hi, I would like to apply this patch to the stable release-1 0 to update my a3300 port.

This is my first time doing this, but I think I did it correctly.

After creating my patch I reverted the release back so I could test the patch and everything went fine.

Thanks

Updated patch file with fixed hook raw address, and active area values, thanks to Phil!!

Added in changeset 1617 to release-1.0 branch.

(Will do the main trunk soon.)

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)

Online philmoz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1184
    • Photos
Patch #7 for USB Remote V2.   Changes are :

1) New & improved Ricoh CA-1 input module provided by vnd.
2) High speed remote status debugging code provided by vnd.  Available but currently disabled in this patch.
3) Modified pulse counting code so that logic modules get an identical but seperate pulse count from that provide to Lua and uBasic scripts. Avoids a potential race condition when scripts poll for pulse counts and logic modules are also using that value.



Added in changset 1618.

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)

Offline srsa_4c

  • Full Member
  • ***
  • Posts: 142
A470 update for release 1.0
- extra long exposures implemented (all 3 fw revisions, tested on 1.02c)
- fixed the dark frame subtraction setting, bug mentioned here: http://chdk.setepontos.com/index.php?topic=3368.msg39071#msg39071 for all 3 revisions
- flash params table and params count fixed (I've verified the addresses manually, so all 3 rev. should be ok)
- defined CAM_STARTUP_CRASH_FILE_OPEN_FIX (previously camera crashed when "refresh" was issued in chdkptp GUI)
- also defined CAM_DETECT_SCREEN_ERASE
- strange check removed from kbd.c
- multiple corrections for 1.02c according to stubs_entry.S (can't be sure it would be ok for the other 2)
- debug code removed from capt_seq.c

A question: finsig_dryos reports different addresses for "rename" and "write". Is there a way to test which function is the correct one?


I would like to update the A430 too (I posted a patch here a while ago). If there's anything I should do differently, just tell me.

Thx.

CHDK Forum


Offline reyalp

  • Guru Member
  • ******
  • Posts: 4490
A470 update for release 1.0

Thanks. Added in stable changeset 1625 and trunk changeset 1626
Quote
- multiple corrections for 1.02c according to stubs_entry.S (can't be sure it would be ok for the other 2)

If the sig finder values are correct on your cam then I'd say that's good enough to apply them to the other subs.
Quote
A question: finsig_dryos reports different addresses for "rename" and "write". Is there a way to test which function is the correct one?

If they work, then they are probably not wrong. The others might also work.

Quote
I would like to update the A430 too (I posted a patch here a while ago). If there's anything I should do differently, just tell me.

If we ignored a patch without comment, it probably just means we got distracted and missed it. Feel free to remind us. If you can update it for the current tree, that would make it easier to apply.

edit:
I added the patch from here http://chdk.setepontos.com/index.php?topic=3785.msg80082#msg80082 to the release branch in changeset 1627

edit:
and trunk changeset 1628. The kbd.c conflict seemed pretty straightforward, but it would be good if you can check. I just used the added a430 to the same ifdefs it used in the stable version of generic/kbd.c and used the a430/kbd.c from the release branch.
« Last Edit: 30 / January / 2012, 11:12:31 by reyalp »
Don't forget what the H stands for.

Online philmoz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1184
    • Photos
A question: finsig_dryos reports different addresses for "rename" and "write". Is there a way to test which function is the correct one?

The 'rename' and 'write' firmware functions aren't actually used anymore so it doesn't really matter.
There are a bunch of functions in the signature find process that aren't needed, just haven't found time to clean them up.

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)

Offline srsa_4c

  • Full Member
  • ***
  • Posts: 142
@reyalp
Thanks, tested quickly both cameras, with success (trunk, 1.0).

@philmoz
Now I see, should have looked before. I thought CAM_STARTUP_CRASH_FILE_OPEN_FIX affected the whole set of (open, close, read, write, ...), but apparently it only affects open().

Offline mk11174

  • Sr. Member
  • ****
  • Posts: 412
I would like to submit this patch for stable release 1_0 to add firmware 100c to my a3300 port. Thanks.

Online philmoz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1184
    • Photos
I would like to submit this patch for stable release 1_0 to add firmware 100c to my a3300 port. Thanks.

Added in changeset 1638.

Note, all A3300 versions are now included in the autobuild server (to align with CHDK-DE).

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)

Offline waterwingz

  • Guru Member
  • ******
  • Posts: 2026
I've been experimenting with working only in Linux on CHDK.   So I took the liberty of using mland's  A800-100.c port to exercise the linux svn commands.   I've attached a patch file for the latest build for trunk rev 1650 - the dev trunk.  Its not a Windows TortoiseSVN file so I will be curious to see if its useful ?

http://chdk.setepontos.com/index.php?topic=7409.msg81169;topicseen#msg81169

The only change that I made from his zip file was to change the case of the sub directory from 100C to 100c.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal