0060-ar71xx-increase-kernel-partition-size-for-some-TP-Link-boards.patch 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. From: Henryk Heisig <hyniu@o2.pl>
  2. Date: Fri, 27 Oct 2017 00:23:17 +0200
  3. Subject: ar71xx: increase kernel partition size for some TP-Link boards
  4. This patch increases kernel partition size and re-enables image
  5. generation for below TP-Link boards:
  6. - archer-c58-v1
  7. - archer-c60-v1
  8. - tl-wr902ac-v1
  9. - tl-wr942n-v1
  10. Signed-off-by: Henryk Heisig <hyniu@o2.pl>
  11. [commit message and title reworded]
  12. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
  13. diff --git a/target/linux/ar71xx/image/tp-link.mk b/target/linux/ar71xx/image/tp-link.mk
  14. index ed45866fcbe8d35af663799a91b09b5c8fd613bc..be7e846c88f9ebbb8a4e4840e690d7864386bf64 100644
  15. --- a/target/linux/ar71xx/image/tp-link.mk
  16. +++ b/target/linux/ar71xx/image/tp-link.mk
  17. @@ -130,7 +130,7 @@ define Device/archer-c58-v1
  18. IMAGES := sysupgrade.bin factory.bin
  19. IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
  20. IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
  21. - MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,1344k(kernel),6592k(rootfs),64k(tplink)ro,64k(art)ro,7936k@0x20000(firmware)
  22. + MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,7936k(firmware),64k(tplink)ro,64k(art)ro
  23. endef
  24. TARGET_DEVICES += archer-c58-v1
  25. @@ -160,7 +160,7 @@ define Device/archer-c60-v1
  26. IMAGES := sysupgrade.bin factory.bin
  27. IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
  28. IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
  29. - MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,1344k(kernel),6592k(rootfs),64k(tplink)ro,64k(art)ro,7936k@0x20000(firmware)
  30. + MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,7936k(firmware),64k(tplink)ro,64k(art)ro
  31. endef
  32. TARGET_DEVICES += archer-c60-v1
  33. diff --git a/tools/firmware-utils/src/tplink-safeloader.c b/tools/firmware-utils/src/tplink-safeloader.c
  34. index 67e2c4475bbd468bd20915767a481711ae872a3a..11ff2e56e19ec3780f988baf7257810530165b23 100644
  35. --- a/tools/firmware-utils/src/tplink-safeloader.c
  36. +++ b/tools/firmware-utils/src/tplink-safeloader.c
  37. @@ -400,8 +400,8 @@ static struct device_info boards[] = {
  38. {"profile", 0x11700, 0x03900},
  39. {"default-config", 0x15000, 0x04000},
  40. {"user-config", 0x19000, 0x04000},
  41. - {"os-image", 0x20000, 0x150000},
  42. - {"file-system", 0x170000, 0x678000},
  43. + {"os-image", 0x20000, 0x180000},
  44. + {"file-system", 0x1a0000, 0x648000},
  45. {"certyficate", 0x7e8000, 0x08000},
  46. {"radio", 0x7f0000, 0x10000},
  47. {NULL, 0, 0}
  48. @@ -473,8 +473,8 @@ static struct device_info boards[] = {
  49. {"profile", 0x11700, 0x03900},
  50. {"default-config", 0x15000, 0x04000},
  51. {"user-config", 0x19000, 0x04000},
  52. - {"os-image", 0x20000, 0x150000},
  53. - {"file-system", 0x170000, 0x678000},
  54. + {"os-image", 0x20000, 0x180000},
  55. + {"file-system", 0x1a0000, 0x648000},
  56. {"certyficate", 0x7e8000, 0x08000},
  57. {"radio", 0x7f0000, 0x10000},
  58. {NULL, 0, 0}