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

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

  • 1685 Replies
  • 845366 Views
*

Offline reyalp

  • ******
  • 14125
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1220 on: 30 / August / 2013, 23:35:13 »
Advertisements
Patch to create "Port Under Development" versions.
Motivation: http://chdk.setepontos.com/index.php?topic=10259.msg103774#msg103774

To enable it, add #define UNDER_DEV_PORT 1   in platform_camera.h.
CHDK works normally during 7 days, after that a message will remind user to post feedback.

Thanks to waterwingz for suggestions and test.
I have checked a heavily modified version of this into the trunk, changeset 3051

Both phil and I were uncomfortable effectively making the camera unusable with CHDK after expiration. I think a more moderate nagging will probably be enough for most of the users who would provide useful feedback. You are of course free to do something more aggressive in your own test builds.

The new code works by setting
OPT_EXPIRE_TEST=n
in your localbuildconf.inc to the number of days you want. If you want to do this only for particularly cameras, you can put it under something like
ifeq ($(PLATFORM),d10)

The build will show "TEST BUILD N DAYS LEFT" or "TEST BUILD EXPIRED!" under the splash screen.

After the build expires
1) In alt mode, the same message as the original patch will be shown. The alt mode help screen will not be shown (because it ended up fighting horribly with the nag screen on my camera and I CBA to spend more time on it).
2) In regular canon mode, only the first line will be shown, and it will be on a transparent background.

The message is not displayed when you are in CHDK menus or other GUIs.

I also isolated the expire code so there isn't the mass of ifdef code in the normal code path.
Don't forget what the H stands for.

*

Offline nafraf

  • *****
  • 1308
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1221 on: 31 / August / 2013, 06:13:46 »
Both phil and I were uncomfortable effectively making the camera unusable with CHDK after expiration. I think a more moderate nagging will probably be enough for most of the users who would provide useful feedback. You are of course free to do something more aggressive in your own test builds.
I tested, I think that it is enough. Thanks.

Patch for A495
- capt_seq_hdr.c and code_gen.txt files (I forgot to include them in previous patch).
- override GetBatteryTemperature() to prevent crash
- kbd.c clean up.
- notes.txt update
- key names for KEY_FACE, KEY_MODE, KEY_HELP included in modules/script_key_funcs.c

*

Offline lapser

  • *****
  • 1093
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1222 on: 31 / August / 2013, 18:08:24 »
Patch to create "Port Under Development" versions.
Motivation: http://chdk.setepontos.com/index.php?topic=10259.msg103774#msg103774

To enable it, add #define UNDER_DEV_PORT 1   in platform_camera.h.
CHDK works normally during 7 days, after that a message will remind user to post feedback.

Thanks to waterwingz for suggestions and test.
My compiler (CHDK Shell) throws a warning from this line in gui.c when compiling the D20:
#warning OPT_EXPIRE_TEST enabled

I commented out the last line of localbuildconf.inc
//OPT_EXPIRE_TEST=7

Is this the right way to disable it? I don't want my custom builds to expire. Maybe it should be commented out by default?
EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos

*

Offline reyalp

  • ******
  • 14125
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1223 on: 31 / August / 2013, 18:45:58 »
I commented out the last line of localbuildconf.inc
//OPT_EXPIRE_TEST=7

Is this the right way to disable it? I don't want my custom builds to expire. Maybe it should be commented out by default?
Are you saying CHDKSHELL enabled this option by default? If so, it shouldn't do that. If you checked it yourself, well, don't do that.

edit:
and no, // is not the correct syntax for a makefile comment. Try #

edit:
I can confirm chdkshell defaulted it to on for me. It looks like it will show up as blank in 3058

Thanks for spotting this, it could have made a lot of people unhappy and confused.
« Last Edit: 31 / August / 2013, 18:58:10 by reyalp »
Don't forget what the H stands for.

*

Offline reyalp

  • ******
  • 14125
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1224 on: 02 / September / 2013, 15:53:23 »
Patch for A495
- capt_seq_hdr.c and code_gen.txt files (I forgot to include them in previous patch).
- override GetBatteryTemperature() to prevent crash
- kbd.c clean up.
- notes.txt update
- key names for KEY_FACE, KEY_MODE, KEY_HELP included in modules/script_key_funcs.c
Thanks. Added  trunk changeset 3061 release changeset 3062

Note this adds the additional keys to the stable branch.
Don't forget what the H stands for.

*

Offline nafraf

  • *****
  • 1308
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1225 on: 03 / September / 2013, 10:01:29 »
sx500is 100c/100d port beta.   Thanks to beta testers.






Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1226 on: 03 / September / 2013, 19:24:32 »
Small patch to disable RAW/DNG when A1200 is in "Low Light" mode.   Thank to msl for pointing this out.

http://chdk.setepontos.com/index.php?topic=6318.msg104851#msg104851

Technically a minor bug fix - patch works with both dev & stable trunks.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14125
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1227 on: 03 / September / 2013, 22:02:26 »
sx500is 100c/100d port beta.   Thanks to beta testers.
Added, trunk changeset 3075 release changeset 3076

Small patch to disable RAW/DNG when A1200 is in "Low Light" mode.   Thank to msl for pointing this out.
Added, trunk changeset 3072 release changeset 3074 along with some similar fixes for d10, sx240 and sx260
Don't forget what the H stands for.

Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1228 on: 07 / September / 2013, 10:47:26 »
Hello,

This patch adds support for firmware revision 100b of the ixus95_sd1200.  It is based on the changes to boot.c proposed by luddek in the SD1200 IS porting thread with the addition of stubs_entry.S and stubs_auto.S.  Tested with svn revision 3081

*

Offline c10ud

  • ***
  • 245
Re: Adding new cameras, applying patches into trunk (with source code prepared)
« Reply #1229 on: 19 / September / 2013, 11:18:37 »
fix live view while recording video in g15 and s110
defined max sd for s110

 

Related Topics


SimplePortal © 2008-2014, SimplePortal