7.I add all of them in to stubs_entry_2.S, with dummy values 0x12345678. Like this NHSTUB(AllocateMemory,0x12345678)
14.Now the code run in the boot(),then stoped.run the code of asm(....) in the boot(),then stoped.why?
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!
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 ?
Quote from: igorstu on 17 / April / 2010, 15:40:50Hi 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.
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.
int gk; *((volatile int *) 0xC02200DC) = 0x46; // Turn on LEDfor (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 LEDfor (gk=0;gk<0x1000000; gk++) // Wait a while{ asm volatile ( "nop\n" );}
Started by bobble « 1 2 ... 61 62 » General Discussion and Assistance
Started by fboesch « 1 2 ... 38 39 » General Discussion and Assistance
Started by HarpoMa « 1 2 ... 67 68 » General Discussion and Assistance
Started by drewm1980 « 1 2 ... 39 40 » DryOS Development
Started by awesome71717 General Discussion and Assistance