0041-ar71xx-firmware-utils-split-ubdev01-flash-layout-from-XM.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Thu, 25 Feb 2016 21:40:19 +0100
  3. Subject: ar71xx, firmware-utils: split ubdev01 flash layout from XM
  4. The ubdev01 profile defines its own MTDPARTS with smaller firmware
  5. partition, so give it its own UBNT_BOARD in mkfwimage.
  6. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
  7. diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
  8. index dd224d4..4aaa115 100644
  9. --- a/target/linux/ar71xx/image/Makefile
  10. +++ b/target/linux/ar71xx/image/Makefile
  11. @@ -2031,7 +2031,7 @@ $(eval $(call SingleProfile,TPLINK-SAFELOADER,64kraw,CPE510,cpe210-220-510-520,C
  12. $(eval $(call SingleProfile,UAPPRO,64k,UAPPRO,ubnt-uap-pro,UAP-PRO,ttyS0,115200,BZ,BZ,ar934x))
  13. $(eval $(call SingleProfile,UAPPRO,64k,UBNTUNIFIOUTDOORPLUS,ubnt-unifi-outdoor-plus,UBNT-UOP,ttyS0,115200,BZ,BZ,ar7240))
  14. -$(eval $(call SingleProfile,UBDEV,64kraw,UBDEV01,ubdev01,UBNT-UF,ttyS0,115200,XM,XM,ar7240))
  15. +$(eval $(call SingleProfile,UBDEV,64kraw,UBDEV01,ubdev01,UBNT-UF,ttyS0,115200,UBDEV01,XM,ar7240))
  16. $(eval $(call SingleProfile,UBNT,64k,UBNTRS,ubnt-rs,UBNT-RS,ttyS0,115200,RS,RSx,ar7100))
  17. $(eval $(call SingleProfile,UBNT,64k,UBNTRSPRO,ubnt-rspro,UBNT-RSPRO,ttyS0,115200,RSPRO,RSPRO,ar7100pro))
  18. diff --git a/tools/firmware-utils/src/mkfwimage.c b/tools/firmware-utils/src/mkfwimage.c
  19. index 00bf439..5dae284 100644
  20. --- a/tools/firmware-utils/src/mkfwimage.c
  21. +++ b/tools/firmware-utils/src/mkfwimage.c
  22. @@ -81,6 +81,12 @@ fw_layout_t fw_layout_data[] = {
  23. .kern_entry = 0x80002000,
  24. .firmware_max_length= 0x006A0000,
  25. },
  26. + {
  27. + .name = "UBDEV01",
  28. + .kern_start = 0x9f050000,
  29. + .kern_entry = 0x80002000,
  30. + .firmware_max_length= 0x006A0000,
  31. + },
  32. { .name = "",
  33. },
  34. };