GfA-buildroot-add-5-7-and-7inch-glass.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. diff --git a/UpdateDTS.sh.in b/UpdateDTS.sh.in
  2. index e123282..3a5cb18 100644
  3. --- a/UpdateDTS.sh.in
  4. +++ b/UpdateDTS.sh.in
  5. @@ -76,11 +76,17 @@ if [ "$BASEBOARD" == "DISPLAY002_DI4" ]; then
  6. sh /root/Display2To_7inch.sh
  7. DONE=1
  8. else
  9. +if [ "$BASEBOARD" == "DISPLAY002_RS485" ]; then
  10. + echo "7 Inch Display 2 rs485"
  11. + sh /root/Display2To_7inch_rs485.sh
  12. + DONE=1
  13. +else
  14. echo "7 Inch"
  15. sh /root/DisplayTo_7inch.sh
  16. DONE=1
  17. fi
  18. fi
  19. +fi
  20. if [ "$XRES" == "1280" -a "$YRES" == "800" ]; then
  21. if [ "$BASEBOARD" == "DISPLAY002_DI4" ]; then
  22. diff --git a/UpdateRootfs.sh.in b/UpdateRootfs.sh.in
  23. index 76a75fb..eeec914 100644
  24. --- a/UpdateRootfs.sh.in
  25. +++ b/UpdateRootfs.sh.in
  26. @@ -150,11 +150,29 @@ if [ "$BASEBOARD" == "DISPLAY002_DI4" ]; then
  27. sh /root/Display2To_7inch.sh
  28. DONE=1
  29. else
  30. +if [ "$BASEBOARD" == "DISPLAY002_RS485" ]; then
  31. + echo "7 Inch Display 2 rs485"
  32. + sh /root/Display2To_7inch_rs485.sh
  33. + DONE=1
  34. +else
  35. echo "7 Inch"
  36. sh /root/DisplayTo_7inch.sh
  37. DONE=1
  38. fi
  39. fi
  40. +fi
  41. +
  42. +if [ "$XRES" == "640" -a "$YRES" == "480" ]; then
  43. +if [ "$BASEBOARD" == "DISPLAY002_DI4" ]; then
  44. + echo "5.7 Inch Display 2"
  45. + sh /root/Display2To_5_7inch.sh
  46. + DONE=1
  47. +else
  48. + echo "5.7 Inch"
  49. + sh /root/DisplayTo_5_7inch.sh
  50. + DONE=1
  51. +fi
  52. +fi
  53. if [ "$XRES" == "1280" -a "$YRES" == "800" ]; then
  54. if [ "$BASEBOARD" == "DISPLAY002_DI4" ]; then
  55. @@ -170,11 +188,11 @@ fi
  56. if [ "$XRES" == "1920" -a "$YRES" == "1080" ]; then
  57. if [ "$BASEBOARD" == "DISPLAY002_DI4" ]; then
  58. - echo "10 Inch Display 2"
  59. + echo "15 Inch Display 2"
  60. sh /root/Display2To_15inch.sh
  61. DONE=1
  62. else
  63. - echo "10 Inch"
  64. + echo "15 Inch"
  65. sh /root/DisplayTo_15inch.sh
  66. DONE=1
  67. fi