Commit Graph

1662 Commits

Author SHA1 Message Date
CN_SZTL
1cf3fa37d5
rockchip: distribute net interrupts
This adds a hotplug script for distributing interrupts of eth0 and eth1
across different cores. Otherwise the forwarding performance between
eth0 and eth1 is severely affected.

The existing SMP distribution mechanic in OpenWrt can't be used here, as
the actual device IRQ has to be moved to dedicated cores. In case of
eth1, this is in fact the USB3 controller.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-28 15:13:02 +08:00
CN_SZTL
d9460dc42a
Merge Mainline 2020-07-28 03:51:20 +08:00
David Bauer
3cf47cb176
arm64: dts: rockchip: Add txpbl node for RK3399/RK3328
Some rockchip SoCs like the RK3399 and RK3328 exhibit an issue
where tx checksumming does not work with packets larger than 1498.

The default Programmable Buffer Length for TX in these GMAC's is
not suitable for MTUs higher than 1498. The workaround is to disable
TX offloading with 'ethtool -K eth0 tx off rx off' causing performance
impacts as it disables hardware checksumming.

This patch sets snps,txpbl to 0x4 which is a safe number tested ok for
the most popular MTU value of 1500.

For reference, see https://lkml.org/lkml/2019/4/1/1382.

Signed-off-by: Carlos de Paula <me@carlosedp.com>
Link: https://lore.kernel.org/r/20200218221040.10955-1-me@carlosedp.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-28 03:46:45 +08:00
David Bauer
a8cc53b33b
fixup! rockchip: add NanoPi R2S support 2020-07-28 03:11:23 +08:00
CN_SZTL
b285e6f5ac
autocore-arm: add ipq40xx support 2020-07-28 03:09:23 +08:00
CN_SZTL
f7411dbc7c
target/rockchip: refresh kernel configs 2020-07-27 21:39:57 +08:00
David Bauer
7573ee64c8
target/rockchip: sync with recently changes from upstream 2020-07-27 20:07:32 +08:00
Adrian Schmutzler
d48423592b
lantiq: fix cosmetic issues with partition offsets and sizes
This fixes a few cosmetic issues with partition offset and size
that are inconsistent probably due to copy/pasting.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-27 19:48:19 +08:00
Adrian Schmutzler
78c74b6d2b
imx6: use device-tree compatible for board name
In imx6, we currently use the model from DTS to derive a board name
manually in /lib/imx6.sh.

However, if we have individual DTS files anyway, we can exploit
generic 02_sysinfo and use the compatible as board name directly.

While at it, remove the wildcards from /lib/upgrade/platform.sh as
these might make code shorter, but are quite unpleasant when grepping
for a specific device.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-27 19:48:10 +08:00
Adrian Schmutzler
68277e7846
layerscape: harmonize device strings
OpenWrt lately has harmonized device (definition) names to the
pattern vendor_model to improve overall consistency, also with
other values like the DTS compatible.

This patch applies that scheme to the layerscape target.

Since this (intentionally) creates a bigger overlap between DTS names,
compatible, and device definition name, it also moves DEVICE_DTS and
SUPPORTED_DEVICES definitions to the Device/Default blocks.

Apart from that, it also modifies several packages to use consistent
naming in order to keep the $(1) file references working.

While at it, remove one layer of complexity for the setup in
tfa-layerscape package.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-27 19:47:59 +08:00
David Woodhouse
2ecc92d67b
target/mediatek: sync with upstream source 2020-07-27 19:47:01 +08:00
Bjoern Dobe
2322bf98c2
ath79: mikrotik: use base mac on lan for RBwAPG-5HacT2HnD
The Mikrotik RBwAPG-5HacT2HnD has only a single ethernet interface
(lan), and the vendor uses the base (label) MAC address for it.

Signed-off-by: Bjoern Dobe <bjoern@dobecom.de>
[commit title/message improvement]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-27 19:43:36 +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
Adrian Schmutzler
09f08ef8d6
oxnas: use vendor_model scheme for ox810se
Most newer targets have been converted to consistently use
vendor_model scheme for device definitions/image names, ox820 is
using it as well, so let's just convert ox810se for consistency.

