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

PowerShot SX210 IS - Porting Thread

  • 589 Replies
  • 315797 Views
*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: PowerShot SX210 IS - Porting Thread
« Reply #540 on: 25 / August / 2012, 21:08:30 »
Advertisements
I've copied the SX210IS 1.00c from release 1.0 to release 1.1 and modified kbd.c so it builds.

It's set as SKIP_AUTOBUILD at the moment; but if you can test it then I'll remove this.
Oh [admin: avoid swearing please] .. was just working on that too.

Did you fix the platform_camera.h stuff (updates attached) ?



Thanks, I've updated platform_camera.h as well.

I saw you were busy doing the A1200 port so I thought I'd do this one for you :)
If you can check my kbd.c changes that would good.

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)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: PowerShot SX210 IS - Porting Thread
« Reply #541 on: 25 / August / 2012, 21:16:42 »
I saw you were busy doing the A1200 port so I thought I'd do this one for you :)
Thanks - six of one,  half a dozen of the other.   Not sure I got the platform_camera.h stuff right .. the first person to try this may get multiple images ...

Quote
If you can check my kbd.c changes that would good.
Pretty much what I did - but I deleted a lot of the development comments to be tidy.  Might be better to just leave them in.

While I was doing that I realize that someday we are going to get stung when SD_READONLY_IDX and USB_IDX are not the same value.   Fortunately,  it seems its easier for Canon to put them at the same offset in every camera.



« Last Edit: 25 / August / 2012, 21:19:09 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: PowerShot SX210 IS - Porting Thread
« Reply #542 on: 02 / September / 2012, 09:20:53 »
Hello!

I was searching for recent builds for my camera (SX210IS) and didn't find any. I've read this topic and found that the autobuild for this model is disabled. If you can provide me with the latest build, I can test it and give you guys feedback, if that helps! :)

Re: PowerShot SX210 IS - Porting Thread
« Reply #543 on: 02 / September / 2012, 10:14:48 »
I was searching for recent builds for my camera (SX210IS) and didn't find any. I've read this topic and found that the autobuild for this model is disabled. If you can provide me with the latest build, I can test it and give you guys feedback, if that helps! :)
Current build of the sx210is firmware 1.00c from the 1.1.0 stable branch.

SD Card lock autobooting only - the firmware update method is not available at this time.

http://chdk.wikia.com/wiki/Prepare_your_SD_card#For_cameras_released_before_2011_:
« Last Edit: 02 / September / 2012, 11:25:18 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16


Re: PowerShot SX210 IS - Porting Thread
« Reply #544 on: 06 / September / 2012, 13:29:35 »
I was searching for recent builds for my camera (SX210IS) and didn't find any. I've read this topic and found that the autobuild for this model is disabled. If you can provide me with the latest build, I can test it and give you guys feedback, if that helps! :)
Current build of the sx210is firmware 1.00c from the 1.1.0 stable branch.

SD Card lock autobooting only - the firmware update method is not available at this time.

http://chdk.wikia.com/wiki/Prepare_your_SD_card#For_cameras_released_before_2011_:

Thank you, I'll test this as soon as I can! :)

Re: PowerShot SX210 IS - Porting Thread
« Reply #545 on: 29 / October / 2012, 12:53:22 »
Hi. I wanted to report that I had chdk working fine for me on my sx210is.

I couldn't use the latest version posted here because I can't get autobooting to work with my 32g card. I wasted many hours trying all sorts of partition schemes and formats. I don't know anything about the toolchain but I have to wonder why there's no firmware file for the latest build.

The best I could do was this one that still has a ps2.fir file. Firmware update is the only way I can start chdk. sx210is-100c-1.1.0-r1829-full.zip 

I have a motion capture script I wrote back in 2008 for my sd700is and it ran flawlessly on my new camera. I used it to archive about 550 pages of documents yesterday. Would be nice to see 210's included with the regular builds.
--
Sean

Re: PowerShot SX210 IS - Porting Thread
« Reply #546 on: 29 / October / 2012, 14:10:03 »
I couldn't use the latest version posted here because I can't get autobooting to work with my 32g card.
 I wasted many hours trying all sorts of partition schemes and formats.
Did you follow the instructions posted here : http://chdk.wikia.com/wiki/Prepare_your_SD_card

The sx210 was released in 2010 so needs to use a dual partition setup if you want to autoboot with a card larger than 4G.


Quote
I don't know anything about the toolchain but I have to wonder why there's no firmware file for the latest build.
Typically,  people doing test versions don't build "firmware update" compatible files if they are worried about respecting encryption issues in their local countries.


Quote
Would be nice to see 210's included with the regular builds.
That typically means somebody needs to complete all debugging and testing the port and report the results back here as all working.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline pux

  • *
  • 4
Re: PowerShot SX210 IS - Porting Thread
« Reply #547 on: 08 / December / 2012, 12:47:21 »
Hi,

i made some changes in the current code tree to get the sx210is working. Fixes include screen resolution for proper CHDK GUI display, zebra/edge overlay and free space reported (in both gui and file manager).

I use it now for some days and it seems to work fine.


README_CHANGES.txt:

