the sx10 porting thread

  • 613 Replies
  • 140984 Views
  • Publish
    Re: the sx10 porting thread
    « Reply #330 on: 12 / June / 2009, 00:43:54 »
    Advertisements
    Copy the files to your card (dont'lock it), start the camera with the 'play'-button, press 'MENU', go 'up', run the firmware upgrade and you're done.

    Thanks for clearing it up for me.  :)

    Really it's Canon that's confusing you :)

    The "run the firmware upgrade" menu item was named by Canon assuming that this DISKBOOT.BIN and PS.FI2 stuff would only be used for actually upgrading the firmware, however that doesn't have to be the case. Basically the menu option means something more like "execute code" and the code that's executed doesn't have to actually overwrite the firmware at all. It can do anything such as boot itself as a firmware replacement essentially.

    So it works something like:

    DISKBOOT.BIN gets copied into RAM and boots in place of the firmware
    DISKBOOT.BIN makes lots of function calls into the actual firmware

    An upgrade DISKBOOT.BIN from Canon would boot in place of the firmware, then start overwriting the firmware storage with new data, then exit.

  • Publish
    Re: the sx10 porting thread
    « Reply #331 on: 12 / June / 2009, 00:57:56 »
    Ok, here's a drop with a new totally untested 1.01b build that may just crash and die because absolutely nobody has even tried to boot it at this point:

    http://drop.io/nimrodfiles

    There's also a new 1.02b candidate build at that URL that has the FlashParamsTable definition in stubs_min.S  fixed (well, I hope so). [BTW, I just realized that I built these images without the games, so hopefully you won't be too devastated about that.]

    The patch applied to 1.02b is very simple. Here's the diff:

    Code: [Select]
    5c5
    < DEF(FlashParamsTable,0xFFB7455C)
    ---
    > DEF(FlashParamsTable,0xFFB746B4)
    This is patched against svn vers 774.
    I think that the only things that this misdefinition really breaks are a debug display, and any lua scripts that try to use get_parameter_data().

    I think this is all that needs to be updated in stubs_min.S. If not, let me know and give me some hint as to how to update the rest of it since the addresses are so low that they'd have to be offsets from a register or something to make sense as something in the firmware.
    « Last Edit: 12 / June / 2009, 01:00:29 by nimrod »

    *

    Offline reyalp

    • ******
    • 9858
  • Publish
    Re: the sx10 porting thread
    « Reply #332 on: 12 / June / 2009, 01:23:07 »
    If not, let me know and give me some hint as to how to update the rest of it since the addresses are so low that they'd have to be offsets from a register or something to make sense as something in the firmware.
    No, they are global variables in RAM. If you look at the boot process, it copies initialized globals starting at 0x1900, followed by the firmware BSS. If canon added a global variable between different firmware versions, the addresses will change.

    To find them, you need to find the ROM code where they are referenced. Sometimes you can just search for the value (as a sequence of bytes) in an existing port, find references to that, and then find the corresponding code in your new port. In other cases the address we use is actually a member of a structure (or array) and so the address only referenced as some other pointer plus a constant in the canon code. Some of the ports have comments on how the various addresses are found. I tried to do this for everything I found in the SD990 port.

    physw_status and physw_run look right to me (unchanged between 101a and 102b). I also agree with 0xFFB746B4 for FlashParamsTable.

    edit:
    and so does the stuff up to zoom_status

    edit:
    zoom_status looks like 0xE3EC
    the rest looks OK.
    « Last Edit: 12 / June / 2009, 02:09:45 by reyalp »
    Don't forget what the H stands for.

  • Publish
    Re: the sx10 porting thread
    « Reply #333 on: 12 / June / 2009, 02:38:15 »
    I tried the 1.01b build but it doesn't seem to be working. The camera just locks when I try to start it. The build didn't include the PS.FI2 file. Is it the same in every build or not necessary? I tried using it without that file and copying it from 1.01a and 1.02b builds but that didn't make a change.

    But thanks anyway for working on these builds!


    *

    Offline reyalp

    • ******
    • 9858
  • Publish
    Re: the sx10 porting thread
    « Reply #334 on: 12 / June / 2009, 02:43:19 »
    I tried the 1.01b build but it doesn't seem to be working. The camera just locks when I try to start it. The build didn't include the PS.FI2 file. Is it the same in every build or not necessary? I tried using it without that file and copying it from 1.01a and 1.02b builds but that didn't make a change.
    FI2 is used for the "firm update" option. DISBOOT.BIN is used for autoboot. Each one contains a complete copy of the CHDK program, in slightly different formats.

    I've committed the changes for 102b stubs_min.S, and added it to the top level makefile. It should show up in the autobuild shortly.
    Don't forget what the H stands for.

  • Publish
    Re: the sx10 porting thread
    « Reply #335 on: 12 / June / 2009, 02:58:01 »
    I tried the 1.01b build but it doesn't seem to be working. The camera just locks when I try to start it.

    Not too surprised. I probably missed some things. I'll take another look at this tomorrow after I'm rested....

    Did you try to boot it or did you use the "firm update" thing? I didn't get around to building the FI2 yet. If you loaded some other FI2 from another build, then you probably loaded that other build essentially.
    « Last Edit: 12 / June / 2009, 03:02:19 by nimrod »

  • Publish
    Re: the sx10 porting thread
    « Reply #336 on: 12 / June / 2009, 03:06:35 »
    I tried the both.

    *

    Offline GAJoe

    • *
    • 15
  • Publish
    Re: the sx10 porting thread
    « Reply #337 on: 12 / June / 2009, 04:56:05 »
    Any one able to use the "remote enable" to get the homemade USB remote cable to trigger the shutter?
    What voltage battery?
    Joe


  • Publish
    Re: the sx10 porting thread
    « Reply #338 on: 12 / June / 2009, 06:14:18 »
    I installed it from: http://mighty-hoernsche.de/
    sx10-102b-0.9.8-776-full_BETA.zip

    For now it looks good. I will test it through weekend. Keep you posted...

    TNX! You are great!

  • Publish
    Re: the sx10 porting thread
    « Reply #339 on: 12 / June / 2009, 07:07:25 »
    Hi there, are any news about different firmwares being ported? i've just seen the 1.02 beta on this forum, but as we bought the camera many months ago, the firmware that we have is 1.00C, i think this is the original one for first series.

    Anyone knows about it?

    Thx!

     

    Related Topics