While at it, use generic setup for DEVICE_DTS and add SUPPORTED_DEVICES.
The latter have been introduced for ox820 already in
cf7896117b ("oxnas: enable image metadata by setting SUPPORTED_DEVICES")

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-27 19:42:47 +08:00
AmadeusGhost
a5eea1bab3
ramips/mtwifi: disable bind apcli interface to lan by default
The apcli interface can be bound to either lan or wan, so cancel the
default settings.
2020-07-27 18:37:22 +08:00
CN_SZTL
34f761d9c5
target/rockchip: fix define of usb 3.0 2020-07-25 18:35:14 +08:00
CN_SZTL
c2bc3f5e91
target/rockchip: backport more patches
Reference: jayanta525/openwrt-nanopi-r2s.
2020-07-25 17:31:57 +08:00
Hauke Mehrtens
6df36ec6d7
lantiq: Fix warning in SPI driver
This fixes a warning in the SPI driver at bootup. This warning is seen
in kernel 5.4 on lantiq deives.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-07-24 19:59:55 +08:00
CN_SZTL
4df558cc5a
target/rockchip: fix dependency 2020-07-24 03:51:17 +08:00
CN_SZTL
4aa6119e75
target/rockchip: add missing dependency 2020-07-24 03:24:00 +08:00
David Bauer
f4321098b5
ramips: switch MT7620 subtarget to 5.4
MT7620 seems to work fine with kernel 5.4. Set the default kernel
version to 5.4 to bring this to a broader audience.

Tested on Archer C2 v1 / Archer C20i

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-23 22:48:49 +08:00
David Bauer
5302c79953
ath79: re-enable image generation for GL-AR750S
The bootloader only writes the first 2MB of the image to the NOR flash
when installing the NAND factory image. The bootloader is capable of
booting larger kernels as it boots from the memory mapped SPI flash.

Disable the NAND factory image. The NAND can be bootstrapped by writing
the NAND initramfs image using the NOR upgrade method in the bootloader
web-recovery and sysupgrading from there. The NOR variant is not
affected.

Also refactor the partition definitions in the DTS to make them less
annoying to read.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-23 22:48:07 +08:00
David Bauer
903f30b801
ramips: increase SPI frequency for MT7620 Archer
Increase the SPI frequency for the MT7620 based TP-Link Archer
series to 30MHz.

TP-Link uses different SPI flash chips for the same board
revision, so be conservative to not break boards with a
different chip. 30MHz should be well supported by all chips.

Tested on Archer C2 v1 (GD25Q64B) and Archer C20i (W25Q64FV).

Archer C20i (before)
====================
root@OpenWrt:~# time dd if=/dev/mtd1 of=/tmp/test.bin bs=64k
122+0 records in
122+0 records out
real	0m 15.30s
user	0m 0.00s
sys	0m 15.29s

Archer C20i (after)
===================
root@OpenWrt:~# time dd if=/dev/mtd1 of=/tmp/test.bin bs=64k
122+0 records in
122+0 records out
real	0m 5.99s
user	0m 0.00s
sys	0m 5.98s

Signed-off-by: David Bauer <mail@david-bauer.net>
Acked-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-23 22:47:48 +08:00
Adrian Schmutzler
1c9cd3b359
arc770: use generic 02_sysinfo
Currently arc770 sets a board name from compatible for no apparent
reason. Just use the compatible directly instead.

This theoretically removes a board name "generic" when no compatible
was present, however, there is no case where this "generic" board
name was actually used.

This also fixes an issue where snps,axs101 would not have been
properly detected anyway, as its case was not set up syntactically
correct.

Fixes: 576621f1e3 ("linux: add support of Synopsys ARC770-based boards")

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-23 22:47:18 +08:00
Adrian Schmutzler
5786f1efaa
archs38: use generic 02_sysinfo
Currently archs38 sets a board name from compatible for no apparent
reason. Just use the compatible directly instead.

This theoretically removes a board name "generic" when no compatible
was present, however, there is no case where this "generic" board
name was actually used.

This also fixes an issue where snps,axs103 would not have been
properly detected anyway, as its case was not set up syntactically
correct.

Fixes: 73015c4cb3 ("linux: add support of Synopsys ARCHS38-based boards")

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-23 22:47:13 +08:00
CN_SZTL
102ed1c668
Merge Mainline 2020-07-22 17:48:51 +08:00
CN_SZTL
6049374622
kernel: bump 4.19 to 4.19.134
Resolve conflicted:
395-v5.8-net-sch_cake-Take-advantage-of-skb-hash-where-appropriate.patch
641-sch_cake-fix-IP-protocol-handling-in-the-presence-of.patch

Remove upstreamed:
742-v5.5-net-sfp-add-support-for-module-quirks.patch
743-v5.5-net-sfp-add-some-quirks-for-GPON-modules.patch

Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-07-22 17:41:51 +08:00
CN_SZTL
69e815a417
kernel: bump 5.4 to 5.4.53
Resolve conflicted:
- 395-v5.8-net-sch_cake-Take-advantage-of-skb-hash-where-appropriate.patch
- 641-sch_cake-fix-IP-protocol-handling-in-the-presence-of.patch

