aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* mediatek: dts: mt7988a: wire-up mediatek,pio for PHY LEDsDaniel Golle2023-07-08
| | | | | | | | | | The PHY driver needs to read a register containing the values of the bootstrap pins (which happen to be the PHY LEDs) to determine the LED polarities. Allow regmap access to first pinctrl bank by adding the 'syscon' compatible, and reference the pinctrl in the MDIO bus where the PHY driver will look for it. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* lua: fix integer overflow in LNUM patchAdam Bailey2023-07-08
| | | | | | | | | | Safely detect integer overflow in try_addint() and try_subint(). Old code relied on undefined behavior, and recent versions of GCC on x86 optimized away the if-statements. This caused integer overflow in Lua code instead of falling back to floating-point numbers. Signed-off-by: Adam Bailey <aebailey@gmail.com>
* kernel: remove CRYPTO_BLAKE2S from all >=5.15Christian Svensson2023-07-08
| | | | | | | | | This option was removed from upstream kernel back in 2022. See commits: 2d16803c562ecc644803d42ba98a8e0aef9c014e (>=6.0) 3dd33a09f5dc12ccb0902923c4c784eb0f8c7554 (>=5.15.61 backport) Signed-off-by: Christian Svensson <blue@cmd.nu>
* e2fsprogs: do not symlink tune2fs to findfsMartin Schiller2023-07-08
| | | | | | | | | | | | | | commit c0611b45a998 ("e2fsprogs: symlink e2fsck to fsck.ext{2, 3, 4}, and tune2fs to findfs") introduced a symlink from tune2fs to findfs. This only works when the included private libblkid library is used, but commit 5b1660a5387b ("utils/e2fsprogs: Update to 1.43.6") disabled the usage of this private lib and enabled the shared lib support. Removing this symlink makes it possible to install tune2fs and findfs package. Signed-off-by: Martin Schiller <ms@dev.tdt.de>
* kernel: leds-ws2812b: fix build with Linux >= 5.18Daniel Golle2023-07-08
| | | | | | | | The return value of the .remove function pointer has changed from int to void with Linux 5.18. Use a precompiler macro to allow building the leds-ws2812b module with both, Linux 5.15 and Linux 6.1. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: add two missing symbols in 6.1Daniel Golle2023-07-08
| | | | | | | Two more new symbols were discovered when building mediatek targets with CONFIG_ALL_KMODS=y. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* apm821xx: fix autoloading of kmod-hw-crypto4xxRani Hod2023-07-08
| | | | | Fixes: 55fbcad20a2d (apm821xx: make crypto4xx as a standalone module) Signed-off-by: Rani Hod <rani.hod@gmail.com>
* wolfssl: update to 5.6.3Nick Hainke2023-07-07
| | | | | | | | | | | | | | | Release Notes: - https://github.com/wolfSSL/wolfssl/releases/tag/v5.6.0-stable - https://github.com/wolfSSL/wolfssl/releases/tag/v5.6.2-stable - https://github.com/wolfSSL/wolfssl/releases/tag/v5.6.3-stable Refresh patch: - 100-disable-hardening-check.patch Backport patch: - 001-fix-detection-of-cut-tool-in-configure.ac.patch Signed-off-by: Nick Hainke <vincent@systemli.org>
* kernel: bump 6.1 to 6.1.38John Audia2023-07-07
| | | | | | | | | | | | | | | Stable kernel git log: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/log/?h=v6.1.38 No patches needed to be rebased. Just updated checksum. Build system: x86_64 Build-tested: x86_64/AMD Ryzen 7 Run-tested: x86_64/AMD Ryzen 7 Signed-off-by: John Audia <therealgraysky@proton.me> [add link to stable kernel git log] Signed-off-by: Nick Hainke <vincent@systemli.org>
* kernel: bump 5.15 to 5.15.120John Audia2023-07-07
| | | | | | | | | | All patches automatically rebased. Build system: x86_64 Build-tested: ramips/tplink_archer-a6-v3, filogic/xiaomi_redmi-router-ax6000-ubootmod Run-tested: ramips/tplink_archer-a6-v3, filogic/xiaomi_redmi-router-ax6000-ubootmod Signed-off-by: John Audia <therealgraysky@proton.me>
* hostapd: update to 2023-06-22Andre Heider2023-07-07
| | | | | | | | | | | | | | Removed, merged upstream: - 170-wpa_supplicant-fix-compiling-without-IEEE8021X_EAPOL.patch Manually refreshed: - 040-mesh-allow-processing-authentication-frames-in-block.patch - 600-ubus_support.patch - 761-shared_das_port.patch Fixes: #12661 Fixes: 304423a4 ("hostapd: update to 2023-03-29") Signed-off-by: Andre Heider <a.heider@gmail.com>
* mediatek: expose testing Linux 6.1 testing kernelDaniel Golle2023-07-07
| | | | | | | Set KERNEL_TESTING_PATCHVER:=6.1 to allow building all subtargets with Linux 6.1. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mediatek: adapt kernel configuration for Linux 6.1Daniel Golle2023-07-07
| | | | | | Update kernel configuration to build Linux 6.1 for all subtargets. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mediatek: copy config-5.15 to config-6.1 for all subtargetsDaniel Golle2023-07-07
| | | | | | | To ease review, first copy all subtargets' kernel config-5.15 to the to-be-adapted config-6.1. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mediatek: adapt files and patches for Linux 6.1Daniel Golle2023-07-07
| | | | | | | | | With Linux 6.1 many of our downstream patches and out-of-tree files can be removed or at least replaced by backported upstream commits. Signed-off-by: Daniel Golle <daniel@makrotopia.org> [fix CMDLINE_OVERRIDE for arm64] Signed-off-by: Bjørn Mork <bjorn@mork.no>
* mediatek: copy patches and files for Linux 6.1Daniel Golle2023-07-07
| | | | | | | First step only copies patches-5.15 and files-5.15 to patches-6.1 and files-6.1 respectively. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mediatek: prepare old rtk switch driver for use with Linux 6.1Daniel Golle2023-07-07
| | | | | | | | | | The old RealTek RTL8367S switch driver which is used for some MT7622 devices needs to be modified to no longer free the GPIO after reset has completed. This is due to Linux 5.19 removing devm_gpio_free via commit 2b038e786f83 ("gpiolib: devres: Get rid of unused devm_gpio_free()") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* generic: 6.1: fix uImage.FIT partitions on mtdblock and ubiblockDaniel Golle2023-07-07
| | | | | | | | | | | When refreshing the hack patches for Linux 6.1 the part of the uImage.FIT partition parser patch which takes care of allowing mtdblock and ubiblock devices to have partitions has been dropped, supposedly by accident. Re-add a that part to the patch, so devices using a uImage.FIT filesystem sub-image as rootfs can work with Linux 6.1. Fixes: 19a246bb65 ("generic: 6.1: manually refresh hack patches") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: add support for tw686x frame grabbersKoen Vandeputte2023-07-07
| | | | | | | | | | | | | Adds support for Intersil/Techwell tw686x frame grabbers. By default, this module uses MEMCPY to transfer data. Let's switch to "Contiguous DMA" which is the fastest performing method available. [ 10.074349] tw6869: PCI 0000:07:00.0, IRQ 33, MMIO 0x1200000 (contig mode) [ 10.081381] tw686x 0000:07:00.0: enabling device (0140 -> 0142) Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
* kernel: add support for imx pxpKoen Vandeputte2023-07-07
| | | | | | | | | | | | | | This adds support for the i.MX Pixel Pipeline IP block which is available on some imx6 flavours [1] This allows to use hardware offloading for operations like: - Colour conversion - Scaling - Rotation [1] https://en.wikipedia.org/wiki/I.MX#i.MX_6_series Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
* kernel: add support for imx vpuKoen Vandeputte2023-07-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for the Video Processing Unit IP block which is present in certain i.MX SOC's. The vpu used in imx6 is the coda960 which supports: - h264 enc - h264 dec - jpeg enc - jpeg dec Please note that the required firmware needs to be added by yourself as it's not available currently in linux-firmware upstream. The firmware package can be found on the internet and it will decompress itself exposing all binaries after accepting the EULA. The binaries should be placed at exactly these paths: - /lib/firmware/vpu_fw_imx6d.bin - /lib/firmware/vpu_fw_imx6q.bin Following output will be printed at boottime if all is well: [ 9.769638] coda 2040000.vpu: Firmware code revision: 46076 [ 9.775277] coda 2040000.vpu: Initialized CODA960. [ 9.780082] coda 2040000.vpu: Firmware version: 3.1.1 [ 9.785312] coda 2040000.vpu: coda-jpeg-encoder registered as video0 [ 9.791859] coda 2040000.vpu: coda-jpeg-decoder registered as video1 [ 9.798375] coda 2040000.vpu: coda-video-encoder registered as video2 [ 9.805013] coda 2040000.vpu: coda-video-decoder registered as video3 gstreamer will automatically detect and use all encoders/decoders. Please note that a FILES catch-all is required for the videobuf-dma objects as some modules enabling this could require (and thus generating) only 1 of them. Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
* kernel: add support for videobuf-dmaKoen Vandeputte2023-07-07
| | | | | | | | | | | | | | | This adds support for videobuf2-dma driver. This module contains following flavors: - Contiguous - Scatter/Gather Drivers using this can enable 1 of the, or both, depending on their needs. Due to this, a FILES catch-all is required for the videobuf-dma objects as depending on requirements, only 1 of them could get generated. Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
* kernel: add support for mem2mem devicesKoen Vandeputte2023-07-07
| | | | | | | | | | This allows addition of devices which use these kernel modules. This also adds a package for handling dma within video2buf. These are only build when selected by a caller Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
* kernel: add missing symbols in 6.1Koen Vandeputte2023-07-07
| | | | | | Found these while playing with video pci media adapter support Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
* kernel: add missing symbols in 5.15Koen Vandeputte2023-07-07
| | | | | | Found these while playing with video pci media adapter support Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
* kernel-headers: install isa-rev.h on mips to fix lzma-lader on linux 6.1Jonas Gorski2023-07-06
| | | | | | | | | | | | | | | | | | | | | | | | Since kernel 5.17+ the mips asm.h includes isa-rev.h, which itself was added 4.17. Without it, lzma-loader will fail to build: make[3] -C target/linux compile make[5]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. In file included from head.S:22: .../staging_dir/toolchain-mips_mips32_gcc-12.3.0_musl/include/asm/asm.h:22:10: fatal error: asm/isa-rev.h: No such file or directory 22 | #include <asm/isa-rev.h> | ^~~~~~~~~~~~~~~ compilation terminated. make[6]: *** [Makefile:64: head.o] Error 1 make[5]: *** [Makefile:345: compile] Error 2 make[4]: *** [Makefile:24: compile] Error 2 make[3]: *** [Makefile:11: compile] Error 2 ERROR: target/linux failed to build. So add the file to the files to install. We can do that unconditionally, since the oldest supported kernel 5.15 already includes it, even it if does not need it. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* kernel: add CONFIG_LOCK_MM_AND_FIND_VMAJohn Audia2023-07-05
| | | | | | | | 6.1.37 introduces a new symbol[1] 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/arch/x86/Kconfig?id=v6.1.37&id2=v6.1.36 Signed-off-by: John Audia <therealgraysky@proton.me>
* kernel: bump 6.1 to 6.1.37John Audia2023-07-05
| | | | | | | | | | Manually rebased: generic/hack-6.1/220-arm-gc_sections.patch armsr/patches-6.1/221-armsr-disable_gc_sections_armv7.patch All other patches automatically rebased. Signed-off-by: John Audia <therealgraysky@proton.me>
* kernel: bump 6.1 to 6.1.36John Audia2023-07-05
| | | | | | | | | | | | | All patches automatically rebased. Acknowledgment to @john-tho for the changes to fs.mk to accommodate new paths introduced in https://github.com/gregkh/linux/commit/29429a1f5871dbe54ee0da81bb12db8567f15379 Build system: x86_64 Build-tested: bcm2711/RPi4B Run-tested: bcm2711/RPi4B Signed-off-by: John Audia <therealgraysky@proton.me>
* kernel: modules: add xdp-sockets-diag supportTianling Shen2023-07-05
| | | | | | Support for PF_XDP sockets monitoring interface used by the ss tool. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
* build: add support to use the mold linker for packagesAndre Heider2023-07-04
| | | | | | | If CONFIG_USE_MOLD is set, all target packages will use the mold linker. Except the ones which opted-out via setting PKG_BUILD_FLAGS:=no-mold. Signed-off-by: Andre Heider <a.heider@gmail.com>
* treewide: opt-out of tree-wide mold usageAndre Heider2023-07-04
| | | | | | These use linker scripts, which mold doesn't support. Signed-off-by: Andre Heider <a.heider@gmail.com>
* toolchain: add mold as additional linkerAndre Heider2023-07-04
| | | | | | Install it as $tripple-ld.mold in order to use -fuse-ld=mold. Signed-off-by: Andre Heider <a.heider@gmail.com>
* tools: add mold, a modern linkerAndre Heider2023-07-04
| | | | | | | | | | | | mold is a faster drop-in replacement for existing Unix linkers. A single binary is able to link various targets, which is why this lives in tools/. All toolchain builds then just need to copy the linker over, hence avoiding multiple builds with the same outcome. Signed-off-by: Andre Heider <a.heider@gmail.com>
* config: add a knob to use the mold linker for packagesAndre Heider2023-07-04
| | | | | | | | | Building it requires gcc >= 10.2 or clang >= 12. Using sstrip with its -z argument can produce non-working binaries, like a segfaulting `getrandom`, so don't allow that combination. Signed-off-by: Andre Heider <a.heider@gmail.com>
* build: replace SSTRIP_ARGS with SSTRIP_DISCARD_TRAILING_ZEROESAndre Heider2023-07-04
| | | | | | | | | sstrip only has one functional arg. Make that a bool option, which can easily depend on other knobs then. This is required to be disabled for the mold linker. Signed-off-by: Andre Heider <a.heider@gmail.com>
* meson: prepare to use different linkersAndre Heider2023-07-04
| | | | | | | | This sets the default linker for cross compilation. No functional change intended. Signed-off-by: Andre Heider <a.heider@gmail.com>
* rules: prepare to use different linkersAndre Heider2023-07-04
| | | | | | | | This explicitely adds the default linker to the target LDFLAGS. No functional change intended. Signed-off-by: Andre Heider <a.heider@gmail.com>
* mac80211: partly revert force-mac80211 loss detectionDavid Bauer2023-07-05
| | | | | | | | | This patch will only force mac80211 loss detection upon ath10k by masking the driver-specific loss-detection bit. Ref: commit ed816f6ba8b5 ("mac80211: always use mac80211 loss detection") Signed-off-by: David Bauer <mail@david-bauer.net>
* kernel: add kmod-i2c-mux-reg supportChristian Svensson2023-07-04
| | | | | | Add package for register-based I2C bus mux/switching devices. Signed-off-by: Christian Svensson <blue@cmd.nu>
* kernel: add kmod-hwmon-jc42 supportChristian Svensson2023-07-04
| | | | | | Add package for Jedec JC42.4 compliant temperature sensor. Signed-off-by: Christian Svensson <blue@cmd.nu>
* kernel: add kmod-hwmon-max6697 supportChristian Svensson2023-07-04
| | | | | | Add package for Maxim MAX6697 I2C based temperature sensor. Signed-off-by: Christian Svensson <blue@cmd.nu>
* ipq-wifi: fix upstream board-2.bin ZTE M289F snafuChristian Lamparter2023-07-04
| | | | | | | | | | | | | | | | | | | | The upstream board-2.bin file in the linux-firmware.git repository for the QCA4019 contains a packed board-2.bin for this device for both 2.4G and 5G wifis. This isn't something that the ath10k driver supports. Until this feature either gets implemented - which is very unlikely -, or the upstream boardfile is mended (both, the original submitter and ath10k-firmware custodian have been notified). OpenWrt will go back and use its own bespoke boardfile. This unfortunately means that 2.4G and on some revisions the 5G WiFi is not available in the initramfs image for this device. Fixes: #12886 Reported-by: Christian Heuff <christian@heuff.at> Debugged-by: Georgios Kourachanis <geo.kourachanis@gmail.com> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* x86/64: set CONFIG_NVME_HWMON=yJohn Audia2023-07-04
| | | | | | | CONFIG_NVME_HWMON exposes /sys/class/nvme/nvme0/device/hwmon to allow sensors (and others) to see NVMe drive health Signed-off-by: John Audia <therealgraysky@proton.me>
* kernel: fix KernelPackage when all KCONFIG are versionedJohn Thomson2023-07-04
| | | | | | | | | | | | | | | | | | | | | | | | | | If a kernel package was defined where all KCONFIG symbols were dynamic, and versioned, no FILES would be installed, as the foreach evaluation was providing the value of the variable defined by the KCONFIG symbol name including the version test Fix this by calling the version_filter function on the list of KCONFIG variable names run through by foreach Example, kernel 6.1: KCONFIG:=CONFIG_OLD@lt6.1 CONFIG_NEW@ge6.1 filter-out any KCONFIG settings forced by package: CONFIG_OLD@lt6.1 CONFIG_NEW@ge6.1 there are dynamic settings, so for each of them, get the value of the make variable defined by symbol name: CONFIG_OLD@lt6.1 is not set CONFIG_NEW@ge6.1 is not set versus CONFIG_OLD is not set CONFIG_NEW=m test if any of these are m, or y if yes, install files, otherwise, nothing to install Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
* kernel: introduce KERNEL_WERROR config optionPetr Štetiar2023-07-04
| | | | | | | | | | | | | In commit b2d1eb717b65 ("generic: 5.15: enable Werror by default for kernel compile") CONFIG_WERROR=y was enabled and all warnings/errors reported with GCC 12 were fixed. Keeping this in sync with past/future GCC versions is going to be uphill battle, so lets introduce new KERNEL_WERROR config option, enable it by default only for tested/known working combinations and on buildbots. References: #12687 Signed-off-by: Petr Štetiar <ynezz@true.cz>
* mt76: update to the latest versionFelix Fietkau2023-07-04
| | | | | | f704e4f83c6f mt76: mt7915: fix copy&paste issue on capability check rework Signed-off-by: Felix Fietkau <nbd@nbd.name>
* x86: set CONFIG_X86_AMD_PLATFORM_DEVICEJohn Audia2023-07-03
| | | | | | Needed by AMD processors using Carrizo and later chipsets Signed-off-by: John Audia <therealgraysky@proton.me>
* netifd: update to the latest versionFelix Fietkau2023-07-03
| | | | | | e94f7a81a039 bridge: fix config reload on 32 bit systems Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ramips: mt7621: add TP-Link EAP613 v1Sander Vanheule2023-07-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The TP-Link EAP613 v1 is a ceiling-mount 802.11ax access point. It can be powered via PoE or a DC barrel connector (12V). Connecting to the UART requires fine soldering and careful manipulation of any soldered wires. Device details: * SoC: MT7621AT * Flash: 16 MiB SPI NOR * RAM: 256 MiB DDR3L * Wi-Fi: * MT7905DA + MT7975D: 2.4 GHz + 5 GHz (DBDC), 2x2:2 * Two stamped metal antennas (ANT1, ANT2) * One PCB antenna (ANT3) * One unpopulated antenna (ANT4) * Ethernet: * 1× 10/100/1000 Mbps port with PoE * LEDs: * Array of four blue LEDs with one control line * Buttons: * Reset * Board test points: * UART: next to CPU RF-shield and power circuits * JTAG: under CPU RF-shield (untested) * Watchdog: 3PEAK TPV706 (not implemented) Althought three antennas are populated, the MT7905DA does not support the additional Rx chain for background DFS detection (or Bluetooth) according to commit 6cbcc34f50a3 ("ramips: disable unsupported background radar detection"). MAC addresses: * LAN: 48:22:54:xx:xx:a2 (device label) * WLAN 2.4 GHz: 48:22:54:xx:xx:a2 * WLAN 5 GHz: 48:22:54:xx:xx:a3 The radio calibration blob stored in flash also contains valid MAC addresses for both radio bands (OUI 00:0c:43). Factory install: 1. Enable SSH on the device via web interface 2. Log in with SSH, and run `cliclientd stopcs` 3. Upload -factory.bin image via web interface. It may be necessary to shorten the filename of the image to e.g. 'factory.bin'. Recovery: 1. Open the device by unscrewing four screws from the backside 2. Carefully remove board from the housing 3. Connect to UART (3.3V): * Find test points labelled "VCC", "GND", "UART_TX", "UART_RX" * Solder wires to test points or connect otherwise. Be careful not to damage the PCB e.g. by pulling on soldered wires. * Open console with 115200n8 settings 4. Interrupt bootloader and use tftpboot to start an initramfs: setenv ipaddr $DEVICE_IP setenv serverip $SERVER_IP tftpboot 84000000 openwrt-initramfs-kernel.bin bootm DO NOT use saveenv to store modified u-boot environment variables. The environment is saved at flash offset 0x30000, which erases part of the (secondary) bootloader. The device uses two bootloader stages. The first stage will load the second stage from a uImage stored at flash offset 0x10000. In case of a damaged second stage, the first stage should allow uploading a new image via y-modem (untested). Signed-off-by: Sander Vanheule <sander@svanheule.net>