openwrt/staging/nbd.git
2 years agorealtek: timer driver: activate for RTL838X devices
Markus Stockhausen [Mon, 3 Oct 2022 12:49:35 +0000 (14:49 +0200)]
realtek: timer driver: activate for RTL838X devices

Use the new timer driver for the RTL838X devices. Remove the no
longer needed modules.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
[correct timer compatible order, update selected symbols]
Signed-off-by: Sander Vanheule <sander@svanheule.net>
2 years agorealtek: timer driver: documentation
Markus Stockhausen [Mon, 3 Oct 2022 12:47:18 +0000 (14:47 +0200)]
realtek: timer driver: documentation

Provide some helpful information about the devicetree configuration of
our new driver

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
[correct compatible order in examples]
Signed-off-by: Sander Vanheule <sander@svanheule.net>
2 years agorealtek: resurrect timer driver
Markus Stockhausen [Mon, 3 Oct 2022 12:45:21 +0000 (14:45 +0200)]
realtek: resurrect timer driver

Now that we provide a clock driver for the Reltek SOCs the CPU frequency might
change on demand. This has direct visible effects during operation

- the CEVT 4K timer is no longer a stable clocksource
- after CPU frequencies changes time calculation works wrong
- sched_clock falls back to kernel default interval (100 Hz)
- timestamps in dmesg have only 2 digits left

