]> git.ipfire.org Git - thirdparty/u-boot.git/commit
cmd: Add command to display or save Linux PStore dumps
authorFrédéric Danis <frederic.danis@collabora.com>
Fri, 20 Mar 2020 09:59:22 +0000 (10:59 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 14 Oct 2020 15:16:19 +0000 (11:16 -0400)
commit9744d1a547847dea89277b00606fe4c837c1b4ea
treed473ca3cbd4032fc990850875b2f328ae16438d7
parent55fca74a5ba9bb0a101b247f421e81322b945a7b
cmd: Add command to display or save Linux PStore dumps

This patch adds a new pstore command allowing to display or save ramoops
logs (oops, panic, console, ftrace and user) generated by a previous
kernel crash.
PStore parameters can be set in U-Boot configuration file, or at run-time
using "pstore set" command. Records size should be the same as the ones
used by kernel, and should be a power of 2.
This command allows:
- to display uncompressed logs
- to save compressed or uncompressed logs, compressed logs are saved as a
  compressed stream, it may need some work to be able to decompress it,
  e.g. adding a fake header:
  "printf "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x00" |
  cat - dmesg-ramoops-0.enc.z | gzip -dc"
- ECC part is not used to check memory corruption
- only 1st FTrace log is displayed or saved

Signed-off-by: Frédéric Danis <frederic.danis@collabora.com>
[trini: Minor updates for current design, correct spacing in rST]
Signed-off-by: Tom Rini <trini@konsulko.com>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Heiko Schocher <hs@denx.de>
cmd/Kconfig
cmd/Makefile
cmd/pstore.c [new file with mode: 0644]
doc/index.rst
doc/pstore.rst [new file with mode: 0644]