A1100 IS Porting thread

  • 640 Replies
  • 85997 Views
*

Offline reyalp

  • ******
  • 9957
  • Publish
    Re: A1100 IS Porting thread
    « Reply #40 on: 17 / April / 2010, 04:22:52 »
    Advertisements
    7.I add all of them in to stubs_entry_2.S, with dummy values 0x12345678.
    Like this
    NHSTUB(AllocateMemory,0x12345678)
    These functions are required for CHDK to function. You need to find the correct addresses.
    Don't forget what the H stands for.

  • Publish
    Re: A1100 IS Porting thread
    « Reply #41 on: 17 / April / 2010, 04:37:24 »

    [/quote]
    These functions are required for CHDK to function. You need to find the correct addresses.
    [/quote]

    thanks,I will do it.
    I am chinese.My English is not good.
    Eventhough ,I will continue.
    Now I am doing things to let chdk start.Later I will correct addresses.

  • Publish
    Re: A1100 IS Porting thread
    « Reply #42 on: 17 / April / 2010, 05:14:12 »
    14.
    Now the code run in the boot(),then stoped.
    run the code of asm(....) in the boot(),then stoped.

    why?

  • Publish
    Re: A1100 IS Porting thread
    « Reply #43 on: 17 / April / 2010, 15:40:50 »
    Hi guys!

    Hi xiaofeng! You Chinese? Last year I made a journey in China. It was a wonderful trip! I visited Beijing, Qingdao, Shanghai, Hangzhou and Sanya. The Chinese kitchen is very delicious! Your country is very beautiful!

    My English is not good too.

    I bought this camera today. I'm happy! :)


    *

    Offline reyalp

    • ******
    • 9957
  • Publish
    Re: A1100 IS Porting thread
    « Reply #44 on: 17 / April / 2010, 18:21:02 »
    14.
    Now the code run in the boot(),then stoped.
    run the code of asm(....) in the boot(),then stoped.

    why?
    Not clear if you have done this, but all the ASM in boot.c needs adjusted for each camera. Most needs to come for your own cameras firmware, not another port.

    edit:
    Maybe you have some English speaking friend who can help you understand http://chdk.wikia.com/wiki/Adding_support_for_a_new_camera ?
    Don't forget what the H stands for.

  • Publish
    Re: A1100 IS Porting thread
    « Reply #45 on: 17 / April / 2010, 20:37:41 »
    Hi guys!

    Hi xiaofeng! You Chinese? Last year I made a journey in China. It was a wonderful trip! I visited Beijing, Qingdao, Shanghai, Hangzhou and Sanya. The Chinese kitchen is very delicious! Your country is very beautiful!

    My English is not good too.

    I bought this camera today. I'm happy! :)
    Welcome to china!
    However porting the chdk is interesting.

  • Publish
    Re: A1100 IS Porting thread
    « Reply #46 on: 17 / April / 2010, 20:50:08 »
    Quote
    Not clear if you have done this, but all the ASM in boot.c needs adjusted for each camera. Most needs to come for your own cameras firmware, not another port.

    edit:
    Maybe you have some English speaking friend who can help you understand http://chdk.wikia.com/wiki/Adding_support_for_a_new_camera ?
    Frankly speaking,I can understand the "Adding_support_for_a_new_camera" only 60%.
    Some words I must read many times then understand.
    If there is a chinese version,I think I will do fast.

    As you say,may be the reason for camera freaze is copy.I have not adjust the asm code yet.I copy these file from a480.So I will try to change it later.
    Thanks to reyalp.But today I will suspend temporary.Just because Gril friend coming.

  • Publish
    Re: A1100 IS Porting thread
    « Reply #47 on: 18 / April / 2010, 02:28:16 »
    Hi guys!

    Hi xiaofeng! You Chinese? Last year I made a journey in China. It was a wonderful trip! I visited Beijing, Qingdao, Shanghai, Hangzhou and Sanya. The Chinese kitchen is very delicious! Your country is very beautiful!

    My English is not good too.

    I bought this camera today. I'm happy! :)
    Welcome to china!
    However porting the chdk is interesting.

    nihao!xiexie :)


    *

    Offline reyalp

    • ******
    • 9957
  • Publish
    Re: A1100 IS Porting thread
    « Reply #48 on: 18 / April / 2010, 17:34:02 »
    As you say,may be the reason for camera freaze is copy.I have not adjust the asm code yet.I copy these file from a480.So I will try to change it later.
    Usually the ASM code is copied from your cameras firmware dump. You cannot use the code from another camera, all of it needs to corrected for your specific camera.
    Don't forget what the H stands for.

  • Publish
    Re: A1100 IS Porting thread
    « Reply #49 on: 19 / April / 2010, 01:28:24 »
    When I test the led status.I get confused.
    Here is my startup() code.
    the led  light forever.So what's meaning?
    Code: [Select]
    int gk;       
    *((volatile int *) 0xC02200DC) = 0x46; // Turn on LED
    for (gk=0; gk<0x1000000; gk++) // Wait a while
    {
         asm volatile ( "nop\n" );
    }


    long *bss = &link_bss_start;
    long *ptr;

    // sanity check
    if ((long)&link_bss_end > (MEMISOSTART + MEMISOSIZE)){
    started();
    shutdown();
    }

    // initialize .bss senment
    while (bss<&link_bss_end)
    *bss++ = 0;

    boot();
    *((volatile int *) 0xC02200DC) = 0x44; // Turn off LED
    for (gk=0;gk<0x1000000; gk++) // Wait a while
    {
        asm volatile ( "nop\n" );
    }

     

    Related Topics