[    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps ...
[    0.060000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.080000] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.090000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ...

Looking around where we can start the CEVT timer for RTL930X is a good basis.
Initially it was developed as a clocksource driver for the broken timer in that
specific SOC series. Afterwards it was shifted around to the CEVT location,
got SMP enablement and lost its clocksource feature. So we at least have
something to copy from. As the timers on these devices are well understood
the implementation follows this way:

- leave the RTL930X implementation as is
- provide a new driver for RTL83XX devices only
- swap RTL930X driver at a later time

Like the clock driver this patch contains a self contained module that is SOC
independet and already provides full support for the RTL838X, RTL839X and
RTL930X devices. Some of the new (or reestablished) features are:

- simplified initialization routines
- SMP setup with CPU hotplug framework
- derived from LXB clock speed
- supplied clocksource
- dedicated register functions for better readability
- documentation about some caveats

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
[remove unused header includes, remove old CONFIG_MIPS dependency, add
REALTEK_ prefix to driver symbol]
Signed-off-by: Sander Vanheule <sander@svanheule.net>
2 years agoreadline: update to 8.2
Nick Hainke [Fri, 21 Oct 2022 12:48:58 +0000 (14:48 +0200)]
readline: update to 8.2

Release Announcement:
https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00013.html

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agogdb: add patch adding support for readline 8.2
Nick Hainke [Sun, 23 Oct 2022 12:26:20 +0000 (14:26 +0200)]
gdb: add patch adding support for readline 8.2

Add "001-Add-support-for-readline-8.2.patch" adding support for readline
8.2.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agotools/mkimage: bring back removed patches
Daniel Golle [Sun, 23 Oct 2022 15:21:26 +0000 (16:21 +0100)]
tools/mkimage: bring back removed patches

Patches for mtk_image supporting newer SoCs have been dropped in the
process of updating mkimage to U-Boot 2022.10. While it is true that
the patches have been merged upstream a while ago, they were not merged
in time to be part of the U-Boot 2022.10 release.
See also commit 537b423d9f ("uboot-mediatek: update to U-Boot 2022.10")
which explicitly mentions that.

Fixes: 6e245777bd ("tools/mkimage: update to 2022.10")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 years agoipq40xx: Convert Google Wifi to DSA, reenable
Brian Norris [Sat, 22 Oct 2022 20:00:38 +0000 (13:00 -0700)]
ipq40xx: Convert Google Wifi to DSA, reenable

Undo parts of these:

116feb4a1cad ipq40xx: remove non-converted network configs
db19efee9512 ipq40xx: disable boards not converted to DSA

Reintroduce the DT paths /soc/edma@c080000/gmac{0,1}, because the stock
bootloader has memorized them (instead of following aliases); then plug
the MAC address back in via 05_set_iface_mac_ipq40xx.sh, since the
'local-mac-address' property is no longer in the correct node.

Cc: David Bauer <mail@david-bauer.net>
Cc: Robert Marko <robert.marko@sartura.hr>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
2 years agoksmbd: update to 3.4.6
Nick Hainke [Fri, 21 Oct 2022 12:23:47 +0000 (14:23 +0200)]
ksmbd: update to 3.4.6

Release Announcement:
https://github.com/cifsd-team/ksmbd/releases/tag/3.4.6

Remove upstreamed:
- 10-fix-build-on-kernel-5.15.52-or-higher.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agoipq40xx: convert to DSA and enable mobipromo,cm520-79f
Jack Chen [Fri, 14 Oct 2022 07:58:46 +0000 (15:58 +0800)]
ipq40xx: convert to DSA and enable mobipromo,cm520-79f

Convert to DSA and enable the MobiPromo CM520-79F device again.

Signed-off-by: Jack Chen <redchenjs@live.com>
Reviewed-by: Robert Marko <robimarko@gmail.com>
2 years agoath79: fix reference clock for RouterBoard 912UAG
Pavel Kamaev [Sun, 16 Oct 2022 18:27:47 +0000 (21:27 +0300)]
ath79: fix reference clock for RouterBoard 912UAG

This fixes reference clock frequency of RB912. 25 MHz frequency leads
to system clock running too fast, uptime incrementing too fast and
delays (like `sleep 10`) returning too early.

Board has quartz with NSK 3KHAA Z 40 000 marking.

Signed-off-by: Pavel Kamaev <pavel@kamaev.me>
2 years agoramips: fix WAN mac address allocation for Unielec 01 and 06 models
David Bentham [Mon, 17 Oct 2022 14:43:29 +0000 (15:43 +0100)]
ramips: fix WAN mac address allocation for Unielec 01 and 06 models

Manufacturer has predetermined mac address values for lan and wan ports.

This change keeps inline with other mt7621 devices mac address allocation
from factory mtd partition.

Example from hexdump output:

0xe000 0x6 (lan) -           0xe006 0x6 (wan)

0000e000  70 b3 d5 10 02 96 70 b3  d5 10 02 95 ff ff ff ff

Previous change had created an overlapping mac address situation as it
would increment by one based on the lan mac address location found in the
factory partition, which would sometimes increment to the same as the
mt7603 wifi chip.

Tested on Unielec u7621-01 model

Signed-off-by: David Bentham <db260179@gmail.com>
2 years agoramips: rt3883: enable lzma-loader for Belkin F9K1109v1
Robert Senderek [Mon, 17 Oct 2022 19:15:35 +0000 (21:15 +0200)]
ramips: rt3883: enable lzma-loader for Belkin F9K1109v1

Fixes boot loader LZMA decompression issues

Fixes: #10968
Signed-off-by: Robert Senderek <robert.senderek@10g.pl>
2 years agoramips: mt7621: enable lzma-loader for Asus RT-N56U-B1
Alex Khodin [Fri, 21 Oct 2022 17:47:38 +0000 (17:47 +0000)]
ramips: mt7621: enable lzma-loader for Asus RT-N56U-B1

Fixes boot loader LZMA decompression issues.

Without this change the board end up in a boot loop.

Signed-off-by: Alex Khodin <mxktz1@gmail.com>
2 years agoramips: add A-040W-Q alternative name for MSG1500 X.00
Chukun Pan [Thu, 2 Jun 2022 15:01:29 +0000 (23:01 +0800)]
ramips: add A-040W-Q alternative name for MSG1500 X.00

The hardware of Nokia A-040W-Q and RAISECOM MSG1500 X.00 are
exactly the same, both of which are customized by operators.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
2 years agokernel: move mac-address-ascii patches to generic
Chukun Pan [Wed, 1 Jun 2022 15:16:04 +0000 (23:16 +0800)]
kernel: move mac-address-ascii patches to generic

This enables other targets to use the mac-address-ascii
feature.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
2 years agolantiq: add 6.1 tag to upstream patch
Aleksander Jan Bajkowski [Wed, 5 Oct 2022 21:05:26 +0000 (23:05 +0200)]
lantiq: add 6.1 tag to upstream patch

Add 6.1 tag to upstream patch now that 6.1 got tagged. This permits to
track patch in a better way and directly drop them on kernel bump.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
2 years agotools/genext2fs: Add dependency to libtool
Hauke Mehrtens [Sat, 22 Oct 2022 23:43:36 +0000 (01:43 +0200)]
tools/genext2fs: Add dependency to libtool

This fixes the following build error:
  ./autogen.sh: line 13: aclocal: command not found

Fixes: b6d29af9475f ("tools/genext2fs: update to 1.5.0")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 years agotools/genext2fs: update to 1.5.0
Nick Hainke [Sun, 21 Aug 2022 07:33:46 +0000 (09:33 +0200)]
tools/genext2fs: update to 1.5.0

Update to latest version.

Remove patches:
- 100-c99_scanf.patch
- 200-autoconf.patch
- 300-blocksize-creator.patch
- 400-byteswap_fix.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agotools/genext2fs: switch to codeload.github.com
Nick Hainke [Sun, 21 Aug 2022 06:43:52 +0000 (08:43 +0200)]
tools/genext2fs: switch to codeload.github.com

As written on the genext2fs.sourceforge.net page:
"If you want bugfixes and nicer features though, you will have to grab
the source from github and build it yourself."

This commit switches the download from sourceforge to
codeload.github.com.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agotools/dwarves: update to 1.24
Nick Hainke [Fri, 21 Oct 2022 21:24:29 +0000 (23:24 +0200)]
tools/dwarves: update to 1.24

Release Notes:
https://lwn.net/Articles/905738/

Switch to https "fedorapeople.org"-mirror. Use $(AUTORELEASE).

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agotools/bash: update to 5.2
Nick Hainke [Fri, 21 Oct 2022 20:14:12 +0000 (22:14 +0200)]
tools/bash: update to 5.2

Release Notes:
https://lists.gnu.org/archive/html/bug-bash/2022-09/msg00056.html

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agotools/zlib: update to 1.2.13
Nick Hainke [Fri, 21 Oct 2022 20:41:06 +0000 (22:41 +0200)]
tools/zlib: update to 1.2.13

Switch to "https github.com" for downloading source files.

Release Announcements:
https://github.com/madler/zlib/releases/tag/v1.2.13

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agotools/bc: update to 1.07.1
Nick Hainke [Fri, 21 Oct 2022 20:23:47 +0000 (22:23 +0200)]
tools/bc: update to 1.07.1

Changes:
  Fixed ibase extension causing problems for read()
  Fixed parallel make problem.

Remove the "003-bc-fix-hang.patch" because the hang is fixed upstream.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agotools/mtools: update to 4.0.41
Nick Hainke [Fri, 21 Oct 2022 20:01:48 +0000 (22:01 +0200)]
tools/mtools: update to 4.0.41

Release Notes:
https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00011.html

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agotools/xz: update to 5.2.7
Nick Hainke [Fri, 21 Oct 2022 20:06:49 +0000 (22:06 +0200)]
tools/xz: update to 5.2.7

Update to latest version.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agotools/mkimage: update to 2022.10
Nick Hainke [Fri, 21 Oct 2022 20:53:58 +0000 (22:53 +0200)]
tools/mkimage: update to 2022.10

Remove upstreamed patches:
- 020-tools-mtk_image-split-gfh-header-verification-into-a.patch
- 021-tools-mtk_image-split-the-code-of-generating-NAND-he.patch
- 022-tools-mtk_image-add-support-for-nand-headers-used-by.patch

Refreshed manually:
- 030-allow-to-use-different-magic.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agoiproute2: update to 6.0.0
Nick Hainke [Wed, 5 Oct 2022 10:37:47 +0000 (12:37 +0200)]
iproute2: update to 6.0.0

Release Notes:
https://lore.kernel.org/netdev/20221004082610.56b04719@hermes.local/t/

Remove upstreamed patch:
- 010-ipstats-Add-param.h-for-musl.patch

Refreshed:
- 140-keep_libmnl_optional.patch
- 145-keep_libelf_optional.patch
- 150-keep_libcap_optional.patch
- 155-keep_tirpc_optional.patch
- 170-ip_tiny.patch
- 190-fix-nls-rpath-link.patch
- 200-drop_libbsd_dependency.patch
- 300-selinux-configurable.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agothc-ipv6: update to 3.8
Nick Hainke [Mon, 26 Sep 2022 05:22:08 +0000 (07:22 +0200)]
thc-ipv6: update to 3.8

Remove upstreamed patches:
- 000-cflags_override.patch

Manually refresh patches:
- 100-no-ssl.patch

Add patches:
- 101-remove-march-native.patch

Add THC_APPLETS:
- toobigsniff6
- flood_unreach6
- connect6

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agogettext-full: update to 0.21.1
Nick Hainke [Sun, 16 Oct 2022 20:10:01 +0000 (22:10 +0200)]
gettext-full: update to 0.21.1

Release Announcement:
https://lists.gnu.org/archive/html/info-gnu/2020-07/msg00009.html

Further, refresh 001-autotools.patch and manually refresh 010-m4.patch.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agolibbsd: update to 0.11.7
Nick Hainke [Sun, 16 Oct 2022 18:19:01 +0000 (20:19 +0200)]
libbsd: update to 0.11.7

Changes:
084911c Release libbsd 0.11.7
3538d38 man: Discourage using the library in non-overlay mode
03fccd1 include: Adjust reallocarray() per glibc adoption
6b6e686 include: Adjust arc4random() per glibc adoption
da1f45a include: explicit_bzero() requires _DEFAULT_SOURCE
2f9eddc include: Simplify glibc version dependent macro handling
28298ac doc: Switch references from pkg-config to pkgconf
ef981f9 doc: Add missing empty line to separate README sections
6928d78 doc: Refer to the main git repository as primary
d586575 test: Fix explicit_bzero() test on the Hurd
be327c6 fgetwln: Add comment about lack of getwline(3) for recommendation
a14612d setmode: Dot not use saveset after free
f4baceb man: Rewrite gerprogname(3bsd) from scratch
f35c545 man: Lowercase man page title
b466b14 man: Document that some arc4random(3) functions are now in glibc 2.36
1f6a48b Sync arc4random(3) implementation from OpenBSD
873639e Fix ELF support for big endian SH
c9c78fd man: Use -compact also for alternative functions in libbsd(7)
5f21307 getentropy: Fix function cast for getauxval()

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agotrace-cmd: update to v3.1.4
Nick Hainke [Tue, 18 Oct 2022 15:51:49 +0000 (17:51 +0200)]
trace-cmd: update to v3.1.4

ae6db8e trace-cmd record: Use result of fcntl(GETPIPE_SZ)

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agouboot-envtools: update to 2022.10
Nick Hainke [Fri, 21 Oct 2022 12:10:28 +0000 (14:10 +0200)]
uboot-envtools: update to 2022.10

Update to latest version.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agolinux-firmware: update to 20221012
Nick Hainke [Fri, 21 Oct 2022 12:17:33 +0000 (14:17 +0200)]
linux-firmware: update to 20221012

Changes:
cfbd668 rtl_bt: Update RTL8852C BT USB firmware to 0xD5B8_A40A
f49effc amdgpu: update GC 10.3.6 RLC firmware
f9a1c7f amdgpu: update GC 10.3.7 RLC firmware
eb1e45c amdgpu: update Yellow Carp RLC firmware
88557e1 amdgpu: update Beige Goby RLC firmware
2d3c1f8 amdgpu: update Dimgrey Cavefish RLC firmware
d513825 amdgpu: update Navy Flounder RLC firmware
c132bef amdgpu: update Sienna Cichlid RLC firmware
675bd6a mediatek: Update mt8195 SOF firmware to v0.4.1
44fa25d qcom: add squashed version of a530 zap shader
d2aac63 rtw89: 8852c: update fw to v0.27.56.1
c9a1ddf rtw89: 8852c: update fw to v0.27.56.0
b7d6c9f mediatek: Update mt8186 SCP firmware
fdf1a65 linux-firmware: Update AMD cpu microcode
375d450 mediatek: mt8195: Update scp.img to v2.0.11956
daee413 mediatek: Add new mt8195 SOF firmware
213255f mediatek: Update mt8186 SOF firmware to v0.2.1
9f88ec4 linux-firmware: update firmware for mediatek bluetooth chip (MT7922)
bb3f948 rtl_bt: Update RTL8852A BT USB firmware to 0xD9B8_8207
6be4c4c linux-firmware: update firmware for mediatek bluetooth chip (MT7921)
ea94bda linux-firmware: update firmware for MT7922 WiFi device
9490e8a linux-firmware: update firmware for MT7921 WiFi device
e6e48db cxgb4: Update firmware to revision 1.27.0.0
51fff4e i915: Add versionless HuC files for current platforms
067440c i915: Add GuC v70.5.1 for DG1, DG2, TGL and ADL-P
0e8f546 qca: Update firmware files for BT chip WCN3991.
3593bb7 Removing crnv32

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agomtd-utils: update to 2.1.5
Nick Hainke [Fri, 21 Oct 2022 19:51:05 +0000 (21:51 +0200)]
mtd-utils: update to 2.1.5

Release Notes:
https://lore.kernel.org/buildroot/c0992bbb-9487-9a51-ea9f-39cf074b61ec@sigma-star.at/

Refresh patches:
- 130-lzma_jffs2.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agolantiq: Add Linux 5.15 as testing kernel version
Martin Blumenstingl [Mon, 21 Mar 2022 19:31:23 +0000 (20:31 +0100)]
lantiq: Add Linux 5.15 as testing kernel version

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2 years agokernel: ltq-adsl-mei: Fix compilation with Linux 5.15
Martin Blumenstingl [Sat, 26 Mar 2022 10:19:04 +0000 (11:19 +0100)]
kernel: ltq-adsl-mei: Fix compilation with Linux 5.15

struct of_device_id is not implicitly included anymore. Include
<linux/mod_devicetable.h> to fix compilation on Linux 5.15.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2 years agokernel: ltq-vmmc: Fix compilation with Linux 5.15
Martin Blumenstingl [Mon, 21 Mar 2022 19:28:07 +0000 (20:28 +0100)]
kernel: ltq-vmmc: Fix compilation with Linux 5.15

MODULE_SUPPORTED_DEVICE is gone after Linux 5.15. Drop it's usage on
newer kernels to fix compilation with Linux 5.15.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2 years agokernel: ltq-vdsl-vr9-mei: Fix compilation with Linux 5.15
Martin Blumenstingl [Mon, 21 Mar 2022 19:21:04 +0000 (20:21 +0100)]
kernel: ltq-vdsl-vr9-mei: Fix compilation with Linux 5.15

The result of copy_to_user() now has to be checked explicitly. Also
MODULE_SUPPORTED_DEVICE is gone after Linux 5.10.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2 years agokernel: ltq-tapi: Fix compilation with Linux 5.15
Martin Blumenstingl [Mon, 21 Mar 2022 19:14:08 +0000 (20:14 +0100)]
kernel: ltq-tapi: Fix compilation with Linux 5.15

MODULE_SUPPORTED_DEVICE was removed after Linux 5.10. Drop it from the
driver as well.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2 years agokernel: ltq-deu: Fix compilation with Linux 5.15
Martin Blumenstingl [Mon, 21 Mar 2022 19:05:27 +0000 (20:05 +0100)]
kernel: ltq-deu: Fix compilation with Linux 5.15

struct of_device_id is not implicitly included anymore. Include
<linux/mod_devicetable.h> to fix compilation on Linux 5.15.
Also upstream commit a24d22b225ce15 ("crypto: sha - split sha.h into
sha1.h and sha2.h") from Linux 5.11 moves functionality from sha.h to
sha1.h.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2 years agoltq-ifxos: add compatibility with kernel 5.15
Jan Hoffmann [Tue, 3 May 2022 13:26:29 +0000 (15:26 +0200)]
ltq-ifxos: add compatibility with kernel 5.15

set_fs is no longer supported since kernel 5.13 for mips.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2 years agolantiq: 5.15: refresh patches
Martin Blumenstingl [Mon, 21 Mar 2022 17:39:03 +0000 (18:39 +0100)]
lantiq: 5.15: refresh patches

0001-MIPS-lantiq-add-pcie-driver.patch needs to drop
MODULE_SUPPORTED_DEVICE because that macro is gone on newer kernels.

Add checks for copy_{to,from}_user in
0008-MIPS-lantiq-backport-old-timer-code.patch which is now mandatory.

0705-v5.13-net-dsa-lantiq-allow-to-use-all-GPHYs-on-xRX300-and-.patch
get dropped because it's a backport from Linux 5.13.

All other patches are refreshed.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2 years agolantiq: copy Linux 5.10 files in preparation for Linux 5.15 support
Martin Blumenstingl [Mon, 21 Mar 2022 17:32:41 +0000 (18:32 +0100)]
lantiq: copy Linux 5.10 files in preparation for Linux 5.15 support

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2 years agoipq40xx: convert to DSA and enable asus,rt-ac42u
Chen Minqiang [Mon, 3 Oct 2022 01:41:31 +0000 (09:41 +0800)]
ipq40xx: convert to DSA and enable asus,rt-ac42u

This convert board asus,rt-ac42u to DSA and re-enable it

Reviewed-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2 years agokernel: x86: Add glue_helper.ko only on kernel < 5.12
Hauke Mehrtens [Sat, 22 Oct 2022 00:26:05 +0000 (02:26 +0200)]
kernel: x86: Add glue_helper.ko only on kernel < 5.12

This module was removed with kernel 5.12.
This fixes the build of the x86 target.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 years agokernel: Add missing kernel configuration options
Hauke Mehrtens [Fri, 21 Oct 2022 22:21:42 +0000 (00:21 +0200)]
kernel: Add missing kernel configuration options

The at91/sam9x targets misses these configuration options when using
kernel 5.15.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 years agoat91: kernel v5.15: use KERNEL_TESTING_PATCHVER:=5.15
Claudiu Beznea [Thu, 29 Sep 2022 07:19:18 +0000 (10:19 +0300)]
at91: kernel v5.15: use KERNEL_TESTING_PATCHVER:=5.15

Use KERNEL_TESTING_PATCHVER:=15 for at91 targets.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
2 years agoat91: kernel v5.10: refresh configs
Claudiu Beznea [Thu, 29 Sep 2022 07:18:39 +0000 (10:18 +0300)]
at91: kernel v5.10: refresh configs

Refresh kernel v5.10 configs.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
2 years agoat91: kernel v5.15: refresh configs
Claudiu Beznea [Thu, 29 Sep 2022 07:18:11 +0000 (10:18 +0300)]
at91: kernel v5.15: refresh configs

Refresh kernel v5.15 configs.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
2 years agoat91: kernel v5.15: remove upstreamed patches
Claudiu Beznea [Thu, 15 Sep 2022 14:37:27 +0000 (17:37 +0300)]
at91: kernel v5.15: remove upstreamed patches

Remove patches that are now integrated in kernel v5.15.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
2 years agoat91: kernel v5.15: copy config and patches from 5.10
Claudiu Beznea [Thu, 15 Sep 2022 14:09:28 +0000 (17:09 +0300)]
at91: kernel v5.15: copy config and patches from 5.10

Copy kernel config and patches from 5.10. Along with it
individual targets' config-default from 5.10 has been moved to
config-5.10.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
2 years agooxnas: shuttle-kd20: fix thermal zone
Daniel Golle [Fri, 21 Oct 2022 19:47:26 +0000 (20:47 +0100)]
oxnas: shuttle-kd20: fix thermal zone

Fix typo ('_' vs '-') and add #cooling-cells to gpio-fan to get
thermal zone into functional state.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 years agooxnas: switch to Linux 5.15 and drop Linux 5.10
Daniel Golle [Fri, 21 Oct 2022 17:59:37 +0000 (18:59 +0100)]
oxnas: switch to Linux 5.15 and drop Linux 5.10

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 years agoCI: kernel: fix deprecation of set-output
Christian Marangi [Fri, 21 Oct 2022 14:09:19 +0000 (16:09 +0200)]
CI: kernel: fix deprecation of set-output

From [0], github deprecated set-output with a better approach of
appending variables to $GITHUB_OUTPUT

[0] https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agokernel: disable CONFIG_CPU_LITTLE_ENDIAN in generic config
Aleksander Jan Bajkowski [Mon, 22 Feb 2021 18:48:42 +0000 (19:48 +0100)]
kernel: disable CONFIG_CPU_LITTLE_ENDIAN in generic config

Endianness depends on CPU architecture. CONFIG_CPU_(BIG/LITTLE)_ENDIAN should
be enabled on target or subtarget based on SoC architecture.

Fixes warning:
$ make kernel_oldconfig CONFIG_TARGET=subtarget
...
.config:1008:warning: override: CPU_LITTLE_ENDIAN changes choice state
....

Summary:
- ARC - only the CONFIG_CPU_BIG_ENDIAN symbol is defined for this architeture.
  If it is disabled then the processor operates in LITTLE_ENDIAN mode (default),
- ARM32 - CONFIG_CPU_LITTLE_ENDIAN symbol available since kernel 5.19. This
  option should be enabled after OpenWRT moves to kernel 6.x. After refreshing
  the kernel, the symbol disappears,
- ARM64 - enabled CONFIG_CPU_LITTLE_ENDIAN,
- MIPS - enabled relevant symbols,
- POWERPC -  enabled CONFIG_CPU_BIG_ENDIAN,
- UML - Symbols are not defined for this architecture,
- X86 - always little endian. Symbols are not defined for this architecture.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
2 years agolantiq: add rgmii delays on BT Home Hub 5A
Aleksander Jan Bajkowski [Sun, 16 Oct 2022 18:05:26 +0000 (20:05 +0200)]
lantiq: add rgmii delays on BT Home Hub 5A

This comit fixes warnings that occur on kernel 5.15:
...
[    2.269736] Intel XWAY PHY11G (PEF 7071/PEF 7072) v1.5 / v1.6 1e108000.switch-mii:00:
               PHY has delays (e.g. via pin strapping), but phy-mode = 'rgmii'
[    2.269736] Should be 'rgmii-id' to use internal delays txskew:1500 ps rxskew:1500 ps
...

Ref: https://github.com/torvalds/linux/commit/be393dd685d215d44a43f5c5dcb8f7e57668d00e
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
2 years agobcm53xx: only fixup seama on D-Link DIR-885L
Linus Walleij [Thu, 20 Oct 2022 20:43:45 +0000 (22:43 +0200)]
bcm53xx: only fixup seama on D-Link DIR-885L

Just one device builds seama images so let's just fix up
seama on that one device. I guess the tool errors out but
this feels cleaner.

Cc: Hauke Mehrtens <hauke@hauke-m.de>
Cc: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
[rmilecki: drop "fixtrx" from D-Link case]
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2 years agobcm53xx: enable Broadcom 4366b1 firmware for Asus RT-AC88U
Arınç ÜNAL [Tue, 18 Oct 2022 08:54:20 +0000 (11:54 +0300)]
bcm53xx: enable Broadcom 4366b1 firmware for Asus RT-AC88U

On some of the hardware revisions of Asus RT-AC88U, brcmfmac detects the
4366b1 wireless chip and tries to load the firmware file which doesn't
exist because it's not included in the image.

Therefore, include firmware for 4366b1 along with 4366c0. This way, all
hardware revisions of the router will be supported by having brcmfmac use
the firmware file for the wireless chip it detects.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
2 years agomediatek: filogic: consolidate adc '32k' clock
Daniel Golle [Thu, 20 Oct 2022 19:20:41 +0000 (20:20 +0100)]
mediatek: filogic: consolidate adc '32k' clock

Add dependency to '32k' ADC clock so it is always enabled for thermal
and raw access to ADC values. This allows to remove the patch for the
ADC driver and reduce the patch adding thermal support for MT7986 to
only add the new efuse layout and temperature decoding for V3.

Suggested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 years agoscripts/download.pl: pass aria2 config in ENV only
Zhang Hua [Sun, 2 Oct 2022 11:04:12 +0000 (19:04 +0800)]
scripts/download.pl: pass aria2 config in ENV only

The aria2c command tries to load config from
${XDG_CONFIG_HOME:-${HOME}/.config}/aria2/aria2.conf by default,
which may result unexpected behavior.

As a replacement, people can use environment variable ARIA2C_OPTIONS
to custom arguments passed to aria2c like curl and wget below.
Including --conf-path=/path/to/config.conf in ARIA2C_OPTIONS can
also set a custom config file path easily if needed.

Signed-off-by: Zhang Hua <zhanghuadedn@gmail.com>
2 years agouboot-fritz4040: build FritzBox 7520 variant
Andre Heider [Fri, 15 Jul 2022 05:59:15 +0000 (07:59 +0200)]
uboot-fritz4040: build FritzBox 7520 variant

Support was added as variant of 7530 (DEVICE_ALT0_*) in:
cb6f4be1 "ipq40xx: add support for FRITZ!Box 7520"

u-boot has a distinct config for it [0], built it.

[0] https://github.com/chunkeey/FritzBox-4040-UBOOT/pull/6

Signed-off-by: Andre Heider <a.heider@gmail.com>
Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2 years agokernel: disable stack validation for external module builds as needed
Mark Mentovai [Sun, 11 Sep 2022 17:48:17 +0000 (13:48 -0400)]
kernel: disable stack validation for external module builds as needed

c3e31b6a9b04 and 5f8e5872406d disable stack validation when the build
host is not running Linux, as the objtool kernel build tool required for
stack validation is not portable to other build host environments. This
was achieved by setting CONFIG_STACK_VALIDATION= in KERNEL_MAKEOPTS, and
by setting SKIP_STACK_VALIDATION=1 in the environment. KERNEL_MAKEOPTS
only has effect for the kernel build, not for external module builds,
but through kernel 5.14, SKIP_STACK_VALIDATION worked to disable this
feature too, so stack validation was disabled for external module builds
as well. Since kernel 0d989ac2c90b, the kernel build no longer considers
SKIP_STACK_VALIDATION, so the feature will be disabled for the kernel
build, but not for external module builds.

When building OpenWrt on a non-Linux build host targeting x86 (the only
target architecture for which OpenWrt enables the kernel
CONFIG_STACK_VALIDATION) and using kernel 5.15 (such as via
CONFIG_TESTING_KERNEL), this caused a build failure during any external
module build, such as kmod-button-hotplug. This manifested as build
errors such as:

  make[4]: *** No rule to make target
  '.../build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/button-hotplug.o',
  needed by
  '.../build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/button-hotplug.mod'.
  Stop.

Although button-hotplug.c was present, the implicit rule to make
$(obj)/%.o from $(src)/%.c in the kernel's scripts/Makefile.build could
not be satisfied in this case, as it also depends on $(objtool_dep),
non-empty as a result of the failure to propagate disabling of stack
validation to external module builds, in a configuration where it is not
possible to build objtool.

KERNEL_MAKEOPTS is used for just the kernel build itself, while
KERNEL_MAKE_FLAGS is used for both the kernel build and for external
module builds. This restores the ability to build OpenWrt in such
configurations by moving the CONFIG_STACK_VALIDATION= make argument from
KERNEL_MAKEOPTS to KERNEL_MAKE_FLAGS where it is able to affect external
module builds properly.

Note that the kernel's objtool and related configuration have seen a
major overhaul since kernel 5.15, and may need more attention again
after 22922deae13f, in kernel 5.19.

Signed-off-by: Mark Mentovai <mark@mentovai.com>
2 years agoci: kernel: trigger build check on changes in kernel.mk as well
Petr Štetiar [Wed, 19 Oct 2022 21:02:43 +0000 (23:02 +0200)]
ci: kernel: trigger build check on changes in kernel.mk as well

So we can QA more parts of kernel build process.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2 years agopistachio: refresh kernel patches
Petr Štetiar [Thu, 20 Oct 2022 05:47:54 +0000 (07:47 +0200)]
pistachio: refresh kernel patches

Refresh dirty patches after commit 711f1a8bcbdd ("kernel: mtd: backport
SafeLoader parser").

Fixes: 711f1a8bcbdd ("kernel: mtd: backport SafeLoader parser")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2 years agoath79: refresh kernel patches
Petr Štetiar [Thu, 20 Oct 2022 05:47:54 +0000 (07:47 +0200)]
ath79: refresh kernel patches

Refresh dirty patches after commit 711f1a8bcbdd ("kernel: mtd: backport
SafeLoader parser").

Fixes: 711f1a8bcbdd ("kernel: mtd: backport SafeLoader parser")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2 years agomt7622: switch default CPU governor to ondemand
John Audia [Fri, 21 Jan 2022 19:12:53 +0000 (14:12 -0500)]
mt7622: switch default CPU governor to ondemand

The most common CPU governor in the OpenWRT project is currently ondemand (see
below).  Switch mt7622 over to it as well.

Audit the code by running the following and then analyzing the results:
find -name 'config-5.*' -print0 | xargs -0 grep 'CONFIG_CPU_FREQ_DEFAULT_GOV.*=y'

ondemand: 16
performance: 5
schedutil: 5
userspace: 2

Build system: x86_64
Build-tested: ramips/mt7621

Signed-off-by: John Audia <graysky@archlinux.us>
2 years agoscripts/download.pl: make the download tool configurable
Christian Marangi [Fri, 30 Sep 2022 23:36:48 +0000 (01:36 +0200)]
scripts/download.pl: make the download tool configurable

Introduce a new option in the "Advanced configuration options" to
configure a custom download tool.

By declaring a string in "Use custom download tool" an user can force
what command to use to download package. With the string empty the
default tool used is curl, with wget as a fallback if not available.

download.pl supports 3 tools officially aria2c, curl and wget.
If one of the tool is used in this config, download.pl will use the
default args to make use of them.

If the provided string is different than aria2c, curl or wget, the command
is used as is and the download url will be appended at the end of such command.

While at it also tweak the tool selection logic and chose the tool only
once when the script is called and move aria2c specific variables in the
relevant section.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agotools: remove implicit dependencies
Rosen Penev [Wed, 28 Sep 2022 01:57:07 +0000 (18:57 -0700)]
tools: remove implicit dependencies

Small cleanup.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2 years agotools: add Host/Uninstall where possible
Rosen Penev [Wed, 28 Sep 2022 08:23:56 +0000 (01:23 -0700)]
tools: add Host/Uninstall where possible

This cleans staging_dir when calling tool/x/clean.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2 years agomediatek: clean up platform kernel modules
Daniel Golle [Wed, 19 Oct 2022 22:03:07 +0000 (23:03 +0100)]
mediatek: clean up platform kernel modules

Remove kmod-sdhci-mtk as the mtk-sd driver is built-in anyway for the
relevant subtargets in order to support mounting rootfs from eMMC or
SD card.

Add kmod-iio-mt6577-auxadc to support reading the raw values from the
auxadc unit used as in-SoC thermal sensor. This driver was previously
built-in, but as thermal itself works well without it there is no use
for it in every day use of a device. Build the module to still allow
access to the raw values for those who need it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 years agokernel: modules: iio: create and use AddDepends
Daniel Golle [Wed, 19 Oct 2022 22:00:37 +0000 (23:00 +0100)]
kernel: modules: iio: create and use AddDepends

Just like for other subsystems, create a reusable AddDepends call.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 years agoramips: kndrt31r19: set up wan interface by default
Andrey Butirsky [Fri, 9 Sep 2022 22:57:20 +0000 (01:57 +0300)]
ramips: kndrt31r19: set up wan interface by default

The only WAN port of the device is it's modem, so set it up as such

Signed-off-by: Andrey Butirsky <butirsky@gmail.com>
2 years agoipq40xx: Convert mikrotik,wap-ac to DSA
Mark Mentovai [Thu, 11 Nov 2021 17:24:24 +0000 (12:24 -0500)]
ipq40xx: Convert mikrotik,wap-ac to DSA

As done previously, this preserves the MAC addresses of they physical
Ethernet ports. The interfaces are renamed as eth0 is in use for the
native GMAC; the new interface naming matches the physical port labels.
 - sw-eth1 corresponds to the physical port labeled ETH1 and has the
   base MAC address. This port can be used to power the device.
 - sw-eth2 corresponds to the physical port labeled ETH2 and has a MAC
   address one greater than the base.

As this device has 2 physical ports, they are each connected to their
respective PHYs, allowing the link status to be visible to software.
Since they are not marked on the case with any role (such as LAN or
WAN), both are bridged to the lan network by default, although this can
easily be changed if needed.

Signed-off-by: Mark Mentovai <mark@mentovai.com>
2 years agoath79: improve MAC address configuration of ELECOM devices
INAGAKI Hiroshi [Wed, 19 Oct 2022 15:00:27 +0000 (00:00 +0900)]
ath79: improve MAC address configuration of ELECOM devices

Get MAC address of WAN from HW.WAN.MAC.Address in hwconfig partition
instead of calculated one from wlan's address.
And added label_mac.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2 years agoath79: use NVMEM for wlan caldata on ELECOM devices
INAGAKI Hiroshi [Wed, 19 Oct 2022 14:57:34 +0000 (23:57 +0900)]
ath79: use NVMEM for wlan caldata on ELECOM devices

Use NVMEM "calibration" implementation for ath9k/ath10k(-ct) on ELECOM
WRC-300GHBK2-I and WRC-1750GHBK2-I/C instead of mtd-cal-data property
or user-space script.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2 years agoath79: use ARTIFACTS for initramfs-factory of ELECOM devices
INAGAKI Hiroshi [Mon, 1 Aug 2022 04:40:10 +0000 (13:40 +0900)]
ath79: use ARTIFACTS for initramfs-factory of ELECOM devices

Use ARTIFACTS to generate factory image of the following ELECOM devices
instead of redundant recipe which generate on KERNEL_INITRAMFS.

- ELECOM WRC-300GHBK2-I
- ELECOM WRC-1750GHBK2-I/C

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2 years agobuild: move Build/edimax-header to image-commands.mk
INAGAKI Hiroshi [Mon, 1 Aug 2022 04:30:39 +0000 (13:30 +0900)]
build: move Build/edimax-header to image-commands.mk

To use from the following devices in ath79 target, move edimax-header to
image-commands.mk.

- ELECOM WRC-300GHBK2-I
- ELECOM WRC-1750GHBK2-I/C

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2 years agowireless-tools: add package CPE ID
Petr Štetiar [Wed, 19 Oct 2022 19:38:08 +0000 (21:38 +0200)]
wireless-tools: add package CPE ID

Common Platform Enumeration (CPE) is a structured naming scheme for
information technology systems, software, and packages.

Suggested-by: Steffen Pfendtner <s.pfendtner@ads-tec.de>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2 years agoncurses: add package CPE ID
Petr Štetiar [Wed, 19 Oct 2022 19:38:08 +0000 (21:38 +0200)]
ncurses: add package CPE ID

Common Platform Enumeration (CPE) is a structured naming scheme for
information technology systems, software, and packages.

Suggested-by: Steffen Pfendtner <s.pfendtner@ads-tec.de>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2 years agoarm-trusted-firmware-sunxi: add package CPE ID
Petr Štetiar [Wed, 19 Oct 2022 19:38:08 +0000 (21:38 +0200)]
arm-trusted-firmware-sunxi: add package CPE ID

Common Platform Enumeration (CPE) is a structured naming scheme for
information technology systems, software, and packages.

Suggested-by: Steffen Pfendtner <s.pfendtner@ads-tec.de>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2 years agolibnftnl: add package CPE ID
Petr Štetiar [Wed, 19 Oct 2022 19:38:08 +0000 (21:38 +0200)]
libnftnl: add package CPE ID

Common Platform Enumeration (CPE) is a structured naming scheme for
information technology systems, software, and packages.

Suggested-by: Steffen Pfendtner <s.pfendtner@ads-tec.de>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2 years agox86: switch to 5.15 as default kernel
Nick Hainke [Sat, 8 Oct 2022 14:02:45 +0000 (16:02 +0200)]
x86: switch to 5.15 as default kernel

Set 5.15 as default kernel. Testing support was already added on
29.03.2021.

Testing support was added in
9b3bc5d11978 ("x86: enable 5.15 as testing kernel").

[0] - https://github.com/torvalds/linux/commit/edd602146507532c1714d8428f654b87205f492e

Tested-by: Mark Mentovai <mark@mentovai.com>
Tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Tested-by: Thomas Huehn <thomas.huehn@hs-nordhausen.de>
Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agokernel: test for kernel version greater 5.13 to fix mmc-spi
Nick Hainke [Mon, 10 Oct 2022 06:04:41 +0000 (08:04 +0200)]
kernel: test for kernel version greater 5.13 to fix mmc-spi

The of_mmc_spi.o resource is provider agnostic in kernels greater 5.13
and does not depend anymore on CONFIG_OF [0].

[0] - https://github.com/torvalds/linux/commit/edd602146507532c1714d8428f654b87205f492e

Suggested-by: John Thomson <git@johnthomson.fastmail.com.au>
Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agouboot-envtools: mediatek/mt7622: don't rely on mapped rootfs
Daniel Golle [Wed, 19 Oct 2022 19:01:35 +0000 (20:01 +0100)]
uboot-envtools: mediatek/mt7622: don't rely on mapped rootfs

Similar to the implementation for the BPi-R3 use the same logic also
for determining the device to look for the U-Boot environment of the
BPi-R64.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 years agomediatek: mt7622: don't rely on existing image for sysupgrade
Daniel Golle [Wed, 19 Oct 2022 18:58:12 +0000 (19:58 +0100)]
mediatek: mt7622: don't rely on existing image for sysupgrade

Don't reply on mapped rootfs partition but rather just take what ever
has been set to the kernel cmdline root= parameter as a hint to decide
which media to install sysupgrade to on the BananaPi BPi-R64.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 years agomediatek: mt7622: kernel config fixes
Daniel Golle [Wed, 19 Oct 2022 17:08:09 +0000 (18:08 +0100)]
mediatek: mt7622: kernel config fixes

 * remove orphaned Kconfig symbol now that CONFIG_IIO is no longer
   selected after commit ef8b935c95 ("mediatek: clean up mt7622 kernel config")

 * select UBI fast-map feature to decrease boot time and keep the
   number of spare blocks required in sync with U-Boot's expectations
   (we got fast-map enabled in U-Boot)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 years agomediatek: update pending and rename merged patch
Daniel Golle [Wed, 19 Oct 2022 14:31:35 +0000 (15:31 +0100)]
mediatek: update pending and rename merged patch

Add patch headers and description for pending patch.
Add version tag to patch already merged upstream.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 years agokernel: mtd: backport SafeLoader parser
Rafał Miłecki [Tue, 18 Oct 2022 20:37:46 +0000 (22:37 +0200)]
kernel: mtd: backport SafeLoader parser

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2 years agokernel: mtd: backport extended dynamic partitions support
Rafał Miłecki [Tue, 18 Oct 2022 20:12:27 +0000 (22:12 +0200)]
kernel: mtd: backport extended dynamic partitions support

This gets rid of "nvmem-cells" limitation. Dynamic partitions can be
defined for any (sub)partitions layout.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2 years agokernel: mtd: fix unbalanced of_node_put() in dynamic partitions code
Rafał Miłecki [Tue, 18 Oct 2022 19:25:15 +0000 (21:25 +0200)]
kernel: mtd: fix unbalanced of_node_put() in dynamic partitions code

Fixes: 1a9ee367343ed ("kernel: backport mtd dynamic partition patch")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2 years agokernel: disable kmod-fs-ntfs3 for Linux 5.10
Rafał Miłecki [Wed, 12 Oct 2022 09:42:36 +0000 (11:42 +0200)]
kernel: disable kmod-fs-ntfs3 for Linux 5.10

This new NTFS driver was added in kernel 5.15. Avoid building empty
package for kernel 5.10.

Fixes: bd0db6017b192 ("kernel: 5.15: add new module")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2 years agogeneric: 5.15: add missing tag for some backports patches
Christian Marangi [Tue, 18 Oct 2022 20:38:05 +0000 (22:38 +0200)]
generic: 5.15: add missing tag for some backports patches

Add for mtd-parsers-trx-allow-to-use-on-MediaTek-MIPS-SoCs.patch and
hwmon-lm70-Add-ti-tmp125-support.patch the 5.18 tag as it was merged
in kernel 5.18.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agoipq806x: 5.15: add 6.1 tag to upstream patch
Christian Marangi [Tue, 18 Oct 2022 20:19:34 +0000 (22:19 +0200)]
ipq806x: 5.15: add 6.1 tag to upstream patch

Add 6.1 tag to upstream patch now that 6.1 got tagged. This permits to
track patch in a better way and directly drop them on kernel bump.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 years agouboot-envtools: mediatek_filogic: fix BPi-R3 when no OS is installed
Daniel Golle [Tue, 18 Oct 2022 19:01:23 +0000 (20:01 +0100)]
uboot-envtools: mediatek_filogic: fix BPi-R3 when no OS is installed

Fix accessing the environment in case no OS is installed on the flash
media selected for boot as this is possible when booting initramfs.
In case of relying on the device specified to be mounted as rootfs to
be present, rather just use the kernel cmdline 'root' variable as a
hint to decide where to read/write the U-Boot environment.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 years agomediatek: filogic: don't rely on image preset in flash or sysupgrade
Daniel Golle [Tue, 18 Oct 2022 18:47:25 +0000 (19:47 +0100)]
mediatek: filogic: don't rely on image preset in flash or sysupgrade

Instead of trying to figure out the actual root device, just use the
kernel 'root' cmdline parameter as a hint to decide which device to
flash to.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 years agofstools: update to git HEAD
Daniel Golle [Tue, 18 Oct 2022 18:42:35 +0000 (19:42 +0100)]
fstools: update to git HEAD

 ee54c6b libfstools: skip JFFS2 padding on block devices

Fixes config restore on the BPi R3 when using MMC storage.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 years agouboot-mediatek: update to U-Boot 2022.10
Daniel Golle [Tue, 18 Oct 2022 13:28:53 +0000 (14:28 +0100)]
uboot-mediatek: update to U-Boot 2022.10

Remove patches adding support for MT7621 which have been merged upsteam.
Patches for MT7981 and MT7986 have been merged too, but not in time to
be included in the 2022.10 release, so we have to keep carrying them
until the 2023.01 release.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 years agomediatek: filogic: use UBI fast map to speed up boot
Daniel Golle [Tue, 18 Oct 2022 18:48:50 +0000 (19:48 +0100)]
mediatek: filogic: use UBI fast map to speed up boot

Use UBI fast map feature to avoid scanning the whole flash on each
boot which takes several seconds.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 years agomediatek: don't break auxadc without 32k clk
Daniel Golle [Sun, 16 Oct 2022 18:35:50 +0000 (19:35 +0100)]
mediatek: don't break auxadc without 32k clk

Make the newly added 32k clock optional for the auxadc driver also used
on pre-filogic platforms.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 years agomt7621: hiwifi_hc5962: fix reboot loop by using LZMA loader
Petr Štetiar [Tue, 18 Oct 2022 06:55:46 +0000 (08:55 +0200)]
mt7621: hiwifi_hc5962: fix reboot loop by using LZMA loader

This fixes a well known "LZMA ERROR 1" error, reported previously on
numerous of similar devices.

References: https://github.com/openwrt/openwrt/issues/10645#issuecomment-1282607274
Signed-off-by: Petr Štetiar <ynezz@true.cz>