IXUS 105 / SD1300 IS porting thread

  • 755 Replies
  • 74044 Views
*

Offline philmoz

  • *****
  • 2936
    • Photos
  • Publish
    Re: IXUS 105 / SD1300 IS porting thread
    « Reply #460 on: 05 / June / 2011, 08:56:54 »
    Advertisements
    Try adding '*(int*)0x193C=(int)taskHook;' in boot.c in addition to the existing '*(int*)0x1938=(int)taskHook;' line (set both).

    Here you are http://www.zshare.net/download/91040178e0bfd464/

    In a word, what is required to enable dual partition support ?

    DataGhost's mods to init_file_modules_task examines the MBR (master boot record). If it finds a large FAT32 partition it tries to fool the firmware into believing that the large partition was the one booted from not the small FAT16 partition.
    It's a hack and for it to work the CHDK version of init_file_modules_task has to get executed instead of the firmware version - once the firmware code runs it's too late and you can't use the large partition.

    The taskHook function is what tries to ensure that the CHDK code gets run instead of the firmware code - where you hook it in (0x1938, 0x193C, ...) seems to be camera dependent and requires some experimenting to get right.

    Quote
    100d also contains this :

       *(int*)(0x221c+4)= (*(int*)0xc0220024)&1 ? 0x200000 : 0x100000; // replacement for correct power-on. ffc477a0

    Not sure what is needed for 100c.


    David

    That line is used to figure whether to start the camera in playback or record mode - if you hold down the on/off button until the CHDK startup code gets to this line then you will boot in record mode, otherwise it boots into playback mode.

    You need this as well in all versions to get the startup logic to work.

    Phil.
    CHDK ports:
      sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
      g12 (1.00c, 1.00e, 1.00f & 1.00g)
      sx130is (1.01d & 1.01f)
      ixus310hs (1.00a & 1.01a)
      sx40hs (1.00d, 1.00g & 1.00i)
      g1x (1.00e, 1.00f & 1.00g)

  • Publish
    Re: IXUS 105 / SD1300 IS porting thread
    « Reply #461 on: 05 / June / 2011, 09:00:21 »
    Still getting the same message and folders are being created on the small partition

  • Publish
    Re: IXUS 105 / SD1300 IS porting thread
    « Reply #462 on: 05 / June / 2011, 09:05:14 »
    « Last Edit: 05 / June / 2011, 09:17:48 by Microfunguy »

  • Publish
    Re: IXUS 105 / SD1300 IS porting thread
    « Reply #463 on: 05 / June / 2011, 13:00:12 »
    try this version http://www.zshare.net/download/91041502f921f067/
    SUCCESS!!! I'm not getting the error and SDM is loaded up! Woohooo...


  • Publish
    Re: IXUS 105 / SD1300 IS porting thread
    « Reply #464 on: 05 / June / 2011, 13:03:57 »
    I knew it would   :)

    @philmoz

    the hacked branches from init_file_modules_task were all in place ... except the top one which was still the Canon original.

    *

    Offline sh1981

    • ***
    • 169
  • Publish
    Re: IXUS 105 / SD1300 IS porting thread
    « Reply #465 on: 06 / June / 2011, 08:14:29 »
    @microfunguy,

    Got a problem...

    The AUTOSTART option in script menu works intermittently. Very annoying. I click on AUTOSTART button, it fires up the script. (I'm using the time lapse script btw). Then I turn the cam off and on and it wont autostart the script. However, sometimes, 1 times out of 20, it would.

    Why is this happening? I did change to older build as well to test and does the same thing. RESET all options, still does it.

    My computer seems to have a nasty virus though. Could that have something to do with it? (wouldnt think so).

    I have also noticed that when I press AUTOSTART, it fires up the script, I end it with FULL SHOOT and then when I get out of ALT menu, and then try to bring up canon menu by pressing MENU, it does not show up and picture freezes until I press MENU again.

    Does this happen with you or anyone else? Try stopping and starting AUTOSTART feature 5 or so times.

    Another point to note is that there are two CFG files in CHDK folder, is this normal?

    EDIT: After messing around with it for quite some time, I seem to have found a temporary solution.

    To turn on AUTOSTART:

    - Select the AUTOSTART option by keeping the SET button PRESSED for at least 2 seconds.
    - The script will automatically try to fire (which, by the way, it should not)
    - After those 2 seconds, press FULL SHOOT to stop the script.
    - Press MENU again while in ALT mode and go back to SCRIPTING MENU.
    - Once in SCRIPTING MENU press SET to select AUTOSTART, notice that this time, the script will not automatically fire.
    - Turn the cam off, then on, and the script will autostart.

    To turn off AUTOSTART:

    - Select the AUTOSTART option by keeping the SET button PRESSED for at least 2 seconds.
    - The radio button in AUTOSTART option will blink. In the end press SET once more to make sure the radio button is unselected (if it was selected by the time you took your finger off while keeping it pressed for 2 seconds).
    - Turn the cam off, then on, and the script will not autostart.


    Note: I reset cameras canon settings as well as SDM settings. (It did not make a spec of difference) The only thing that 'works' is above method.
    Question:

    Why this behavior? Is it only me who is experiencing this?
    « Last Edit: 06 / June / 2011, 11:09:49 by sh1981 »
    A proud owner of Canon IXUS 105

    *

    Offline sh1981

    • ***
    • 169
  • Publish
    Re: IXUS 105 / SD1300 IS porting thread
    « Reply #466 on: 09 / June / 2011, 20:42:19 »
    I'm planning to buy a spare battery from ebay for my ixus 105, so it would be a NB-6L.

    I was wondering, if I get one with a high mAh value, such as 1500 mAh, would that be ok? Wont cause no problems would it?

    A proud owner of Canon IXUS 105

  • Publish
    Re: IXUS 105 / SD1300 IS porting thread
    « Reply #467 on: 09 / June / 2011, 22:37:09 »
    I'm planning to buy a spare battery from ebay for my ixus 105, so it would be a NB-6L. I was wondering, if I get one with a high mAh value, such as 1500 mAh, would that be ok? Wont cause no problems would it?
    Not unless they repeal Ohm's law.



  • Publish
    Re: IXUS 105 / SD1300 IS porting thread
    « Reply #468 on: 10 / June / 2011, 05:39:33 »
    @sh1981

    Try Autostart with this version http://www.zshare.net/download/912364022b4e4014/

    *

    Offline sh1981

    • ***
    • 169
  • Publish
    Re: IXUS 105 / SD1300 IS porting thread
    « Reply #469 on: 10 / June / 2011, 12:35:12 »
    A proud owner of Canon IXUS 105

     

    Related Topics