SX240 HS Porting Thread - page 8 - DryOS Development - CHDK Forum

SX240 HS Porting Thread

  • 174 Replies
  • 72200 Views
Re: SX240 HS Porting Thread
« Reply #70 on: 18 / August / 2012, 09:55:45 »
Advertisements
Instead of DNG, if I save in CRW or CR2 file extension, Lightroom says file is damaged or corrupt. DxO crashes
Questions about RAW are probably the most common questions people ask on this forum once they have succeeded in getting CHDK to load and run.  What you first need to know is that CHDK RAW files are not the same thing as the RAW or CR2 files produced on DSLDR and higher end P&S cameras.  They are simply a dump of the raw information directly from the camera sensor.   They contain no format or size information to tell a PC software package how to interpret the information they contain and so frequently, those software packages will not be able to open CHDK RAW files.

Having said that, some PC software packages can guess the layout on the sensor information in the file based on the file's size if the author of that package has been informed that a new CHDK port has been released  and told of the file format.  Until that happens, DNG format files contain the information necessary for PC software to interpret the image data so its best to use them.

Here's some additional reading if you would like to learn more :
link> CHDK Wiki Page about RAW
link> CHDK Forum thread on RAW
link> CHDK Wiki Page about Raw Software
link> CHDK Forum Board for RAW
link> How do you fix lens distortion with CHDK RAW files?
link> Decoding CHDK RAW images from a new cameras
link> rawconvert utility to allow manipulation of CHDK RAW files
link> DNG4PS-2 utility to convert CHDK RAW images to DNG format
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SX240 HS Porting Thread
« Reply #71 on: 18 / August / 2012, 11:55:15 »
Thanks for the reply waterwingz

I tested out iRAW and DNG4PS-2 and both failed to recognize the RAW files generated by the camera

Since .dng is working fine, I don't think most people will ever need any other format. Maybe I was mistaken about the cr2 and crw formats and thought them to be standard formats rather than dumps. So even if they work, I will require DNG4PS-2 to convert them to dng which will be useless as camera can output dng RAW :)

BTW I wanted crw/cr2 to test DxO Pro but I guess I will have to skip it
Canon SX240 HS

Re: SX240 HS Porting Thread
« Reply #72 on: 18 / August / 2012, 12:28:25 »
I tested out iRAW and DNG4PS-2 and both failed to recognize the RAW files generated by the camera
Many of the software packages that work with RAW files use a common C program called DCRAW to open the raw files.  The author of that library periodically adds support for more CHDK RAW files when people go to the effort of submitting them to him.  Obviously, with new CHDK ports, the DCRAW library will not have support for them.  AFAIK,  the package "detect" how to decode the RAW image based on the actual file size - so hopefull no two CHDK cameras will have RAW files of the same size but different sensor XY formats.

Quote
Since .dng is working fine, I don't think most people will ever need any other format. Maybe I was mistaken about the cr2 and crw formats and thought them to be standard formats rather than dumps. So even if they work, I will require DNG4PS-2 to convert them to dng which will be useless as camera can output dng RAW :)
Correct.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SX240 HS Porting Thread
« Reply #73 on: 22 / August / 2012, 11:11:43 »
Some of the RAW images aren bad!
the Jpeg versions of them are fine.

Same problem for me!... What am I doing wrong??....

Re: SX240 HS Porting Thread
« Reply #74 on: 27 / August / 2012, 16:50:56 »
Hi, I'm new to CHDK and very happy, that someone is working on a SX240 port of CHDK.

I bought this Camera some months ago, but there was no CHDK for it. :(
But now - you made it  :D .

Unfortunately I have firmware version 1.00c - tried your 1.00a port - but the camera does not start, I had to remove card and battery.
Tried it many times. :( :( :(

BUT - then I found the SX260 porting thread - and tried to install the latest SX260 1.00c port on the SX240 - AND IT WORKS GREAT  :D :D :D :D.

Of course, CHDK only boots from card - the "firmware update..." start does not work - it is still a 240 and not a 260.
But hey, doe's not matter - it works great like it is.

I hope, I can help you with this information and make the real SX240 port easier for you.

Here is, how i got things working:
-I downloaded "sx260hs-100c-1.2.0-full" from the SX260 thread/Aug 23 2012.
-prepared the SD Card (SanDisk Ultra 8GB - other smaller cards worked too - ) like described in the wiki, formated as FAT32
-the bootblock on the 8GB Card has to be done in "EOScard" ! - the other preparation software did not work
-then I copied all files from the archive to the card (added an empty "ver.req")
-SD lock has to be locked (because "firmware update... does not work) - to boot from the SD card
-insert the card and press play button to start the camera.... and then... having fun with CHDK  :D

All functions I tested work good -  I tried RAW, Histogram (only "RGB" is ok-the other don't fit on the screen), zebra mode and HDR script. (You can even override the exposure settings - but the light meter does not know, you will have to compensate it manually to get a right exposure. I hope this will be corrected in future releases).

I can open the RAW files easily in "Capture One 6 express" - seems that the SX240 does a lot of "in camera work", when you shoot jpeg. In the RAW you see more picture, you can see the edges of the lens - i don't know, why this is.

I hope this helped you (especially firmware 1.00 C - owners) -  :D best greetings, -Tom-


Re: SX240 HS Porting Thread
« Reply #75 on: 27 / August / 2012, 19:26:40 »
BUT - then I found the SX260 porting thread - and tried to install the latest SX260 1.00c port on the SX240 - AND IT WORKS GREAT  :D :D :D :D.
This was discussed earlier - it the first and only time CHDK from one camera model has worked on another model camera.  This is largely because the only difference between the two cameras is a GPS chip.  Canon used the same code as all the rest of the electronics is identical.

Quote
Of course, CHDK only boots from card - the "firmware update..." start does not work - it is still a 240 and not a 260.
That has nothing to do with it being a 240 or 260

Quote
added an empty "ver.req")
Not needed.

Quote
In the RAW you see more picture, you can see the edges of the lens - i don't know, why this is.
Because CHDK RAW is exactly what the camera sensor sees - no post processing at all. You see the edge of the lens because that's what the camera sees.   More info on RAW here :

link> CHDK Wiki Page about RAW
link> CHDK Forum thread on RAW
link> CHDK Wiki Page about Raw Software
link> CHDK Forum Board for RAW
link> How do you fix lens distortion with CHDK RAW files?


Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline nafraf

  • *****
  • 1308
Re: SX240 HS Porting Thread
« Reply #76 on: 27 / August / 2012, 19:38:20 »
This was discussed earlier - it the first and only time CHDK from one camera model has worked on another model camera.
How will be that managed in CHDK source tree?   Only one source directory for both models and a note in CHDK wikia page?

Re: SX240 HS Porting Thread
« Reply #77 on: 27 / August / 2012, 19:39:37 »
How will be that managed in CHDK source tree?   Only one source directory for both models and a note in CHDK wikia page?
I'll let reyalp puzzle that one out :)   But I'm pretty sure there will be a seperate build zip file in the autobuild so that we don't confuse people.

I'm mostly worried that someone will see this and thing he can try CHDK from other random cameras hoping one will work on his (unported) camera.

Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14125
Re: SX240 HS Porting Thread
« Reply #78 on: 27 / August / 2012, 21:19:08 »
I'm mostly worried that someone will see this and thing he can try CHDK from other random cameras hoping one will work on his (unported) camera.
Note that it's possible this has happened before, I don't think anyone routinely compares dumps or stubs between models. I did check the sx220 / sx230 and they definitely didn't match though...

This was discussed earlier - it the first and only time CHDK from one camera model has worked on another model camera.
How will be that managed in CHDK source tree?   Only one source directory for both models and a note in CHDK wikia page?
If it didn't have a different PID, putting it in the same directory/making it a copy would be ok. But it does, so the FI2 will have to be built differently. As much as I hate copy and paste, just copying sx260 might be the better approach. Maybe the C files could be made so they just include the sx260 ones ?

Not really sure, I'm open to ideas.
Don't forget what the H stands for.

Re: SX240 HS Porting Thread
« Reply #79 on: 27 / August / 2012, 21:26:09 »
Not really sure, I'm open to ideas.
Disk space is cheap.  Cut and paste the source and live with it.   Maybe put a note on the wiki page for future generations ?

The only place to flag that it was done in the source is the notes.txt file - so make a note in both of them too ? (sorry ... I'm stating the obvious here ..)

« Last Edit: 27 / August / 2012, 21:38:26 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics


SimplePortal © 2008-2014, SimplePortal