A3200IS porting thread - page 9 - DryOS Development - CHDK Forum

A3200IS porting thread

  • 127 Replies
  • 56499 Views
*

Offline omdhar

  • *
  • 7
  • A3200IS GM1.00A
Re: A3200IS porting thread
« Reply #80 on: 09 / September / 2012, 03:21:00 »
Advertisements
Can we do it with some script. If yes, can you help.  I have A3200IS (1.0.0. D)
« Last Edit: 09 / September / 2012, 03:23:54 by omdhar »

*

Offline nafraf

  • *****
  • 1308
Re: A3200IS porting thread
« Reply #81 on: 09 / September / 2012, 03:49:13 »
Can we do it with some script. If yes, can you help.  I have A3200IS (1.0.0. D)
To have optical zoom during video, the feature should be added to CHDK port for your camera.
Digital zoom during video should work, even without CHDK.

For script, maybe these links helps you:
http://chdk.wikia.com/wiki/UBASIC/Scripts
http://chdk.wikia.com/wiki/UBASIC/Scripts:_Zoom-Video

*

Offline omdhar

  • *
  • 7
  • A3200IS GM1.00A
Re: A3200IS porting thread
« Reply #82 on: 09 / September / 2012, 06:29:22 »
Thanks for help.  But very sorry friends, mine is GM1.00A. Is there a way to upgrade to current 1.00D.

Thanks again.

*

Offline nafraf

  • *****
  • 1308
Re: A3200IS porting thread
« Reply #83 on: 09 / September / 2012, 07:41:14 »
Thanks for help.  But very sorry friends, mine is GM1.00A. Is there a way to upgrade to current 1.00D.
To do that you need firmware file update released by Canon, and that is not common.

Q. My camera isn't ported yet. Is a port planned ? When will it be ready ? How can I help ?

The good news is that you can do the firmware dump and share with others :)
Here you can find information for firmware dump:  http://chdk.wikia.com/wiki/Canon_Basic/Scripts/Dumper

*

Offline omdhar

  • *
  • 7
  • A3200IS GM1.00A
Re: A3200IS porting thread
« Reply #84 on: 09 / September / 2012, 09:06:49 »
Thanks for help from nafraf.  :) Here is the firmware 1.00A dump.

http://dl.dropbox.com/u/16985215/A3200IS_GM1.00A.rar
 
« Last Edit: 09 / September / 2012, 09:33:23 by omdhar »

*

Offline nafraf

  • *****
  • 1308
Re: A3200IS porting thread
« Reply #85 on: 09 / September / 2012, 10:41:08 »
Hi, Firmware dump seems to be OK.

Comparison of stubs_entry.S file, 1.00c and 1.00a firmware shows that both firmwares are aligned, so porting to one of them should work in other.

Code: [Select]
chdk.a3200/platform$ diff a3200/sub/100a/stubs_entry.S a3200/sub/100c/stubs_entry.S
6c6
< //   Firmware Ver GM1.00A
---
> //   Firmware Ver GM1.00C

Some days ago I tried to port to 100c, but I had problems with booting.

Re: A3200IS porting thread
« Reply #86 on: 09 / September / 2012, 11:21:31 »
Comparison of stubs_entry.S file, 1.00c and 1.00a firmware shows that both firmwares are aligned, so porting to one of them should work in other.
FWIW,  on all the recent ports I've worked on,  I've taken a few extra minutes to make an accurate CHDK-PT address file of the code segments used in the task files.  That way I can usually port to different firmware versions by comparing the output of CHDK-PT for each version and then only tweaking the lines that change in the boot.c, capt_seq.c & movie_rec.c files. Typically the other files in the firmware directory don't change although its fairly quick to check those IF you documented where you found each value during the initial port.

Using that technique,  you can really quickly check a different firmware version for compatability. Just run the CHDK-PT address file on your existing PRIMARY.BIN file,  then the same address file on the new PRIMARY.BIN file. Use diff on the resultant code files to see if any of the task files change.

Quote
Some days ago I tried to port to 100c, but I had problems with booting.
There is typically a single subroutine call to something in high memory in the first code segment in boot.c that changes from firmware version to firmware version. If its above the top address that the sigfinder looks for the stubs_entry.S files will match but it still won't boot.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline nafraf

  • *****
  • 1308
Re: A3200IS porting thread
« Reply #87 on: 09 / September / 2012, 11:59:07 »
FWIW,  on all the recent ports I've worked on,  I've taken a few extra minutes to make an accurate CHDK-PT address file of the code segments used in the task files.  That way I can usually port to different firmware versions by comparing the output of CHDK-PT for each version and then only tweaking the lines that change in the boot.c, capt_seq.c & movie_rec.c files. Typically the other files in the firmware directory don't change although its fairly quick to check those IF you documented where you found each value during the initial port.
I have been working in that way, using an awk script for generate CHDK-PT address file.
The script requires a comment before each function, but those comments are generated by CHDK-PT
//** FUNCTION_NAME  @ START_ADDRESS

The script is not perfect, but helps.  8)  For example:
Code: [Select]
scripts$ awk -f genaddress.awk ~/chdk.a3200/platform/a3200/sub/100d/capt_seq.c
capt_seq_task 0xFF87AA8C 206
sub_FF96E91C_my 0xFF96E91C 64
exp_drv_task 0xFF8BE348 457
sub_FF8BB1C0_my 0xFF8BB1C0 86
sub_FF8AC07C_my 0xFF8AC07C 28

Re: A3200IS porting thread
« Reply #88 on: 09 / September / 2012, 12:19:05 »
I have been working in that way, using an awk script for generate CHDK-PT address file.
I'm banging my head on my desk here and having a "why didn't I think of that" moment.

Should be able to add that (in some form) to CHDK-PT.  Do the labels in each function throw off the count value detected somewhat ?

Thanks !!
« Last Edit: 09 / September / 2012, 12:33:51 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline nafraf

  • *****
  • 1308
Re: A3200IS porting thread
« Reply #89 on: 14 / September / 2012, 03:24:57 »
I'm working in port for 100a, and 100c firmware versions.  I'd like to do some modifications in 100d too. Thanks to testers we have an alpha version now.

If anyone watching this thread is interested in a port for their A3200 and willing to test beta versions, please send me a personal message (PM) via this forum with your firmware version and a real email address.  I'll notify you of new alpha/beta versions for testing quite a bit before posting them here for broader distribution.

I'll release beta versions every couple of days - if you report back on how the current version works for you then you stay on the list.

EDIT
Alpha version for 1.00a and 1.00c sent to testers.
« Last Edit: 17 / September / 2012, 08:30:53 by nafraf »

 

Related Topics


SimplePortal © 2008-2014, SimplePortal