supplierdeeply

PowerShot SX220 HS - Porting Thread

  • 562 Replies
  • 109293 Views
*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 & SX230 HS - Porting Thread
« Reply #10 on: 18 / April / 2011, 17:13:25 »
Advertisements
For now I solved the error in boot.c and the boot is working now and boots in the original UI.   :)
Now I have to find all the stubs locations. Will post the trunk soon.

*

Offline fe50

  • ******
  • 3094
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: PowerShot SX220 & SX230 HS - Porting Thread
« Reply #11 on: 20 / April / 2011, 04:54:34 »
Nice work, funnel !

Added this dump to the dumps repository at box.net/chdk; thx for the dump !
Also created the corresponding wikia pages / links: http://chdk.wikia.com/wiki/SX220

Moderators - i suggest to rename this thread to something like "SX220 porting thread" since a SX230 most probably will need an own porting thread sometime in the future...

*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 & SX230 HS - Porting Thread
« Reply #12 on: 21 / April / 2011, 06:12:29 »
I made more progress. I found all the subs_entry_2, stubs_min locations and checked the auto stubs. The camera now boots and show CHDK splash screen. Still doesn't have any functionality. Now I'm trying to figure out the kbd.c to make the buttons work. For now all I can see is the logo and debug data displayed on screen. This debug data shows only when I put debug_led(1) somewhere in the kbd.c code. I don't understand why is that.

For now:
mykbd_task: Buttons not working for now. Jogdial works
capt_seq_task: Started and found out that the code is very different than the old cameras. This will be hard to make it work.
init_file_modules_task: Doesn't crash but the display shows Memory Card Error and the card remains locked.
JogDial_task_my: Works.
movie_record_task: To do
exp_drv_task: To do


Source: http://www.zshare.net/download/89247945be1cd3a9/
« Last Edit: 21 / April / 2011, 06:37:36 by funnel »

*

Offline whim

  • ******
  • 2013
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: PowerShot SX220 & SX230 HS - Porting Thread
« Reply #13 on: 21 / April / 2011, 06:37:11 »
@funnel

I found a couple of typo's in your previous source's root Makefile, which are responsable for the 'ghost'
firmware version appearing in CHDK-Shell, corrected/commented version attached.
There's also a properly modified dancingbits.c ;)

hth,

wim
« Last Edit: 21 / April / 2011, 06:40:24 by whim »


*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 & SX230 HS - Porting Thread
« Reply #14 on: 21 / April / 2011, 06:38:38 »
Ok. Will check. Thank you.

Re: PowerShot SX220 & SX230 HS - Porting Thread
« Reply #15 on: 21 / April / 2011, 06:52:18 »
If the 220's firmware will work, will be good to the 230?
Hardware is not very different from the two machines ...
« Last Edit: 21 / April / 2011, 07:41:18 by Frrost »

*

Offline whim

  • ******
  • 2013
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: PowerShot SX220 & SX230 HS - Porting Thread
« Reply #16 on: 21 / April / 2011, 07:44:20 »
@Frrost

A CHDK version for 1 cam will never work on another cam; if they have a lot in common,
it will just make the porting easier.

wim
« Last Edit: 21 / April / 2011, 07:51:00 by whim »

*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 & SX230 HS - Porting Thread
« Reply #17 on: 23 / April / 2011, 11:05:49 »
Now I got the mykbd_task working somehow, still needs testing. CHDK is showing osd data in shooting mode (temperature, battery percent, memory card status). Data can now be saved on the locked memory card. I cannot bring up the ALT menu.

i still have the memory card error problem in InitFileModules task. I have found that I can format the card in the menu when the error is showing. When the card is formatted everything works normally and data can be stored on memory card, but the card isn't bootable anymore.

I attached the code from that function where the problem is located, if someone can help me with this.




*

Offline reyalp

  • ******
  • 11541
Re: PowerShot SX220 & SX230 HS - Porting Thread
« Reply #18 on: 24 / April / 2011, 22:10:55 »
I've updated http://chdk.wikia.com/wiki/Canon_Basic/Scripts/Dumper#Universal_dumper to hopefully work on cameras with the new start address.
Don't forget what the H stands for.

*

Offline philmoz

  • *****
  • 3070
    • Photos
Re: PowerShot SX220 & SX230 HS - Porting Thread
« Reply #19 on: 24 / April / 2011, 22:37:17 »
Now I got the mykbd_task working somehow, still needs testing. CHDK is showing osd data in shooting mode (temperature, battery percent, memory card status). Data can now be saved on the locked memory card. I cannot bring up the ALT menu.

i still have the memory card error problem in InitFileModules task. I have found that I can format the card in the menu when the error is showing. When the card is formatted everything works normally and data can be stored on memory card, but the card isn't bootable anymore.

I attached the code from that function where the problem is located, if someone can help me with this.




I think the line
   LDRB LR,[LR,#0x1ff]
should be
   LDRB R4,[LR,#0x1ff]

I'm away from my PC right now so I can't be 100% sure; but the above line looks wrong to me.

Hope this helps,
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)

 

Related Topics