PowerShot SX210 IS - Porting Thread - page 14 - General Discussion and Assistance - CHDK Forum

PowerShot SX210 IS - Porting Thread

  • 589 Replies
  • 323683 Views
*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #130 on: 21 / August / 2010, 12:31:37 »
Advertisements
7) more addresses now in the file:platform\sx210is\sub\100c\capt_seq.c

Only find so far:

Code: [Select]
static long *nrflag = (long*)0x75B0;  // -> ASM1989 08.21.2010 found at FF972F10
« Last Edit: 21 / August / 2010, 12:35:10 by asm1989 »

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #131 on: 23 / August / 2010, 07:16:03 »
8.) More address for stubs_entry_2.S

Am I alone with this :-[?

Code: [Select]
NHSTUB(GetBatteryTemperature, 0xFF866F08) // -> ASM1989 08.23.2010
NHSTUB(GetCCDTemperature, 0xFF866E94) // -> ASM1989 08.23.2010


« Last Edit: 23 / August / 2010, 07:19:27 by asm1989 »

Re: PowerShot SX210 IS - Porting Thread
« Reply #132 on: 23 / August / 2010, 10:08:13 »
Hi there

i am very interested in the developments regarding this camera unfortunately i can't help with anything since i useless at all this stuff been trying to follow whats going on but am truly lost i would be glad to help if someone could point me in the right direction

but all i really want to ask is how is this progressing are we getting close to getting CHDK onto a canon SX210 IS cause i am thinking of buying this camera but am waiting for CHDK to be available for it
Thanks guys and Great work so far you guys are clever!!!!!

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #133 on: 23 / August / 2010, 10:26:37 »
Thanks Swiftzn,

Too early to tell, It depends on how many skilled people work on it,

If things go well maybe in a month or so, for basic stuff.

unless anyone  have knowledge of asm, ida, arm, or chdk, it's better to wait only and dont fill the forum with whens?

anyway thanks for the interest.

Re: PowerShot SX210 IS - Porting Thread
« Reply #134 on: 23 / August / 2010, 10:36:36 »
thanks man keep up the good work i'll be waiting with baited breath hehe


*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #135 on: 24 / August / 2010, 02:46:26 »
9) Now with some LED stuff at loader\sx210is\main.c

Code: [Select]
#define LED_PR 0xC0220130   // -> ASM1989 08.24.2010 found at  FF91E080  in sx200 was found at FF8E73D0
I'm a bit confused with this, in other cameras de LED_PR from main.c and lib.c are the same, but it the sx200 I found two difrent address, that I can find too on sx210, anyone knows why?

10) Now with some LED stuff at \platform\sx210is\lib.c

Code: [Select]
#define LED_PR 0xC0223030    // -> ASM1989 08.24.2010 found at  FF8E73F0  in sx200 was FF91E09C
Any clue?
« Last Edit: 24 / August / 2010, 03:14:33 by asm1989 »

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #136 on: 24 / August / 2010, 04:18:50 »
11) Back to platform\sx210is\sub\100c\stubs_entry_2.S

To find more missing funcs  from sx200 code,

Code: [Select]
NHSTUB(TurnOnBackLight, 0xFF8A7314)  // -> ASM1989 08.24.2010
NHSTUB(PT_PlaySound, 0xFF885CD0)  // -> ASM1989 08.24.2010, not sure looks like throgh back trace,
in sx210 audioHandle.c seems to be Mycamfuncsound.c in sx200
 

« Last Edit: 24 / August / 2010, 11:18:49 by asm1989 »

Re: PowerShot SX210 IS - Porting Thread
« Reply #137 on: 24 / August / 2010, 09:55:01 »
8.) More address for stubs_entry_2.S

Am I alone with this :-[?

Code: [Select]
NHSTUB(GetBatteryTemperature, 0xFF866F08) // -> ASM1989 08.23.2010
NHSTUB(GetCCDTemperature, 0xFF866E94) // -> ASM1989 08.23.2010



I will be porting in just over a week.  I'm out of town but I should be able to get an alpha port complete soon after that.

Jason
Canon Models - SD300, SD780, & SX210

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #138 on: 24 / August / 2010, 10:58:45 »
Thanks Jason, I hope you find usefull my discoveries, as I said I'm using sx200 as a reference port, and it shared most of its firmware with the sx210 changing address and other stuff, but there are also many new things to look for in the sx210, the ones I guess are through the coments of my code.

If someone could review and confirm my finings will be great too.

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #139 on: 25 / August / 2010, 06:01:50 »
12) Back to platform\sx210is\sub\100c\boot.c

Here is the hard stuff, unfinished but it compiles, the camera simply restart as expected but nothing else,
I'm just converting the boot sequence from sx200 to the sx210, with some findings and some unresolved items, look at the coments

It is unfished but it someone wants to advance here it is version 0.1 :
http://www.zshare.net/download/79699752e96cf55b/


Also to make it load into the camera, you need to update your fi2.inc check here: http://chdk.setepontos.com/index.php/topic,2995.60.html
 
and updated  makefile.inc
Code: [Select]
#PLATFORMID=0x31F6
PLATFORMID=12790

PLATFORMOS=dryos

MEMBASEADDR=0x1900
RESTARTSTART=0x50000
MEMISOSTART=0x152728
ROMBASEADDR=0xFF810000


PLFLAGS=-DMEMBASEADDR=$(MEMBASEADDR) -DMEMISOSTART=$(MEMISOSTART) -DMEMISOSIZE=$(MEMISOSIZE)
PLFLAGS+=-DRESTARTSTART=$(RESTARTSTART)

NEED_ENCODED_DISKBOOT=4
KEYSYS=d4a

-> The  change is at this line KEYSYS=d4a

In order to compile, I was unable to generate the new signatures I introduce in boot.c  for the file stubs_auto.S,
I have the primary.bin in the folder, but I keep getting undefined reference to .... , I partialy solve it including the new references manually to stubs_auto.S, but It rewrites them regularly, and Its a time waster.
Any one knows why I get this error?

If someone need them The signatures until now are:
Code: [Select]
STUB(FFB5FA88)
STUB(FF813404)
STUB(FF810B20)
STUB(FF815F4C)
STUB(FF815A94)
STUB(FF815B7C)
STUB(FF813BF0)
STUB(FF819C3C)
STUB(FF81167C)
STUB(FF81A244)
STUB(FF834410)
STUB(FF83BF28)
STUB(FF835C04)
STUB(FF83440C)
STUB(FF833AA4)
STUB(FF833C90)
STUB(FF834418)
STUB(FF834414)
STUB(FF83A154)
STUB(FF83A59C)
STUB(FF83A348)
STUB(FF81E83C)
STUB(FF83A2DC)
« Last Edit: 25 / August / 2010, 06:04:03 by asm1989 »

 

Related Topics


SimplePortal © 2008-2014, SimplePortal