Commit Graph

89 Commits

Author SHA1 Message Date
David Woodhouse
2ecc92d67b
target/mediatek: sync with upstream source 2020-07-27 19:47:01 +08:00
Adrian Schmutzler
a7be0052ce
mediatek: remove condition in Device/Default
The current condition with part of the variables set dependent on
the subtarget in Device/Default isn't really nice to read and also
defeats the purpose of having a default node.

This removes the special settings for mt7623 and moves them to the
individual devices, which is not much of a problem as there are
actually just two of them and they partly use different settings
anyway.

While at it, slightly adjust the order of variables and wrap some
long lines.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-27 19:43:09 +08:00
CN_SZTL
102ed1c668
Merge Mainline 2020-07-22 17:48:51 +08:00
CN_SZTL
7e893c7b8f
kernel: bump 4.14 to 4.14.189
Resolve conflicted:
- 818-qspi-support-layerscape.patch

Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-07-22 16:52:00 +08:00
John Crispin
2950c057b4
mediatek: backport latest pci/e driver from upstream
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-16 20:37:23 +08:00
John Crispin
78a790477c
mediatek: generate UBI images for the rev board
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-16 20:37:12 +08:00
John Crispin
458e03c93b
mediatek: minor fix to eip97 driver
This patch makes the driver work on the newer v2.3 core.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-16 20:36:58 +08:00
David Woodhouse
b26db66233 mediatek: fix bashism in gen_banana_pi_img.sh
There was a bashism in the script. This fixes the script so that it
doesn't actually require bash, and can be run with any POSIX shell as
its shebang suggests.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2020-07-10 12:17:18 +08:00
Sungbo Eo
c70db1130b mediatek: re-add u3phy2 phy-switch patch
This patch is required for pcie@2,0 in mt7623 to work. The patch was originally
added in kernel 4.14, but it has not been ported to 4.19 and later.

