[OpenWrt-Devel,v3,1/3] tools: mktplinkfw2: add split-uboot layout

Message ID 20181231152426.4887-1-mail@david-bauer.net
State New
Headers show
Series
  • [OpenWrt-Devel,v3,1/3] tools: mktplinkfw2: add split-uboot layout
Related show

Commit Message

David Bauer Dec. 31, 2018, 3:24 p.m.
This commit adds the split-uboot partition layout used by the
Archer C50 v4 to mktplinkfw2.

Signed-off-by: David Bauer <mail@david-bauer.net>
---
 tools/firmware-utils/src/mktplinkfw2.c | 6 ++++++
 1 file changed, 6 insertions(+)

Patch

diff --git a/tools/firmware-utils/src/mktplinkfw2.c b/tools/firmware-utils/src/mktplinkfw2.c
index dead49e7af..35db848bba 100644
--- a/tools/firmware-utils/src/mktplinkfw2.c
+++ b/tools/firmware-utils/src/mktplinkfw2.c
@@ -146,6 +146,12 @@  static struct flash_layout layouts[] = {
 		.kernel_la	= 0x80000000,
 		.kernel_ep	= 0x80000000,
 		.rootfs_ofs	= 0x140000,
+	}, {
+		.id		= "8MSUmtk", /* Split U-Boot OS */
+		.fw_max_len	= 0x770000,
+		.kernel_la	= 0x80000000,
+		.kernel_ep	= 0x80000000,
+		.rootfs_ofs	= 0x140000,
 	}, {
 		.id		= "8MLmtk",
 		.fw_max_len	= 0x7b0000,