but i really want the extra functions that i've been reading about, and especially the RAW, and exposure/aperture limits increased. also, where can i even get the hack for it anyway? i can't seem to find anywhere to download anything. there's nothing in the "downloads" section. is there a CHDK for dummies tutorial for this camera, or something? if anyone would see their way fit to give me a hand with that stuff, i sure would appreciate it. thanks a bunch.
Only for a limited set of buttons. For most cameras you need to enable the physw_status display code in gui_draw_debug_vals_osd() and take note of which bits change when you press the buttons. Note that the bits are normally 1 and go to 0 in physw_status when the buttons are pressed.Phil.
I used the physw_status display to see that KEY_PLAYBACK is 0x40, KEY_VIDEO is 0x10 for this camera. I then enabled the CAM_ADJUSTABLE_ALT_BUTTON. What I found is that with these definitions the play and video buttons can indeed get you into alt mode, but they also perform their intended functions, even with the shortest key press. So they will not work for this camera. Since I like the disp button for "back" in the CHDK menu that leaves set+right for my alt key.
BTW what does alt_mode_key_mask do? If I change the alt key to set+right do I need to change this?
Make sure the KEYS_MASK0, KEYS_MASK1 and KEYS_MASK2 values are correct. These are all the bit values of the camera buttons or'ed together for each of the three physw_status entries.
I then enabled the CAM_ADJUSTABLE_ALT_BUTTON. What I found is that with these definitions the play and video buttons can indeed get you into alt mode, but they also perform their intended functions, even with the shortest key press.
void *vid_get_viewport_fb_d(){/*ROM:FF872090 ; =============== S U B R O U T I N E =======================================ROM:FF872090ROM:FF872090 ; LOCATION: ImagePlayer.c:0ROM:FF872090ROM:FF872090 EXPORT _sub_FF872090__ImagePlayer.c__0ROM:FF872090 _sub_FF872090__ImagePlayer.c__0 ; CODE XREF: _sub_FF882734__VisualHandle.c__154+1B4 pROM:FF872090 ; sub_FF882908+94 p ...ROM:FF872090 STMFD SP!, {R1-R7,LR}ROM:FF872094 LDR R7, =0x2710ROM:FF872098 LDR R5, =0x2A70 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<ROM:FF87209C LDR R3, =0x6CEROM:FF8720A0 LDR R2, =aImageplayer_c ; "ImagePlayer.c"ROM:FF8720A4 LDR R0, [R5,#0x4C]ROM:FF8720A8 MOV R1, R7ROM:FF8720AC BL sub_FF83A488ROM:FF8720B0 MOV R0, #1ROM:FF8720B4 BL sub_FF871280ROM:FF8720B8 CMN R0, #1ROM:FF8720BC BEQ loc_FF87218CROM:FF8720C0 LDR R4, =0x37A4CROM:FF8720C4 ADD R1, R0, R0,LSL#2ROM:FF8720C8 LDR R0, [R4,R1,LSL#2]ROM:FF8720CC MOV R3, #0ROM:FF8720D0 ADR R2, sub_FF871988ROM:FF8720D4 ADD R12, R4, R1,LSL#2ROM:FF8720D8 STR R0, [R5,#0x58] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<ROM:FF8720DC LDR R1, [R12,#0xC]ROM:FF8720E0 STMEA SP, {R1-R3}ROM:FF8720E4 LDR R3, [R12,#8]ROM:FF8720E8 MOV R2, #0ROM:FF8720EC MOV R1, #0ROM:FF8720F0 BL _sub_FF918DA8__ImgDDev.c__6 ; LOCATION: ImgDDev.c:6ROM:FF8720F4 TST R0, #1ROM:FF8720F8 LDRNE R1, =0x6F4ROM:FF8720FC LDRNE R0, =aImageplayer_c ; "ImagePlayer.c"*/ return (void*)(*(int*) (0x2A70+0x58)); }
vid_get_viewport_fb_d():The lib.c routine loads the address from an address that holds 0. I don't know how the dissassembly code below was created.
vid_get_viewport_fb_d():The lib.c routine loads the address from an address that holds 0. I don't know how the dissassembly code below was created. The original porter sgtrum has not been on the forum for a month so any help would be appreciated.JonCode: [Select]void *vid_get_viewport_fb_d(){/*ROM:FF872090 ; =============== S U B R O U T I N E =======================================ROM:FF872090ROM:FF872090 ; LOCATION: ImagePlayer.c:0ROM:FF872090ROM:FF872090 EXPORT _sub_FF872090__ImagePlayer.c__0ROM:FF872090 _sub_FF872090__ImagePlayer.c__0 ; CODE XREF: _sub_FF882734__VisualHandle.c__154+1B4 pROM:FF872090 ; sub_FF882908+94 p ...ROM:FF872090 STMFD SP!, {R1-R7,LR}ROM:FF872094 LDR R7, =0x2710ROM:FF872098 LDR R5, =0x2A70 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<ROM:FF87209C LDR R3, =0x6CEROM:FF8720A0 LDR R2, =aImageplayer_c ; "ImagePlayer.c"ROM:FF8720A4 LDR R0, [R5,#0x4C]ROM:FF8720A8 MOV R1, R7ROM:FF8720AC BL sub_FF83A488ROM:FF8720B0 MOV R0, #1ROM:FF8720B4 BL sub_FF871280ROM:FF8720B8 CMN R0, #1ROM:FF8720BC BEQ loc_FF87218CROM:FF8720C0 LDR R4, =0x37A4CROM:FF8720C4 ADD R1, R0, R0,LSL#2ROM:FF8720C8 LDR R0, [R4,R1,LSL#2]ROM:FF8720CC MOV R3, #0ROM:FF8720D0 ADR R2, sub_FF871988ROM:FF8720D4 ADD R12, R4, R1,LSL#2ROM:FF8720D8 STR R0, [R5,#0x58] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<ROM:FF8720DC LDR R1, [R12,#0xC]ROM:FF8720E0 STMEA SP, {R1-R3}ROM:FF8720E4 LDR R3, [R12,#8]ROM:FF8720E8 MOV R2, #0ROM:FF8720EC MOV R1, #0ROM:FF8720F0 BL _sub_FF918DA8__ImgDDev.c__6 ; LOCATION: ImgDDev.c:6ROM:FF8720F4 TST R0, #1ROM:FF8720F8 LDRNE R1, =0x6F4ROM:FF8720FC LDRNE R0, =aImageplayer_c ; "ImagePlayer.c"*/ return (void*)(*(int*) (0x2A70+0x58)); }
Started by pizzicat Firmware Dumping
Started by hiker_jon General Discussion and Assistance
Started by slyth999 General Discussion and Assistance
Started by gtoonstra « 1 2 ... 5 6 » General Discussion and Assistance
Started by rdx1968 General Help and Assistance on using CHDK stable releases