0067-ar71xx-enable-sysupgrade-for-the-OpenMesh-OM5P-AC.patch 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. From: Sven Eckelmann <sven.eckelmann@open-mesh.com>
  2. Date: Sat, 9 Apr 2016 10:25:57 +0000
  3. Subject: ar71xx: enable sysupgrade for the OpenMesh OM5P-AC
  4. Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
  5. Backport of r49144
  6. Forwarded: https://patchwork.ozlabs.org/patch/624194/
  7. diff --git a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh
  8. index 9ca0f5b..1cfead9 100644
  9. --- a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh
  10. +++ b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh
  11. @@ -72,6 +72,11 @@ platform_check_image_openmesh()
  12. echo "Invalid image board target ($img_board_target) for this platform: $board. Use the correct image for this platform"
  13. return 1
  14. ;;
  15. + OM5PAC)
  16. + [ "$board" = "om5p-ac" ] && break
  17. + echo "Invalid image board target ($img_board_target) for this platform: $board. Use the correct image for this platform"
  18. + return 1
  19. + ;;
  20. MR1750)
  21. [ "$board" = "mr1750" ] && break
  22. echo "Invalid image board target ($img_board_target) for this platform: $board. Use the correct image for this platform"
  23. @@ -162,7 +167,7 @@ platform_do_upgrade_openmesh()
  24. kernel_start_addr1=0x9f1c0000
  25. kernel_start_addr2=0x9f8c0000
  26. ;;
  27. - OM5P|MR600|MR900|MR1750)
  28. + OM5P|OM5PAC|MR600|MR900|MR1750)
  29. block_size=$((64 * 1024))
  30. total_size=7995392
  31. kernel_start_addr1=0x9f0b0000
  32. diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  33. index ac060ea..67c0661 100755
  34. --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  35. +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  36. @@ -307,7 +307,8 @@ platform_check_image() {
  37. om2p-hsv2 | \
  38. om2p-lc | \
  39. om5p | \
  40. - om5p-an)
  41. + om5p-an | \
  42. + om5p-ac)
  43. platform_check_image_openmesh "$magic_long" "$1" && return 0
  44. return 1
  45. ;;
  46. @@ -540,7 +541,8 @@ platform_do_upgrade() {
  47. om2p-hsv2 | \
  48. om2p-lc | \
  49. om5p | \
  50. - om5p-an)
  51. + om5p-an | \
  52. + om5p-ac)
  53. platform_do_upgrade_openmesh "$ARGV"
  54. ;;
  55. unifi-outdoor-plus | \