Adding new cameras, applying patches into trunk (with source code prepared) - page 74 - General Discussion and Assistance - CHDK Forum
supplierdeeply

Adding new cameras, applying patches into trunk (with source code prepared)

  • 1685 Replies
  • 834596 Views
Advertisements
Corrected connect 4 on 16:9 screens.

*

Offline reyalp

  • ******
  • 14119
Here comes last change - I switched from palette_buffer to palette_buffer_ptr, which can be found in disassembly.
Thanks, added in trunkchangeset 1891 release changeset 1892

@mastodon please let us know if the 1891 or later autobuild works.
Don't forget what the H stands for.

Patch file to add firmware 1.00c to the IXUS200_SD980 code (installs and builds on stable & dev versions).

Also contains updates to the 1.01c & 1.01d firmware versions based on information in the latest stubs_entry.S files for those versions.

Firmware 1.00c tested by forum member SvobodaT.  Updates to 1.01c & 1.01d are not tested but trivial.

Still needs testing to confirm that aperture_sizes_table[], shutter_speeds_table[], iso_table[], and modemap[] are correct.  (modemap[] is not)
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline philmoz

  • *****
  • 3450
    • Photos
Corrected connect 4 on 16:9 screens.

Added in revision 1897.

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)


THANKS! v1892 works! And the menu did not ever flicker, like in the previous ones. AND the color of the startup screen seems to be more red, than before (v1825).
(A 410), SX 200, (SX 280), SX 700

*

Offline kosy

  • *
  • 28
Here is a patch for the a3300 camera. I used diff with the -cbr options: c gives 3 lines of context, b ignores whitespace changes, and r recurses through the directories. I hope this is satisfactory.

Summary of changes:
1. Changed the default ALT key to PLAY
2. Implemented the ability to change the ALT key to FACE, DISP, or PLAY (ALT Menu/Miscellaneous Stuff/<ALT> Mode Button)
3. Changed location of where CHDK colors are stored to a safe area in the palette so Canon's messages display correctly.
4. Defined DISP as the RAW button -- this also has the effect of making the DISP button the key that triggers "ALT +/- debug action" (ALT/Menu/Miscellaneous Stuff/Debug Parameters/ALT +/- debug action)


Question: Wouldn't it be a good idea to change the message "ALT +/- debug action" to "ALT DISP debug action" so it is correct for THIS camera?

Thanks!

*

Offline philmoz

  • *****
  • 3450
    • Photos
Patch file to add firmware 1.00c to the IXUS200_SD980 code (installs and builds on stable & dev versions).

Also contains updates to the 1.01c & 1.01d firmware versions based on information in the latest stubs_entry.S files for those versions.

Firmware 1.00c tested by forum member SvobodaT.  Updates to 1.01c & 1.01d are not tested but trivial.

Still needs testing to confirm that aperture_sizes_table[], shutter_speeds_table[], iso_table[], and modemap[] are correct.  (modemap[] is not)


Added in revision 1907 (release-1.0) and 1909 (trunk).

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)

Here is a patch for the a3300 camera. I used diff with the -cbr options: c gives 3 lines of context, b ignores whitespace changes, and r recurses through the directories. I hope this is satisfactory.
I notice that nobody has said anything about this?  I also noticed that nobody has added this to the trunk either.  So having submitted one or two patches myself I thought I'd add this note.

Typically,  the preferred method to prepare a patch file is to use the diff function integrated into the svn software (the version control software used to maintain the CHDK source code).  On Windows,  this is typical Tortouse SVN.  On Linux machines there are svn command line tools.  There are also other packages for both systems.
 
Patch files created in this format can then be feds directly into the the Unix patch command (or its Windows equivalent) to make all the changes automatically in the svn build tree.   This makes things a lot easier for the two or three people who actually take the time (and have write permission) to apply changes.  You can surely understand that they really don't have time to hand edit a long list of changes or wade through different patch file formats.

I tried to input your file into patch on my build machine but it was not immediately clear how to  use it as formatted.  It is clearly very different than the ones created using svn patch tools with the defaults settings.  So I'm wondering if you can create a patch file using svn tools instead as a way of getting this submission accepted?

Update :  turns out that I needed to use patch -p2 rather than patch -p0 but I also get the blob errors reyalp mentioned below.
« Last Edit: 16 / June / 2012, 17:08:47 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline reyalp

  • ******
  • 14119
Here is a patch for the a3300 camera. I used diff with the -cbr options: c gives 3 lines of context, b ignores whitespace changes, and r recurses through the directories. I hope this is satisfactory.
I notice that nobody has said anything about this?  I also noticed that nobody has added this to the trunk either. 
Things that can be applied easily without much thought tend to go in quickly. Things that aren't, get pushed to the back of the queue.

As waterwingz says, an svn diff is preferred. It is also preferable to remove extraneous changes (debug display, buildconf etc)

I'm looking at this one now. It applies with the appropriate -p, but there's quite a few rejects against the current release branch, so it will take me a bit to decide whether I can apply it.

edit:
The rejects turned out to be line ending issues, no big deal. However, there are some other questions so I haven't checked in. See comments on http://chdk.setepontos.com/index.php?topic=6972.msg86536#msg86536
« Last Edit: 16 / June / 2012, 19:23:14 by reyalp »
Don't forget what the H stands for.

*

Offline kosy

  • *
  • 28
The rejects turned out to be line ending issues, no big deal. However, there are some other questions so I haven't checked in. See comments on http://chdk.setepontos.com/index.php?topic=6972.msg86536#msg86536
Re the line endings issue -- is this due to the Windows habit of terminating lines with crlf versus *NIX's nl (new line)?

Currently I am using a bastardized system that's partly Windows (due to starting with CHDK-Shell) and Linux. I am working toward dropping the Windows part and then should be more UNIX-Linux compatible, at least as far as line endings are concerned. Will that resolve the line endings issues you were seeing?

Second question: I looked at some other patches and I thought they had been prepared by the gnu diff command with context enabled, so that's what I did. Doesn't svn also use the diff command?

Thanks!

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal