port for A3300IS / what reference port to use? - page 6 - General Discussion and Assistance - CHDK Forum

port for A3300IS / what reference port to use?

  • 289 Replies
  • 105961 Views
Re: port for A3300IS / what reference port to use?
« Reply #50 on: 29 / December / 2011, 18:26:21 »
Advertisements
sx220hs, I also looked at a3000, but the dissasemble and code seemed much differ, the sx220 seems pretty close other then sx220 has jogdial called rotary encoder.
The sx220hs was releases a month after yours so it should be close.  However, there is a beta version of the A2200 in the SVN.  That camera was released on the same date as yours (jan 5, 2011) and so should be the closest match to what you are doing.

ok, i will check that out now then, thanks.

I was just trying the port tool, I am having issues during stubs conversion because my cam is FF81, and the sx220 is FF00.

Maybe better luck with a2200

Re: port for A3300IS / what reference port to use?
« Reply #51 on: 29 / December / 2011, 18:44:50 »
I was just trying the port tool, I am having issues during stubs conversion because my cam is FF81, and the sx220 is FF00.  Maybe better luck with a2200
CHDK-PT was written make it easy to convert from one firmware version to another on the same camera.  Having said that,  several people have used it to assist with new ports.  However,  the author never anticipated somebody trying to use it between two cameras with different sized ROM's.

Also,  CHDK-PT was written before Philmoz completed upgraded the sigfinder process.  At the time, the existing sigfinder was fairly unreliable and you had to check each sig by hand.   So converting a stubs_entry_2.S file automatically was a really good thing.   Today, you can pretty much let the sigfinder do its job and make the stubs_entry.S file - no need to try converting with CHDK-PT. 

What you probably want to do next is focus on converting the boot.c,  movie_rec.c and capt_seq.c files.  You only need boot.c working to get the basic CHDK shell up and running (as long as you don't start the tasks in capt_seq.c and movie_rec.c from their hooks in boot.c).

These might be useful :
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
« Last Edit: 29 / December / 2011, 18:51:35 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: port for A3300IS / what reference port to use?
« Reply #52 on: 31 / December / 2011, 03:52:41 »
So frustrating, so far I edited every file manually by hand and referencing from the a2200, it looks very much the same to, but still not boot, the only file I have not finished was the capt_seq.c, that has alot of addresses needing to be changed over.

Should it even boot without the capt_seq.c file being done?

Just wondering if I am wasting my time with this capt file, I would hate to do it all and still not see it boot up?

I looked at the port tool, but the instructions confused me especially because its not really for what i am doing.

Right now, I am going through both the a2200 and a3300 capt_seq.c file side by side with notepad+++ and first finding the addresses in the a2200 capt file in the dissasembled firmware, then finding the same spot in the a3300 firmware and i am then copying all the addresses from the a3300 firmware to the a3300 capt file in the correct spots.

Please tell me I am doing that right, I still have a long way to go though.

Maybe someone has tips to get it done faster besides the pt tool, unless that can be explained how to do it easier for my situation?

Update: I read through some of those links u posted, I think I understand the addresses part now, I am going to attempt to use the port tool again, I will update u on my progress.
« Last Edit: 31 / December / 2011, 05:24:32 by mk11174 »

Re: Re: port for A3300IS / what reference port to use?
« Reply #53 on: 31 / December / 2011, 10:14:40 »
So frustrating, so far I edited every file manually by hand and referencing from the a2200, it looks very much the same to, but still not boot, the only file I have not finished was the capt_seq.c, that has alot of addresses needing to be changed over.

Should it even boot without the capt_seq.c file being done?

Just wondering if I am wasting my time with this capt file, I would hate to do it all and still not see it boot up?
You do not need Capt_seq.c to get a basic CHDK to boot. Attach your boot.c and I'll take a look and show you where to insert LED debugs.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: port for A3300IS / what reference port to use?
« Reply #54 on: 31 / December / 2011, 11:10:10 »
Ok, thanks, I am working on the address.txt now to try to see how the port tool works, but stuck at the taskcreate_startup address, the line is in the code but cant find it anywhere in the dump.

http://www.mediafire.com/file/s8zswkh0u51u921/boot.c

Re: port for A3300IS / what reference port to use?
« Reply #55 on: 31 / December / 2011, 11:29:33 »
Ok, thanks, I am working on the address.txt now to try to see how the port tool works, but stuck at the taskcreate_startup address, the line is in the code but cant find it anywhere in the dump.
Look for the jump address at the end of the routine labelled sub_FF815EE0_my() in the file you sent me.

I've attached a modified copy of your BOOT.C code.  At the top you will see where I commented out the task startups so that movie_rec.c and capt_seq.c do try to start.  For now they only need to compile without errors.

I also inserted a line to flash the AF lamp when boot starts - that's taken directly from my SD940 port.  Assuming it flashes on boot (telling you it got that far) then you can move that line down through the start of the various routines to see how far it goes and where it is hanging up.

Ported :   A1200    SD940   G10    Powershot N    G16

Re: port for A3300IS / what reference port to use?
« Reply #56 on: 31 / December / 2011, 11:49:27 »
Very cool!!! This sounds like it will be fun to actually debug something, thanks 8]

Re: port for A3300IS / what reference port to use?
« Reply #57 on: 31 / December / 2011, 12:26:12 »
Ok, I got all the way down to adding it to line 379 under taskcreatePhySw_my, one thing I noticed, all lines before this flashed the light quick, at this line is stayed on a good full second.

Anyways, at the end of that section no more light, what should I do at this point?

I tried adding the light code in the middle of that code, but compile error of coarse, break in code.

Re: port for A3300IS / what reference port to use?
« Reply #58 on: 31 / December / 2011, 12:30:54 »
Anyways, at the end of that section no more light, what should I do at this point?
Comment out line 360 and see what happens ?

Code: [Select]
...
"BL CreateTask_spytask \n" // added
//"BL sub_FF834190 \n"
//*** "BL taskcreatePhySw_my \n" // commented out for now
"BL sub_FF837B48 \n"
"BL sub_FF83C3C0 \n"
...
Ported :   A1200    SD940   G10    Powershot N    G16

Re: port for A3300IS / what reference port to use?
« Reply #59 on: 31 / December / 2011, 12:40:08 »
It booted, I saw the chdk logo, then it went to my no image screen and froze  8]

 

Related Topics


SimplePortal © 2008-2014, SimplePortal