From da7682166f20cbab6816845948495208b9c6a4ed Mon Sep 17 00:00:00 2001 From: jackcybertan Date: Thu, 21 Aug 2025 15:18:07 +0800 Subject: [PATCH] ipq807x_v5.4/ipq50xx: enable pstore for rap630c-311g/rap630w-311g/rap630w-312g mt7621: enable pstore for rap63xc-211g Signed-off-by: jackcybertan --- .../dts/qcom/qcom-ipq5018-rap630c-311g.dts | 15 ++++++++ .../dts/qcom/qcom-ipq5018-rap630w-311g.dts | 15 ++++++++ .../dts/qcom/qcom-ipq5018-rap630w-312g.dts | 15 ++++++++ ...0-sonicfi_rap63xc-211g-enable-pstore.patch | 38 +++++++++++++++++++ 4 files changed, 83 insertions(+) create mode 100644 patches/0100-sonicfi_rap63xc-211g-enable-pstore.patch diff --git a/feeds/ipq807x_v5.4/ipq50xx/files/arch/arm64/boot/dts/qcom/qcom-ipq5018-rap630c-311g.dts b/feeds/ipq807x_v5.4/ipq50xx/files/arch/arm64/boot/dts/qcom/qcom-ipq5018-rap630c-311g.dts index 87e3ee10c..00d770369 100755 --- a/feeds/ipq807x_v5.4/ipq50xx/files/arch/arm64/boot/dts/qcom/qcom-ipq5018-rap630c-311g.dts +++ b/feeds/ipq807x_v5.4/ipq50xx/files/arch/arm64/boot/dts/qcom/qcom-ipq5018-rap630c-311g.dts @@ -151,6 +151,14 @@ no-map; reg = <0x0 0x4F000000 0x0 0x100000>; }; + + ramoops: ramoops@4f100000 { + compatible = "ramoops"; + reg = <0x0 0x4f100000 0x0 0x80000>; + record-size = <0x20000>; + console-size = <0x20000>; + pmsg-size = <0x20000>; + }; #else /* 512MB/1GB Profiles * +==========+==============+=========================+ @@ -285,6 +293,13 @@ reg = <0x0 0x4F800000 0x0 0x500000>; }; + ramoops: ramoops@4fd00000 { + compatible = "ramoops"; + reg = <0x0 0x4fd00000 0x0 0x80000>; + record-size = <0x20000>; + console-size = <0x20000>; + pmsg-size = <0x20000>; + }; #endif }; diff --git a/feeds/ipq807x_v5.4/ipq50xx/files/arch/arm64/boot/dts/qcom/qcom-ipq5018-rap630w-311g.dts b/feeds/ipq807x_v5.4/ipq50xx/files/arch/arm64/boot/dts/qcom/qcom-ipq5018-rap630w-311g.dts index 226952875..ac655e3ce 100755 --- a/feeds/ipq807x_v5.4/ipq50xx/files/arch/arm64/boot/dts/qcom/qcom-ipq5018-rap630w-311g.dts +++ b/feeds/ipq807x_v5.4/ipq50xx/files/arch/arm64/boot/dts/qcom/qcom-ipq5018-rap630w-311g.dts @@ -151,6 +151,14 @@ no-map; reg = <0x0 0x4F000000 0x0 0x100000>; }; + + ramoops: ramoops@4f100000 { + compatible = "ramoops"; + reg = <0x0 0x4f100000 0x0 0x80000>; + record-size = <0x20000>; + console-size = <0x20000>; + pmsg-size = <0x20000>; + }; #else /* 512MB/1GB Profiles * +==========+==============+=========================+ @@ -285,6 +293,13 @@ reg = <0x0 0x4F800000 0x0 0x500000>; }; + ramoops: ramoops@4fd00000 { + compatible = "ramoops"; + reg = <0x0 0x4fd00000 0x0 0x80000>; + record-size = <0x20000>; + console-size = <0x20000>; + pmsg-size = <0x20000>; + }; #endif }; diff --git a/feeds/ipq807x_v5.4/ipq50xx/files/arch/arm64/boot/dts/qcom/qcom-ipq5018-rap630w-312g.dts b/feeds/ipq807x_v5.4/ipq50xx/files/arch/arm64/boot/dts/qcom/qcom-ipq5018-rap630w-312g.dts index 9bac22cdc..6b826358b 100755 --- a/feeds/ipq807x_v5.4/ipq50xx/files/arch/arm64/boot/dts/qcom/qcom-ipq5018-rap630w-312g.dts +++ b/feeds/ipq807x_v5.4/ipq50xx/files/arch/arm64/boot/dts/qcom/qcom-ipq5018-rap630w-312g.dts @@ -154,6 +154,14 @@ no-map; reg = <0x0 0x4F000000 0x0 0x100000>; }; + + ramoops: ramoops@4f100000 { + compatible = "ramoops"; + reg = <0x0 0x4f100000 0x0 0x80000>; + record-size = <0x20000>; + console-size = <0x20000>; + pmsg-size = <0x20000>; + }; #else /* 512MB/1GB Profiles * +==========+==============+=========================+ @@ -288,6 +296,13 @@ reg = <0x0 0x4F800000 0x0 0x500000>; }; + ramoops: ramoops@4fd00000 { + compatible = "ramoops"; + reg = <0x0 0x4fd00000 0x0 0x80000>; + record-size = <0x20000>; + console-size = <0x20000>; + pmsg-size = <0x20000>; + }; #endif }; diff --git a/patches/0100-sonicfi_rap63xc-211g-enable-pstore.patch b/patches/0100-sonicfi_rap63xc-211g-enable-pstore.patch new file mode 100644 index 000000000..e829984da --- /dev/null +++ b/patches/0100-sonicfi_rap63xc-211g-enable-pstore.patch @@ -0,0 +1,38 @@ +From adbd8be88f9c5af3f79dc106bc0f2ace5eb50768 Mon Sep 17 00:00:00 2001 +From: jackcybertan +Date: Thu, 21 Aug 2025 15:22:51 +0800 +Subject: [PATCH] sonicfi_rap63xc-211g: enable pstore + +Signed-off-by: jackcybertan +--- + .../ramips/dts/mt7621_sonicfi_rap63xc-211g.dts | 14 ++++++++++++++ + 1 file changed, 14 insertions(+) + +diff --git a/target/linux/ramips/dts/mt7621_sonicfi_rap63xc-211g.dts b/target/linux/ramips/dts/mt7621_sonicfi_rap63xc-211g.dts +index b64ca5708b..d076d682c9 100755 +--- a/target/linux/ramips/dts/mt7621_sonicfi_rap63xc-211g.dts ++++ b/target/linux/ramips/dts/mt7621_sonicfi_rap63xc-211g.dts +@@ -79,6 +79,20 @@ + linux,code = ; + }; + }; ++ ++ reserved-memory { ++ #address-cells = <1>; ++ #size-cells = <1>; ++ ranges; ++ ++ ramoops: ramoops@ff80000 { ++ compatible = "ramoops"; ++ reg = <0x0ff80000 0x80000>; ++ record-size = <0x20000>; ++ console-size = <0x20000>; ++ pmsg-size = <0x20000>; ++ }; ++ }; + }; + + &spi0 { +-- +2.34.1 +