openwrt/staging/robimarko.git
3 years agolldpd: bump to 1.0.13
Stijn Tintel [Sun, 14 Nov 2021 18:59:47 +0000 (20:59 +0200)]
lldpd: bump to 1.0.13

Fixes CVE-2021-43612.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
3 years agolantiq: fix mac address from nvmem-cells
Mathias Kresin [Sun, 14 Nov 2021 19:09:25 +0000 (20:09 +0100)]
lantiq: fix mac address from nvmem-cells

The devicetree property mac-address is expected to be set by the
bootloader and has priority over the nvmem supplied one.

Drop the mac-address address property from the dtsi files, to let the
mac address from nvmem-cells get used.

Signed-off-by: Mathias Kresin <dev@kresin.me>
3 years agouboot-lantiq: reduce stack size
Mathias Kresin [Sun, 14 Nov 2021 16:11:14 +0000 (17:11 +0100)]
uboot-lantiq: reduce stack size

On lantiq a lot of stuff expects to be loaded to and executed at
0x80002000, including our own second stage bootloader.

For all build u-boots, the initial stack pointer is at 0x80008000. After
loading data to 0x80002000, every further stack operation corrupts the
loaded code.

Set the initial stack pointer to 0x80002000, to not overwrite code
loaded in memory. A stack of 0x2000 bytes has been proven as enough in
all done tests.

Signed-off-by: Mathias Kresin <dev@kresin.me>
3 years agouboot-lantiq: danube: fix SPL boot
Mathias Kresin [Tue, 2 Nov 2021 22:35:32 +0000 (23:35 +0100)]
uboot-lantiq: danube: fix SPL boot

On danube we only have 0x6800 bytes of usable SRAM. Everything behind
can't be written to and a SPL u-boot locks up during boot.

Since it's a hard to debug issue and took me more than two years to fix
it, I consider it worth to include fix albeit SPL u-boots are not build
in OpenWrt.

I faced the issue while trying to shrink the u-boot to 64K since some
boards only have an u-boot partition of that size from the days
ifx-uboot was used.

Signed-off-by: Mathias Kresin <dev@kresin.me>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
3 years agouboot-lantiq: fix out of bounds cache invalidate
Mathias Kresin [Tue, 2 Nov 2021 21:20:28 +0000 (22:20 +0100)]
uboot-lantiq: fix out of bounds cache invalidate

With gcc10 the variables are placed more tightly to each other, which
uncovers a long existing bug in the lantiq DMA code. It can be observed
when using tftpboot with the filename parameter, which gets reset during
the tftpboot execution.

NetRxPackets[] points to cache line size aligned addresses. In
ltq_eth_rx_packet_align() the address NetRxPackets[] points to is
increased by LTQ_ETH_IP_ALIGN and the resulting not cache aligned
address is used further on. While doing so, the length/size is never
updated.

The "not cache aligned address" + len/size for a cache aligned address
is passed to invalidate_dcache_range(). Hence, invalidate_dcache_range()
invalidates the next 32 bit as well, which flashes the BootFile variable
as well.

   variable BootFile is at address: 0x83ffe12c
   NetRxPackets[] points to 0x83ffdb20 (len is 0x600)
   data points to: 0x83ffdb22 (len is 0x600)

   ltq_dma_dcache_inv: 0x83ffdb22 (for len 0x600)
   invalidate_dcache_range: 0x83ffdb20 to 0x83ffe120 (size: 32)
   invalidate_dcache_range: 0x83ffdb20 to 0x83ffdb40 (Bootfile: a.bin)
   ...
   invalidate_dcache_range: 0x83ffe100 to 0x83ffe120 (Bootfile: a.bin)
   invalidate_dcache_range: 0x83ffe120 to 0x83ffe140 (Bootfile: )

In ltq_dma_tx_map() and ltq_dma_rx_map() the start address passed to
ltq_dma_dcache_wb_inv() is incorrect. By considering the offset, the
start address passed to flush_dcache_range() is always aligned to 32, 64
or 128 bytes dependent on configured DMA burst size.

Fixes: FS#4113
Signed-off-by: Mathias Kresin <dev@kresin.me>
3 years agouboot-lantiq: danube: fix hanging lzma kernel uncompression
Mathias Kresin [Fri, 5 Nov 2021 09:41:26 +0000 (10:41 +0100)]
uboot-lantiq: danube: fix hanging lzma kernel uncompression

At least since gcc 7.3.0 (OpenWrt 18.06) lwr/lwl are used in the
assembly of LzmaProps_Decode. While the decission made by the compiler
looks perfect fine, it triggers some obscure hang on lantiq danube-s
v1.5 with MX29LV640EB NOR flash chips.

Only if the offset 1 is used, the hang can be observed. Using any other
offset works fine:

  lwl s0,0(a1) - s0 == 0x6d000080
  lwl s0,1(a1) - hangs
  lwl s0,2(a1) - s0 == 0x0080xxxx
  lwl s0,3(a1) - s0 == 0x80xxxxxx

It isn't clear whether it is a limitation of the flash chip, the EBU or
something else.

Force 8bit reads to prevent gcc optimizing the read with lwr/lwl
instructions.

Signed-off-by: Mathias Kresin <dev@kresin.me>
3 years agoqosify: add missing alias support in the init script
Felix Fietkau [Sun, 14 Nov 2021 18:35:52 +0000 (19:35 +0100)]
qosify: add missing alias support in the init script

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoipq40xx: fix missing include
Christian Lamparter [Sun, 14 Nov 2021 18:14:55 +0000 (19:14 +0100)]
ipq40xx: fix missing include

This patch fixes a blunder of mine. The include needed
for LED_COLOR_ID_BLUE property is missing.

This caused the builds to fail with:
|Error: arch/arm/boot/dts/qcom-ipq4019-r619ac.dtsi:91.13-14 syntax error
|FATAL ERROR: Unable to parse input tree

Fixes: 12d33d388c52 ("ipq40xx: add support for P&W R619AC (aka G-DOCK 2.0)")
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
3 years agoipq40xx: reenable Zyxel NBG6617 by default
Christian Lamparter [Fri, 5 Nov 2021 23:42:43 +0000 (00:42 +0100)]
ipq40xx: reenable Zyxel NBG6617 by default