CHANGES to CHDK trunk rev2339 for SX210IS support.
Also made a small change in the CHDK core, if not wanted, use chdk_sx210is_against_rev2339_without_core_changes.diff



Patch for SX210IS:

- Defined correct BITMAP/SCREEN size in platform_camera.h, without that the CHDK GUI wasn't readable at all and thus not usable. Also redefined the 240px CAM_SCREEN_HEIGHT, just in case the CHDK (also 240px) standard in include/camera.h will change in the future. If it won't, no need to apply this.

- Changed a few functions in platform/sx210is/lib.c: Enables correct Zebra/Edge overlay in (hopefully) all modes (including video).

- The PROPCASE_ASPECT_RATIO didn't do anything on my SX210IS, so i used PROPCASE_RESOLUTION in photo mode.

- Had to find a way to differentiate video resolution for Edge overlay, and found a new PROP to use (169) and defined it as PROPCASE_VIDEO_RESOLUTION (which is 4, 2, 1 for 1280, 640 and 320).

- SD card space was reported wrong, the change in platform/sx210is/sub/100c/stubs_entry.S fixes that. It's an automatically generated file, but since there's no firmware bundled for the SX210IS it's probably a better default(?).



Patch in core:

- File browser still reported wrong free space, also changed M/G to MiB/GiB.


Download the binaries of rev2339-sx210is, diffs and changed source files here: http://depositfiles.com/files/n7gzxto75


Have fun,
-- pux


*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: PowerShot SX210 IS - Porting Thread
« Reply #548 on: 08 / December / 2012, 20:09:04 »
Hi,

i made some changes in the current code tree to get the sx210is working. Fixes include screen resolution for proper CHDK GUI display, zebra/edge overlay and free space reported (in both gui and file manager).

I use it now for some days and it seems to work fine.


README_CHANGES.txt:

CHANGES to CHDK trunk rev2339 for SX210IS support.
Also made a small change in the CHDK core, if not wanted, use chdk_sx210is_against_rev2339_without_core_changes.diff



Patch for SX210IS:

- Defined correct BITMAP/SCREEN size in platform_camera.h, without that the CHDK GUI wasn't readable at all and thus not usable. Also redefined the 240px CAM_SCREEN_HEIGHT, just in case the CHDK (also 240px) standard in include/camera.h will change in the future. If it won't, no need to apply this.

- Changed a few functions in platform/sx210is/lib.c: Enables correct Zebra/Edge overlay in (hopefully) all modes (including video).

- The PROPCASE_ASPECT_RATIO didn't do anything on my SX210IS, so i used PROPCASE_RESOLUTION in photo mode.

- Had to find a way to differentiate video resolution for Edge overlay, and found a new PROP to use (169) and defined it as PROPCASE_VIDEO_RESOLUTION (which is 4, 2, 1 for 1280, 640 and 320).

- SD card space was reported wrong, the change in platform/sx210is/sub/100c/stubs_entry.S fixes that. It's an automatically generated file, but since there's no firmware bundled for the SX210IS it's probably a better default(?).



Patch in core:

- File browser still reported wrong free space, also changed M/G to MiB/GiB.


Download the binaries of rev2339-sx210is, diffs and changed source files here: http://depositfiles.com/files/n7gzxto75


Have fun,
-- pux

There are a couple of issues:
- patch files should be attached directly to posts in the 'Adding new cameras, applying patches...' topic. Putting them on a hosting site means they can disappear without warning and makes them harder to access.
- while MiB and GiB are technically correct they don't mean anything to most people
- version.inc is a generated file and should not be in a patch file
- stubs_entry.S is a generated file and should not be modified. Use stubs_entry_2.S instead.
- the definition of CAM_SCREEN_HEIGHT won't change in camera.h so no need to override it with the same value
- if PROPCASE_ASPECT_RATIO does not apply to this camera then the code in vid_get_viewport_height and vid_get_viewport_display_yoffset is probably wrong as well.

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)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

*

Offline pux

  • *
  • 4
Re: PowerShot SX210 IS - Porting Thread
« Reply #549 on: 09 / December / 2012, 05:43:23 »
Hey thank You for your quick report!

I made the changes you suggested.

Quote
There are a couple of issues:
- patch files should be attached directly to posts in the 'Adding new cameras, applying patches...' topic. Putting them on a hosting site means they can disappear without warning and makes them harder to access.

Will do this.

Quote
- while MiB and GiB are technically correct they don't mean anything to most people

Changed back to M/G.

Quote
- version.inc is a generated file and should not be in a patch file

Removed.

Quote
- stubs_entry.S is a generated file and should not be modified. Use stubs_entry_2.S instead.

Moved to stubs_entry_2.S and is tested and works.

Quote
- the definition of CAM_SCREEN_HEIGHT won't change in camera.h so no need to override it with the same value

Perfect. 2 lines less.

Quote
- if PROPCASE_ASPECT_RATIO does not apply to this camera then the code in vid_get_viewport_height and vid_get_viewport_display_yoffset is probably wrong as well.

Since it's always 240/0 on every setting i found i hardcoded this. I'm not seeing any issue.

sx210is.diff is the diff for everything, the .zip contains the binaries as well as this diff file.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal