From: Radek Dostál Date: Mon, 22 Oct 2018 20:34:17 +0000 (+0200) Subject: ar71xx: switch TP-Link RE450 v1 to dynamic partitioning X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=9d35b6877687f0ac903bdcec806210cfd2f51488;p=openwrt%2Fstaging%2Fdedeckeh.git ar71xx: switch TP-Link RE450 v1 to dynamic partitioning As mentioned in commit 5f24933 recent changes on ar71xx (switch to 4.14, memory compaction, ...) cause an increase in kernel size, making it too big for RE450. RE450 images were not build due to the following error message: os-image partition too big (more than 1572864 bytes): Success Tested on RE450, device boots and was used to send this patch. Reported-by: Enrico Mioso Suggested-by: David Bauer Signed-off-by: Radek Dostál [rewrote commit msg keeping it tight + fixed SoB lines] Signed-off-by: Koen Vandeputte --- diff --git a/target/linux/ar71xx/image/generic-tp-link.mk b/target/linux/ar71xx/image/generic-tp-link.mk index 39d3ab08fe..5036e85a01 100644 --- a/target/linux/ar71xx/image/generic-tp-link.mk +++ b/target/linux/ar71xx/image/generic-tp-link.mk @@ -254,6 +254,8 @@ define Device/re450-v1 DEVICE_PROFILE := RE450 TPLINK_HWID := 0x0 TPLINK_HWREV := 0 + KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header -O + KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | tplink-v1-header endef TARGET_DEVICES += re450-v1 diff --git a/tools/firmware-utils/src/tplink-safeloader.c b/tools/firmware-utils/src/tplink-safeloader.c index 78092bc535..7f8a5d22ad 100644 --- a/tools/firmware-utils/src/tplink-safeloader.c +++ b/tools/firmware-utils/src/tplink-safeloader.c @@ -1103,15 +1103,10 @@ static struct device_info boards[] = { .support_trail = '\x00', .soft_ver = NULL, - /** - The flash partition table for RE450; - 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},