supplierdeeply

the sx20 porting thread

  • 1279 Replies
  • 177526 Views
*

Offline whim

  • ******
  • 2013
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
  • Publish
    Re: the sx20 porting thread
    « Reply #30 on: 17 / October / 2009, 07:17:34 »
    Advertisements
    Quote
    Why do we need to find functions like strcpy, strcmp, rand, vsprintf

    Code size, i guess. Why use precious RAM for duplicate library funcs, when we can use it for CHDK features  :D

    cheers,

    wim

    *

    Offline neszt

    • ***
    • 174
  • Publish
    Re: the sx20 porting thread
    « Reply #31 on: 17 / October / 2009, 08:51:15 »
    Found MEMISOSTART=0x13DD20.

    *

    Offline neszt

    • ***
    • 174
  • Publish
    Re: the sx20 porting thread
    « Reply #32 on: 17 / October / 2009, 11:50:26 »
    Now, I get the code executed until the boot(); function.

    From here, i entered to an asm code, now i think, i need to learn deeper ARM assembly...

    However, i'am happy. This is MORE than i expected from myself.. :)

    *

    Offline neszt

    • ***
    • 174
  • Publish
    Re: the sx20 porting thread
    « Reply #33 on: 17 / October / 2009, 14:20:17 »
    I need help in Makefile.

    I'ld like build ps.fi2. Reyalp mentioned this in the http://chdk.setepontos.com/index.php/topic,4228.msg40114.html#msg40114 , but it is not trivial to me, how to modify the makefile.inc, to get this.

    I tried to add

    OPT_FI2=1

    to my platform/sx20/sub/100f/makefile.inc, but i got

    makefile.inc:253: platform/fi2.inc: No such file or directory

    error message suddenly, and i don't found any file such fi2.inc in any directory.


    *

    Offline neszt

    • ***
    • 174
  • Publish
    Re: the sx20 porting thread
    « Reply #34 on: 17 / October / 2009, 15:41:44 »
    I the meanwhile i managed to create ps.fi2 using the fi2encdec on a not encoded diskboot.bin. (Thanx to RaduP)

    Now i got blinking the led before boot(), when using ps.fi2 (of course after firm update)

    Removing the debug led blinking code, this is the first time, i had the chance to boot the camera with my firmware.

    The following happens:

    1. I select the firm update.
    2. LCD black for 1 second.
    3. E51 message appears in the bottom left corner for 4 seconds.
    4. Camera switches off.
    5. I can switch the camera on without removing the batteries, so it not freezes.

    *

    Offline neszt

    • ***
    • 174
  • Publish
    Re: the sx20 porting thread
    « Reply #35 on: 17 / October / 2009, 18:47:33 »
    I rechecked the boot() asm code, it's definitely the same as the firmware begins.

    Now only to lines dirrers in sd980's and sx20's boot() function code as i expected. However I debug successfull blinking before the last line ("B sub_FF810354\n"). Without blinking code i still got E51 message on camera LCD screen.

    The guide says: "Once you have got the boot code ready, the camera should boot normally again".

    Probably my boot code isn't ready yet, or i missed something somwhere in the earlier process..

    *

    Offline RaduP

    • *****
    • 856
  • Publish
    Re: the sx20 porting thread
    « Reply #36 on: 17 / October / 2009, 20:11:04 »
    Wait, did you do the /loader/ stuff first? The reset code and things?

    *

    Offline reyalp

    • ******
    • 9867
  • Publish
    Re: the sx20 porting thread
    « Reply #37 on: 17 / October / 2009, 20:21:08 »
    makefile.inc:253: platform/fi2.inc: No such file or directory

    error message suddenly, and i don't found any file such fi2.inc in any directory.
    Read fi2.inc.txt, and the thread I provided.
    Don't forget what the H stands for.


    *

    Offline reyalp

    • ******
    • 9867
  • Publish
    Re: the sx20 porting thread
    « Reply #38 on: 17 / October / 2009, 23:50:50 »
    Your camera appears to be one with the new revision of dryos, like the SD980, which has many functions changed. I'm going to make a reference firmware for the SD980, which will make automatic detection work a lot better. I'll try to get some work in on that today.
    I have completed this. See http://chdk.setepontos.com/index.php/topic,2509.msg41737.html#msg41737

    finsig should work much better for this camera now.
    Don't forget what the H stands for.

    *

    Offline neszt

    • ***
    • 174
  • Publish
    Re: the sx20 porting thread
    « Reply #39 on: 18 / October / 2009, 05:15:36 »
    I have completed this. See http://chdk.setepontos.com/index.php/topic,2509.msg41737.html#msg41737

    finsig should work much better for this camera now.
    Well, i got a lot of new functions found, so my new manually edited stubs_entry_2.S much smaller than before. Great work!

     

    Related Topics