mt798x: reserve memory for pstore

This commit is contained in:
hanwckf
2022-11-06 01:02:04 +08:00
parent fb966e7951
commit 6607e59ff9
3 changed files with 35 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ echo "build u-boot..."
cp -f $UBOOT_DIR/configs/$UBOOT_CFG $UBOOT_DIR/.config
if [ "$1" = "fixedparts" ]; then
echo "CONFIG_MEDIATEK_UBI_FIXED_MTDPARTS=y" >> $UBOOT_DIR/.config
echo "Build uboot with fixed-mtdparts!"
fi
make -C $UBOOT_DIR olddefconfig all

View File

@@ -30,6 +30,23 @@
};
};
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
ranges;
ramoops@42ff0000 {
compatible = "ramoops";
reg = <0x42ff0000 0x10000>;
record-size = <0x1000>;
};
secmon_reserved: secmon@43000000 {
reg = <0x43000000 0x30000>;
no-map;
};
};
gpt_clk: gpt_dummy20m {
compatible = "fixed-clock";
clock-frequency = <13000000>;

View File

@@ -46,6 +46,23 @@
};
};
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
ranges;
ramoops@42ff0000 {
compatible = "ramoops";
reg = <0x42ff0000 0x10000>;
record-size = <0x1000>;
};
secmon_reserved: secmon@43000000 {
reg = <0x43000000 0x30000>;
no-map;
};
};
dummy_clk: dummy12m {
compatible = "fixed-clock";
clock-frequency = <12000000>;