port for A3300IS / what reference port to use? - page 24 - General Discussion and Assistance - CHDK Forum

port for A3300IS / what reference port to use?

  • 288 Replies
  • 58581 Views
*

Offline philmoz

  • *****
  • 3275
    • Photos
Re: port for A3300IS / what reference port to use?
« Reply #230 on: 27 / January / 2012, 03:49:18 »
Advertisements
Then create a local repository of the CHDK svn site,
Check out a working copy. Yes, I am a pedant, but terminology matters in this case, a repository in SVN is something very different ;)

mk11174
I'd welcome updated patch.  I understand you put a lot of work into this. It was not my intention flame you personally, but I've had to support enough broken, half baked ports that I have a strong reaction to them.
Hey, I just want to be sure I patch for the right trunk.

I notice the trunk that updates with chdk shell is somewhat differ then the branches/release-1 0.

I see the port needs a few changes to make the port work depending if you use the trunk that chdk updates auto or the release-1 0 from the branches directory.

Just to be clear, I want my port set up for the branches/release-1 0 version of revision 1614 right, not the trunk/ right?

I made 2 versions of my port to work for both because I was not sure which was the more important one to be setup for.


The release-1_0 branch is the 'stable' release that is available on the autobuild server.

The main trunk is version 1.1 and is the current development version with all the new stuff like loadable modules - it is considered 'unstable' as this is where all the experimental changes are happening.

A patch for both would be nice, and it is preferable if you test both; but if you are only doing one patch then do it for the release-1_0 branch and we will merge it across to the trunk.

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: port for A3300IS / what reference port to use?
« Reply #231 on: 27 / January / 2012, 03:58:58 »
Ok, just wanted to be sure before I patched for the wrong version, thanks.


*

Offline philmoz

  • *****
  • 3275
    • Photos
Re: port for A3300IS / what reference port to use?
« Reply #232 on: 27 / January / 2012, 15:49:19 »
Ok, just wanted to be sure before I patched for the wrong version, thanks.



Had a look at the patch, and I have a question before I update SVN.

In lib.c you have the following in hook_raw_image_addr:
      return (char*) 0x42075144;      //Found at FFB217F0   and had to manually adjust till image lined up a3300is

The comment concerns me, the address from the firmware should not need adjusting.

If you based this on creating and viewing a DNG file then I suspect the problem is with the settings for the CAM_ACTIVE_AREA_xx values in platform_camera.h. These define the size of the image area captured on the sensor which is usually smaller than the sensor; but larger than the jpeg size.

The _X1 and _Y1 values are the top left corner and the _X2 and _Y2 are one pixel beyond the bottom right corner.

To determine the correct values:
- set CAM_JPEG_WIDTH to be equal to CAM_RAW_ROWPIX
- set CAM_JPEG_HEIGHT to be equal to CAM_RAW_ROWS
- set CAM_ACTIVE_AREA_X1 to 0
- set CAM_ACTIVE_AREA_Y1 to 0
- set CAM_ACTIVE_AREA_X2 to be equal to CAM_RAW_ROWPIX
- set CAM_ACTIVE_AREA_Y2 to be equal to CAM_RAW_ROWS
- set the hook_raw_image_addr address to be the value in the firmware

Take a DNG image and open it in an editor. You should now see the entire sensor area including the black borders. Determine the correct values for _X1, _Y1, _X2 and _Y2 from this image (don't forget to reset CAM_JPEG_WIDTH and CAM_JPEG_HEIGHT back).

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: port for A3300IS / what reference port to use?
« Reply #233 on: 27 / January / 2012, 17:10:55 »
Take a DNG image and open it in an editor. You should now see the entire sensor area including the black borders. Determine the correct values for _X1, _Y1, _X2 and _Y2 from this image (don't forget to reset CAM_JPEG_WIDTH and CAM_JPEG_HEIGHT back).

Phil.


Ok, I will try that with the firmware address.

And yes, I took dngs one at a time going back in forth adjusting address till it lined up, works great though the way it is, but I will do what you say, thanks.

I got my values from the exif tool for the active area etc...


Re: port for A3300IS / what reference port to use?
« Reply #234 on: 27 / January / 2012, 19:42:27 »
Check out a working copy. Yes, I am a pedant, but terminology matters in this case, a repository in SVN is something very different ;)
Well,  that freed up a little disk space.  As reyalp suggests, you don't need a local repository to check-out a working copy.  I guess my local repository goes back to following the TortoiseSVN "Go for a Test Drive" instructions in chapter 1 of the manual and never going back to delete the example repository it showed me how to create.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: port for A3300IS / what reference port to use?
« Reply #235 on: 27 / January / 2012, 21:41:49 »
Just want to publicly thank Philmoz for helping me tweak the active area values so i can use the actual firmware raw hook address in my port.

Re: port for A3300IS / what reference port to use?
« Reply #236 on: 27 / January / 2012, 23:23:30 »
Just want to update the latest release that includes the tweak to the active area values and raw hook address.

You wont see any change, but at least its technically correct now which is always a good thing. 8]


Re: port for A3300IS / what reference port to use?
« Reply #237 on: 30 / January / 2012, 15:49:38 »
Hi I have downloaded the CHDK for 3300is. There is no PI.fS2 file in it. I can't install it please someone help!


Re: port for A3300IS / what reference port to use?
« Reply #238 on: 30 / January / 2012, 15:58:11 »
For the diskboot.bin files in the port you use the sdcard lock position option.

First prepare the sdcard with card tricks: http://chdk.wikia.com/wiki/CardTricks 

Then copy the diskboot.bin and chdk folder to card.

Switch card to memory lock position and start camera.

Re: port for A3300IS / what reference port to use?
« Reply #239 on: 30 / January / 2012, 19:08:29 »
I really can't make it work sir. My bad. I'm sorry to bother you but I just really can't wait to test it to my camera. Could you explain it more briefly sir just for the last time. Thank You.

 

Related Topics