aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKoen Vandeputte <koen.vandeputte@ncentric.com>2018-10-24 14:49:07 +0200
committerKoen Vandeputte <koen.vandeputte@ncentric.com>2018-10-29 11:21:23 +0100
commit7c78be1b747eb0c8d64da67deb3a8aec75bd7b9c (patch)
tree580df2e983b909abc3ad587b05dc18e86c30bf4d /tools
parent9d35b6877687f0ac903bdcec806210cfd2f51488 (diff)
downloadupstream-7c78be1b747eb0c8d64da67deb3a8aec75bd7b9c.tar.gz
upstream-7c78be1b747eb0c8d64da67deb3a8aec75bd7b9c.tar.bz2
upstream-7c78be1b747eb0c8d64da67deb3a8aec75bd7b9c.zip
ar71xx: switch more targets to dynamic partitioning
Targets: - TP-LINK ER355 - TP-LINK C25 V1 - TP-LINK C59 V1 - TP-LINK C7 V4 - TP-LINK C7 V5 Fixes build issues seen due to the kernel being too big Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/firmware-utils/src/tplink-safeloader.c43
1 files changed, 13 insertions, 30 deletions
diff --git a/tools/firmware-utils/src/tplink-safeloader.c b/tools/firmware-utils/src/tplink-safeloader.c
index 7f8a5d22ad..0ff00e463c 100644
--- a/tools/firmware-utils/src/tplink-safeloader.c
+++ b/tools/firmware-utils/src/tplink-safeloader.c
@@ -368,16 +368,12 @@ static struct device_info boards[] = {
.support_trail = '\x00',
.soft_ver = "soft_ver:1.0.0\n",
- /**
- We use a bigger os-image partition than the stock images (and thus
- smaller file-system), as our kernel doesn't fit in the stock firmware's
- 1MB os-image.
- */
+ /* We're using a dynamic kernel/rootfs split here */
.partitions = {
{"factory-boot", 0x00000, 0x20000},
{"fs-uboot", 0x20000, 0x10000},
- {"os-image", 0x30000, 0x180000}, /* Stock: base 0x30000 size 0x100000 */
- {"file-system", 0x1b0000, 0x620000}, /* Stock: base 0x130000 size 0x6a0000 */
+ {"firmware", 0x30000, 0x7a0000}, /* Stock: name os-image base 0x30000 size 0x100000 */
+ /* Stock: name file-system base 0x130000 size 0x6a0000 */
{"user-config", 0x7d0000, 0x04000},
{"default-mac", 0x7e0000, 0x00100},
{"device-id", 0x7e0100, 0x00100},
@@ -447,14 +443,14 @@ static struct device_info boards[] = {
.support_trail = '\x00',
.soft_ver = "soft_ver:1.0.0\n",
+ /* We're using a dynamic kernel/rootfs split here */
.partitions = {
{"fs-uboot", 0x00000, 0x10000},
{"default-mac", 0x10000, 0x00200},
{"pin", 0x10200, 0x00200},
{"device-id", 0x10400, 0x00100},
{"product-info", 0x10500, 0x0fb00},
- {"os-image", 0x20000, 0x180000},
- {"file-system", 0x1a0000, 0xcb0000},
+ {"firmware", 0x20000, 0xe30000},
{"partition-table", 0xe50000, 0x10000},
{"soft-version", 0xe60000, 0x10000},
{"support-list", 0xe70000, 0x10000},
@@ -638,16 +634,12 @@ static struct device_info boards[] = {
.support_trail = '\x00',
.soft_ver = "soft_ver:1.0.0\n",
- /**
- We use a bigger os-image partition than the stock images (and thus
- smaller file-system), as our kernel doesn't fit in the stock firmware's
- 1MB os-image.
- */
+ /* We're using a dynamic kernel/rootfs split here */
.partitions = {
{"factory-boot", 0x00000, 0x20000},
{"fs-uboot", 0x20000, 0x20000},
- {"os-image", 0x40000, 0x180000}, /* Stock: base 0x40000 size 0x120000 */
- {"file-system", 0x1c0000, 0xd40000}, /* Stock: base 0x160000 size 0xda0000 */
+ {"firmware", 0x40000, 0xEC0000}, /* Stock: name os-image base 0x40000 size 0x120000 */
+ /* Stock: name file-system base 0x160000 size 0xda0000 */
{"default-mac", 0xf00000, 0x00200},
{"pin", 0xf00200, 0x00200},
{"device-id", 0xf00400, 0x00100},
@@ -681,11 +673,7 @@ static struct device_info boards[] = {
.support_trail = '\x00',
.soft_ver = "soft_ver:1.0.0\n",
- /**
- We use a bigger os-image partition than the stock images (and thus
- smaller file-system), as our kernel doesn't fit in the stock firmware's
- 1MB os-image.
- */
+ /* We're using a dynamic kernel/rootfs split here */
.partitions = {
{"factory-boot", 0x00000, 0x20000},
{"fs-uboot", 0x20000, 0x20000},
@@ -702,8 +690,8 @@ static struct device_info boards[] = {
{"user-config", 0x80000, 0x40000},
- {"os-image", 0xc0000, 0x180000}, /* Stock: base 0xc0000 size 0x120000 */
- {"file-system", 0x240000, 0xd80000}, /* Stock: base 0x1e0000 size 0xde0000 */
+ {"firmware", 0xc0000, 0xf00000}, /* Stock: name os-image base 0xc0000 size 0x120000 */
+ /* Stock: name file-system base 0x1e0000 size 0xde0000 */
{"log", 0xfc0000, 0x20000},
{"certificate", 0xfe0000, 0x10000},
@@ -1060,15 +1048,10 @@ static struct device_info boards[] = {
.support_trail = '\x00',
.soft_ver = NULL,
- /**
- The flash partition table for RE355;
- it is almost the same as the one used by the stock images,
- 576KB were moved from file-system to os-image.
- */
+ /* We're using a dynamic kernel/rootfs split here */
.partitions = {
{"fs-uboot", 0x00000, 0x20000},
- {"os-image", 0x20000, 0x180000},
- {"file-system", 0x1a0000, 0x460000},
+ {"firmware", 0x20000, 0x5e0000},
{"partition-table", 0x600000, 0x02000},
{"default-mac", 0x610000, 0x00020},
{"pin", 0x610100, 0x00020},