Remove upstreamed:
- 022-v5.8-mtd-rawnand-brcmnand-correctly-verify-erased-pages.patch
- 024-v5.8-mtd-rawnand-brcmnand-fix-CS0-layout.patch
- 742-v5.5-net-sfp-add-support-for-module-quirks.patch
- 743-v5.5-net-sfp-add-some-quirks-for-GPON-modules.patch

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-07-22 16:59:36 +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
CN_SZTL
6e0a62a71c
kernel: bump 4.9 to 4.9.231
Remove upstreamed:
- 821-usb-Remove-annoying-warning-about-bogus-URB.patch

Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-07-22 15:45:41 +08:00
CN_SZTL
b1c13dfe62
target/rockchip: rework nanopi-r2s rtl8152 LEDs
Reference: jayanta525/openwrt-nanopi-r2s@d1679edd38.
2020-07-22 03:18:33 +08:00
CN_SZTL
ce5ee290c9
target/rockchip: drop iqrbanlance 2020-07-21 13:20:42 +08:00
CN_SZTL
e5998aedf2
target/rockchip: enable thermal module 2020-07-20 21:29:00 +08:00
CN_SZTL
774a16483a
Merge Mainline 2020-07-20 17:58:33 +08:00
CN_SZTL
56a436b2af
target/ramips: fix check-size 2020-07-20 17:55:14 +08:00
CN_SZTL
3689a1b5ef
target/rockchip: add default packages 2020-07-19 21:04:55 +08:00
CN_SZTL
67c3cb0870
target/ramips: mt7621: fix typo error 2020-07-19 20:50:49 +08:00
CN_SZTL
da075c1965
target/ramips: sync with recently changes from Lean 2020-07-19 20:16:32 +08:00
CN_SZTL
203af7e529
target/ramips: XiaoMi AC2100: unlock BootLoader 2020-07-19 20:12:07 +08:00
CN_SZTL
f2c53c3f81
target/ramips: sync with recently changes from Lean 2020-07-19 20:08:03 +08:00
CN_SZTL
f6049b8d42
target/rockchip: allow higher frequency 2020-07-19 11:50:27 +08:00
CN_SZTL
80198f886f
target/rockchip: enable thermal module 2020-07-19 11:41:24 +08:00
CN_SZTL
a05a50c212
sunxi: switch to kernel 5.4 2020-07-18 14:52:23 +08:00
CN_SZTL
50d65eacd1
kernel/4.19: drop outdated patch 2020-07-18 14:40:55 +08:00
CN_SZTL
e5d384584a
target/rockchip: improve r2s support 2020-07-18 14:08:23 +08:00
CN_SZTL
efb6f74258
Merge Mainline 2020-07-18 13:43:33 +08:00
Adrian Schmutzler
2c4f3fdc82
lantiq: move 01_led_migration script to subtargets
Split the /etc/uci-defaults/01_led_migration scripts into subtargets
as already done for most of the other base-files.

While this introduces a minor amount of code duplication, it still
is considered an improvement, as device-specific settings are kept
together in the subtargets' base-files and the script at hand can be
removed entirely for two of the subtargets not needing it.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-18 13:35:38 +08:00
Martin Schiller
ede5f6c696
lantiq: move dsl related base-files into own package
It does not make sense to install this components on lantiq systems
where the dsl subsystem is not needed/used.

This also makes it possible to use the files also on other targets.
(hopefully ipq401x / FritzBox 7530 in the near future)

Signed-off-by: Martin Schiller <ms.3headeddevs@gmail.com>
2020-07-18 13:33:36 +08:00
Salvatore Mesoraca
0e287eab00
ramips: add arl_table support for MT7530
Use switch.h API to expose MT7530's ARL table to
user space.

Signed-off-by: Salvatore Mesoraca <salvatore@samknows.com>
2020-07-18 13:32:39 +08:00
David Bauer
6cdea00cac
rockchip: add NanoPi R2S support
Hardware
--------
RockChip RK3328 ARM64 (4 cores)
1GB DDR4 RAM
2x 1000 Base-T
3 LEDs (LAN / WAN / SYS)
1 Button (Reset)
Micro-SD slot
USB 2.0 Port

Installation
------------
Uncompress the OpenWrt sysupgrade and write it to a micro SD card using
dd.

MAC-address
-----------
The vendor code supports reading a MAC address from an EEPROM connected
via i2c0 of the SoC. The EEPROM (address 0x51) should contain the MAC
address in binary at offset 0xfa. However, my two units didn't come with
such an EEPROM soldered on. The EEPROM should be placed between the SoC
and the GPIO pins on the board. (U10)

Generating rendom MAC addresses works around this issue. Otherwise, all
boards running the same image have identical MAC addresses.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-18 13:25:53 +08:00