ramoops.txt 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. Ramoops oops/panic logger
  2. =========================
  3. ramoops provides persistent RAM storage for oops and panics, so they can be
  4. recovered after a reboot. This is a child-node of "/reserved-memory", and
  5. is named "ramoops" after the backend, rather than "pstore" which is the
  6. subsystem.
  7. Parts of this storage may be set aside for other persistent log buffers, such
  8. as kernel log messages, or for optional ECC error-correction data. The total
  9. size of these optional buffers must fit in the reserved region.
  10. Any remaining space will be used for a circular buffer of oops and panic
  11. records. These records have a configurable size, with a size of 0 indicating
  12. that they should be disabled.
  13. At least one of "record-size", "console-size", "ftrace-size", or "pmsg-size"
  14. must be set non-zero, but are otherwise optional as listed below.
  15. Required properties:
  16. - compatible: must be "ramoops"
  17. - reg: region of memory that is preserved between reboots
  18. Optional properties:
  19. - ecc-size: enables ECC support and specifies ECC buffer size in bytes
  20. (defaults to 0: no ECC)
  21. - record-size: maximum size in bytes of each dump done on oops/panic
  22. (defaults to 0: disabled)
  23. - console-size: size in bytes of log buffer reserved for kernel messages
  24. (defaults to 0: disabled)
  25. - ftrace-size: size in bytes of log buffer reserved for function tracing and
  26. profiling (defaults to 0: disabled)
  27. - pmsg-size: size in bytes of log buffer reserved for userspace messages
  28. (defaults to 0: disabled)
  29. - unbuffered: if present, use unbuffered mappings to map the reserved region
  30. (defaults to buffered mappings)
  31. - no-dump-oops: if present, only dump panics (defaults to panics and oops)