A2200 IS porting thread - page 17 - DryOS Development - CHDK Forum

A2200 IS porting thread

  • 515 Replies
  • 200038 Views
Re: A2200 IS porting thread
« Reply #160 on: 05 / January / 2012, 21:46:42 »
Advertisements
After following your suggestion I get the following error:

Quote
Time to generate stubs 9.66 seconds
In file included from wrappers.c:1:0:
../generic/wrappers.c: In function 'vid_get_viewport_width':
../generic/wrappers.c:1165:9: error: 'camera_screen' undeclared (first use in this function)
../generic/wrappers.c:1165:9: note: each undeclared identifier is reported only once for each function it appears in
../generic/wrappers.c:1166:1: warning: control reaches end of non-void function
C:\CHDK\gcc451\bin\gmake.exe[2]: *** [wrappers.o] Error 1
C:\CHDK\gcc451\bin\gmake.exe[1]: *** [all-recursive] Error 1
gmake: *** [all-recursive] Error 1

BTW, I'm using your wrappers.c file. The generic\wrappers.c  & sub\100d\lib.c are attached below.
« Last Edit: 05 / January / 2012, 22:29:52 by Nemesisforever »

Re: A2200 IS porting thread
« Reply #161 on: 05 / January / 2012, 23:04:11 »
After following your suggestion I get the following error:
If you insist on working on a new port using the current unstable trunk instead of the stable branch then you will continue to have these problems and more. 
« Last Edit: 05 / January / 2012, 23:07:43 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: A2200 IS porting thread
« Reply #162 on: 06 / January / 2012, 00:27:32 »
Followed your instructions waterwingz and generated a stubs_entry.S file without any errors.

Thanks a lot waterwingz and reyalp

Attaching the same for some pointers about how to proceed from there....

Re: A2200 IS porting thread
« Reply #163 on: 06 / January / 2012, 00:36:02 »
Attaching the same for some pointers about how to proceed from there....
According to that file,  you only need to fix

1) stubs_min.S
DEF(levent_table, 0xffb97b9c)
//DEF(FlashParamsTable, 0xffbe5384)

2) stubs_entry_2.S
delete the entry for NHSTUB(mkdir,0xff837214)

Your next step is to validate the boot.c,  capt_seq.c and movie_rec.c for your camera.

Ported :   A1200    SD940   G10    Powershot N    G16

Re: A2200 IS porting thread
« Reply #164 on: 06 / January / 2012, 02:56:54 »
The stubs_entry.S compiled without any errors with CHDK-Shell using Stable branch release-1_01528.

The stubs_entry.S, stubs_min.S and stubs_entry_2.S for 1.00D are in the attached zipfile for reference.

I'm not able to understand how to go about modifying boot.c and the other .c files.

I used IDA 5.2 and loaded up the bin file and then used sig file CanonFW_A-Series Firmware and script CHDK.idc. but couldn't figure out how to go from there.

Please help with some proper pointers.

Re: A2200 IS porting thread
« Reply #165 on: 06 / January / 2012, 08:35:17 »
I used IDA 5.2 and loaded up the bin file and then used sig file CanonFW_A-Series Firmware and script CHDK.idc. but couldn't figure out how to go from there. Please help with some proper pointers.
You don't really need IDA.  Here's a link a different way to convert those files : CHDK-PT  The description is about as easy as it gets.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: A2200 IS porting thread
« Reply #166 on: 07 / January / 2012, 02:51:50 »
I have been trying to get the hang of CHDK-PT address.txt file which I have attached but I have no idea how to get the info about the start addresses and length after opening the bin files in CHDK.

Can waterwingz or someone else please come up with a step by step tutorial with a sample address.txt and Primary.bin file and screenshots of how and in which disassembler the bin file is loaded.

Waterwingz suggested to load it in CHDK-PT which is easy but I am not able to get anything from the resulting
sub_FF81000C.c file which I'm attaching here with the name 100D Code.c

Please help with this step.

Re: A2200 IS porting thread
« Reply #167 on: 07 / January / 2012, 07:52:35 »
I have been trying to get the hang of CHDK-PT address.txt file which I have attached but I have no idea how to get the info about the start addresses and length after opening the bin files in CHDK. Can waterwingz or someone else please come up with a step by step tutorial with a sample address.txt and Primary.bin file and screenshots of how and in which disassembler the bin file is loaded.
Do any of these make things easier to understand ?
link> CHDK-PT : Using the addresses.txt file - thread 1
link> CHDK-PT : Using the addresses.txt file - thread 2
link> CHDK-PT : Using the addresses.txt file - thread 3

Quote
Waterwingz suggested to load it in CHDK-PT which is easy but I am not able to get anything from the resulting
sub_FF81000C.c file which I'm attaching here with the name 100D Code.c
Take a look at the code at the start of the boot.c file  you got from Nilinhim and then look at the code you posted. Notice anything ?
Ported :   A1200    SD940   G10    Powershot N    G16

Re: A2200 IS porting thread
« Reply #168 on: 08 / January / 2012, 09:28:16 »
I had some spare time and decided to try out CHDK-PT (works fine under Linux with wine set to XP or newer).

Here is the resulting build of 1.00D firmware to test (I don't have a 1.00D camera): CHDK-a2200-100d-1.0.0_BETA.zip

Also updated source and 1.00B & 1.00C builds:

* beta build (2011.12.29 2012.01.08): CHDK-a2200-100b-1.0.0_BETA.zip firmware version 1.00b, use the Card Lock method
* beta build (2011.12.29 2012.01.08): CHDK-a2200-100c-1.0.0_BETA.zip firmware version 1.00c, use the Card Lock method
* alpha beta source (2011.12.29 2012.01.08): chdk.a2200.zip based on CHDK version 1.0 (stable branch, rev. 1534)

Re: A2200 IS porting thread
« Reply #169 on: 08 / January / 2012, 14:22:31 »
The 1.00D Build that you posted doesn't run. I am not even able to boot the camera with it.

Please attach the address.txt file that you created for 1.00D with CHDK-PT if possible.


 

Related Topics


SimplePortal © 2008-2014, SimplePortal