ath79/mikrotik: use routerbootpart partitions

Enable routerbootpart partitions on MikroTik devices.

Tested-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
This commit is contained in:
Thibaut VARÈNE 2020-03-21 13:07:23 +01:00 committed by Koen Vandeputte
parent c8b2ad4185
commit 8f90dbfd1f
2 changed files with 12 additions and 23 deletions

View File

@ -84,37 +84,33 @@
label = "RouterBoot"; label = "RouterBoot";
reg = <0x0 0x20000>; reg = <0x0 0x20000>;
read-only; read-only;
compatible = "fixed-partitions"; compatible = "mikrotik,routerboot-partitions";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
partition@0 { partition@0 {
label = "bootloader1"; label = "bootloader1";
reg = <0x0 0xe000>; reg = <0x0 0x0>;
read-only; read-only;
}; };
hard_config: partition@e000 { hard_config: hard_config {
label = "hard_config";
reg = <0xe000 0x1000>;
read-only; read-only;
}; };
partition@f000 { bios {
label = "bios"; size = <0x1000>;
reg = <0xf000 0x1000>;
read-only; read-only;
}; };
partition@10000 { partition@10000 {
label = "bootloader2"; label = "bootloader2";
reg = <0x10000 0xf000>; reg = <0x10000 0x0>;
read-only; read-only;
}; };
partition@1f000 { soft_config {
label = "soft_config"; label = "soft_config";
reg = <0x1f000 0x1000>;
}; };
}; };

View File

@ -99,32 +99,25 @@
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;
partitions { partitions {
compatible = "fixed-partitions"; compatible = "mikrotik,routerboot-partitions";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
partition@0 { partition@0 {
label = "routerboot"; label = "routerboot";
reg = <0x0000000 0x000c000>; reg = <0x0 0x0>;
read-only; read-only;
}; };
hard_config: partition@c000 { hard_config: hard_config {
label = "hard_config";
reg = <0x000c000 0x0001000>;
read-only; read-only;
}; };
partition@d000 { bios {
label = "bios";
reg = <0x000d000 0x0001000>;
read-only; read-only;
}; };
partition@e000 { soft_config {
label = "soft_config";
reg = <0x000e000 0x0001000>;
read-only;
}; };
}; };
}; };