This looks like a one on one copy from the RE200 v3 commit you referenced. This list should only include known special IDs. It can then be expanded as needed. What's the one your device has?
@amteza I had to update the safeloader patch to use the conventions master uses. You can find it below. However, we shouldn't be including a list of special IDs we do not know actually exist in the wild. This is a full copy paste from the RE200 v3 and it should not be merged as is.
diff --git a/src/tplink-safeloader.c b/src/tplink-safeloader.c
index 7f9081d..51e3938 100644
--- a/src/tplink-safeloader.c
+++ b/src/tplink-safeloader.c
@@ -2463,6 +2463,50 @@ static struct device_info boards[] = {
.last_sysupgrade_partition = "file-system"
},
+/** Firmware layout for the RE220 v1 */
+ {
+ .id = "RE220-V1",
+ .vendor = "",
+ .support_list =
+ "SupportList:\n"
+ "{product_name:RE220,product_ver:1.0.0,special_id:00000000}\n"
+ "{product_name:RE220,product_ver:1.0.0,special_id:41520000}\n"
+ "{product_name:RE220,product_ver:1.0.0,special_id:41550000}\n"
+ "{product_name:RE220,product_ver:1.0.0,special_id:42520000}\n"
+ "{product_name:RE220,product_ver:1.0.0,special_id:43410000}\n"
+ "{product_name:RE220,product_ver:1.0.0,special_id:45470000}\n"
+ "{product_name:RE220,product_ver:1.0.0,special_id:45530000}\n"
+ "{product_name:RE220,product_ver:1.0.0,special_id:45550000}\n"
+ "{product_name:RE220,product_ver:1.0.0,special_id:49440000}\n"
+ "{product_name:RE220,product_ver:1.0.0,special_id:4A500000}\n"
+ "{product_name:RE220,product_ver:1.0.0,special_id:4B520000}\n"
+ "{product_name:RE220,product_ver:1.0.0,special_id:52550000}\n"
+ "{product_name:RE220,product_ver:1.0.0,special_id:54570000}\n"
+ "{product_name:RE220,product_ver:1.0.0,special_id:55530000}\n",
+ .part_trail = '\x00',
+ .soft_ver = SOFT_VER_DEFAULT,
+
+ .partitions = {
+ {"fs-uboot", 0x00000, 0x20000},
+ {"firmware", 0x20000, 0x7a0000},
+ {"partition-table", 0x7c0000, 0x02000},
+ {"default-mac", 0x7c2000, 0x00020},
+ {"pin", 0x7c2100, 0x00020},
+ {"product-info", 0x7c3100, 0x01000},
+ {"soft-version", 0x7c4200, 0x01000},
+ {"support-list", 0x7c5200, 0x01000},
+ {"profile", 0x7c6200, 0x08000},
+ {"config-info", 0x7ce200, 0x00400},
+ {"user-config", 0x7d0000, 0x10000},
+ {"default-config", 0x7e0000, 0x10000},
+ {"radio", 0x7f0000, 0x10000},
+ {NULL, 0, 0}
+ },
+
+ .first_sysupgrade_partition = "os-image",
+ .last_sysupgrade_partition = "file-system"
+ },
+