IXUS 240/ELPH 320 HS Porting thread - page 15 - DryOS Development - CHDK Forum

IXUS 240/ELPH 320 HS Porting thread

  • 312 Replies
  • 128321 Views
*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #140 on: 04 / December / 2013, 02:37:49 »
Advertisements
Hi All,

I now have these versions of the Ixus 240:-

Ixus 240-102a  Compiles Ok, Boots Ok, Runs Ok; but has some problems.
Ixus 240-101a  Compiles Ok, Boots Ok, Runs Ok; but has some problems.
Ixus 240-100c   Dump Ok, Very similar to 102a and 101a, Offsets; Most Ok, Compiles Ok.

but fails to Boot. [CHDK ver 3254]

What is the next step in regard to the Ixus 240-100c.

H_H

Since you say it compiles OK, I'll assume you have a working development environment.

1. Upload the firmware dump to a file sharing site and post the link here so it can be added to the repository.
2. Make sure PRIMARY_ROOT is set correctly in your localbuildconf.inc and OPT_GEN_STUBS is set in buildconf.inc.
3. Do a full build to recreate the stubs_entry.S file.
4. Run 'make PLATFORM=ixus240_elph320hs PLATFORMSUB=100c run-code-gen' to regenerate the boot.c, capt_seq.c, filewrite.c and movie_rec.c files.
5. Check the stubs_entry.S file for warnings.
6. Rebuild and test. With any luck it should now boot.

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 JvdP

  • ***
  • 174
Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #141 on: 04 / December / 2013, 05:20:18 »
I'm trying to use my IXUS 240 to start video after motion is detected. So I saw this script by Johan Van Barel which looked good but it doesn't work with the 240. I think this is because it doesn't have a dedicated video mode.

Does somebody know how to adapt the script to the 240?

I suppose I need to change the "click "shoot_full""

Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #142 on: 04 / December / 2013, 08:07:05 »
Does somebody know how to adapt the script to the 240?
I suppose I need to change the "click "shoot_full""
Should work if you change :

Code: [Select]
        click "shoot_full"
        sleep l
        click "shoot_full"

to

Code: [Select]
        press "video"
        sleep 500
        release "video"
        sleep l
        press "video"
        sleep 500
        release "video"

But you might want to take a look at : http://chdk.setepontos.com/index.php?topic=10864 - a more sophisticated script with what has prove to be the fastest motion detection response.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #143 on: 05 / December / 2013, 03:10:09 »
Reply #139 "...Did you actually try to run all three versions of CHDK on the same camera?..."

~~~~~~~~~~~~~~~~~~~~~~ Reply #138 + Edit #1 ~~~~~~~~~~~~~~~~~~~~~~

The code "Offsets" while "VERY" similar, BUT they still will require four seperate versions.

Version 102a was used as a "Reference" version.

See attached file , using ver-CHDK-3260, "Sub" files. The differences are commented for each of the four versions.

There probably are other "Errors" for versions 100d and 101a, assuming 102a is 100% Ok.

H-H
« Last Edit: 05 / December / 2013, 03:24:36 by Hardware_Hacker »


*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #144 on: 05 / December / 2013, 03:30:26 »
Reply #139 "...Did you actually try to run all three versions of CHDK on the same camera?..."

~~~~~~~~~~~~~~~~~~~~~~ Reply #138 + Edit #1 ~~~~~~~~~~~~~~~~~~~~~~

The code "Offsets" while "VERY" similar, BUT they still will require four seperate versions.

Version 102a was used as a "Reference" version.

See attached file , using ver-CHDK-3260, "Sub" files. The differences are commented for each of the four versions.

There probably are other "Errors" for versions 100d and 101a, assuming 102a is 100% Ok.

H-H

You've copied the 1.02a directory to create 1.00d; but have not re-run the code-gen tool to rebuild the source files (make PLATFORM=xxx PLATFORMSUB=yyy run-code-gen).

The 1.00d and 1.01a firmware files are identical as far as CHDK is concerned. Once you've run code-gen to create the correct source files for 1.00d you will see this for yourself.

We can't tell if 1.00c requires a new version until you provide the firmware dump.

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: IXUS 240/ELPH 320 HS Porting thread
« Reply #145 on: 05 / December / 2013, 09:48:51 »
Is it possible/normal to exist two different 1.02A versions? I have (after losing good 220HS in rc-aircraft accident :-( ) bought ixus 240HS (Datart have sale action on it last month here in Czech Rep.) and have not been able to use it with chdk.
It reports as 1.02A, so i loaded it and started (play - fw upgrade) ...it reports 1.0.2.0 to 1.1.0.0 upgrade, restarted, draw chdk logo, small touch button "chdk" on left side and after some seconds powered off. No difference if it was version 1.2 (3244) on autobuild server , "current" 1.3 , some older from history.

After some try/errors I have managed dump firmware.  :-[ I have diffed it with pudlished three. No one is the same. Diff on hexdumps showed many changed areas. Is it possible, that canon deployed another 1.02a? Or is there other way to identify camera? Actually "my" firmware is loaded here: http://mti.frystacko.cz/PRIMARY.BIN.tgz  I have not tried chdk development tools to analyse it yet. (tar archive includes bin md5sum) Or is there a better place to load it? (I have no account on "public" storage clouds.)
I'm not sure if there is chance to try chdk development with my poor knowledge... but if there is way I can help...  ::)
(for rc purposes I have bought A3100.... it was cheap and perhaps survives some flights, so ixus is available for testing)

Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #146 on: 05 / December / 2013, 10:01:43 »
Is it possible/normal to exist two different 1.02A versions?
If you have two different camera models,  then the firmware will be different.  Even if the version numbers are the same.    Firmware 1.02a for the ixus220 is different than firmware 1.02a for the ixus240.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline srsa_4c

  • ******
  • 4451
Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #147 on: 05 / December / 2013, 10:32:00 »
http://mti.frystacko.cz/PRIMARY.BIN.tgz
That link is 404 for me...

Or is there a better place to load it? (I have no account on "public" storage clouds.)
You can use any "free" host for this, for example sendspace, filedropper (I prefer those that don't require an account to download).


Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #148 on: 05 / December / 2013, 10:42:49 »
Quote
That link is 404 for me...

My apologies, mistake in file naming. It was renamed. (link is correct, now)

And I have compared only ixus 240 firmwares with my dump, not 220 one. (that one is lying somwhere in woods with lost rc glider  :( )

Quote
If you have two different camera models

I understand it. But in this case my camera is labelled ixus 240 HS , fw reported as 1.02A and it's different with 1.02a from chdk dumps.
« Last Edit: 05 / December / 2013, 11:21:01 by Mti. »

*

Offline srsa_4c

  • ******
  • 4451
Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #149 on: 05 / December / 2013, 11:23:21 »
fw reported as 1.02A and it's different with 1.02a from chdk dumps.
The differences are camera specific data, it looks normal to me. The assert-log in your dump is Canon Basic related, try renaming or removing the extend.m file (if it's there). The assert might also be a false lead, if you ever tried to run a Canon Basic script with errors.

 

Related Topics