Skip to content
Permalink
Browse files

mediatek: bump to v4.14

This drops support for all the !emmc EVB and adds banannaPi-R2
Also drop mtkhnat until the nftables offoad driver is ready

Signed-off-by: John Crispin <john@phrozen.org>
  • Loading branch information...
blogic committed Jan 8, 2018
1 parent 04d3308 commit 7762c07c88980cff85ec20c12f18cd172260e9d9
Showing with 1,482 additions and 19,755 deletions.
  1. +1 −1 target/linux/mediatek/Makefile
  2. +2 −4 target/linux/mediatek/base-files/etc/board.d/02_network
  3. +0 −60 target/linux/mediatek/base-files/etc/config/mtkhnat
  4. +0 −13 target/linux/mediatek/base-files/etc/init.d/mtkhnat
  5. +0 −9 target/linux/mediatek/base-files/etc/uci-defaults/99-firewall
  6. +1 −15 target/linux/mediatek/base-files/lib/upgrade/platform.sh
  7. +0 −64 target/linux/mediatek/base-files/sbin/mtkhnat
  8. +496 −0 target/linux/mediatek/config-4.14
  9. +0 −804 target/linux/mediatek/files/arch/arm/boot/dts/_mt7623.dtsi
  10. +0 −241 target/linux/mediatek/files/arch/arm/boot/dts/mt6323.dtsi
  11. +0 −523 target/linux/mediatek/files/arch/arm/boot/dts/mt7623-NAND-ePHY.dts
  12. +0 −553 target/linux/mediatek/files/arch/arm/boot/dts/mt7623-NAND.dts
  13. +0 −547 target/linux/mediatek/files/arch/arm/boot/dts/mt7623-eMMC.dts
  14. +0 −50 target/linux/mediatek/files/arch/arm/boot/dts/mt7623-evb.dts
  15. +0 −443 target/linux/mediatek/files/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
  16. +0 −168 target/linux/mediatek/files/drivers/char/hw_random/mtk-rng.c
  17. +0 −2 target/linux/mediatek/files/drivers/crypto/mediatek/Makefile
  18. +0 −1,304 target/linux/mediatek/files/drivers/crypto/mediatek/mtk-aes.c
  19. +0 −607 target/linux/mediatek/files/drivers/crypto/mediatek/mtk-platform.c
  20. +0 −237 target/linux/mediatek/files/drivers/crypto/mediatek/mtk-platform.h
  21. +0 −194 target/linux/mediatek/files/drivers/crypto/mediatek/mtk-regs.h
  22. +0 −1,358 target/linux/mediatek/files/drivers/crypto/mediatek/mtk-sha.c
  23. +3 −16 target/linux/mediatek/image/32.mk
  24. +0 −14 target/linux/mediatek/modules.mk
  25. +7 −14 target/linux/mediatek/{patches-4.9 → patches-4.14}/0006-reset-mediatek-mt2701-reset-driver.patch
  26. 0 target/linux/mediatek/{patches-4.9 → patches-4.14}/0012-clk-dont-disable-unused-clocks.patch
  27. +10 −9 target/linux/mediatek/{patches-4.9 → patches-4.14}/0027-net-next-mediatek-fix-DQL-support.patch
  28. +5 −15 ...atek/{patches-4.9 → patches-4.14}/0032-net-dsa-mediatek-add-support-for-GMAC2-wired-to-ext-.patch
  29. +278 −0 target/linux/mediatek/patches-4.14/0033-dsa-multi-cpu.patch
  30. 0 ...et/linux/mediatek/{patches-4.9 → patches-4.14}/0035-net-mediatek-disable-RX-VLan-offloading.patch
  31. 0 ...atek/{patches-4.9 → patches-4.14}/0042-net-next-mediatek-honour-special-tag-bit-inside-RX-D.patch
  32. 0 ...atek/{patches-4.9 → patches-4.14}/0043-net-next-mediatek-enable-special-tag-indication-for-.patch
  33. 0 ...atek/{patches-4.9 → patches-4.14}/0044-net-next-dsa-mediatek-tell-GDMA-when-we-are-turning-.patch
  34. +11 −9 ...linux/mediatek/{patches-4.9 → patches-4.14}/0045-net-dsa-mediatek-turn-into-platform-driver.patch
  35. +23 −0 target/linux/mediatek/patches-4.14/0046-net-mediatek-add-irq-delay.patch
  36. 0 target/linux/mediatek/{patches-4.9 → patches-4.14}/0048-net-core-add-RPS-balancer.patch
  37. 0 target/linux/mediatek/{patches-4.9 → patches-4.14}/0051-net-mediatek-increase-tx_timeout.patch
  38. 0 target/linux/mediatek/{patches-4.9 → patches-4.14}/0052-net-phy-add-FC.patch
  39. 0 target/linux/mediatek/{patches-4.9 → patches-4.14}/0062-mdio-atomic.patch
  40. +48 −0 target/linux/mediatek/patches-4.14/0063-atomic-sleep.patch
  41. +597 −0 target/linux/mediatek/patches-4.14/0064-dts.patch
  42. +0 −23 target/linux/mediatek/patches-4.9/0001-arch-arm-add-dts-build-code.patch
  43. +0 −154 target/linux/mediatek/patches-4.9/0002-dt-bindings-add-MediaTek-PCIe-binding-documentation.patch
  44. +0 −698 target/linux/mediatek/patches-4.9/0003-PCI-mediatek-add-support-for-PCIe-found-on-MT7623-MT.patch
  45. +0 −75 target/linux/mediatek/patches-4.9/0004-soc-mediatek-Add-MT2701-power-dt-bindings.patch
  46. +0 −1,431 target/linux/mediatek/patches-4.9/0005-clk-mediatek-Add-MT2701-clock-support.patch
  47. +0 −29 target/linux/mediatek/patches-4.9/0007-ARM-mediatek-Add-MT2701-config-options-for-mediatek-.patch
  48. +0 −487 target/linux/mediatek/patches-4.9/0008-soc-mediatek-Refine-scpsys-to-support-multiple-platf.patch
  49. +0 −194 target/linux/mediatek/patches-4.9/0009-soc-mediatek-Add-MT2701-scpsys-driver.patch
  50. +0 −30 target/linux/mediatek/patches-4.9/0010-clk-add-hifsys-reset.patch
  51. +0 −20 target/linux/mediatek/patches-4.9/0011-scpsys-various-fixes.patch
  52. +0 −69 target/linux/mediatek/patches-4.9/0013-clk-mediatek-enable-critical-clocks.patch
  53. +0 −287 target/linux/mediatek/patches-4.9/0014-clk-mediatek-Export-CPU-mux-clocks-for-CPU-frequency.patch
  54. +0 −433 target/linux/mediatek/patches-4.9/0015-cpufreq-mediatek-add-driver.patch
  55. +0 −274 target/linux/mediatek/patches-4.9/0016-pwm-add-pwm-mediatek.patch
  56. +0 −27 target/linux/mediatek/patches-4.9/0017-mfd-mt6397-Add-MT6323-LED-support-into-MT6397-driver.patch
  57. +0 −78 target/linux/mediatek/patches-4.9/0018-dt-bindings-leds-Add-document-bindings-for-leds-mt63.patch
  58. +0 −24 target/linux/mediatek/patches-4.9/0019-dt-bindings-mfd-Add-the-description-for-LED-as-the-s.patch
  59. +0 −539 target/linux/mediatek/patches-4.9/0020-leds-Add-LED-support-for-MT6323-PMIC.patch
  60. +0 −27 target/linux/mediatek/patches-4.9/0021-mfd-mt6397-Align-the-placement-at-which-the-mfd_cell.patch
  61. +0 −32 target/linux/mediatek/patches-4.9/0022-nand-make-bootrom-work-with-upstream-driver.patch
  62. +0 −81 target/linux/mediatek/patches-4.9/0023-rng-add-mediatek-hw-rng.patch
  63. +0 −1,034 target/linux/mediatek/patches-4.9/0024-media-rc-add-driver-for-IR-remote-receiver-on-MT7623.patch
  64. +0 −110 target/linux/mediatek/patches-4.9/0025-dt-bindings-net-dsa-add-Mediatek-MT7530-binding.patch
  65. +0 −1,788 target/linux/mediatek/patches-4.9/0026-net-mediatek-backport-v4.10-driver.patch
  66. +0 −192 target/linux/mediatek/patches-4.9/0028-net-next-dsa-add-Mediatek-tag-RX-TX-handler.patch
  67. +0 −48 target/linux/mediatek/patches-4.9/0029-net-next-ethernet-mediatek-add-CDM-able-to-recognize.patch
  68. +0 −1,584 target/linux/mediatek/patches-4.9/0030-net-next-dsa-add-dsa-support-for-Mediatek-MT7530-swi.patch
  69. +0 −106 target/linux/mediatek/patches-4.9/0031-net-dsa-dsa-api-compat.patch
  70. +0 −272 target/linux/mediatek/patches-4.9/0033-net-dsa-add-multi-gmac-support.patch
  71. +0 −91 target/linux/mediatek/patches-4.9/0034-net-dsa-mediatek-add-dual-gmac-support.patch
  72. +0 −25 target/linux/mediatek/patches-4.9/0036-net-next-mediatek-fix-typos-inside-the-header-file.patch
  73. +0 −128 target/linux/mediatek/patches-4.9/0037-net-next-mediatek-bring-up-QDMA-RX-ring-0.patch
  74. +0 −46 target/linux/mediatek/patches-4.9/0038-net-next-dsa-move-struct-dsa_device_ops-to-the-globa.patch
  75. +0 −32 target/linux/mediatek/patches-4.9/0039-net-next-dsa-add-flow_dissect-callback-to-struct-dsa.patch
  76. +0 −39 target/linux/mediatek/patches-4.9/0040-net-next-tag_mtk-add-flow_dissect-callback-to-the-op.patch
  77. +0 −65 target/linux/mediatek/patches-4.9/0041-net-next-dsa-fix-flow-dissection.patch
  78. +0 −56 target/linux/mediatek/patches-4.9/0046-net-mediatek-add-irq-delay.patch
  79. +0 −208 target/linux/mediatek/patches-4.9/0047-net-next-mediatek-split-IRQ-register-locking-into-TX.patch
  80. +0 −20 target/linux/mediatek/patches-4.9/0049-net-mediatek-add-rx-queue.patch
  81. +0 −21 target/linux/mediatek/patches-4.9/0050-net-mediatek-add-trgmii-clock.patch
  82. +0 −68 target/linux/mediatek/patches-4.9/0053-net-dsa-mediatek-add-software-phy-polling.patch
  83. +0 −105 target/linux/mediatek/patches-4.9/0054-net-ethernet-mediatek-fixed-deadlock-captured-by-loc.patch
  84. +0 −31 target/linux/mediatek/patches-4.9/0055-net-ethernet-mediatek-avoid-potential-invalid-memory.patch
  85. +0 −119 target/linux/mediatek/patches-4.9/0056-net-mediatek-add-hw-nat-support.patch
  86. +0 −121 target/linux/mediatek/patches-4.9/0057-net-mediatek-add-HW-QoS-support.patch
  87. +0 −470 target/linux/mediatek/patches-4.9/0058-pinctrl-update.patch
  88. +0 −511 target/linux/mediatek/patches-4.9/0059-eth-fixes.patch
  89. +0 −69 target/linux/mediatek/patches-4.9/0060-eth-debug.patch
  90. +0 −72 target/linux/mediatek/patches-4.9/0061-eth-up_down_lock.patch
  91. +0 −38 target/linux/mediatek/patches-4.9/0063-atomic-sleep.patch
