ipq806x: kernel ramoops storage for C2600/AD7200
authorEdward Matijevic <motolav@gmail.com>
Sun, 6 Nov 2022 19:12:36 +0000 (13:12 -0600)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 9 Nov 2022 16:07:15 +0000 (17:07 +0100)
Define the kernel crash log storage ramoops/pstore feature
for C2600/AD7200 and add kmod-ramoops to default.

Tested with C2600 only.

Signed-off-by: Edward Matijevic <motolav@gmail.com>
target/linux/ipq806x/files-5.15/arch/arm/boot/dts/qcom-ipq8064-ad7200-c2600.dtsi
target/linux/ipq806x/image/generic.mk

index dd57fc02b4ab6fefb1afe75b7d137290a1d104dd..576393015aceaffc71bb8d50bfa4d8102326cf17 100644 (file)
                device_type = "memory";
        };
 
+       ramoops@42100000 {
+               compatible = "ramoops";
+               reg = <0x42100000 0x40000>;
+               record-size = <0x4000>;
+               console-size = <0x4000>;
+               ftrace-size = <0x4000>;
+               pmsg-size = <0x4000>;
+       };
+
        aliases {
                mdio-gpio0 = &mdio0;
                label-mac-device = &gmac2;
index 02f5aad5455bca9b4b2b78ea4db646f8476b2ba4..936febc762527dddf251e131e675425df1d8dd03 100644 (file)
@@ -409,7 +409,7 @@ define Device/tplink_ad7200
        BLOCKSIZE := 128k
        PAGESIZE := 2048
        TPLINK_BOARD_ID := AD7200
-       DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct kmod-wil6210
+       DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct kmod-ramoops kmod-wil6210
 endef
 TARGET_DEVICES += tplink_ad7200
 
@@ -424,7 +424,7 @@ define Device/tplink_c2600
        BOARD_NAME := c2600
        SUPPORTED_DEVICES += c2600
        TPLINK_BOARD_ID := C2600
-       DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
+       DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct kmod-ramoops
 endef
 TARGET_DEVICES += tplink_c2600