diff mbox series

[firmware-utils] tplink-safeloader: add RE365 v1

Message ID 20231221211801.11700-1-tmn505@terefe.re
State Accepted
Delegated to: Sander Vanheule
Headers show
Series [firmware-utils] tplink-safeloader: add RE365 v1 | expand

Commit Message

Tomasz Maciej Nowak Dec. 21, 2023, 9:15 p.m. UTC
From: Tomasz Maciej Nowak <tmn505@gmail.com>

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 | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Comments

Sander Vanheule Jan. 7, 2024, 12:38 p.m. UTC | #1
Hi Tomasz,

On Thu, 2023-12-21 at 22:15 +0100, Tomasz Maciej Nowak wrote:
> From: Tomasz Maciej Nowak <tmn505@gmail.com>
> 
> 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>

Applied to master.


Best,
Sander
diff mbox series

Patch

diff --git a/src/tplink-safeloader.c b/src/tplink-safeloader.c
index 695550f287c8..3dc470d93ec7 100644
--- a/src/tplink-safeloader.c
+++ b/src/tplink-safeloader.c
@@ -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",