Dumping RAM with gen-blob

From OpenEZX
Jump to: navigation, search

Using gen-blob it is possible to dump the phone RAM to retrieve the kernel messages in order to diagnose and fix a crash.

When you experience a kernel crash:

  1. Remove the battery:
  2. Reinsert it immediately holding the keys to enter bootloader mode (see Bootloader#Enter_the_bootloader).
  3. Load gen-blob via usb:
    $ boot_usb setflag usb
    $ boot_usb gen-blob 0
    
  4. Dump the ram (32 MiB):
    $ boot_usb read 0xa0000000 33554432 memdump.bin
    $ boot_usb off
    
  5. Extract the kernel messages:
    $ strings memdump.bin | grep '^<[0-9]>\[[\ \.0-9]*\]'
    
Personal tools