tplink-safeloader: add RE365 v1
authorTomasz Maciej Nowak <tmn505@gmail.com>
Thu, 21 Dec 2023 21:15:01 +0000 (22:15 +0100)
committerSander Vanheule <sander@svanheule.net>
Sun, 7 Jan 2024 12:34:33 +0000 (13:34 +0100)
Partition layout same as RE305 v1. Values extracted from vendor
firmware. This will only be used for creating factory image.

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
src/tplink-safeloader.c

index 695550f287c89a1c3667a8dca1cac67b70158b39..3dc470d93ec72473ef33da0a9dab1f6bd8c94cd9 100644 (file)
@@ -2989,6 +2989,44 @@ static struct device_info boards[] = {
                .last_sysupgrade_partition = "file-system"
        },
 
+       /** Firmware layout for the RE365 v1 */
+       {
+               .id     = "RE365",
+               .vendor = "",
+               .support_list =
+                       "SupportList:\r\n"
+                       "{product_name:RE365,product_ver:1.0.0,special_id:45550000}\r\n"
+                       "{product_name:RE365,product_ver:1.0.0,special_id:55530000}\r\n"
+                       "{product_name:RE365,product_ver:1.0.0,special_id:4a500000}\r\n"
+                       "{product_name:RE365,product_ver:1.0.0,special_id:42520000}\r\n"
+                       "{product_name:RE365,product_ver:1.0.0,special_id:4b520000}\r\n"
+                       "{product_name:RE365,product_ver:1.0.0,special_id:41550000}\r\n"
+                       "{product_name:RE365,product_ver:1.0.0,special_id:43410000}\r\n"
+                       "{product_name:RE365,product_ver:1.0.0,special_id:54570000}\r\n"
+                       "{product_name:RE365,product_ver:1.0.0,special_id:41530000}\r\n",
+               .part_trail = 0x00,
+               .soft_ver = SOFT_VER_DEFAULT,
+
+               .partitions = {
+                       {"fs-uboot", 0x00000, 0x20000},
+                       {"firmware", 0x20000, 0x5e0000},
+                       {"partition-table", 0x600000, 0x02000},
+                       {"default-mac", 0x610000, 0x00020},
+                       {"pin", 0x610100, 0x00020},
+                       {"product-info", 0x611100, 0x01000},
+                       {"soft-version", 0x620000, 0x01000},
+                       {"support-list", 0x621000, 0x01000},
+                       {"profile", 0x622000, 0x08000},
+                       {"user-config", 0x630000, 0x10000},
+                       {"default-config", 0x640000, 0x10000},
+                       {"radio", 0x7f0000, 0x10000},
+                       {NULL, 0, 0}
+               },
+
+               .first_sysupgrade_partition = "os-image",
+               .last_sysupgrade_partition = "file-system"
+       },
+
        /** Firmware layout for the RE450 */
        {
                .id     = "RE450",