mediatek: consolidate partition names and settings
authorJohn Crispin <john@phrozen.org>
Fri, 3 Apr 2020 09:49:42 +0000 (11:49 +0200)
committerJohn Crispin <john@phrozen.org>
Mon, 6 Apr 2020 05:07:42 +0000 (07:07 +0200)
Signed-off-by: John Crispin <john@phrozen.org>
target/linux/mediatek/files-4.19/arch/arm64/boot/dts/mediatek/mt7622-elecom-wrc-2533gent.dts
target/linux/mediatek/files-4.19/arch/arm64/boot/dts/mediatek/mt7622-lynx-rfb1.dts
target/linux/mediatek/files-4.19/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7622-elecom-wrc-2533gent.dts
target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
target/linux/mediatek/mt7622/config-4.19

index 7a5814e3f6d83e6797e127f67109aea04a0b3961..3945f26e169486da485d6f6f0a02a7cfd488b7ff 100644 (file)
                         #size-cells = <1>;
 
                         partition@0 {
-                                label = "Preloader";
+                                label = "preloader";
                                 reg = <0x00000 0x0080000>;
                                 read-only;
                         };
                         };
 
                         partition@200000 {
-                                label = "Kernel";
+                                label = "firmware";
                                 reg = <0x200000 0x2000000>;
                         };
 
index 1045851509d2c1051b7187fb3c4dd30589d4094e..895491098e51593e472b095efe802e0ea3a96538 100644 (file)
                         #size-cells = <1>;
 
                         partition@0 {
-                                label = "Preloader";
+                                label = "preloader";
                                 reg = <0x00000 0x0080000>;
                                 read-only;
                         };
                         partition@80000 {
                                 label = "ATF";
                                 reg = <0x80000 0x0040000>;
+                                read-only;
                         };
 
                         partition@c0000 {
-                                label = "Bootloader";
+                                label = "uboot";
                                 reg = <0xc0000 0x0080000>;
+                                read-only;
                         };
 
                         partition@140000 {
-                                label = "Config";
+                                label = "uboot-env";
                                 reg = <0x140000 0x0080000>;
+                                read-only;
                         };
 
                         partition@1c0000 {
-                                label = "Factory";
+                                label = "factory";
                                 reg = <0x1c0000 0x0040000>;
+                                read-only;
                         };
 
                         partition@200000 {
-                                label = "Kernel";
+                                label = "firmware";
                                 reg = <0x200000 0x2000000>;
                         };
 
                         partition@2200000 {
-                                label = "User_data";
+                                label = "reserved";
                                 reg = <0x2200000 0x4000000>;
                         };
                 };
index ecd344c956e31ba938d149bf53f19652398da049..04829f63975238a5aa4668dc1fe7fba065f15cfb 100644 (file)
                         #size-cells = <1>;
 
                         partition@0 {
-                                label = "Preloader";
+                                label = "preloader";
                                 reg = <0x00000 0x0080000>;
                                 read-only;
                         };
                         partition@80000 {
                                 label = "ATF";
                                 reg = <0x80000 0x0040000>;
+                                read-only;
                         };
 
                         partition@c0000 {
-                                label = "Bootloader";
+                                label = "uboot";
                                 reg = <0xc0000 0x0080000>;
+                                read-only;
                         };
 
                         partition@140000 {
-                                label = "Config";
+                                label = "uboot-env";
                                 reg = <0x140000 0x0080000>;
+                                read-only;
                         };
 
                         partition@1c0000 {
-                                label = "Factory";
+                                label = "factory";
                                 reg = <0x1c0000 0x0040000>;
+                                read-only;
                         };
 
                         partition@200000 {
-                                label = "Kernel";
+                                label = "firmware";
                                 reg = <0x200000 0x2000000>;
                         };
 
                         partition@2200000 {
-                                label = "User_data";
+                                label = "reserved";
                                 reg = <0x2200000 0x4000000>;
                         };
                 };
index 7a5814e3f6d83e6797e127f67109aea04a0b3961..f178b9476696e53f1ddd4a1c68d8d421d12e1d6b 100644 (file)
                         };
 
                         partition@200000 {
-                                label = "Kernel";
+                                label = "firmware";
                                 reg = <0x200000 0x2000000>;
                         };
 
index c5b4cf306bba2027ea96db306c6eab340e677f0e..42903f75a2ea1f58244c9ad25076d8cf6eb49e43 100755 (executable)
@@ -8,7 +8,7 @@ platform_do_upgrade() {
        esac
 }
 
-PART_NAME=Kernel
+PART_NAME=firmware
 
 platform_check_image() {
        local board=$(board_name)
index a6c492c43c605211d43ba72092e1ed4ebb656d81..e102308a98fbb22ccc064b83a7b19a254eb4ebc3 100644 (file)
@@ -381,7 +381,6 @@ CONFIG_MTD_NAND_MTK=y
 CONFIG_MTD_SPI_NAND=y
 CONFIG_MTD_SPI_NOR=y
 CONFIG_MTD_SPLIT_FIRMWARE=y
-CONFIG_MTD_SPLIT_FIRMWARE_NAME="Kernel"
 CONFIG_MTD_SPLIT_FIT_FW=y
 CONFIG_MTD_SPLIT_UIMAGE_FW=y
 # CONFIG_MTK_AAL_SUPPORT is not set