0049-ar71xx-enable-sysupgrade-for-the-OpenMesh-MR1750.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. From: Sven Eckelmann <sven.eckelmann@open-mesh.com>
  2. Date: Mon, 14 Sep 2015 20:11:24 +0000
  3. Subject: ar71xx: enable sysupgrade for the OpenMesh MR1750
  4. Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
  5. Backport of r46929
  6. Forwarded: https://patchwork.ozlabs.org/patch/624176/
  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 547116e..9ca0f5b 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. + MR1750)
  16. + [ "$board" = "mr1750" ] && 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. MR600)
  21. [ "$board" = "mr600" ] && break
  22. [ "$board" = "mr600v2" ] && break
  23. @@ -157,7 +162,7 @@ platform_do_upgrade_openmesh()
  24. kernel_start_addr1=0x9f1c0000
  25. kernel_start_addr2=0x9f8c0000
  26. ;;
  27. - OM5P|MR600|MR900)
  28. + OM5P|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 0e9833d..ac060ea 100755
  34. --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  35. +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  36. @@ -296,6 +296,7 @@ platform_check_image() {
  37. return 0;
  38. ;;
  39. + mr1750 | \
  40. mr600 | \
  41. mr600v2 | \
  42. mr900 | \
  43. @@ -528,6 +529,7 @@ platform_do_upgrade() {
  44. tew-673gru)
  45. platform_do_upgrade_dir825b "$ARGV"
  46. ;;
  47. + mr1750 | \
  48. mr600 | \
  49. mr600v2 | \
  50. mr900 | \