SX110IS - howto start porting

  • 573 Replies
  • 95465 Views
*

Offline chdkj

  • ***
  • 140
  • Publish
    Re: SX110IS - howto start porting
    « Reply #40 on: 20 / March / 2009, 17:25:26 »
    Advertisements
    @Obihoernchen
    I didn't talk with nomi_68k yet. Hope he reads the forum.

    @all
    I've checked my code again und discovered some faulty functions in boot.c. I've to rework them.

    Actually I was wondering about JogDial_CW and JogDial_CCW in sub/lib.c. I've found the corresponding value in SX110 fw (0x2494). G9/SX100 don't use the respective value without increasing it of some other values in advance. Until now I couldn't figure out why.

    sx110

    *

    Offline ewavr

    • ****
    • 1057
    • A710IS
  • Publish
    Re: SX110IS - howto start porting
    « Reply #41 on: 20 / March / 2009, 17:35:17 »
    Actually I was wondering about JogDial_CW and JogDial_CCW in sub/lib.c.

    Forget about old SX100/G7/G9 code, look at modern SX10 code:

    void JogDial_CW(void){
     _PostLogicalEventForNotPowerType(0x874, 2);  // RotateJogDialRight
    }

    void JogDial_CCW(void){
     _PostLogicalEventForNotPowerType(0x875, 2);  // RotateJogDialLeft
    }


    edit: 0x874 and 0x875 values may be camera model dependent, search them in firmware (in pair with RotateJogDialRight(Left)) strings.
    « Last Edit: 20 / March / 2009, 17:40:21 by ewavr »

    *

    Offline chdkj

    • ***
    • 140
  • Publish
    Re: SX110IS - howto start porting
    « Reply #42 on: 22 / March / 2009, 16:21:54 »
    Thanks, Ewavr.

    Checked sx110 fw and found 0x874 and 0x875 in similar contextes as in sx10. RotateJogDial* exists also in sx110. So I decided to use _PostLogicalEventForNotPowerType with those values in JogDial_C*.

    Btw, your hint to newer SX10 code is absolutely interesting --> I'm going to rewrite at least sub/boot.c.

    Regards.
    sx110

  • Publish
    Re: SX110IS - howto start porting
    « Reply #43 on: 22 / March / 2009, 18:14:18 »
    Hello. I'm looking to buy a SX110 for use with CHDK but as I see here the port is not done yet... Would you happen to know if it can be/will be done soon, or whether I should look for another camera? Thanks...


  • Publish
    Re: SX110IS - howto start porting
    « Reply #44 on: 23 / March / 2009, 20:57:27 »
    Stavros... Look for another camera... (btw I enjoy my SX110 :) ) the port will be finished when it is finished....
    « Last Edit: 24 / March / 2009, 11:13:55 by nycjv321 »

  • Publish
    Re: SX110IS - howto start porting
    « Reply #45 on: 28 / March / 2009, 21:48:27 »
    I wondered, is there a way with this Firmware to shoot like infrared?

    Edit:  I found how to make an infrared filter so I do apologize for asking and I did what the video asked to do with checking sensitivity to IR by using a remote pointed at the camera. Check it out:
    http://www.instructables.com/id/Take-Infrared-Pictures-With-Your-Digital-Camera/

    Interesting the camera in the video is a Canon too.  :D
    « Last Edit: 28 / March / 2009, 22:03:12 by the1who »

    *

    Offline chdkj

    • ***
    • 140
  • Publish
    Re: SX110IS - howto start porting
    « Reply #46 on: 29 / March / 2009, 17:14:05 »
    Did a major rework of the whole code for sx110. It's now based on sx10-code and build725.
    It tooks a lot of time, but that code is imho much better.

    Cam still don't boot. I'm working on it...
    Will publish my code soon.

    sx110

  • Publish
    Re: SX110IS - howto start porting
    « Reply #47 on: 29 / March / 2009, 17:55:17 »
    Thanks again from all of us helpless onlookers for all of your ongoing work. Keep it up!


  • Publish
    Re: SX110IS - howto start porting
    « Reply #48 on: 30 / March / 2009, 01:14:51 »
    Hi, I've just bought sx110is and I would like to help porting it to my cam.
    I have a good knowledge in programming.
    Is there anything I can help you with ?

    *

    Offline chdkj

    • ***
    • 140
  • Publish
    Re: SX110IS - howto start porting
    « Reply #49 on: 30 / March / 2009, 17:01:18 »
    boot.c is running into an infinite loop: function loc_FFC001A4_my keeps in loop "BCC    loc_FFC001B0".
    Does anyone from the more experienced developers have an idea?

    I used the original firmware boot code (as sx10 does) in function boot() first but booting hungs in the loc_FFC0013C-part (look at function old_boot). So I decided to switch to older boot method as sx100 (for example) does: the canon_data_* and canon_bss_*-thing and do a jump straight into the init sequence (look at function boot() and loc_FFC001A4_my). And there you will get wild blinking..


    @m_vitaly: yes, for sure. Porting is mainly done in terms of identifying function stubs and pointers in fw, adapting the source tree (mainly assembler code and pointers/addresses/registers/variables), defining camera properties and so on. Compiling is running through without errors and the camera accepts bootdisk.bin and it flashs the LEDs for debug. But thats all for now. The camera doesn't boot. If one have solved that, then we have to do a lot of testing and corrective work.

    edit: deleted code sniplet
    « Last Edit: 01 / April / 2009, 14:49:35 by chdkj »
    sx110

     

    Related Topics