@@ -9,7 +9,7 @@ SUBTARGETS:=32
FEATURES:=squashfs nand ubifs
MAINTAINER:=John Crispin <john@phrozen.org>

KERNEL_PATCHVER:=4.9
KERNEL_PATCHVER:=4.14

KERNELNAME:=Image dtbs zImage

@@ -9,13 +9,11 @@ mediatek_setup_interfaces()
local board="$1"

case $board in
'bananapi,bpi-r2' | \
'mediatek,mt7623-rfb-emmc' | \
'mediatek,mt7623-rfb-nand-ephy')
'mediatek,mt7623a-rfb-emmc')
ucidef_set_interface_lan "lan0 lan1 lan2 lan3"
ucidef_set_interface_wan eth1
;;
'mediatek,mt7623-rfb-nand')
'bananapi,bpi-r2')
ucidef_set_interface_lan "lan0 lan1 lan2 lan3"
ucidef_set_interface_wan wan
;;

This file was deleted.

This file was deleted.

This file was deleted.

@@ -20,13 +20,8 @@ platform_check_image() {
local board=$(board_name)

case "$board" in
mediatek,mt7623-rfb-nand-ephy |\
mediatek,mt7623-rfb-nand)
nand_do_platform_check $board $1
return $?
;;
bananapi,bpi-r2 |\
mediatek,mt7623-rfb-emmc)
mediatek,mt7623a-rfb-emmc)
local kernel_length=`(tar xf $tar_file sysupgrade-$board/kernel -O | wc -c) 2> /dev/null`
local rootfs_length=`(tar xf $tar_file sysupgrade-$board/root -O | wc -c) 2> /dev/null`
;;
@@ -44,12 +39,3 @@ platform_check_image() {

return 0
}

platform_pre_upgrade() {
case "$(board_name)" in
mediatek,mt7623-rfb-nand-ephy |\
mediatek,mt7623-rfb-nand)
nand_do_upgrade $1
;;
esac
}

This file was deleted.

1 comment on commit 7762c07

@frank-w

This comment has been minimized.

Copy link

commented on 7762c07 Feb 27, 2018

Hi,
thanks for porting second gmac-driver

I used this patches in 4.14 native kernel, compiles fine, eth0 and eth1 are visible on bananapi R2, but i can't get traffic on lan0 (eth0 = cpu_port0). mapped lan0 to cpu-port1 (like wan), traffic is possible, so the problem seems to be on cpu-port0. maybe cpu sends/receive untagged frames from/to mt7530 switch for eth0/cpu_port0

can you please check this and give me a note?

Made some tests here: http://forum.banana-pi.org/t/adding-second-gmac-to-4-14/4709/17 maybe it helps you fix the problem. Sorry for posting here, but issues seem disabled in this repo

regards Frank

Please sign in to comment.
You can’t perform that action at this time.