Advertisement
Guest User

Untitled

a guest
Aug 12th, 2018
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 4.17 KB | None | 0 0
  1. diff --git a/target/linux/mvebu/base-files/etc/board.d/02_network b/target/linux/mvebu/base-files/etc/board.d/02_network
  2. index 66d35dda70..04f91bc349 100755
  3. --- a/target/linux/mvebu/base-files/etc/board.d/02_network
  4. +++ b/target/linux/mvebu/base-files/etc/board.d/02_network
  5. @@ -25,8 +25,9 @@ armada-xp-linksys-mamba)
  6.                 "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5@eth0" "4:wan" "6@eth1"
  7.         ;;
  8.  armada-385-turris-omnia)
  9. -       ucidef_set_interface_lan "lan0 lan1 lan2 lan3 lan4"
  10.         ucidef_set_interface_wan "eth2"
  11. +       ucidef_add_switch "switch0" \
  12. +                "0:lan:0" "1:lan:1" "2:lan:2" "3:lan:3" "4:lan:4" "5@eth1" "6@eth0"
  13.         ;;
  14.  armada-388-clearfog-*)
  15.         # eth0 is standalone ethernet
  16. diff --git a/target/linux/mvebu/image/cortex-a9.mk b/target/linux/mvebu/image/cortex-a9.mk
  17. index 6bc6269da6..6eba1632ef 100644
  18. --- a/target/linux/mvebu/image/cortex-a9.mk
  19. +++ b/target/linux/mvebu/image/cortex-a9.mk
  20. @@ -162,7 +162,7 @@ define Device/turris-omnia
  21.    DEVICE_TITLE := Turris Omnia
  22.    DEVICE_PACKAGES :=  \
  23.      mkf2fs e2fsprogs kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 \
  24. -    wpad-mini kmod-ath9k kmod-ath10k ath10k-firmware-qca988x
  25. +    wpad-mini kmod-ath9k kmod-ath10k ath10k-firmware-qca988x swconfig
  26.    IMAGES := $$(IMAGE_PREFIX)-sysupgrade.img.gz omnia-medkit-$$(IMAGE_PREFIX)-initramfs.tar.gz
  27.    IMAGE/$$(IMAGE_PREFIX)-sysupgrade.img.gz := boot-img | sdcard-img | gzip | append-metadata
  28.    IMAGE/omnia-medkit-$$(IMAGE_PREFIX)-initramfs.tar.gz := omnia-medkit-initramfs | gzip
  29. diff --git a/target/linux/mvebu/patches-4.14/003-add_switch_nodes.patch b/target/linux/mvebu/patches-4.14/003-add_switch_nodes.patch
  30. index 5d43d9f0f8..2f36d8c127 100644
  31. --- a/target/linux/mvebu/patches-4.14/003-add_switch_nodes.patch
  32. +++ b/target/linux/mvebu/patches-4.14/003-add_switch_nodes.patch
  33. @@ -38,3 +38,23 @@
  34.   };
  35.  
  36.   &ahci0 {
  37. +--- a/arch/arm/boot/dts/armada-385-turris-omnia.dts
  38. ++++ b/arch/arm/boot/dts/armada-385-turris-omnia.dts
  39. +@@ -82,6 +82,17 @@
  40. +                       };
  41. +               };
  42. +       };
  43. ++
  44. ++      mvsw61xx {
  45. ++              compatible = "marvell,88e6176";
  46. ++              status = "okay";
  47. ++              reg = <0x10>;
  48. ++              is-indirect;
  49. ++
  50. ++              mii-bus = <&mdio>;
  51. ++              cpu-port-0 = <6>;
  52. ++              cpu-port-1 = <5>;
  53. ++      };
  54. + };
  55. +
  56. + /* Connected to 88E6176 switch, port 6 */
  57. diff --git a/target/linux/mvebu/patches-4.14/220-disable-untested-dsa-boards.patch b/target/linux/mvebu/patches-4.14/220-disable-untested-dsa-boards.patch
  58. index 5df94bdfad..eeb17bdbd0 100644
  59. --- a/target/linux/mvebu/patches-4.14/220-disable-untested-dsa-boards.patch
  60. +++ b/target/linux/mvebu/patches-4.14/220-disable-untested-dsa-boards.patch
  61. @@ -28,3 +28,13 @@
  62.                 compatible = "marvell,mv88e6085";
  63.                 #address-cells = <1>;
  64.                 #size-cells = <0>;
  65. +--- a/arch/arm/boot/dts/armada-385-turris-omnia.dts
  66. ++++ b/arch/arm/boot/dts/armada-385-turris-omnia.dts
  67. +@@ -253,6 +253,7 @@
  68. +
  69. +       /* Switch MV88E6176 at address 0x10 */
  70. +       switch@10 {
  71. ++              status = "disabled";
  72. +               compatible = "marvell,mv88e6085";
  73. +               #address-cells = <1>;
  74. +               #size-cells = <0>;
  75. diff --git a/target/linux/mvebu/patches-4.14/225-ARM-dts-armada-385-turris-omnia-phy-mode-rgmii-id.patch b/target/linux/mvebu/patches-4.14/225-ARM-dts-armada-385-turris-omnia-phy-mode-rgmii-id.patch
  76. new file mode 100644
  77. index 0000000000..4ef2ec3ba1
  78. --- /dev/null
  79. +++ b/target/linux/mvebu/patches-4.14/225-ARM-dts-armada-385-turris-omnia-phy-mode-rgmii-id.patch
  80. @@ -0,0 +1,20 @@
  81. +--- a/arch/arm/boot/dts/armada-385-turris-omnia.dts
  82. ++++ b/arch/arm/boot/dts/armada-385-turris-omnia.dts
  83. +@@ -100,7 +100,7 @@
  84. +       pinctrl-names = "default";
  85. +       pinctrl-0 = <&ge0_rgmii_pins>;
  86. +       status = "okay";
  87. +-      phy-mode = "rgmii";
  88. ++      phy-mode = "rgmii-id";
  89. +
  90. +       fixed-link {
  91. +               speed = <1000>;
  92. +@@ -113,7 +113,7 @@
  93. +       pinctrl-names = "default";
  94. +       pinctrl-0 = <&ge1_rgmii_pins>;
  95. +       status = "okay";
  96. +-      phy-mode = "rgmii";
  97. ++      phy-mode = "rgmii-id";
  98. +
  99. +       fixed-link {
  100. +               speed = <1000>;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement