PowerShot SX230 HS - Porting Thread - page 7 - General Discussion and Assistance - CHDK Forum

PowerShot SX230 HS - Porting Thread

  • 686 Replies
  • 177730 Views
*

Offline reyalp

  • ******
  • 11902
Re: PowerShot SX230 HS - Porting Thread
« Reply #60 on: 05 / June / 2011, 03:24:13 »
Advertisements
Those messages don't indicate a problem. You don't see them in the second case because ida isn't able to do as much analysis when the dump is loaded at the wrong address.
Don't forget what the H stands for.

*

Online philmoz

  • *****
  • 3107
    • Photos
Re: PowerShot SX230 HS - Porting Thread
« Reply #61 on: 05 / June / 2011, 03:40:01 »
Thank you for the quick answer.

This is what IDA tells me in the Output Window with ROM start address = 0xFF000000 and size = 0x3FFFFC

IDA is analysing the input file...
You may start to explore the input file right now.
ROM:FF000000: Can't find name (hint: use manual arg)
ROM:FF000000: Can't find name (hint: use manual arg)
.
many, many of these lines!!
.
ROM:FF000000: Can't find name (hint: use manual arg)
The initial autoanalysis has been finished.


And this is what IDA tells me in the Output WindowWith ROM start address = 0xFFC00000 and size = 0x3FFFFC

IDA is analysing the input file...
You may start to explore the input file right now.
The initial autoanalysis has been finished.


Why this difference? All is the same only the ROM start address has changed.

This is what i ment with faults.

genie

SX230 firmware dump is 16MB, load address is 0xFF000000.
Size is 0x01000000 (16MB); but IDA won't work with this, try 0x00FFFFFC.

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)

*

Offline aquilla

  • *
  • 21
  • sx230hs fw v1.01a
Re: PowerShot SX230 HS - Porting Thread
« Reply #62 on: 05 / June / 2011, 16:58:30 »
Testing with taliesin's latest .bin and .f12 files:

With card locked, attempting to turn on card with playback button only resulted in a power indicator led blinking.  Battery door had to be opened and sd card had to be removed before the camera would turn on properly. 

I'm not sure if this is progress or not.  Have you checked the values for MEMISOSTART and MEMISOSIZE?  Try kicking up MEMISOSIZE several more kilobytes.   According to an old '08 post by reyalp on a separate thread,

Quote
Comments in dryos cams boot code seem to imply they need some extra space:
eg, a720-100c
Code:
//              "LDR     R0, =0xDD024\n"          // 0x9d024 + 0x40000, note: 0x20000 *should* have been enough, but our code was overwritten...
                                                // ...thus we push the memory pool a little more up (0x30000 = 192k)
        asm volatile (
              "LDR     R0, =new_sa\n"
              "LDR     R0, [R0]\n"
        );
We can still set memisosize automatically, but some platforms may need a camera specific additional amount. Having the extra padding specified separately will be safer anyway, since it won't get lost when the main image size changes.

Hope that helps some.  Again, good luck taliesin!
-Aquilla

*

Offline reyalp

  • ******
  • 11902
Re: PowerShot SX230 HS - Porting Thread
« Reply #63 on: 05 / June / 2011, 17:58:11 »
MEMISOSIZE is automatically calculated at build time now, and has been for years. MEMISOSTART can be found by examining the very early canon boot code that initializes the bss and data.
Don't forget what the H stands for.


*

Offline aquilla

  • *
  • 21
  • sx230hs fw v1.01a
Re: PowerShot SX230 HS - Porting Thread
« Reply #64 on: 05 / June / 2011, 18:03:22 »
Ah.  I guess that's what happens when I use information from threads that are 3 years old.  Sorry, and thanks for the correction.  Take care...
-Aquilla

*

Offline reyalp

  • ******
  • 11902
Re: PowerShot SX230 HS - Porting Thread
« Reply #65 on: 05 / June / 2011, 18:04:48 »
Ah.  I guess that's what happens when I use information from threads that are 3 years old.  Sorry, and thanks for the correction.  Take care...
Not a problem, it's very hard to know what is still applicable.  The source is full of inaccurate and out of date comments too...
Don't forget what the H stands for.

Re: PowerShot SX230 HS - Porting Thread
« Reply #66 on: 05 / June / 2011, 22:33:02 »
I got some spare time to work on the port this afternoon. I rebuilt my build enviroment from scratch, using the latest SVN tree and ported accross the work I had done. I used this opportunity to make it easier to manage updates between the sx220 and here.

It solved the bug I was having yesterday so not it runs, reboots and into firmware. The next test to to add the taskhooks to the firmware, but I cant wokr on that to I get back home and access to IDA.

http://www.box.net/shared/d0xjmsasmv for the binary

Re: PowerShot SX230 HS - Porting Thread
« Reply #67 on: 06 / June / 2011, 11:06:16 »
Guys, I just wanted to thumbs up for doing this work! I'm eagerly waiting for the new firmware, mainly for the raw option. Good work! :)

And let me know if there's something I can help you with (non-programmer).


Re: PowerShot SX230 HS - Porting Thread
« Reply #68 on: 06 / June / 2011, 11:40:51 »
Same from me, thanks please keep it up :-)

Willing to help by any means besides assembly.
« Last Edit: 06 / June / 2011, 12:05:56 by tvtherapie »

Re: PowerShot SX230 HS - Porting Thread
« Reply #69 on: 06 / June / 2011, 15:28:27 »
Guys, I just wanted to thumbs up for doing this work! I'm eagerly waiting for the new firmware, mainly for the raw option. Good work! :)

And let me know if there's something I can help you with (non-programmer).

Same from me, thanks please keep it up :-)

Willing to help by any means besides assembly.

There wont be much for a non programmer to do until I get something working. Long weekend is over now, I didn't get as much done it as I hoped but I will continue to work on it. Progress will be slow for me though.


Are there any other programmers working on this?

 

Related Topics