[source] firmware-utils: tplink-safeloader: add support for TP-Link RE350

LEDE Commits lede-commits at lists.infradead.org
Tue Jul 25 12:04:08 PDT 2017


mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/1c7144f078c98dbf0e6c70c534b98fe6186f19d6

commit 1c7144f078c98dbf0e6c70c534b98fe6186f19d6
Author: Alex Maclean <monkeh at monkeh.net>
AuthorDate: Mon Jul 3 21:05:44 2017 +0100

    firmware-utils: tplink-safeloader: add support for TP-Link RE350
    
    Signed-off-by: Alex Maclean <monkeh at monkeh.net>
---
 tools/firmware-utils/src/tplink-safeloader.c | 41 ++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/tools/firmware-utils/src/tplink-safeloader.c b/tools/firmware-utils/src/tplink-safeloader.c
index 73543d5..dceba75 100644
--- a/tools/firmware-utils/src/tplink-safeloader.c
+++ b/tools/firmware-utils/src/tplink-safeloader.c
@@ -744,6 +744,47 @@ static struct device_info boards[] = {
 		.last_sysupgrade_partition = "file-system",
 	},
 
+	/** Firmware layout for the RE350 v1 */
+	{
+		.id = "RE350-V1",
+		.vendor = "",
+		.support_list =
+			"SupportList:\n"
+			"{product_name:RE350,product_ver:1.0.0,special_id:45550000}\n"
+			"{product_name:RE350,product_ver:1.0.0,special_id:00000000}\n"
+			"{product_name:RE350,product_ver:1.0.0,special_id:41550000}\n"
+			"{product_name:RE350,product_ver:1.0.0,special_id:55530000}\n"
+			"{product_name:RE350,product_ver:1.0.0,special_id:43410000}\n"
+			"{product_name:RE350,product_ver:1.0.0,special_id:4b520000}\n"
+			"{product_name:RE350,product_ver:1.0.0,special_id:4a500000}\n",
+		.support_trail = '\x00',
+		.soft_ver = NULL,
+
+		/**
+			The original os-image partition is too small,
+			so we enlarge it to 1.6M
+		*/
+		.partitions = {
+			{"fs-uboot", 0x00000, 0x20000},
+			{"os-image", 0x20000, 0x1a0000},
+			{"file-system", 0x1c0000, 0x440000},
+			{"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",



More information about the lede-commits mailing list