kdump: redirect stderr to the pstore message

This will output any error messages from makedumpfile to the pstore so
that we can view it after reboot.

Also this fixes the aspeed platforms kdump page missing.
Somehow makedumpfile could dump stderr output into the core. The reason is still unclear but might be due to stdout/err pts is not created properly yet in the init script env.

Tested: on a aspeed bmc, kcore is generated and crash can parse it with no issue.

Fusion-link: https://fusion2.corp.google.com/f02af0d3-5214-3bfd-957e-a1cbe5bd3ef9  https://fusion2.corp.google.com/c8998f37-72e7-3965-88f8-b6b6caa528d0

Google-Bug-Id: 370096566
Change-Id: I31c0a65baee45838414d3b040d7eb13f4bbbe536
Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
1 file changed
tree: 6e0723d298e2a0dd63028fddcb5883ba93c558e7
  1. classes/
  2. conf/
  3. dynamic-layers/
  4. recipes-bsp/
  5. recipes-connectivity/
  6. recipes-core/
  7. recipes-devtools/
  8. recipes-extended/
  9. recipes-google/
  10. recipes-kernel/
  11. recipes-phosphor/
  12. recipes-support/
  13. recipes-tpm1/
  14. recipes-tpm2/
  15. LICENSE
  16. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.