ramips: reserve pstore for Genexis EX400
authorDavid Bauer <[email protected]>
Mon, 23 Jun 2025 20:50:12 +0000 (22:50 +0200)
committerDavid Bauer <[email protected]>
Sat, 27 Sep 2025 16:06:12 +0000 (18:06 +0200)
The Genexis Pulse EX400 has a reserved area of 512 KiB not touched by
the U-Boot bootloader.

Add this area for storing crashlogs and include the necessary kernel
packages.

Signed-off-by: David Bauer <[email protected]>
target/linux/ramips/dts/mt7621_genexis_pulse-ex400-common.dtsi
target/linux/ramips/image/mt7621.mk

index ebcf558359b426e41b7f57290efa89ba7a4d31de..5cb7a5f9b9955e40c434b8e795c140e2ed21fa77 100644 (file)
                bootargs-override = "console=ttyS0,115200 rootfstype=squashfs,jffs2";
        };
 
+       memory@0 {
+               device_type = "memory";
+               reg = <0x0 0x10000000>;
+       };
+
+       reserved-memory {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               ranges;
+
+               /* 512 KiB reserved for ramoops/pstore */
+               ramoops@ff80000 {
+                       reg = <0xff80000 0x80000>;
+                       record-size = <0x20000>;
+                       console-size = <0x20000>;
+                       ftrace-size = <0x20000>;
+                       pmsg-size = <0x20000>;
+               };
+       };
+
        keys {
                compatible = "gpio-keys";
 
index 720b90cc50d4c3c0072e02b0bda6b88ba0ed4b5a..14c9aa80244464adcff8483184dba6e9c37a5686 100644 (file)
@@ -1450,7 +1450,8 @@ endif
   IMAGE/sysupgrade.bin := append-kernel | inteno-bootfs | pad-to 10M | \
     sysupgrade-tar kernel=$$$$@ | check-size | append-metadata
   DEVICE_IMG_NAME = $$(DEVICE_IMG_PREFIX)-$$(2)
-  DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615-firmware kmod-usb3 kmod-keyboard-sx951x kmod-button-hotplug
+  DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615-firmware kmod-usb3 kmod-keyboard-sx951x kmod-button-hotplug \
+       kmod-pstore kmod-ramoops
 endef
 
 define Device/genexis_pulse-ex400