The Zyxel NBG6617 already uses lzma to compress the kernel.
A local build with every module enabled (either as =Y or =M)
ended produced a 3058 KiB kernel (the kernel partition is 4MiB).
It booted just fine, let's reenable the device.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
3 years agoipq40xx: add support for P&W R619AC (aka G-DOCK 2.0)
Richard Yu [Fri, 12 Nov 2021 03:16:21 +0000 (11:16 +0800)]
ipq40xx: add support for P&W R619AC (aka G-DOCK 2.0)

P&W R619AC is a IPQ4019 Dual-Band AC1200 router.
It is made by P&W (p2w-tech.com) known as P&W R619AC
but marketed and sold more popularly as G-DOCK 2.0.

Specification:

* SOC: Qualcomm Atheros IPQ4019 (717 MHz)
* RAM: 512 MiB
* Flash: 16 MiB (NOR) + 128 MiB (NAND)
* Ethernet: 5 x 10/100/1000 (4 x LAN, 1 x WAN)
* Wireless:
  - 2.4 GHz b/g/n Qualcomm Atheros IPQ4019
  - 5 GHz a/n/ac Qualcomm Atheros IPQ4019
* USB: 1 x USB 3.0
* LED: 4 x LAN, 1 x WAN, 2 x WiFi, 1 x Power (All Blue LED)
* Input: 1 x reset
* 1 x MicroSD card slot
* Serial console: 115200bps, pinheader J2 on PCB
* Power: DC 12V 2A
* 1 x Unpopulated mPCIe Slot (see below how to connect it)
* 1 x Unpopulated Sim Card Slot

Installation:
1. Access to tty console via UART serial
2. Enter failsafe mode and mount rootfs
   <https://openwrt.org/docs/guide-user/troubleshooting/failsafe_and_factory_reset>
3. Edit inittab to enable shell on tty console
   `sed -i 's/#ttyM/ttyM/' /etc/inittab`
4. Reboot and upload `-nand-factory.bin` to the router (using wget)
5. Use `sysupgrade` command to install

Another installation method is to hijack the upgrade server domain
of stock firmware, because it's using insecure http.

This commit is based on @LGA1150(at GitHub)'s work
<https://github.com/LGA1150/openwrt/commit/a4932c8d5a275d1fb4297bd20ec03f9270a45d1c>
With some changes:
1. Added `qpic_bam` node in dts. I don't know much about this,
   but I observed other dtses have this node.
2. Removed `ldo` node under `sd_0_pinmux`, because `ldo` cause SD card not
   working. This fix is from
   <https://github.com/coolsnowwolf/lede/commit/51143b4c7571f717afe071db60bbb4db1532cbf2>
3. Removed the 32MB NOR variant.
4. Removed `cd-gpios` in `sdhci` node, because it's reported that it makes
   wlan2g led light up.
5. Added ethphy led config in dts.
6. Changed nand partition label from `rootfs` to `ubi`.

About the 128MiB variant: The stock bootloader sets size of nand to 64MiB.
But most of this devices have 128MiB nand. If you want to use all 128MiB,
you need to modify the `MIBIB` data of bootloader. More details can be
found on github:
<https://github.com/openwrt/openwrt/pull/3691#issuecomment-818770060>
For instructions on how to flash the MIBIB partition from u-boot console:
<https://github.com/openwrt/openwrt/pull/3691#issuecomment-819138232>

About the Mini PCIe slot: (from "ygleg")
"The REFCLK signals on the Mini PCIe slot is not connected on
this board out of the box. If you want to use the Mini PCIe slot
on the board, you need to (preferably) solder two 0402 resistors:
R436 (REFCLK+) and R444 (REFCLK-)..."
This and much more information is provoided in the github comment:
<https://github.com/openwrt/openwrt/pull/3691#issuecomment-968054670>

Signed-off-by: Richard Yu <yurichard3839@gmail.com>
Signed-off-by: DENG Qingfang <dqfext@gmail.com>
[Added comment about MIBIB+128 MiB variant. Added commit
message section about pcie slot. Renamed gpio-leds' subnodes
and added color, function+enum properties.]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
3 years agoscripts/env: fix env for git conf init.defaultBranch not set to "master"
Arne Zachlod [Wed, 10 Nov 2021 13:47:55 +0000 (14:47 +0100)]
scripts/env: fix env for git conf init.defaultBranch not set to "master"

Since version 2.28, git has a config option init.defaultBranch to set the name
of the first branch created with git init. The env script expects this name to
be "master". This commit sets the initial branch name to "master"
instead of using the git configured one.

Signed-off-by: Arne Zachlod <arne@nerdkeller.org>
3 years agofirewall4: update to latest Git HEAD
Paul Spooren [Mon, 25 Oct 2021 23:27:26 +0000 (13:27 -1000)]
firewall4: update to latest Git HEAD

eb0a3ee fw4.uc: Do not quote port ranges
c5a8e3e tests: adapt test to new ICMP print logic

Also start using $(AUTORELEASE)

Signed-off-by: Paul Spooren <mail@aparcar.org>
3 years agobase-files: stage2: improve /proc/*/stat parser
Daniel Golle [Sat, 13 Nov 2021 16:29:52 +0000 (16:29 +0000)]
base-files: stage2: improve /proc/*/stat parser

Simply reading /proc/*/stat as a space-separated string will not work
as the process name may itself contain spaces. Hence we must match on
the '(' and ')' characters around the process name and can then handle
the remaining string as space-separated values.
This fixes shell error messages which have been popping up the console
due to spaces in process names being interpreted as field separators.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
3 years agokernel: bump 5.10 to 5.10.79
Rui Salvaterra [Fri, 12 Nov 2021 15:31:37 +0000 (15:31 +0000)]
kernel: bump 5.10 to 5.10.79

Manually rebased:
generic/backport-5.10/810-v5.13-usb-ehci-add-spurious-flag-to-disable-overcurrent-ch.patch

Tested-by: John Audia <graysky@archlinux.us>
Tested-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
3 years agomac80211: Fix deadlock when configuring wifi
Hauke Mehrtens [Sat, 13 Nov 2021 17:24:52 +0000 (18:24 +0100)]
mac80211: Fix deadlock when configuring wifi

The nl80211_set_wiphy() function was changed between kernel 5.11 and
5.12 to take the rdev->wiphy lock which should be freed at the end
again. The 500-mac80211_configure_antenna_gain.patch added some code
which just returned in some cases without unlocking. This resulted in a
deadlock with brcmfmac.
This patch fixes this by also jumping to the out label in case we want
to leave the function.
This fixes a hanging system when brcmfmac is in use. I do not know why
we do not see this with other driver.

The kernel returns very useful debug details when setting these OpenWrt
configuration options:
CONFIG_KERNEL_DETECT_HUNG_TASK=y
CONFIG_KERNEL_PROVE_LOCKING=y

Fixes: FS#4122
Fixes: b96c2569ac76 ("mac80211: Update to version 5.12.19-1")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 years agoiproute2: update to 5.15
Russell Senior [Sun, 7 Nov 2021 23:32:18 +0000 (15:32 -0800)]
iproute2: update to 5.15

from https://git.kernel.org/pub/scm/network/iproute2/iproute2.git

changes since 5.14.0:

ad3a118f rdma: Fix SRQ resource tracking information json
7a235a10 man: devlink-port: fix pfnum for devlink port add
229eaba5 uapi: pickup fix for xfrm ABI breakage
a500c5ac lib/bpf: fix map-in-map creation without prepopulation
7c032cac man: devlink-port: remove extra .br
04ee8e6f man: devlink-port: fix style
14802d84 man: devlink-port: fix the devlink port add synopsis
897772a7 cmd: use spaces instead of tabs for usage indentation
e7a98a96 mptcp: unbreak JSON endpoint list
2f5825cb lib: bpf_legacy: fix bpffs mount when /sys/fs/bpf exists
d756c08a tc/f_flower: fix port range parsing
92e32f77 uapi: updates from 5.15-rc1
e7e0e2ce iptuntap: fix multi-queue flag display
deef844b man: ip-link: remove double of
a3272b93 configure: restore backward compatibility
ceba5930 tree-wide: fix some typos found by Lintian
7a705242 ip: remove leftovers from IPX and DECnet
8ab1834e uapi: update headers from 5.15 merge
6d0d35ba ip/bond: add lacp active support
926ad641 Update kernel headers
c730bd0b ip/tunnel: always print all known attributes
df8912ed ipioam6: use print_nl instead of print_null
7e7270bb tc/skbmod: Introduce SKBMOD_F_ECN option
86c596ed IOAM man8
2d83c710 New IOAM6 encap type for routes
f0b3808a Add, show, link, remove IOAM namespaces and schemas
acbdef93 Import ioam6 uapi headers
2d6fa30b Update kernel headers
508ad89c ipneigh: add support to print brief output of neigh cache in tabular format

* update patch 170-ip_tiny.patch to accomodate ioam.

Signed-off-by: Russell Senior <russell@personaltelco.net>
3 years agoqosify: add default alias sections
Felix Fietkau [Fri, 12 Nov 2021 22:11:37 +0000 (23:11 +0100)]
qosify: add default alias sections

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoqosify: update to the latest version
Felix Fietkau [Fri, 12 Nov 2021 22:06:26 +0000 (23:06 +0100)]
qosify: update to the latest version

0750f2b4d329 README: dnsmasq integration is complete
8e48d0b0cbba bpf: add initial support for splitting map dscp value into ingress and egress
bfc2cafe2a8c map: add support for defining aliases

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agodnsmasq: fix the dynamic dns object names patch
Rui Salvaterra [Fri, 12 Nov 2021 16:50:33 +0000 (16:50 +0000)]
dnsmasq: fix the dynamic dns object names patch

We can't use booleans, since we're not including stdbool.h. Use integers
instead.

Fixes: 0b79e7c01e ("dnsmasq: generate the dns object name dynamically")
Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
3 years agomediatek: mt7622: bpi-r64: rewrite MMC uImage.FIT sysupgrade
Daniel Golle [Fri, 12 Nov 2021 14:54:52 +0000 (14:54 +0000)]
mediatek: mt7622: bpi-r64: rewrite MMC uImage.FIT sysupgrade

Similar to mt7623, also no longer use 'blockdev' and stop relying on
in-kernel partition parsers. Instead, strip off all metadata using
'fwtool' while writing the firmware image and scrape the number of
blocks written from 'dd', then use that block offset to stash the
configuration backup.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
3 years agomediatek: mt7623: re-write sysupgrade uImage.FIT on MMC
Daniel Golle [Fri, 12 Nov 2021 11:50:26 +0000 (11:50 +0000)]
mediatek: mt7623: re-write sysupgrade uImage.FIT on MMC

Re-reading the partition table doesn't work reliably, it fails if
anything on the device is still in use and it's not trivial to prevent
every possible case of a block device still being in use somehow.

Therefore, instead of relying on the in-kernel partition parser to know
where to write the configuration backup, use OpenWrt's format-agnostic
fwtool to strip off all metadata from the image and count its blocks
while writing. In that way we can know where to write the config backup
without needing the kernel to parse the MBR and FIT structures.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
3 years agodnsmasq: add ubus acl to allow calls to hotplug.tftp object
Daniel Golle [Thu, 11 Nov 2021 14:24:26 +0000 (14:24 +0000)]
dnsmasq: add ubus acl to allow calls to hotplug.tftp object

dnsmasq may call hotplug.dhcp, hotplug.neigh and hotplug.tftp.
Only the first two callees were listed in the ACL, so add missing
hotplug.tftp.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
3 years agoinclude/bpf.mk: fix typo in clang version check
Felix Fietkau [Fri, 12 Nov 2021 12:15:35 +0000 (13:15 +0100)]
include/bpf.mk: fix typo in clang version check

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoprocd: update to git HEAD
Daniel Golle [Thu, 11 Nov 2021 14:05:59 +0000 (14:05 +0000)]
procd: update to git HEAD

 9d1431e jail: allow passing environment variable to procd jailed process

Fixes dnsmasq in ujail which needs USER_SCRIPT env variable to be
passed to jailed process.

Reported-by: Bastian Bittorf <bb@npl.de>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
3 years agomac80211: fix queue selection issue
Felix Fietkau [Wed, 10 Nov 2021 21:24:51 +0000 (22:24 +0100)]
mac80211: fix queue selection issue

When __ieee80211_select_queue is called, skb->cb has not been cleared yet,
which means that info->control.flags can contain garbage.
In some cases this leads to IEEE80211_TX_CTRL_DONT_REORDER being set, causing
packets marked for other queues to randomly end up in BE instead.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agonat46: update to latest git HEAD
Hans Dedecker [Wed, 10 Nov 2021 19:24:36 +0000 (20:24 +0100)]
nat46: update to latest git HEAD

1fdf2a3 Fix kernel panic due to device deletion (#29)
e7b48d1 add the mutex lock for create/delete/config/insert nat46 devices to fix nat46 module crash issues. (#28)

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
3 years agodnsmasq: generate the dns object name dynamically
Felix Fietkau [Wed, 10 Nov 2021 09:07:02 +0000 (10:07 +0100)]
dnsmasq: generate the dns object name dynamically

Fixes an issue with running multiple dnsmasq instances

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoinclude/bpf.mk: check minimum required clang version
Felix Fietkau [Tue, 9 Nov 2021 19:59:15 +0000 (20:59 +0100)]
include/bpf.mk: check minimum required clang version

Avoid spurious runtime errors caused by loading eBPF modules
built with an old clang version

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agodnsmasq: add match_tag for --dhcp-host
Paul Fertser [Thu, 23 Sep 2021 07:28:45 +0000 (10:28 +0300)]
dnsmasq: add match_tag for --dhcp-host

A set of tags can be specified for --dhcp-host option to restrict the
assignment to the requests which match all the tags.

Example usage:

config vendorclass
        option networkid 'udhcp'
        option vendorclass 'udhcp'

config host
        option mac '*:*:*:*:*:*'
        list match_tag 'switch.10'
        list match_tag 'udhcp'
        option ip '192.168.25.10'

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
3 years agoqosify: mark as nonshared
Felix Fietkau [Tue, 9 Nov 2021 10:03:10 +0000 (11:03 +0100)]
qosify: mark as nonshared

The SDK does not have the LLVM toolchain yet

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agobcm4908: switch to kernel 5.10
Rafał Miłecki [Tue, 9 Nov 2021 10:57:22 +0000 (11:57 +0100)]
bcm4908: switch to kernel 5.10

Tested on:
1. Asus GT-AC5300
2. Netgear R8000P

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
3 years agobcm4908: add watchdog support
Rafał Miłecki [Tue, 9 Nov 2021 11:07:59 +0000 (12:07 +0100)]
bcm4908: add watchdog support

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
3 years agobcm4908: refresh kernel configs
Rafał Miłecki [Tue, 9 Nov 2021 10:57:07 +0000 (11:57 +0100)]
bcm4908: refresh kernel configs

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
3 years agoqosify: move files to /etc/qosify
Felix Fietkau [Mon, 8 Nov 2021 21:26:45 +0000 (22:26 +0100)]
qosify: move files to /etc/qosify

Now that wildcard matching is supported, this makes it easier for packages
to supply their own qosify rules

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoqosify: update to the latest version
Felix Fietkau [Mon, 8 Nov 2021 21:26:16 +0000 (22:26 +0100)]
qosify: update to the latest version

737970946bc0 map: default to fnmatch matching for dns patterns. support regex via leading /
b56b112e62e2 ubus: fix crash caused by missing static keyword
3a420e272c18 qosify: support wildcards in classifier filenames

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoqosify: add missing dependency
Felix Fietkau [Mon, 8 Nov 2021 20:28:27 +0000 (21:28 +0100)]
qosify: add missing dependency

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agobcm4908: fix b53 regression regarding RGMII reg(s)
Rafał Miłecki [Mon, 8 Nov 2021 16:23:09 +0000 (17:23 +0100)]
bcm4908: fix b53 regression regarding RGMII reg(s)

This fixes:
[   35.308550] WARNING: CPU: 0 PID: 230 at bcm_sf2_reg_rgmii_cntrl.isra.0+0x84/0x90

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
3 years agobcm53xx: drop patch for downstream swconfig-based b53
Rafał Miłecki [Mon, 8 Nov 2021 14:58:42 +0000 (15:58 +0100)]
bcm53xx: drop patch for downstream swconfig-based b53

It isn't used anymore so there is no need to hack CPU port. Upstream
(DSA-based) b53 also supports all switch ports just fine.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
3 years agobcm53xx: drop downstream patch for Buffalo WZR-1750DHP button
Rafał Miłecki [Thu, 16 Sep 2021 06:39:50 +0000 (08:39 +0200)]
bcm53xx: drop downstream patch for Buffalo WZR-1750DHP button

This patch never received a proper description and was never sent
upstream as supposed. It was meant to be handled in 2015-2018 so it
should be safe to assume noone really understands it or care.

Cc: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
3 years agolayerscape: mkits-multiple-config: fail on invalid arguments
Rafał Miłecki [Mon, 25 Oct 2021 08:17:15 +0000 (10:17 +0200)]
layerscape: mkits-multiple-config: fail on invalid arguments

Fail if arguments couldn't be parsed and print unrecognized part. It's
important when running it from script with dynamic values. Missing value
could result in skipping argument and silent failures (unexpected its).

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
3 years agobcm4908: start work on images for devices using U-Boot
Rafał Miłecki [Wed, 3 Nov 2021 17:12:05 +0000 (18:12 +0100)]
bcm4908: start work on images for devices using U-Boot

New BCM4908 family based routers will use U-Boot bootloader. That will
require using a totally different firmware format. Kernel has to be put
in a FIT image.

OpenWrt has some helpers for generating .its files but they don't fit
BCM4908 requirements and there is no simple way of extending any of
them. The best solution seems to be storing an .its template.

BCM4908 bootfs may:
1. contain extra binaries (other than kernel & DTB)
2. include multiple DTB files
3. store device specific U-Boot configurations with custom properties

Such setups are too complex to generate using shell script. Raw .its
file on the other hand seems quire clean & reasonable.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
3 years agobcm47xx: switch to kernel 5.10
Rafał Miłecki [Mon, 8 Nov 2021 14:56:39 +0000 (15:56 +0100)]
bcm47xx: switch to kernel 5.10

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
3 years agobcm47xx: fix bgmac regression present in 5.10 kernel
Rafał Miłecki [Mon, 8 Nov 2021 14:55:40 +0000 (15:55 +0100)]
bcm47xx: fix bgmac regression present in 5.10 kernel

This fixes:
[    2.548098] bgmac_bcma bcma0:1: Failed to register fixed PHY device
[    2.554584] bgmac_bcma bcma0:1: Cannot connect to phy
and downstream (swconfig-based) b53 driver failing to load.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
3 years agobcm47xx: relocate LZMA loader
Rafał Miłecki [Sun, 7 Nov 2021 13:45:14 +0000 (14:45 +0100)]
bcm47xx: relocate LZMA loader

Kernel 5.10 grew bigger than 5.4 so we need to bump BZ_TEXT_START to
allow lzma loader hanel its size.

At the same time BZ_STACK_START needs to be increased to avoid
overwriting the stack.

For a reference see:
d5cf4a5aa4a3 ("brcm47xx: relocate loader to higher address")
2909a4b78e2b ("brcm47xx: relocate the stack in loader")

Cc: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
3 years agorpcd: reload rpcd on installation of rpcd-mod-*
Daniel Golle [Fri, 29 Oct 2021 11:14:16 +0000 (12:14 +0100)]
rpcd: reload rpcd on installation of rpcd-mod-*

When installing additional rpcd modules, a restart of rpcd is required.
This often confuses users as even after installing rpcd-mod-rpcsys the
relevant ubus objects are still missing until rpcd has been reloaded
(or the system has been rebooted, obviously).
Let rpcd-mod-* reload rpcd as post-install action.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
3 years agoqosify: update to the latest version
Felix Fietkau [Mon, 8 Nov 2021 14:04:57 +0000 (15:04 +0100)]
qosify: update to the latest version

2ca7352543da map: make a helper function for freeing entries
411432ec853b map: add support for adding dns regex patterns
14803cb559d8 ubus: remove unused enum
a0740172eda6 ubus: add api for providing dns lookup results for dns regex rules
406fbf478e87 ubus: add support for dynamically adding dns based rules
5fc91183d60a README: mention dns regex entries
3ed8c3eb1a3b README: document mapping file syntax
91ce2e77d302 map: introduce low effort codepoint from RFC8622
5ff14acca0e7 interface: enable NAT on interfaces by default
e70f70e496d7 README: fix typo
f25ded617478 README: fix another typo
675238bc2ce5 loader: always reinitialize programs
010eea0d98c3 map: improve timeout handling of IP entries
7ef54a7f04a0 map: add DF codepoint
6f7fbe698555 map: increase active timeout to 300
60e06a579a13 qosify-bpf: inline check_flow() to ensure that it is jited
f5ae89e8d869 ubus: subscribe to dnsmasq.dns for dns lookup results

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agodnsmasq: add support for monitoring and modifying dns lookup results via ubus
Felix Fietkau [Mon, 8 Nov 2021 13:48:36 +0000 (14:48 +0100)]
dnsmasq: add support for monitoring and modifying dns lookup results via ubus

The monitoring functionality will be used for dns rule support in qosify

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agokernel: bump 5.10 to 5.10.78
John Audia [Sat, 6 Nov 2021 16:31:50 +0000 (12:31 -0400)]
kernel: bump 5.10 to 5.10.78

All patches automatically rebased.

Build system: x86_64
Build-tested: bcm2711/RPi4B
Run-tested: bcm2711/RPi4B

Signed-off-by: John Audia <graysky@archlinux.us>
3 years agokernel: bump 5.4 to 5.4.158
John Audia [Sat, 6 Nov 2021 16:34:16 +0000 (12:34 -0400)]
kernel: bump 5.4 to 5.4.158

All patches automatically rebased.

Signed-off-by: John Audia <graysky@archlinux.us>
3 years agogdb: Make only full gdb depend on libgmp
Hauke Mehrtens [Sun, 7 Nov 2021 16:15:06 +0000 (17:15 +0100)]
gdb: Make only full gdb depend on libgmp

libgmp is only needed for the full gdb and not for the gdbserver
application.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 years agogdb: Add explicit patch to libgmp
Hauke Mehrtens [Sun, 7 Nov 2021 16:14:16 +0000 (17:14 +0100)]
gdb: Add explicit patch to libgmp

Without giving the patch gdb does not compile on Arch Linux.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 years agopistachio: drop Kernel 5.4 support
Paul Spooren [Wed, 3 Nov 2021 00:41:23 +0000 (14:41 -1000)]
pistachio: drop Kernel 5.4 support

With the switch to Kernel 5.10 the 5.4 files are no longer needed.

Signed-off-by: Paul Spooren <mail@aparcar.org>
3 years agopistachio: switch to Kernel 5.10
Paul Spooren [Wed, 3 Nov 2021 00:40:08 +0000 (14:40 -1000)]
pistachio: switch to Kernel 5.10

This was successfully boot tested on a Creator Ci40.

Signed-off-by: Paul Spooren <mail@aparcar.org>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 years agokernel: fix KERNEL_KASAN_VMALLOC build option
Stijn Tintel [Sun, 7 Nov 2021 16:57:12 +0000 (18:57 +0200)]
kernel: fix KERNEL_KASAN_VMALLOC build option

It should be config, not CONFIG.

Fixes: cbeab2cd9919 ("kernel: add another missing KASAN symbol")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
3 years agokernel: add missing keyword to KERNEL_KASAN_VMALLOC
Stijn Tintel [Sun, 7 Nov 2021 16:54:28 +0000 (18:54 +0200)]
kernel: add missing keyword to KERNEL_KASAN_VMALLOC

The help keyword is missing, which breaks menuconfig etc.

Fixes: cbeab2cd9919 ("kernel: add another missing KASAN symbol")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
3 years agokernel: add another missing KASAN symbol
Stijn Tintel [Sun, 7 Nov 2021 16:33:35 +0000 (18:33 +0200)]
kernel: add another missing KASAN symbol

Enabling KERNEL_KASAN exposes yet another missing symbol. This did not
appear on bcm27xx but is appearing now on x86/64. Add a new kernel build
option for KASAN_VMALLOC to fix build on x86/64 with KERNEL_KASAN
enabled.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
3 years agoarchs38: update kernel version to 5.10
Evgeniy Didin [Tue, 2 Nov 2021 12:45:01 +0000 (15:45 +0300)]
archs38: update kernel version to 5.10

Update config, Makefile and image/Makefile.
Directly switch to kernel 5.10.

This patch was tested in nSIM simulator, no errors appeared.

Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com>
Cc: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Paul Spooren <mail@aparcar.org>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Cc: John Crispin <john@phrozen.org>
3 years agokernel: Add regmap-i2c dependency to sound-soc-imx-sgtl5000
Hauke Mehrtens [Sat, 6 Nov 2021 18:56:20 +0000 (18:56 +0000)]
kernel: Add regmap-i2c dependency to sound-soc-imx-sgtl5000

This dependency is needed on the imx/cortexa7 subtarget.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 years agokernel: add missing UBSAN config symbols
Stijn Tintel [Wed, 3 Nov 2021 17:38:50 +0000 (19:38 +0200)]
kernel: add missing UBSAN config symbols

Enabling KERNEL_UBSAN exposes several missing symbols. Add new kernel
build options for UBSAN_BOUNDS and UBSAN_TRAP, disable CONFIG_TEST_UBSAN
in the generic kernel configs and enable CONFIG_UBSAN_MISC in generic
5.10 config. The latter symbol was removed in later kernels, as it was
causing some issues, so just disable it in 5.10 instead of adding a
build option for it.

Fixes build failures with KERNEL_UBSAN enabled.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
3 years agokernel: add missing KASAN config symbols
Stijn Tintel [Wed, 3 Nov 2021 18:00:26 +0000 (20:00 +0200)]
kernel: add missing KASAN config symbols

Enabling KERNEL_KASAN exposes several missing symbols. As KASAN_SW_TAGS
is only implemented for arm64 CPUs and requires clang, it doesn't make
sense to make this a build option so just default to KASAN_GENERIC and
disable KASAN_SW_TAGS.

While at it, disable TEST_KASAN_MODULE in the generic 5.10 config.

Fixes build failures with KERNEL_KASAN enabled.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
3 years agokernel: 5.10: compress 7xx patch numbering
Matthew Hagan [Sat, 6 Nov 2021 13:50:27 +0000 (13:50 +0000)]
kernel: 5.10: compress 7xx patch numbering

The qca8k patch series brings the numbering to 799. This patch renames
7xx patches to create space for more backports to be added.

Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
[rename 729->719]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
3 years agoipq40xx: use zImage for Cell-C RTL30VW
Pawel Dembicki [Fri, 5 Nov 2021 15:01:54 +0000 (16:01 +0100)]
ipq40xx: use zImage for Cell-C RTL30VW

After switch to 5.10 kernel, kernel size was too high.
This patch switches Cell-C RTL30VW from uImage to zImage build.

Lzma uImage wrap is required for factory booting and it must left
untouched.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
3 years agoramips: add broken-flash-reset for HLK-7621A EvB
Wout Bertrums [Fri, 5 Nov 2021 14:09:28 +0000 (15:09 +0100)]
ramips: add broken-flash-reset for HLK-7621A EvB

This is needed because the HLK-7621 EvB has 32MB of flash,
so it will have to use 4B addressing and the
broken-flash-reset hack has to be used to be able to reboot.

Signed-off-by: Wout Bertrums <wout@wbnet.eu>
[copied github message into commit message]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
3 years agoipq40xx: 5.10: refresh config
Robert Marko [Thu, 4 Nov 2021 11:53:24 +0000 (12:53 +0100)]
ipq40xx: 5.10: refresh config

It looks like CONFIG_BLK_CMDLINE_PARSER was forgotten during the Orbi
device merge.
So lets refresh the config with it.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
3 years agox86: sort alphabetically default packages
Alberto Bursi [Wed, 3 Nov 2021 19:37:27 +0000 (20:37 +0100)]
x86: sort alphabetically default packages

sorting alphabetically default packages
and placing them on their own line.

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
[fixed whitespaces before tab, double whitespaces]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
3 years agox86: enable kmod-tg3 on 64-bit by default
Alberto Bursi [Wed, 3 Nov 2021 19:30:56 +0000 (20:30 +0100)]
x86: enable kmod-tg3 on 64-bit by default

Gigabit ethernet adapters using BCM5719/5720 chipset
are common on servers and as easy/cheap to get as
Intel based ones.
Usually found in 2-port and 4-port cards.

Also some devices recently added to x86_64 target
like the Meraki MX100 use this chipset for 8 of
their 12 integrated ports.

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
3 years agoramips: mt7621-dts: properly organize pcie node
Sergio Paracuellos [Wed, 5 May 2021 12:17:36 +0000 (14:17 +0200)]
ramips: mt7621-dts: properly organize pcie node

Device tree pcie node for this SoC is using different
styles in its different properties. Hence properly
unify them to be able to write a a proper yaml schema
documentation.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20210505121736.6459-11-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
3 years agoramips: mt7621-dts: add missing device_type in pcie root ports
Sergio Paracuellos [Thu, 6 May 2021 17:07:42 +0000 (19:07 +0200)]
ramips: mt7621-dts: add missing device_type in pcie root ports

According to the YAML schema 'pci-bus.yaml' the 'device_type'
property is mandatory for all pcie root ports. Hence add it.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20210506170742.28196-3-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
3 years agoramips: mt7621-dts: remove 'bug-range' property
Sergio Paracuellos [Thu, 6 May 2021 17:07:41 +0000 (19:07 +0200)]
ramips: mt7621-dts: remove 'bug-range' property

Property 'bus-range' when values are the default are
not necessary to be defined. Hence, remove all of them.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20210506170742.28196-2-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
3 years agoramips: mt7621-dts: use standard 'syscon' string
Sergio Paracuellos [Wed, 5 May 2021 13:21:54 +0000 (15:21 +0200)]
ramips: mt7621-dts: use standard 'syscon' string

Both 'memc' and 'sysc' nodes are not using 'syscon'
as a node string which is the standard one to be used.
Update both of them.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20210505132154.8263-3-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
3 years agoramips: mt7621-dts: remove ethsys node
Sergio Paracuellos [Wed, 5 May 2021 13:21:53 +0000 (15:21 +0200)]
ramips: mt7621-dts: remove ethsys node

DT 'ethsys' node is being configured as a syscon
to get access to reset and other registers in the
'mediateķ,mt7621-eth' driver. Since the 'sysc' is also
a syscon, provides the clock and also is virtually
mapped from the same physical address 0x1e000000 we
can just use 'sysc' as the phandle for the syscon in
the ethernet node. Compatible string 'mediatek,mt7621-ethsys'
of the node is not being used anywhere inside the kernel
so, this node can be safely removed.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20210505132154.8263-2-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
3 years agoramips: mt7621-dts: remove obsolete switch node
DENG Qingfang [Fri, 8 Jan 2021 02:51:55 +0000 (10:51 +0800)]
ramips: mt7621-dts: remove obsolete switch node

This was for OpenWrt's swconfig driver, which never made it upstream,
and was also superseded by MT7530 DSA driver.

Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: DENG Qingfang <dqfext@gmail.com>
Link: https://lore.kernel.org/r/20210108025155.31556-1-dqfext@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
3 years agoramips: mt7621-dts: properly define 'cpc' and 'mc' nodes
Sergio Paracuellos [Sat, 2 Oct 2021 06:07:06 +0000 (08:07 +0200)]
ramips: mt7621-dts: properly define 'cpc' and 'mc' nodes

'cpc' and 'mc' nodes correspond with the MIPS 'Cluster Power Controller'
and 'MIPS Common Device Memory Map' which are present in some MIPS related
boards. There is already bindings documentation for these two located in:
- Documentation/devicetree/bindings/power/mti,mips-cpc.yaml
- Documentation/devicetree/bindings/bus/mti,mips-cdmm.yaml

Hence, properly update compatible strings and align nodes with already
mainlined bindings documentation. Also, move their definition to a proper
place since both of them are not related with the palmbus at all.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20211002060706.30511-1-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
3 years agoramips: mt7621-dts: change some node hex addresses to lower case
Sergio Paracuellos [Sun, 17 Oct 2021 07:06:56 +0000 (09:06 +0200)]
ramips: mt7621-dts: change some node hex addresses to lower case

Hexadecimal addresses in device tree must be defined using lower case.
There are some of them that are still in upper case. Change them all.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20211017070656.12654-2-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
3 years agoramips: mt7621-dts: make use of 'IRQ_TYPE_LEVEL_HIGH' instead of magic numbers
Sergio Paracuellos [Tue, 19 Oct 2021 10:29:15 +0000 (12:29 +0200)]
ramips: mt7621-dts: make use of 'IRQ_TYPE_LEVEL_HIGH' instead of magic numbers

Nodes 'gdma' and 'hsdma' are using magic number '4' in interrupts property.
Use 'IRQ_TYPE_LEVEL_HIGH' instead to align with the rest of the nodes in
the file.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20211019102915.15409-2-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
3 years agoath79: WNDR3700/3800/MAC: utilize nvmem for caldata fetching
Christian Lamparter [Fri, 5 Nov 2021 21:50:45 +0000 (22:50 +0100)]
ath79: WNDR3700/3800/MAC: utilize nvmem for caldata fetching

converts the still popular WNDR3700 Series to fetch the
caldata through nvmem. As the "MAC with NVMEM" has shown,
there could pitfalls along the way.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
3 years agoath9k: nvmem for ath9k caldata
Christian Lamparter [Fri, 20 Aug 2021 22:32:31 +0000 (00:32 +0200)]
ath9k: nvmem for ath9k caldata

With "getting WIFI MAC from NVMEM" working on ath79 on 5.10,
the next logical step I think is to utilize nvmem subsystem
to also get the calibration data from there.

This will tremendously speed up the wifi bring-up, since
we no longer need the userspace helper for the simple
devices that can just load them from there.

included with this patch is a package/mac80211/refresh.

Tested on: WNDR3700v2, TP-Link Archer C7v2

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
3 years agokernel: bump 5.4 to 5.4.156
John Audia [Sun, 31 Oct 2021 11:08:40 +0000 (07:08 -0400)]
kernel: bump 5.4 to 5.4.156

Removed upstreamed:
  backport-5.4/790-v5.7-net-switchdev-do-not-propagate-bridge-updates-across.patch

All other patches automatically rebased.

Signed-off-by: John Audia <graysky@archlinux.us>
3 years agokernel: bump 5.10 to 5.10.77
Rui Salvaterra [Tue, 2 Nov 2021 21:05:27 +0000 (21:05 +0000)]
kernel: bump 5.10 to 5.10.77

Deleted (upstreamed):
bcm53xx/patches-5.10/081-v5.15-Revert-pinctrl-bcm-ns-support-updated-DT-binding-as-.patch [1]

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.10.y&id=01c2881bb0e0a71b87ca425e1b763ac13855aa7e

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
3 years agotools/mkimage: pass --static via PKG_CONFIG_EXTRAARGS
Andre Heider [Mon, 1 Nov 2021 06:59:21 +0000 (07:59 +0100)]
tools/mkimage: pass --static via PKG_CONFIG_EXTRAARGS

Remove the then unnecessary patch doing exactly that individually.

See also 09465d80 "u-boot.mk: always link host libraries static".

Signed-off-by: Andre Heider <a.heider@gmail.com>
3 years agoimagebuilder: fix local packages/ folder
Paul Spooren [Wed, 13 Oct 2021 01:36:33 +0000 (15:36 -1000)]
imagebuilder: fix local packages/ folder

This commit fixes commit "2999f810ff: build,IB: include kmods only in
local builds" which cause the local packages/ folder only to be added
for local builds but no longer for ImageBuilder created by the Buildbot.

The commits intention was to use remote kmods repositories rather than
storing them locally. Accidentally the entire handling of the local
`packages/` was removed.

Re-add the folder and include a README describing what it can be used
for.

Signed-off-by: Paul Spooren <mail@aparcar.org>
3 years agouqmi: update to git HEAD and improve proto handler script
Daniel Golle [Sat, 6 Nov 2021 02:46:36 +0000 (02:46 +0000)]
uqmi: update to git HEAD and improve proto handler script

 e303ba8 uqmi: update code generator
 7880de8 uqmi: sync data from libqmi project
 d647f8d uqmi: add more diagnostics commands
 6f95626 uim: add --uim-get-sim-state

Use newly introduce --uim-get-sim-state command to query PIN status
from modems which require using uim instead of dms command for that.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
3 years agobuild: add support for using prebuilt LLVM toolchain
Felix Fietkau [Thu, 4 Nov 2021 19:04:44 +0000 (20:04 +0100)]
build: add support for using prebuilt LLVM toolchain

When the prebuilt llvm toolchain is unpacked into the source dir,
it is automatically picked up and used by the build system, and eBPF
based packages can be selected

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agotools: ensure that BIN_DIR is created early
Felix Fietkau [Thu, 4 Nov 2021 18:05:16 +0000 (19:05 +0100)]
tools: ensure that BIN_DIR is created early

Fixes llvm-bpf buildbot failure

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agollvm-bpf: support creating a tarball in bin
Felix Fietkau [Thu, 4 Nov 2021 14:16:07 +0000 (15:16 +0100)]
llvm-bpf: support creating a tarball in bin

This can be used for adding the toolchain to an existing tree without having
to build it from scratch.
Enable building the toolchain + tarball by default on buildbot

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agollvm-bpf: move to staging_dir/host/llvm-bpf
Felix Fietkau [Tue, 2 Nov 2021 18:38:12 +0000 (19:38 +0100)]
llvm-bpf: move to staging_dir/host/llvm-bpf

This makes it easier to package it up for the download server

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoinclude/cmake.mk: add support for overriding the host install prefix
Felix Fietkau [Tue, 2 Nov 2021 17:08:47 +0000 (18:08 +0100)]
include/cmake.mk: add support for overriding the host install prefix

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoprocd: make rpcd dependency conditional
Felix Fietkau [Thu, 4 Nov 2021 15:54:29 +0000 (16:54 +0100)]
procd: make rpcd dependency conditional

Avoids building rpcd when not needed

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agobuild: fix host package unpack if git-src is used
Felix Fietkau [Thu, 4 Nov 2021 14:54:27 +0000 (15:54 +0100)]
build: fix host package unpack if git-src is used

If the package download step is skipped, it needs to be performed for the host
build instead.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agobuild: add SUBDIR_MAKE_DEBUG variable to make it easier to debug package makefiles
Felix Fietkau [Thu, 4 Nov 2021 14:53:50 +0000 (15:53 +0100)]
build: add SUBDIR_MAKE_DEBUG variable to make it easier to debug package makefiles

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agobcm4908: fix calculation of new cferam index
Sungbo Eo [Sun, 1 Aug 2021 13:17:04 +0000 (22:17 +0900)]
bcm4908: fix calculation of new cferam index

The arithmetic expansion fails when idx becomes a two digit number.
Fix this by relying on expr command.

root@OpenWrt:/# echo $(((028 + 0) % 1000))
/bin/ash: arithmetic syntax error
root@OpenWrt:/# echo $(($(expr 028 + 0) % 1000))
28

Fixes: a6a0b252baa6 ("bcm4908: add sysupgrade support")
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
3 years agoomcproxy: bump to git HEAD
Stijn Tintel [Thu, 4 Nov 2021 13:04:45 +0000 (15:04 +0200)]
omcproxy: bump to git HEAD

 bfba2aa groups: use uloop_timeout_remaining64

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
3 years agoprocd: bump to git HEAD
Stijn Tintel [Thu, 4 Nov 2021 13:01:53 +0000 (15:01 +0200)]
procd: bump to git HEAD

 0ee8e73 trigger: use uloop_timeout_remaining64

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
3 years agorpcd: bump to git HEAD
Stijn Tintel [Thu, 4 Nov 2021 11:21:47 +0000 (13:21 +0200)]
rpcd: bump to git HEAD

 20bf958 session: use uloop_timeout_remaining64
 d11ffe9 session: use blobmsg_get_u64 for RPC_DUMP_EXPIRES

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
3 years agolibubox: bump to git HEAD
Stijn Tintel [Thu, 4 Nov 2021 11:18:13 +0000 (13:18 +0200)]
libubox: bump to git HEAD

 123e976 uloop: restore return type of uloop_timeout_remaining
 3344157 uloop: add uloop_timeout_remaining64
 c87d3e1 lua/uloop: use uloop_timeout_remaining64
 c86a894 uloop: deprecate uloop_timeout_remaining

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
3 years agohostapd: support qos_map_set without CONFIG_INTERWORKING
Felix Fietkau [Thu, 4 Nov 2021 10:45:18 +0000 (11:45 +0100)]
hostapd: support qos_map_set without CONFIG_INTERWORKING

This feature is useful on its own even without full interworking support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agobcm53xx: add first 5.17 DTS changes
Rafał Miłecki [Thu, 4 Nov 2021 06:00:21 +0000 (07:00 +0100)]
bcm53xx: add first 5.17 DTS changes

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
3 years agolibubox: bump to git HEAD
Stijn Tintel [Wed, 3 Nov 2021 23:55:05 +0000 (01:55 +0200)]
libubox: bump to git HEAD

 be3dc72 uloop: avoid integer overflow in tv_diff

Fixes: FS#3943
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
3 years agoconfig: Activate SECCOMP also on MIPS 64
Hauke Mehrtens [Mon, 1 Nov 2021 13:48:22 +0000 (14:48 +0100)]
config: Activate SECCOMP also on MIPS 64

This activates SECCOMP also on mips64 and mips64el.

This was working fine in a basic test in qemu.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 years agotoolchain: Allow sanitizer on mips and mipsel
Hauke Mehrtens [Sun, 31 Oct 2021 16:40:06 +0000 (17:40 +0100)]
toolchain: Allow sanitizer on mips and mipsel

Support for libsanitizer on MIPS 32 and MIPSEL 32 was added with GCC 9.
MIPS 64 and ARC are still not supported.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>