A430 porting started - histogram working

  • 115 Replies
  • 27927 Views
Re: A430 porting started - histogram working
« Reply #20 on: 26 / June / 2009, 08:42:13 »
Advertisements
How did you "develop" the crw file? I've tried picasa, ufraw and DNGForPowerShot without success...

I'd suspect that 100b/libc::hook_raw_size() might cause the defect in the bottom of the raw file. Maybe it shoudl return a bigger value?

*

Offline zfeet

  • **
  • 67
Re: A430 porting started - histogram working
« Reply #21 on: 26 / June / 2009, 09:38:39 »
Yes, the value is too small as size used there is for jpegs. That's the reason I would like to know how to calculate the correct value for the CAM_RAW_ROWPIX and CAM_RAW_ROWS.

There's a menu item called RAW Develop in RAW Parameters menu in CHDK.

Edit: typo
« Last Edit: 26 / June / 2009, 09:48:01 by zfeet »

*

Offline zfeet

  • **
  • 67
Re: A430 porting started - histogram working
« Reply #22 on: 26 / June / 2009, 14:00:38 »
I found the correct location for

Code: [Select]
ROM:FFC9C9A0 95 3E A0 E3                             MOV     R3, #0x950      ; jumptable FFC9C8EC case 8
ROM:FFC9C9A4 6D 2E A0 E3                             MOV     R2, #0x6D0
ROM:FFC9C9A8 08 30 83 E2                             ADD     R3, R3, #8
ROM:FFC9C9AC 08 20 82 E2                             ADD     R2, R2, #8
ROM:FFC9C9B0 16 00 00 EA                             B       loc_FFC9CA10

So camera.h should have:

Code: [Select]
   #define CAM_RAW_ROWPIX              2392   // for 4 MP 1/3" sensor size
    #define CAM_RAW_ROWS                1752   // for 4 MP 1/3" sensor size

Therefore hook_raw_size is 0x4FEED0
« Last Edit: 26 / June / 2009, 14:03:22 by zfeet »

*

Offline zfeet

  • **
  • 67
Re: A430 porting started - histogram working
« Reply #23 on: 26 / June / 2009, 15:05:58 »
Developing with CHDK works now correctly but I still cannot open the .crw files with any program. Anyone? Bueller?

Also I noticed that trying to save as DNG crashes the camera, either trying badpixel.lua or creating an empty badpixel.bin.
« Last Edit: 26 / June / 2009, 16:21:06 by zfeet »


*

Offline reyalp

  • ******
  • 10905
Re: A430 porting started - histogram working
« Reply #24 on: 26 / June / 2009, 17:10:08 »
Developing with CHDK works now correctly but I still cannot open the .crw files with any program. Anyone? Bueller?
Read the sticky threads in the raw forum.
Don't forget what the H stands for.

*

Offline zfeet

  • **
  • 67
Re: A430 porting started - histogram working
« Reply #25 on: 04 / July / 2009, 16:06:02 »
Some progress. I enabled exp_drv_task and corrected the relevant code in capt_seq.c and main.c. Also camera.h is now updated with correct information. Raw is now working properly and pictures look great, get the latest dng24ps2!

I've also attached updated show_bad_b.c to for creating badpixel.bin as I still haven't been able to get dng working.

shentey: what exactly have you commented out in the current source? I would like to get zebra working as well but I am not sure what causes it not to work.

http://www.zshare.net/download/62234177b49e00e0/


*

Offline zfeet

  • **
  • 67
Re: A430 porting started - histogram working
« Reply #26 on: 05 / July / 2009, 14:57:35 »
Fixed vid_get_viewport_fb_d in lib.c with correct value 0x71964 from location sub_FFD0F248. Used a540 as a reference as usual. Still no DNG or zebra...

Re: A430 porting started - histogram working
« Reply #27 on: 05 / July / 2009, 19:41:56 »
Update: Linked to new version of DISKBOOT.BIN including addresses found by zfeet.

Disclaimer
Use at your own risk and understand that this is work in progress. It is possible that you encounter data loss or any other damage to your camera. It might also eat your children!

If you're not intimidated by the above disclaimer, you can download the DISKBOOT.BIN v.3 image for the A430. Note that some things are still deactivated as the camera is not yet fully ported. So don't hesitate to look out for the remaining constants (see my previous post).

The image can be started as usual: Put it in the root directory of your accordingly formatted SD card, lock the card, put the card into your camera, and press the power button. Alternatively, you can rename the image to PS.fir and start it from the firmware update menu (works only when camera is started in view mode).

Have fun!
I've done all the stuff, but it doesn't work. When I insert my card in "lock" mode, it shows "Card locked" and that's all. When I start from firmware update menu, it shows "Update File Error!!!"
Here what I have on my SD-card:
http://ifile.it/o0navst
Is something missed?


*

Offline fe50

  • ******
  • 3075
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: A430 porting started - histogram working
« Reply #28 on: 05 / July / 2009, 20:38:18 »
Hello & welcome, Nachtjagdgeschwader !

I've done all the stuff, but it doesn't work. When I insert my card in "lock" mode, it shows "Card locked" and that's all. When I start from firmware update menu, it shows "Update File Error!!!"
Here what I have on my SD-card:
http://ifile.it/o0navst
Is something missed?
I guess the card isn't CHDK-bootable...under Windows run Cardtricks & make the card bootable...

The manual loading method (with the "Firmware Update" menu item) doesn't work this way; renaming the diskboot.bin file will not work since PS.FIR files need to be encrypted.

btw - what's your firmware version ? This beta version is only working with fw 1.00b.

*

Offline zfeet

  • **
  • 67
Re: A430 porting started - histogram working
« Reply #29 on: 05 / July / 2009, 22:51:47 »

btw - what's your firmware version ? This beta version is only working with fw 1.00b.

I wasn't aware of any other firmware versions than 1.00b.

Here's the latest build, both DISKBOOT.BIN and PS.FIR included

http://www.zshare.net/download/622839340a09e404/

 

Related Topics