Skip to content
Snippets Groups Projects
Commit 3c3a7b09 authored by Piotr Kubik's avatar Piotr Kubik
Browse files

iopsys-ramips: pstore: Enable PSTORE support

Enable pstore-fs kernel support for ex400.
Reservation a memory range at the end of
system memory (0x0ff80000-0x1000000) for PSTORE.

refs #5002
parent 41dbf195
Branches
No related tags found
1 merge request!387iopsys-ramips: pstore: Enable PSTORE support
......@@ -18,6 +18,9 @@
reg = <0x0 0x10000000>;
};
/* memory reservations */
#include "mt7621_rsvdmem.dtsi"
chosen {
bootargs = "console=ttyS0,115200";
};
......
/*
* MT7621 reserved memory dtsi template
*/
/* Reserve 512 KiB at the end of free memory*/
#define MT7621_MEM_END 0x10000000
#define PSTORE_RSRVD_MEM_SIZE 0x80000
#define PSTORE_RSRVD_MEM_ADDR (MT7621_MEM_END - PSTORE_RSRVD_MEM_SIZE)
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
ranges;
pstore: pstore {
compatible = "ramoops";
reg = <PSTORE_RSRVD_MEM_ADDR PSTORE_RSRVD_MEM_SIZE>;
record-size = <0x20000>; /* 128KiB per record */
console-size = <0x20000>; /* 128KiB for console */
pmsg-size = <0x1000>; /* 4KiB for user data */
ecc-size = <16>;
};
};
......@@ -213,6 +213,16 @@ CONFIG_POSIX_MQUEUE_SYSCTL=y
CONFIG_POWER_RESET=y
CONFIG_POWER_RESET_GPIO=y
CONFIG_POWER_SUPPLY=y
CONFIG_PSTORE=y
# CONFIG_PSTORE_842_COMPRESS is not set
CONFIG_PSTORE_CONSOLE=y
# CONFIG_PSTORE_DEFLATE_COMPRESS is not set
# CONFIG_PSTORE_LZ4HC_COMPRESS is not set
# CONFIG_PSTORE_LZ4_COMPRESS is not set
# CONFIG_PSTORE_LZO_COMPRESS is not set
CONFIG_PSTORE_PMSG=y
CONFIG_PSTORE_RAM=y
# CONFIG_PSTORE_ZSTD_COMPRESS is not set
CONFIG_QUEUED_RWLOCKS=y
CONFIG_QUEUED_SPINLOCKS=y
CONFIG_RALINK=y
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment