Author Topic: SX110IS - howto start porting  (Read 65841 times)

Offline chdkj

  • Full Member
  • ***
  • Posts: 140
Re: SX110IS - howto start porting
« Reply #315 on: 29 / April / 2009, 01:20:14 »
I don't know if it is a bug or, if i'm doing something wrong, but: what is it about the "flashlight" function (in misc. options). I enable it, but nothing happens.

This is a bug - "flashlight" function is only for cameras with rotating/swivel display.
Wrong settings in camera.h for SX110. (#define CAM_SWIVEL_SCREEN           1). Must be removed because SX110 doesn't have a swivel screen.
Suggest to wait with a new autobuild version until major changes (Zebra? MD? Histo?).

Cheers.
sx110

Offline chdkj

  • Full Member
  • ***
  • Posts: 140
Re: SX110IS - howto start porting
« Reply #316 on: 29 / April / 2009, 01:39:32 »
http://chdk.wikia.com/wiki/SX110IS#Known_bugs updated...

Hi Obihoerchen,

I think that Auto-ISO-Shift is solved (general Bug if <ALT> = Print, workaround: change <ALT>-key to <Face>). If Hyst agrees than would you change "bug" to "hint/tricky/obscure..", please?

@All
I believe that corrupted zebra, dubious histogramms and overhasty motion detection scripts have the same cause (as reyalp stated in http://chdk.setepontos.com/index.php/topic,2838.msg33147.html#msg33147). I'm going to check this but it will need some time. Everyone is invited to assist!

Cheers!



sx110

Offline Obihoernchen

  • Full Member
  • ***
  • Posts: 104
    • SX110IS Wiki
Re: SX110IS - howto start porting
« Reply #317 on: 29 / April / 2009, 01:56:55 »
http://chdk.wikia.com/wiki/SX110IS#Known_bugs updated...

Hi Obihoerchen,

I think that Auto-ISO-Shift is solved (general Bug if <ALT> = Print, workaround: change <ALT>-key to <Face>). If Hyst agrees than would you change "bug" to "hint/tricky/obscure..", please?


Added a new category called hints ;)
Now we have seperate hints and bugs...

http://chdk.wikia.com/wiki/SX110IS#Hints
Canon PowerShot SX110 IS
CHDK: at Autobuild now
Wiki: SX110IS

Offline Hyst

  • Rookie
  • *
  • Posts: 18
Re: SX110IS - howto start porting
« Reply #318 on: 29 / April / 2009, 02:09:08 »
I think that Auto-ISO-Shift is solved (general Bug if <ALT> = Print, workaround: change <ALT>-key to <Face>). If Hyst agrees than would you change "bug" to "hint/tricky/obscure..", please?

sure i agree. i thought it was an unknown bug... but ewavr told us it is an well known bug with all Auto-ISO-Shift cameras...

greetings
Canon Powershot SX110

Offline chdkj

  • Full Member
  • ***
  • Posts: 140
Re: SX110IS - howto start porting
« Reply #319 on: 01 / May / 2009, 00:20:02 »
Got it.  :D
Zebra, Histogram and MD-scripts are working now.

New version of CHDK for SX110 attached (you have to be a forum member for downloading).

It was actually the broken LiveImage buffer (see also http://chdk.setepontos.com/index.php/topic,2838.msg31903.html#msg31903)... Thanks to reyalp for that hint.
Found right addresses in firmware for variables used in function vid_get_viewport_live_fb in sub/lib.c.

void *vid_get_viewport_live_fb()
{

    void **fb=(void **)0x21a0; //ROM:FFC285D0 dword_FFC285D0  DCD 0x21A0, look also at ROM:FFC27FF0
    unsigned char buff = *((unsigned char*)0x2014); //ROM:FFC285C8 dword_FFC285C8  DCD 0x2014    , look also at ROM:FFC27FA0
    if (buff == 0) buff = 2;  else buff--;
    return fb[buff];

}


Camera stops (blank LCD, lens moved out, green led on) after some time if a script is running and (tested with badpixel.lua or MD-script and shooting
mode=test) but camera responds in some way to keyboard. I don't know how to assess that.
I believe that this have nothing to do with sx110-specific port of CHDK but can't exclude it.

My original bug list (http://chdk.setepontos.com/index.php/topic,2838.msg31903.html#msg31903) has melted down to this:
Code-related issues:
--------------------

- core/kbd.c:   ZSTEP_TABLE_SIZE, nTxtbl --> still unverified
- platform/<camera>/shooting.c: dof_tbl --> still unverified
- platform/<camera>/sub/lib.c: hook_raw_image_addr --> still questionable, but seems to work
- include/camera.h: CAM_COLORMATRIX1, CAM_ACTIVE_AREA_* --> must be adapted to SX110

Problems:
---------
- GetBatteryTemperature --> still linked to GetCCDTemperature to avoid camera crash

Solved:
-------
- all others...

I'm glad...

P.S. DNG is useable at least but colors are not how they should be...
P.P.S. Use DNG instead of RAW (--> you can find a lot of discussion about it in forum)

« Last Edit: 01 / May / 2009, 00:33:40 by chdkj »
sx110

Offline chdkj

  • Full Member
  • ***
  • Posts: 140
Re: SX110IS - howto start porting
« Reply #320 on: 01 / May / 2009, 00:31:17 »
@PhyrePhoX: May I ask you to update autobuild with attached diff?

Fixed with it:
- Swivel screen disabled in camera.h for sx110
- fixed vid_get_viewport_live_fb in lib.c (Zebra, Histogramm, Motion
Detection works now.)

Regards!
EDIT: Attachment deleted (final version released on Autobuild already)
« Last Edit: 04 / November / 2009, 23:51:12 by chdkj »
sx110

Offline axu89

  • Rookie
  • *
  • Posts: 29
Re: SX110IS - howto start porting
« Reply #321 on: 01 / May / 2009, 01:10:48 »
Awesome work chdkj!
MD and histogram work very well :)

Now just RAW working and I got everything I currently want for my SX110.

I just built a remote for my camera. I dont have currently accurate adjustable power source, but 3V isnt enought, CR123 charged to 3,7V works.
[SX110 IS]

Offline chdkj

  • Full Member
  • ***
  • Posts: 140
Re: SX110IS - howto start porting
« Reply #322 on: 01 / May / 2009, 01:37:35 »
Which type of remote did you build (wired/wireless)? I'm interested in this kind of thing...
sx110

Offline Obihoernchen

  • Full Member
  • ***
  • Posts: 104
    • SX110IS Wiki
Re: SX110IS - howto start porting
« Reply #323 on: 01 / May / 2009, 01:38:26 »
OMFG
NIIIIIIIIIIIIIIIIIIIIICCCCCCCCCCCCCCEEEEEEE

awesome :)

updated wiki!
Canon PowerShot SX110 IS
CHDK: at Autobuild now
Wiki: SX110IS

CHDK Forum

Re: SX110IS - howto start porting
« Reply #323 on: 01 / May / 2009, 01:38:26 »

Offline chdkj

  • Full Member
  • ***
  • Posts: 140
Re: SX110IS - howto start porting
« Reply #324 on: 01 / May / 2009, 01:56:22 »
Yep.

Will check issues left some day...
If we had a working COLORMATRIX than we would close to first stable version of CHDK for SX110.

- ZSTEP_TABLE_SIZE, nTxtbl, dof_tbl: no idea how to get those values (but didn't think deeper about yet)
- GetBatteryTemperature: no clue. Believe this will remain a mystery until the end..


Please test as much as you can.
sx110

Offline fiestaware

  • Rookie
  • *
  • Posts: 5
Re: SX110IS - howto start porting
« Reply #325 on: 01 / May / 2009, 02:49:48 »
Quote
P.S. DNG is useable at least but colors are not how they should be...
P.P.S. Use DNG instead of RAW (--> you can find a lot of discussion about it in forum)



I'm not having any luck with DNG. Can't even 'select' it in the menu. Maybe I'm missing something obvious?

Offline reyalp

  • Guru Member
  • ******
  • Posts: 4468
Re: SX110IS - howto start porting
« Reply #326 on: 01 / May / 2009, 12:25:18 »
@PhyrePhoX: May I ask you to update autobuild with attached diff?

Fixed with it:
- Swivel screen disabled in camera.h for sx110
- fixed vid_get_viewport_live_fb in lib.c (Zebra, Histogramm, Motion
Detection works now.)

Regards!
Applied, svn 757
Don't forget what the H stands for.

Offline Obihoernchen

  • Full Member
  • ***
  • Posts: 104
    • SX110IS Wiki
Re: SX110IS - howto start porting
« Reply #327 on: 01 / May / 2009, 16:28:16 »
@PhyrePhoX: May I ask you to update autobuild with attached diff?

Fixed with it:
- Swivel screen disabled in camera.h for sx110
- fixed vid_get_viewport_live_fb in lib.c (Zebra, Histogramm, Motion
Detection works now.)

Regards!
Applied, svn 757
fast :)

only 2 bugs :) But only one real bug (RAW/DNG), because Battery Temperature isn't very important ;)
« Last Edit: 01 / May / 2009, 16:32:11 by Obihoernchen »
Canon PowerShot SX110 IS
CHDK: at Autobuild now
Wiki: SX110IS

Offline GnF

  • Rookie
  • *
  • Posts: 12
Re: SX110IS - howto start porting
« Reply #328 on: 01 / May / 2009, 16:31:24 »
 :o Really great  :)
Canon SX110 IS

Offline axu89

  • Rookie
  • *
  • Posts: 29
Re: SX110IS - howto start porting
« Reply #329 on: 01 / May / 2009, 18:33:32 »
[SX110 IS]

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal