mediatek: rework and fix mt7622-rfb1-ubi support

Limit bmt remapping range to cover everything up to and including the kernel image,
use the rest of the flash area for ubi.
Fix partition table and sysupgrade support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau
2022-01-10 12:35:08 +01:00
parent 7235c8d00c
commit 76b27f6bb9
4 changed files with 15 additions and 12 deletions

View File

@@ -3,10 +3,13 @@
#include "mt7622-rfb1.dts"
/ {
model = "MT7622_MT7531 RFB (UBI)";
compatible = "mediatek,mt7622,ubi";
compatible = "mediatek,mt7622-rfb1-ubi";
};
&snand {
mediatek,bmt-v2;
mediatek,bmt-remap-range = <0x0 0x6c0000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
@@ -35,22 +38,19 @@
factory: partition@1c0000 {
label = "Factory";
reg = <0x1c0000 0x0040000>;
reg = <0x1c0000 0x0100000>;
};
partition@200000 {
label = "kernel";
reg = <0x200000 0x400000>;
reg = <0x2c0000 0x400000>;
};
partition@600000 {
partition@6c0000 {
label = "ubi";
reg = <0x600000 0x1C00000>;
reg = <0x6c0000 0x6f00000>;
};
partition@2200000 {
label = "User_data";
reg = <0x2200000 0x4000000>;
};
/delete-node/ partition@2200000;
};
};