Fixes: FS#3217
Tested-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2020-07-10 12:16:54 +08:00
Sungbo Eo
f36d6904b0 mediatek: do not create device nodes in uci-defaults script
Since commit 298814e6be ("base-files: config_generate: split macaddr with
multiple ifaces") uci MAC address setup will create a device node for each
member iface. But this script might override the device nodes and interfere
with the MAC address setup.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2020-07-10 12:16:24 +08:00
David Woodhouse
2393ccbac5 mediatek: Implement sysupgrade support for Banana Pi R2
Based on work by Alexey Loukianov <lx2@lexa2.ru> and others.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2020-07-09 12:30:46 +08:00
David Woodhouse
93ba50fbc0 mediatek: store MAC address in boot partition on Banana Pi R2
Like many boards, the Banana Pi R2 doesn't have permanant storage of
its MAC address, and we store the first random one that the kernel
generates in order to use it later and at least be consistent.

Store it in the FAT boot partition, just as the U7623 board (and others)
do.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2020-07-09 12:27:35 +08:00
David Woodhouse
9ab244a39e mediatek: add SD card image creation for Banana Pi R2
Based on work by Alexey Loukianov <lx2@lexa2.ru> and others.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2020-07-09 12:27:01 +08:00
David Woodhouse
8d61b31b77 mediatek: enable SATA for mt7623
The MT7623 SoC has the same SATA block as the MT7622, so enable it in
MT7623 builds too and add it to the DEVICE_PACKAGES for those boards.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2020-07-09 12:22:54 +08:00
David Woodhouse
f7f0fc3bf9 mediatek/mt7623: unify features and packages, add ext4 and usb
The supported MT7623 boards are mostly identical (what with being a
System-on-Chip and all), so unify the DEVICE_PACKAGES for them, and add
ext4 and usb support for them.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2020-07-09 12:22:29 +08:00
David Woodhouse
8fd47b1698 mediatek: mt7623: refresh 5.4 kernel config
Some options were not explicitly specified, causing the kernel build to
drop to interactive mode. Set the missing options.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2020-07-09 12:21:32 +08:00
Hauke Mehrtens
b497128b5f kernel: Update kernel 5.4 to version 5.4.50
Run tested: ath79, ipq40xx
Build tested: ath79, ipq40xx

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-07-05 13:29:49 +08:00
AmadeusGhost
5600477a3d Merge Mainline 2020-07-02 18:39:46 +08:00
CN_SZTL
b94147057d
kernel: bump 4.14 to 4.14.187
Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-07-02 00:01:26 +08:00
AmadeusGhost
ea0f145c3e Merge Mainline 2020-06-28 18:16:21 +08:00
CN_SZTL
324d347beb
kernel: bump 4.19 to 4.19.130
Refreshed all patches.

Resolve conflicted:
* 834-ledtrig-libata.patch

Remove conflicted:
* 526-PCI-aardvark-disable-LOS-state-by-default.patch

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-06-26 09:03:47 +08:00
CN_SZTL
f000ebc1ee
Merge Mainline 2020-06-24 18:29:27 +08:00
CN_SZTL
00ae0000fb
kernel: bump 4.19 to 4.19.129
Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-06-24 18:16:11 +08:00
Sungbo Eo
da99b21736 mediatek: mt7623: refresh kernel 5.4 config
By running make kernel_oldconfig and selecting relevant options.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2020-06-17 12:05:53 +08:00
Adrian Schmutzler
0f249ca5da mediatek: fix IPv4-only corner case and commit in 99-net-ps
The uci config section network.globals set up in /bin/config_generate
will only be created if /proc/sys/net/ipv6 exists.

Correspondingly, lacking IPv6 support, the command
uci set network.globals.packet_steering=1
will fail with "uci: Invalid argument" as the network.globals config
has not been set up.

Fix that by adding the setup there as well.

While at it, limit the uci commit to the network config file.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-06-17 12:04:46 +08:00
Adrian Schmutzler
85f984b9eb treewide: drop shebang from non-executable target files
This drops the shebang from all target files for /lib and
/etc/uci-defaults folders, as these are sourced and the shebang
is useless.

While at it, fix the executable flag on a few of these files.

This does not touch ar71xx, as this target is just used for
backporting now and applying cosmetic changes would just complicate
things.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-06-17 12:04:16 +08:00
Petr Štetiar
9778a02591 kernel: bump 5.4 to 5.4.45
Fixes CVE-2020-10757 via upstream commit df4988aa1c96 ("mm: Fix mremap
not considering huge pmd devmap").

Resolved merge conflict in the following patches:

 bcm27xx: 950-0128-gpiolib-Don-t-prevent-IRQ-usage-of-output-GPIOs.patch

Refreshed patches, removed upstreamed patch:

 generic: 751-v5.8-net-dsa-mt7530-set-CPU-port-to-fallback-mode.patch
 generic: 754-v5.7-net-dsa-mt7530-fix-roaming-from-DSA-user-ports.patch

Run tested: qemu-x86-64
Build tested: x86/64, imx6, sunxi/a53

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-06-10 12:15:08 +08:00
John Crispin
4b993d11d7 mediatek: fix image/mt7622.mk
Signed-off-by: John Crispin <john@phrozen.org>
2020-06-08 12:29:28 +08:00
John Crispin
2a0088d6e4 mediatek: add mt7531 DSA support
Signed-off-by: John Crispin <john@phrozen.org>
2020-06-08 12:18:07 +08:00
John Crispin
82ad4e9bcc mediatek: add bpi-r64 emmc support
Signed-off-by: John Crispin <john@phrozen.org>
2020-06-08 12:16:52 +08:00
John Crispin
f8f418f330 mediatek: make emmc image generation work on mt7622
Signed-off-by: John Crispin <john@phrozen.org>
2020-06-08 12:16:11 +08:00
John Crispin
35fc4e5be1 mediatek: switch over to extended upstream eip97 driver
Signed-off-by: John Crispin <john@phrozen.org>
2020-06-08 12:15:41 +08:00
Sungbo Eo
219a4a024f mediatek: tidy up image subtarget Makefiles
- sort device recipes alphabetically
- adjust board name of ELECOM WRC-2533GENT
- harmonize line wrapping

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
[rebased]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-06-08 12:13:55 +08:00
Petr Štetiar
0503cdbc89 kernel: bump 5.4 to 5.4.39
Refreshed patches.

Run tested: qemu-x86-64
Build tested: x86/64, imx6, sunxi/a53, layerscape/armv7+armv8_64b

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-05-08 08:18:53 +08:00
John Crispin
ddeaed80d5 mediatek: fix image building
Signed-off-by: John Crispin <john@phrozen.org>
2020-05-05 11:53:18 +08:00
John Crispin
08781baf5b mediatek: update patches
Signed-off-by: John Crispin <john@phrozen.org>
2020-05-05 11:51:42 +08:00
CN_SZTL
f5e3bd13ef
Merge Mainline 2020-05-04 16:11:02 +08:00
CN_SZTL
95aa0a3995 kernel: bump 4.14 to 4.14.177
Fixes:
 - CVE-2020-11669

Remove upstreamed:
 - 001-irqchip-versatile-fpga-Handle-chained-IRQs-properly.patch
 - 002-irqchip-versatile-fpga-Apply-clear-mask-earlier.patch
 - 003-ARM-dts-oxnas-Fix-clear-mask-property.patch

Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-05-03 19:32:54 +08:00
CN_SZTL
920cf867f4
Merge Mainline 2020-05-01 10:38:39 +08:00
AmadeusGhost
244a0f8574 Revert "kernel: bump 4.14 to 4.14.177"
This reverts commit 89c18f5335.
2020-04-29 17:25:11 +08:00
Yong-hyu, Ban
9f10ea5055 mediatek: fix compile error caused by upstreamed mtk_m32 function
This fixes following compile error:

```
  CC      drivers/net/ethernet/mediatek/mtk_eth_soc.o
drivers/net/ethernet/mediatek/mtk_eth_soc.c:70:5: error: conflicting types for 'mtk_m32'
 u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned reg)
     ^~~~~~~
In file included from drivers/net/ethernet/mediatek/mtk_eth_soc.c:25:
drivers/net/ethernet/mediatek/mtk_eth_soc.h:964:6: note: previous declaration of 'mtk_m32' was here
 void mtk_m32(struct mtk_eth *eth, u32 clear, u32 set, unsigned reg);
      ^~~~~~~
```

which caused by 5.4.34 mainlining of mtk_m32 function.

Fixes: faf668be35 ("kernel: bump 5.4 to 5.4.34")
Signed-off-by: Yong-hyu, Ban <perillamint@quendi.moe>
2020-04-28 10:36:55 +08:00
CN_SZTL
a89aeebf92
Merge Mainline 2020-04-25 11:43:44 +08:00
CN_SZTL
89c18f5335 kernel: bump 4.14 to 4.14.177
Fixes:
 - CVE-2020-11669

Remove upstreamd:
 - 001-irqchip-versatile-fpga-Handle-chained-IRQs-properly.patch
 - 002-irqchip-versatile-fpga-Apply-clear-mask-earlier.patch
 - 003-ARM-dts-oxnas-Fix-clear-mask-property.patch

Refresh all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-04-25 10:18:50 +08:00
AmadeusGhost
a18cb784eb mediatek: sync upstream source code 2020-04-23 08:20:22 +08:00
Petr Štetiar
b181b86a1d kernel: bump 5.4 to 5.4.34
Refreshed patches.

Run tested: qemu-x86-64, apalis, a64-olinuxino
Build tested: x86/64, imx6, sunxi/a53

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-04-22 09:09:42 +08:00
CN_SZTL
c5dd056449
mediatek: init kernel 5.4 support 2020-04-15 00:36:20 +08:00
AmadeusGhost
cbef9a23e4 treewide: Revert improve sysupgrade support 2020-03-31 18:21:47 +08:00
Chuanhong Guo
41081ebbd0 mediatek: mt7629: fix ethernet default config
1. fix typo: ucidef_set_interfaces_wan -> ucidef_set_interface_wan
2. change board name to mt7629-rfb to match upstream dts

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2020-03-25 08:25:12 +08:00
Koen Vandeputte
46d074fa34 kernel: bump 4.19 to 4.19.108
Refreshed all patches.

Compile-tested on: cns3xxx
Runtime-tested on: cns3xxx

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2020-03-10 11:25:26 +08:00
Koen Vandeputte
aee0dfa544 kernel: bump 4.14 to 4.14.172
Refreshed all patches.

Compile-tested on: cns3xxx
Runtime-tested on: cns3xxx

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2020-03-10 11:16:01 +08:00