openwrt/target/linux/generic
Hannu Nyman 97158fe10e kernel: package ramoops pstore-ram crash log storage
Package the ability to log kernel crashes to 'ramoops' pstore
files into RAM in /sys/fs/pstore

Reference to the ramoops admin guide in upstream Linux:
https://www.kernel.org/doc/html/v5.10/admin-guide/ramoops.html

The files in RAM survive a warm reboot, but not a cold reboot.

Note: kmod-ramoops selects kmod-pstore and kmod-reed-solomon.

The feature can be used by selecting the kmod-ramoops and
adding a ramoops reserved-memory definition to the device DTS.
Example from R7800:

       reserved-memory {
                rsvd@5fe00000 {
                        reg = <0x5fe00000 0x200000>;
                        reusable;
                };

                ramoops@42100000 {
                        compatible = "ramoops";
                        reg = <0x42100000 0x40000>;
                        record-size = <0x4000>;
                        console-size = <0x4000>;
                        ftrace-size = <0x4000>;
                        pmsg-size = <0x4000>;
                };
        };

If no definition has been made in DTS, no crash log is stored
for the device.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(added CONFIG_EFI_VARS_PSTORE disable)
2022-02-24 20:45:12 +01:00
..
backport-5.4 kernel: backport fix for initializing skb->cb in the bridge code to 5.4 2022-02-16 20:38:06 +01:00
backport-5.10 kernel: bump 5.10 to 5.10.98 2022-02-11 23:17:40 +01:00
files kernel: mtk_bmt: add support for the bbt format used on mt7621 2022-01-13 18:33:06 +01:00
hack-5.4 kernel: remove 640-bridge-only-accept-EAP-locally.patch 2022-02-12 23:50:26 +01:00
hack-5.10 target/linux: add help text to kernel config 2022-02-19 18:29:42 +01:00
image target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
other-files initramfs: switch to tmpfs to fix ujail 2020-11-27 01:23:43 +00:00
pending-5.4 kernel: backport fix for initializing skb->cb in the bridge code to 5.4 2022-02-16 20:38:06 +01:00
pending-5.10 net: ethernet: mtk_eth_soc: add ipv6 flow offload support 2022-02-19 15:00:16 +01:00
config-5.4 kernel: add disabled POWER_RESET_QNAP 2022-01-29 23:50:28 +09:00
config-5.10 kernel: package ramoops pstore-ram crash log storage 2022-02-24 20:45:12 +01:00
config-filter kernel: filter out both Clang and LLD versions 2021-12-17 16:16:34 +01:00
PATCHES kernel: update PATCHES with a stricter policy 2013-07-09 20:52:07 +00:00