How to Dump RAM (using "ALT +/- press")? - General Discussion and Assistance - CHDK Forum

How to Dump RAM (using "ALT +/- press")?

  • 8 Replies
  • 5881 Views
*

Offline wap4

  • **
  • 95
  • A720IS
How to Dump RAM (using "ALT +/- press")?
« on: 15 / April / 2008, 02:27:26 »
Advertisements
 
 How to use the "Dump RAM on ALT +/- Press" feature in CHDK? (If I press ALT button and the +/- button
 simaltaneously I get nothing on card,so I must be doing something wrong!) And after obtaining the dump,
 what is the method to load it in IDA (start address,loading size etc)?   
« Last Edit: 15 / April / 2008, 02:43:18 by wap4 »

*

Offline mx3

  • ****
  • 372
Re: How to Dump RAM (using "ALT +/- press")?
« Reply #1 on: 15 / April / 2008, 03:26:12 »

 How to use the "Dump RAM on ALT +/- Press" feature in CHDK? (If I press ALT button and the +/- button
 simaltaneously I get nothing on card,so I must be doing something wrong!)
1) in debug parameters  menu select corresponding checkbox.
2) leave alt mode
3) press +/- button - blue led must be lit while writing dump to card

And after obtaining the dump,
 what is the method to load it in IDA (start address,loading size etc)?   
why would you like to load it into ida?
anyway
if file size is 33554432 bytes - loading address is 0
if file size is 33548032 bytes - loading address is 1900
loading size - full (it is suggested by ida automatically)


NOTES:
1) loading this file into ida without ROM dump is useless

2) it is usefull to analize ROM dump with RAM segment loaded but  ida analysis of this pair of segments (ROM/RAM) is very slow (it can take several hours. I once started analysis in the evening and have seen at morning that it is still not finished)

3) I tried to load ROM/RAM dumps in a such way: a) load ROM into ida; b) add RAM segment (load additional bin file); c) start analysis

4) using of full ROM dump (8mb) can give you full understanding of inner working of camera but can confuse you due to dublicate section of code. i would suggest you to use primary bin only

5) I would suggest you to ask Cail on tips and tricks about loading/analysis of this pair into ida
« Last Edit: 15 / April / 2008, 03:28:08 by mx3 »
skype: max_dtc. ICQ: 125985663, email: win.drivers(at)gmail, eVB decompiler

*

Offline whoever

  • ****
  • 280
  • IXUS950
Re: How to Dump RAM (using "ALT +/- press")?
« Reply #2 on: 15 / April / 2008, 03:49:39 »
3) press +/- button - blue led must be lit while writing dump to card

except that it is not +/- but whatever button is used to toggle RAW (it is surely not +/- in any cam):

Code: (c) [Select]
1544 if (kbd_is_key_clicked(SHORTCUT_TOGGLE_RAW)) {
1545 if (conf.ns_enable_memdump) dump_memory();
The menu text is plainly wrong.

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: How to Dump RAM (using "ALT +/- press")?
« Reply #3 on: 15 / April / 2008, 04:04:52 »
according to a post by grAnd you also need the DCIM/CANON100 folder: Question for devs: How to find out if movie recording in progress?


*

Offline mx3

  • ****
  • 372
Re: How to Dump RAM (using "ALT +/- press")?
« Reply #4 on: 15 / April / 2008, 04:27:02 »
The menu text is plainly wrong.

+/- in alt mode worked on my a630 allbest #49

anywaydo you have any button on your camera which nativelly supports RAW toggle? :-)


I searched trunk #359 and found this in gui.c

#if !CAM_HAS_ERASE_BUTTON
 #define SHORTCUT_TOGGLE_RAW          KEY_DISPLAY
#elif defined(CAMERA_a460)
 #define SHORTCUT_TOGGLE_RAW      KEY_DISPLAY
#else
 #define SHORTCUT_TOGGLE_RAW          KEY_ERASE
#endif


so it is possible that on some models a dump key can be different
alt button is display then
skype: max_dtc. ICQ: 125985663, email: win.drivers(at)gmail, eVB decompiler

*

Offline mx3

  • ****
  • 372
Re: How to Dump RAM (using "ALT +/- press")?
« Reply #5 on: 15 / April / 2008, 04:34:57 »
so it seems that cameras without erase button are:
- a 460 , 550, 560
- ixus 55, 65, 70, 700, 800, 850, 860, 950

it seems wap4's A720IS has erase button
skype: max_dtc. ICQ: 125985663, email: win.drivers(at)gmail, eVB decompiler

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: How to Dump RAM (using "ALT +/- press")?
« Reply #6 on: 15 / April / 2008, 07:15:55 »
well, he also tried pressing the buttons simultaneously, maybe thats the reason it didnt work. just press alt button so that you are in alt-mode. next press +/- or delete button.

hm, after reading mx3's bits about ida & loading rom & ram dump i think i will give up comparing two dumps to find out where DST is stored :(

Re: How to Dump RAM (using "ALT +/- press")?
« Reply #7 on: 15 / April / 2008, 09:12:49 »
Deleted
« Last Edit: 22 / April / 2008, 17:51:56 by Barney Fife »
[acseven/admin commented out: please refrain from more direct offensive language to any user. FW complaints to me] I felt it imperative to withdraw my TOTAL participation. Nobody has my permission, nor the right, to reinstate MY posts. Make-do with my quoted text in others' replies only. Bye


*

Offline wap4

  • **
  • 95
  • A720IS
Re: How to Dump RAM (using "ALT +/- press")?
« Reply #8 on: 15 / April / 2008, 10:10:45 »
 Thanks a lot! I finally dumped the RAM by pressing only the +/- key in ALT mode,(however this does not work if
 I leave ALT mode,as first suggested by mx3).
« Last Edit: 15 / April / 2008, 10:12:36 by wap4 »

 

Related Topics