Author Topic: Ixus 200IS/SD980 1.01c porting thread  (Read 11683 times)

Offline dhavalhirdhav

  • Rookie
  • *
  • Posts: 30
Re: Ixus 200IS/SD980 1.01c porting thread
« Reply #45 on: 25 / August / 2010, 10:46:08 »
ok.. I managed to be one step closer.. I deleted all code which was inside my_restart(), earlier it used to restart camera and canon splash screen comes and then turns off.. now it doesnt restart camera.. :) so now I know that I am getting proper FI2 file with fi2encdec. so now issue I have to check is with what is happening after that. before that I will just try to lit up LED. will keep posted here.

Offline dhavalhirdhav

  • Rookie
  • *
  • Posts: 30
Re: Ixus 200IS/SD980 1.01c porting thread
« Reply #46 on: 25 / August / 2010, 11:23:04 »
managed to get LED blink.. but AF light.. not the back light. AF light address at 0xC0223030 this is happning at start of my_restart() method.

now I will check with more related to copy_and_restart part.

Offline RaduP

  • Hero Member
  • *****
  • Posts: 841
Re: Ixus 200IS/SD980 1.01c porting thread
« Reply #47 on: 25 / August / 2010, 12:24:15 »
What happens AFTER you get the splash? Does the camera freeze or something?
If you get to the splash screen, I guess the firmware versions are very very close to each other and you won't have to do much work in the initialization part.

Offline dhavalhirdhav

  • Rookie
  • *
  • Posts: 30
Re: Ixus 200IS/SD980 1.01c porting thread
« Reply #48 on: 25 / August / 2010, 14:19:40 »
I get canon logo.. but not CHDK splash screen right now.. I am just checking whether it is causing issue.. I am right now checking with boot() method in boot.c file.

forgot to add.. after CANON Splash screen (LOGO).. camera turns off.. it doesnt freeze.. just turns off itself.
« Last Edit: 25 / August / 2010, 14:33:00 by dhavalhirdhav »

Offline dhavalhirdhav

  • Rookie
  • *
  • Posts: 30
Re: Ixus 200IS/SD980 1.01c porting thread
« Reply #49 on: 25 / August / 2010, 14:27:26 »
ok finally found where the issue is.. issue is at boot() method in boot.c file. I am not sure where exactly error is.. but I tried to blink LED at start of boot.. which happend.. and then at end of boot method.. which failed. so ASM code which is being executed is having issue. CHKD address is incorrect?

Offline dhavalhirdhav

  • Rookie
  • *
  • Posts: 30
Re: Ixus 200IS/SD980 1.01c porting thread
« Reply #50 on: 25 / August / 2010, 15:42:13 »
I noticed that in boot.c file.

task_Startup_my() method has following line commented

//         "BL      sub_FF83A2F8\n"    // start diskboot.bin

is this right? as far as what I understand if I uncomment it.. diskboot will try to load.. and again restart.. which will get into infinite loop?

Offline dhavalhirdhav

  • Rookie
  • *
  • Posts: 30
Re: Ixus 200IS/SD980 1.01c porting thread
« Reply #51 on: 25 / August / 2010, 16:03:57 »
hmm not getting where exactly the issue is appearing.. I will just give behaviour..

when I start the cam.. and do firmware update.. it restarts cam.. it plays startup sound.. shows canon logo on screen.. and led light blinks on back 1st time.. and then 2nd time also it blinks.. and camera just turns off. but when 2nd time it blinks.. LED just turns on.. and doesnt get off.. camera turns off.. while LED is on.. camera turns off.. and LED also off.

Offline RaduP

  • Hero Member
  • *****
  • Posts: 841
Re: Ixus 200IS/SD980 1.01c porting thread
« Reply #52 on: 25 / August / 2010, 23:23:13 »
Well, that ASM cod needs to be modified, because every camera and firmware version will have the functions and stuff at different addresses.
So what you must do is take IDA or some other asm disassembler and look at the code from the firmware, get the right addresses and replace them in my code.

Offline dhavalhirdhav

  • Rookie
  • *
  • Posts: 30
Re: Ixus 200IS/SD980 1.01c porting thread
« Reply #53 on: 25 / August / 2010, 23:28:43 »
ya I am planning to do that.. I am trying to get original firmware.. which I am unable to get with UDumper.. so wll have to use blinker method.. which I will try in couple days.

you have ported to 1.00c right? is it in SVN?

CHDK Forum

Re: Ixus 200IS/SD980 1.01c porting thread
« Reply #53 on: 25 / August / 2010, 23:28:43 »

Offline dhavalhirdhav

  • Rookie
  • *
  • Posts: 30
Re: Ixus 200IS/SD980 1.01c porting thread
« Reply #54 on: 26 / August / 2010, 00:13:22 »
ok I got the issue..

in boot.c file, in task_Startup_my() method.. last line is

B sub_FF8165B0

and here it is causing the issue, making camera crash and turn off. any idea?

when I tried changing its address to something else.. it just show me canon logo.. and camera turned off.. so I belive FF8165B0 is code to start DryOS and after that it will hook CHDK.. but I am unable to find what is happening or where execution is going after B sub_FF815B0
« Last Edit: 26 / August / 2010, 00:34:45 by dhavalhirdhav »

Offline RaduP

  • Hero Member
  • *****
  • Posts: 841
Re: Ixus 200IS/SD980 1.01c porting thread
« Reply #55 on: 26 / August / 2010, 01:59:27 »
The firmware has been dumped already, there is a link to it somewhere in this thread. And I only ported the first version of the firmware, I forgot what version that is.

Offline dhavalhirdhav

  • Rookie
  • *
  • Posts: 30
Re: Ixus 200IS/SD980 1.01c porting thread
« Reply #56 on: 26 / August / 2010, 07:54:19 »
link on this thread for firware is dead :(

Offline RaduP

  • Hero Member
  • *****
  • Posts: 841
Re: Ixus 200IS/SD980 1.01c porting thread
« Reply #57 on: 26 / August / 2010, 08:18:25 »

Offline dhavalhirdhav

  • Rookie
  • *
  • Posts: 30
Re: Ixus 200IS/SD980 1.01c porting thread
« Reply #58 on: 26 / August / 2010, 08:44:12 »
Thank you :) will start work on this very soon.

Offline dhavalhirdhav

  • Rookie
  • *
  • Posts: 30
Re: Ixus 200IS/SD980 1.01c porting thread
« Reply #59 on: 30 / August / 2010, 01:21:46 »
worked tonight on this for about hour.. and made very little progress.. found two LED Addresses.

for Green and Orange

so now we have AF, Green and Orange

#define LED_PR         0xC0220130
#define LED_ORANGE     0xC0220134
#define LED_AF         0xC0223030

also updated Wikia page - http://chdk.wikia.com/wiki/Ixus_200

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal