SX110IS - howto start porting - page 7 - DryOS Development - CHDK Forum supplierdeeply

SX110IS - howto start porting

  • 573 Replies
  • 224247 Views
*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: SX110IS - howto start porting
« Reply #60 on: 07 / April / 2009, 17:06:21 »
Advertisements
Where can we get a working modemap from?

Using propertycase browser in debug menu (propcase #49).

*

Offline chdkj

  • ***
  • 140
Re: SX110IS - howto start porting
« Reply #61 on: 08 / April / 2009, 15:28:01 »
A new child is born!

The name is SX110IS and it's a Canon.

SX110IS boots CHDK, shoots RAW and does a lot of funny and useful things like zebraing, DOF-calculating, drawing histograms and so on...  :D


I checked neither the integrity of all functions nor the results of them (like RAW).

Some buttons are mixed: JogDial up/down, Menu-button --> <ALT>, playback-button behaves a little bit unexpected
--> have to check some functions that deals with keyboard

To start CHDK:
- prepare your SD card and don't forget the write protection
- press "on/off" button long --> starts in record mode (short press: playback mode) --> I like this feature!
- press "menu" button short --> thats the <ALT> key, CHDK will "activated" (@developers: I beg your pardon)
- press "disp" button --> you will get the CHDK menu
- press "playback" button (the button with a right arrow) --> you enter playback mode
- press "playback" button again --> you enter record mode

If you would start the cam with a short pressed on/off than you will get the playback mode immediately but it's somehow complicated to enter the record mode after.

There are still issues left:
- Current platform-kbd.c is derived from sx100. I prefer to use sx10-code, but that was not so successful in terms of kbd.c. Now many things are getting clearer and we should try to switch back to sx10-code.
- We should implement the firmware update method for using CHDK on sx110 --> look at here: http://chdk.setepontos.com/index.php/topic,2995.0.html
- remove debug code if exists
- switch to current CHDK trunk

We need a list of items to check (e.g. scripting, remote control, RAW,...). I saw similar lists in some forum posts.
Most problematic functions left are written in C-code so don't hesitate to check and correct those. We should collect all changes and release a "collective update" from time to time until it reaches the final state.

Please, test as much as you can and check the code, if possible.

And I can not stress it enough: all those great things would not the possible without the altruistic and outstandig work of the CHDK developers! Thank you!!!

Wanna play? Use my code attached (trunk725.zip) and compile it for yourself (recommended method) or use the attached DISKBOOT.BIN (CHDK-sx110is-100b-0.9.7.zip). Use a cheap SD-card (use the 32 MB-Canon-SD-Card for instance, delivered with your cam -so in Germany at least-)!
I would call it Beta. It's more than Alpha but not RTM.

Again: this is experimental code! It might be damaged your camera an can produce headaches or even worser.

EDIT: Attachments deleted (final version released on Autobuild already)
« Last Edit: 04 / November / 2009, 14:00:54 by chdkj »
sx110

*

Offline chdkj

  • ***
  • 140
Re: SX110IS - howto start porting
« Reply #62 on: 08 / April / 2009, 15:29:34 »
Thanks ewavr! Now I got access to the CHDK-menu finally and therefore I can use the debug menu.

There are some other issues. I don't know how to get values for those properties:
- core/kbd.c:   ZSTEP_TABLE_SIZE, nTxtbl
- platform/<camera>/shooting.c: dof_tbl
- platform/<camera>/sub/lib.c: hook_raw_image_addr, vid_get_viewport_live_fb
- include/camera.h: cam_CFAPattern, CAM_COLORMATRIX1, cam_CalibrationIlluminant1, CAM_ACTIVE_AREA_* and a few other things
   COLORMATRIX --> I've read in forum that DGN4PS2 should be used for
- platform/<camera>/main.c: modemap    --> as ewavr said: Using propertycase browser in debug menu (propcase #49).
- platform/<camera>/kbd.c: keymap, keys_mask*
   keymap --> http://chdk.setepontos.com/index.php/topic,2900.75.html (basically, using debug osd for output of physw_status to get values for keys pressed and build a keymap) I did not found those values in fw dump, but I can not believe that they don't exist there.
   keys_mask* --> ???

Thanks a lot!
Cheers.
sx110

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: SX110IS - howto start porting
« Reply #63 on: 08 / April / 2009, 15:42:01 »
   keys_mask* --> ???

Code: [Select]
{ 1, KEY_PRINT    , 0x10000000 },
{ 1, KEY_ZOOM_IN  , 0x00000100 },
{ 1, KEY_ZOOM_OUT , 0x00000200 },
{ 1, KEY_RIGHT    , 0x00100000 },
{ 1, KEY_UP       , 0x00020000 },
{ 1, KEY_DOWN     , 0x00080000 },
{ 1, KEY_MENU     , 0x02000000 },
{ 1, KEY_DISPLAY  , 0x04000000 },
{ 1, KEY_SET      , 0x00010000 },
{ 1, KEY_ERASE    , 0x01000000 },
{ 1, KEY_LEFT     , 0x00040000 },
{ 1, KEY_FACE     , 0x08000000 },

Simply make arithmetical OR of this values for KEYS_MASK1

Code: [Select]
{ 0, KEY_SHOOT_FULL, 0x0000000C },
{ 0, KEY_SHOOT_HALF, 0x00000004 },

... and the same for KEYS_MASK0 (=0xC).

edit:
Quote
- press "menu" button short --> thats the <ALT> key, CHDK will "activated" (@developers: I beg your pardon)
- press "disp" button --> you will get the CHDK menu

Mmm. CHDK uses "print" key to activate <alt> mode, "menu" key for menu :).
« Last Edit: 08 / April / 2009, 15:47:29 by ewavr »


*

Offline chdkj

  • ***
  • 140
Re: SX110IS - howto start porting
« Reply #64 on: 08 / April / 2009, 15:48:49 »
Ewavr, thank you for the quick answer.
sx110

*

Offline Inferno

  • *
  • 18
  • In RAW we trust!
Re: SX110IS - howto start porting
« Reply #65 on: 08 / April / 2009, 19:11:09 »
I'm no longer a programmer so I can't really do any debugging but can do beta testing.
1. CRW file can't be seen by DNG4PS-2. Usually this program can see even unknown CRW files and can convert them with bad result.
2. CHDK menu navigation (up/down) is reversed. When you press up the bar goes down.

Re: SX110IS - howto start porting
« Reply #66 on: 08 / April / 2009, 19:25:16 »
Keep up a good work. I just bought SX 110 IS yesterday and I'll try to run CHDK as soon as I get familiar with the camera.

Btw, will it be possible to use optical zoom in video mode?

Maybe we can get you some beers after you're done :)))

Re: SX110IS - howto start porting
« Reply #67 on: 09 / April / 2009, 03:18:41 »
Hats off to chdkj, we each owes you a 6-pack.
14.7 MB (15,467,760 bytes) raw file from a 9 MP camera, is this right?

1. CRW file can't be seen by DNG4PS-2.

Same problems here. Also, can't open the raw file with PhotoLine.


*

Offline Inferno

  • *
  • 18
  • In RAW we trust!
Re: SX110IS - howto start porting
« Reply #68 on: 09 / April / 2009, 06:38:39 »
I think this bin is only an alpha. Most major functions are not working. Video functions Raw functions and the rest are not working. Me personally only need RAW. I'm sure that 99% of Sx110 users will only need a hand full of functions.

6 pack from me as well.

Re: SX110IS - howto start porting
« Reply #69 on: 09 / April / 2009, 06:39:49 »
hello, i'm french and i bought sx110 since november and i would like to know if chdk sx110 is ported? i'm reading the forum and i found a method chdkj but i don't understand, thanks to help me and sorry for my poor english

 

Related Topics