[PATCH 3/3] mikrotik: make soft_config writable

2021-12-20 Thread Oskari Lemmela
Parent mtd partition needs to be writable Signed-off-by: Oskari Lemmela --- target/linux/ath79/dts/ar9344_mikrotik_routerboard-sxt-5n.dtsi | 1 - target/linux/ath79/dts/qca9533_mikrotik_routerboard-16m.dtsi | 1 - .../ath79/dts/qca9556_mikrotik_routerboard-wap-g-5hact2hnd.dts | 1 -

[PATCH 2/3] mikrotik: enable variable size erase

2021-12-20 Thread Oskari Lemmela
Add support for variable size erase blocks. Enable it to all targets which has mikrotik targets. Signed-off-by: Oskari Lemmela --- target/linux/ath79/mikrotik/config-default| 1 + target/linux/generic/config-5.10 | 1 + ...support-for-minor-aligned-partitions.patch | 397

[PATCH 0/3] mikrotik: make soft_config partition writable

2021-12-20 Thread Oskari Lemmela
In order to change boot loader variables in small soft_config partition SPI NOR need to support erasing 4k blocks. Adding support for variable size erase blocks and enable it to all targets which has mikrotik devices. In some of mikrotik devices parent mtd device is read-only. It makes

[PATCH 1/3] generic: platform/mikrotik: make soft_config writable without 4K sectors

2021-12-20 Thread Oskari Lemmela
Make soft_config writable in all cases. Performing soft_config commit will fail if mtd partition is not writable. Signed-off-by: Oskari Lemmela --- .../drivers/platform/mikrotik/rb_softconfig.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git

Re: Reduced throughput with mt7621 and DSA

2021-12-20 Thread Paul D
I generalize, but this is a problem which affects a few devices in the DSA bring-up. Some platforms require some tinkering and tweaking, and perhaps input from the chip-set manufacturer (or information from a datasheet of the chip-set) if things are to improve. DSA brings advantages and is

[PATCH v2 7/8] qoriq: new target

2021-12-20 Thread Stijn Tintel
Add a new target named "qoriq", that will support boards using PowerPC processors from NXP's QorIQ brand. This doesn't actually add support for any board yet, so that installation instructions can go in the commit message of the commit that adds actual support for a board. Signed-off-by: Stijn

[PATCH v2 8/8] qoriq: add support for WatchGuard Firebox M300

2021-12-20 Thread Stijn Tintel
This device is based on NXP's QorIQ T2081QDS board, with a quad-core dual-threaded 1.5 GHz ppc64 CPU and 4GB ECC RAM. The board has 5 ethernet interfaces, of which 3 are connected to the ethernet ports on the front panel. The other 2 are internally connected to a Marvell 88E6171 switch; the other

[PATCH v2 6/8] libunwind: add ppc64 support

2021-12-20 Thread Stijn Tintel
Backport an upstream patch to make libunwind build on ppc64, and add powerpc64 to the dependencies. Signed-off-by: Stijn Tintel --- package/libs/libunwind/Makefile | 4 +-- ...ce-exec_prefix-lib64-libdir-on-ppc64.patch | 29 +++ 2 files changed, 31 insertions(+),

[PATCH v2 5/8] nettle: disable assembler on ppc64

2021-12-20 Thread Stijn Tintel
As of version 3.7, Nettle added PowerPC64 assembly for several algorithms. Unfortunately, they cause build to fail due to ABI mismatch: gcm-hash.o: ABI version 1 is not compatible with ABI version 2 output Disable assembler when ppc64 and musl are used for now. Signed-off-by: Stijn Tintel ---

[PATCH v2 2/8] toolchain/musl: ppc64: check for AltiVec in setjmp/longjmp

2021-12-20 Thread Stijn Tintel
Signed-off-by: Stijn Tintel --- ...-check-for-AltiVec-in-setjmp-longjmp.patch | 82 +++ 1 file changed, 82 insertions(+) create mode 100644 toolchain/musl/patches/100-ppc64-check-for-AltiVec-in-setjmp-longjmp.patch diff --git

[PATCH v2 0/8] qoriq: new target

2021-12-20 Thread Stijn Tintel
This patch series adds a new target "qoriq", that will support boards using PowerPC processors from NXP's QorIQ brand. It started as a subtarget of the mpc85xx target, but as all PowerQUICC 85xx devices are based on e500 cores, this probably wasn't the right place for it. The target will

[PATCH v2 4/8] openssl: add ppc64 support

2021-12-20 Thread Stijn Tintel
Backport an upstream patch that adds support for ELFv2 ABI on big endian ppc64. As musl only supports ELFv2 ABI on ppc64 regardless of endianness, this is required to be able to build OpenSSL for ppc64be. Modify our targets patch to add linux-powerpc64-openwrt, which will use the linux64v2

[PATCH v2 3/8] toolchain/gcc: use ELFv2 ABI on ppc64 with musl

2021-12-20 Thread Stijn Tintel
At configuration time, gcc assumes that ppc64be targets use the ELFv1 ABI, and ppc64le targets use the ELFv2 ABI. However, musl libc does not support the ELFv1 ABI on ppc64 at all, regardless of the endianness. Therefore, when building for a ppc64 arch and with musl libc, instruct gcc to use the

[PATCH v2 1/8] build: add e5500 CPU_TYPE

2021-12-20 Thread Stijn Tintel
This CPU type is compatible with NXP's PPC based QorIQ processors, and will be used by the upcoming new qoriq target. Signed-off-by: Stijn Tintel --- include/target.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/include/target.mk b/include/target.mk index 60760bf602..fb57553f7d 100644

[PATCH v1] linux-firmware: amd: consolidate amd's linux-firmware entries.

2021-12-20 Thread Christian Lamparter
this patch consolidates the amd64-microcode (moved to linux-firmware.git, previously this was an extra debian source package download), amdgpu and radeon firmwares into a shared "amd" makefile. With the upcoming 20211216 linux-firmware bump, this will include a microcode update for ZEN 3 CPUs.

[PATCH] kmod-sched-core: remove fq_codel from the package

2021-12-20 Thread Rui Salvaterra
Since fq_codel is the default (and built-in), it's unnecessary to make it part of kmod-sched-core. Remove it. Signed-off-by: Rui Salvaterra --- package/kernel/linux/modules/netsupport.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH] mt76: fix Makefile dependencies for mt7921

2021-12-20 Thread Lorenzo Bianconi
Signed-off-by: Lorenzo Bianconi --- package/kernel/mt76/Makefile | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package/kernel/mt76/Makefile b/package/kernel/mt76/Makefile index 8210478c37f1..9af329b4867d 100644 --- a/package/kernel/mt76/Makefile +++