aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* generic: backport at803x kernel panic fixChristian Marangi2024-04-07
| | | | | | Backport at803x kernel panic fix merged upstream for kernel 6.1 and 6.6. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* treewide: package: update missed hashes after switch to ZSTDRobert Marko2024-04-07
| | | | | | | | With the switch to ZSTD for git clone packaging, hashes have changed so fixup remaining package hashes that were missed in the inital update. Fixes: b3c1c57 ("treewide: update PKG_MIRROR_HASH to zst") Signed-off-by: Robert Marko <robimarko@gmail.com>
* generic: 6.6: backport arm64 swiotlb default size reductionRobert Marko2024-04-07
| | | | | | | | | | | | | | Kernel 6.6 added dynamic SWIOTLB allocation, but with it also started allocating 64MB of the SWIOTLB bounce buffer by default which is quite a lot of memory on most OpenWrt devices. Luckily in kernel 6.7 arm64 received an optimization that reduces that default size to 1MB per 1GB of RAM if certain criteria was met. So in order to reclaim back 63MB of RAM which brought some ipq807x devices close to OOM under load lets backport the upstream commit. Signed-off-by: Robert Marko <robimarko@gmail.com>
* nu801: update PKG_MIRROR_HASH to zstRobert Marko2024-04-07
| | | | | | | | When using zst instead of xz, the hash changes. This was missed in the initial treewide updated. Fixes: b3c1c57a35a0 ("treewide: update PKG_MIRROR_HASH to zst") Signed-off-by: Robert Marko <robimarko@gmail.com>
* x86: geode: 6.6: add missing kernel optionsMieczyslaw Nalewaj2024-04-07
| | | | | | | Add options removed by `make kernel_oldconfig CONFIG_TARGET=subtarget', missing which causes compilation to stop and cause an error. Fixes: 2a86425de107 ("x86: 6.6: refresh kernel config") Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* wifi-scripts: fix creation of IBSS in legacy (non-HT) modeAlexandru Gagniuc2024-04-07
| | | | | | | | | | | | | | | | | | | | | When an IBBS interface is configured for IBSS legacy mode, wdev.htmode is empty. This is empty string results in an empty positional argument to the "ibbs join" command, for example: iw dev phy0-ibss0 ibss join crymesh 2412 '' fixed-freq beacon-interval 100 This empty argument is interpreted as an invalid HT mode by 'iw', causing the entire command to fail and print a "usage" message: daemon.notice netifd: radio0 (4527): Usage: iw [options] \ dev <devname> ibss join <SSID> <freq in MHz> ... Although nobody will ever need more than 640K of IBSS, explicitly use "NOHT" if an HT mode is not given. This fixes the problem. Fixes: e56c5f7b276a ("hostapd: add ucode support, use ucode for the main ubus object") Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> [extend to cover more cases]
* scripts: add .tar.zst to dl_cleanup extensionsStijn Tintel2024-04-06
| | | | Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* tools: zstd: add patch fixing wrong generated .pc with lib-mtChristian Marangi2024-04-06
| | | | | | | | | | | | | The current .pc generated by make build system for zstd is wrong and always assume a single-threaded library is used. This wasn't the case for the meson build system that used his own logic to generate the pkg-config file. Add a patch to fix this by introducing install-mt-pc make target to generate the correct pkg-config gile. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* Revert "tools/mkimage: update to v2024.04"Nick Hainke2024-04-06
| | | | | | | | | | | This reverts commit 8d934c11968de49ad17bc62366a88230e47b4f56. The update seems to be causing issues that need to be further explored [0]. Let's revert it. [0] - https://github.com/openwrt/openwrt/pull/15078 Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools: zstd: install headers as wellRobert Marko2024-04-06
| | | | | | | | We forgot to make sure install-includes is called for the libzstd in order for it to install the required headers. Fixes: 4b920e799fba ("tools: zstd: convert to make and drop meson dependency") Signed-off-by: Robert Marko <robimarko@gmail.com>
* treewide: update PKG_MIRROR_HASH to zstPaul Spooren2024-04-06
| | | | | | | When using zst instead of xz, the hash changes. This commit fixes the hash for packages and tools in core. Signed-off-by: Paul Spooren <mail@aparcar.org>
* tools: prefer gz or bz2 tarballsRobert Marko2024-04-06
| | | | | | | | | | | | | | In the light of recent XZ events, and fundamental XZ issues lets work on moving away from using XZ. So, use gz compressed tarballs as sources whenever possible. dwarves only offers bz2 compressed tarballs, so use those as size difference is minor compared to XZ. Signed-off-by: Robert Marko <robimarko@gmail.com> dwarves
* tools: libdeflate: fetch source as tarballRobert Marko2024-04-06
| | | | | | | | | | | | | libdeflate is currently intentionally being fetched via GIT. However, with the move to using ZSTD to compress the cloned GIT repo tarballs it means that we would first need to compile ZSTD. But that means that we need to be able to unpack gzipped tarballs first which we currently do by using libdeflate-gzip. So, in order to do so lets fetch libdeflate as a tarball, use gzip to extract it and then use libdeflate as regular for all other tools. Signed-off-by: Robert Marko <robimarko@gmail.com>
* tools: rework tools-core dependeciesRosen Penev2024-04-06
| | | | | | | | | | | | ZSTD and libdeflate do not depend on SED nor flock, so instead of the whole for loop that will filter 2 out of 4 core packages just specify that patch and tar depend on sed explicitly. ZSTD now depends on libdeflate since libdeflate-gzip will then be used to unpack ZSTD as well as most tool archives. Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Robert Marko <robimarko@gmail.com>
* tools: make zstd tool core and xz tool non-coreChristian Marangi2024-04-06
| | | | | | | Make zstd tool core and xz tool non-core since zstd is the new default for compression format. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* tools: zstd: dont override ZSTD_LEGACY_SUPPORTRobert Marko2024-04-06
| | | | | | | | We dont really have a reason to deviate from the upstream default for ZSTD_LEGACY_SUPPORT value of 5, as it will save a bit of space but prevent decompressing data compressed with legacy ZSTD versions. Signed-off-by: Robert Marko <robimarko@gmail.com>
* tools: zstd: override max safe compression levelChristian Marangi2024-04-06
| | | | | | | | | | | | | | | ZTSD limits the safe compression level to a max of 19 as 20 to 22 cause increased RAM usage. Higher levels require --ultra arg passed. There isn't currently a way to set --ultra using ENV options similar to ZSTD_CLEVEL and ZSTD_CLEVEL is limited to 19. To fix this, we can increase the max safe compression level by providing a custom ZSTDCLI_CLEVEL_MAX value with CFLAGS. The max safe level is increased to 20. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* tools: zstd: convert to make and drop meson dependencyChristian Marangi2024-04-06
| | | | | | | | | | Convert to make and drop meson dependency since it's not a core tools and can't depend on advanced build system like cmake or meson. On top of this make is the official build support and cmake/meson are supported by 3rd parties. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* include/download.mk: switch to zst compressionPaul Spooren2024-04-06
| | | | | | | | | | The compression is faster to (un)pack files, make use of it. Also add a new build prerequirement, the `zstd` to (un)pack files. Signed-off-by: Paul Spooren <mail@aparcar.org> [ improve commit title ] Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* scripts/dl_github_archive: add support for packing zstd archiveChristian Marangi2024-04-06
| | | | | | Add support for packing .zst archive when creating Github mirror tar. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* include/download.mk: handle .gitattributes rules on rawgit methodChristian Marangi2024-04-06
| | | | | | | | | | | | | | | | | | | | | This fix a long lasting bug/inconsistency with rawgit method and dl_github_archive script. The dl_github_archive script works by using the github generated tar.gz instead of cloning and checkout and the tar.gz is generated by using git archive command that parse and apply .gitattributes rules. rawgit command never handled .gitattributes and instead made a simple git clone and checkout causing the inconsistency. To fix the inconsistency, add extra steps to call git archive command and generate an intermediate tar to apply .gitattributes rules. Also for git log format, Github shorthash length is 8 instead of the default 7, also apply this locally for each cloned repo to produce consistent tar. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* tools/mkimage: update to v2024.04Nick Hainke2024-04-06
| | | | | | | | | | Update to latest version. Refresh patches: - 030-allow-to-use-different-magic.patch - 095-tools-disable-TOOLS_FIT_FULL_CHECK.patch Signed-off-by: Nick Hainke <vincent@systemli.org>
* kernel: bump 6.6 to 6.6.25John Audia2024-04-05
| | | | | | | | | | | | Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.25 All patches automatically rebased. Build system: x86/64 Build-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, flogic/glinet_gl-mt6000 Run-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, flogic/glinet_gl-mt6000 Signed-off-by: John Audia <therealgraysky@proton.me>
* kernel: bump 6.6 to 6.6.24John Audia2024-04-05
| | | | | | | | | | | | | | | | | | | | | | | | | Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.24 Removed upstreamed: generic/backport-6.6/838-v6.9-leds-trigger-netdev-Fix-kernel-panic-on-interface-re.patch[1] generic/backport-6.6/981-mtd-spinand-Add-support-for-5-byte-IDs.patch[2] mediatek/patches-6.6/831-thermal-drivers-mediatek-Fix-control-buffer-enablement-on-MT7896.patch[3] Removed: ipq40xx/patches-6.6/110-mtd-limit-OTP-nvmem-to-non-nand-devices.patch[4] All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.24&id=10f2af1af8ab8a7064f193446abd5579d3def7e3 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.24&id=9c74507e6c4382d12a5e418742b81fd441f03313 3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.24&id=fe750e2744428be6aec7395b13df3b34381ce6b6 4. Acknowledgment to @DragonBlurp for pointing out the redundancy of this patch. https://github.com/openwrt/openwrt/commit/dd78a59cd7b029560b33cb3ac0e1aa8b747bd807 Build system: x86/64 Build-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3 Run-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3 Signed-off-by: John Audia <therealgraysky@proton.me>
* ipq806x: 6.6: refresh patchesMieczyslaw Nalewaj2024-04-05
| | | | | Refresh patches for kernel 6.6.23 with make target/linux/refresh. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* pistachio: add 6.1 testing kernelZoltan HERPAI2024-04-05
| | | | | | Configure 6.1 as testing kernel. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* pistachio: refresh 6.1 configZoltan HERPAI2024-04-05
| | | | | | Kernel config needs to be refreshed after copy from 5.15. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* pistachio: update and extend 6.1 patchesZoltan HERPAI2024-04-05
| | | | | | | | | | | Add: 110-pwm-img-fix-clock-lookup.patch - patch to fix a clock lookup issue from upstream Update: 401-mtd-nor-support-mtd-name-from-device-tree.patch - mtd-name lookup hack to reflect the updated spi_nor_scan function Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* pistachio: copy config and patches of 5.15 to 6.1Zoltan HERPAI2024-04-05
| | | | | | Simple copy of config and patches. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* gettext-full: link libiconv when building host pkgYanase Yuki2024-04-05
| | | | | | | | On Fedora 40 system, some compile error happens when building iconv-ostream.c. Linking to libiconv-full fixes this. Signed-off-by: Yanase Yuki <dev@zpc.st>
* hostapd: fix Config.in dependenciesFelix Fietkau2024-04-05
| | | | | | | hostapd packages were accidentally left out. Clean up this mess by changing the dependencies to hostapd-common Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ipq40xx: 6.6: remove redundant patchMieczyslaw Nalewaj2024-04-05
| | | | | | Remove file 110-mtd-limit-OTP-nvmem-to-non-nand-devices.patch redundand after adding 440-mtd-don-t-look-for-OTP-legacy-NVMEM-cells-if-proper-.patch in dd78a59 Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* kirkwood: 6.6: refresh patchesMieczyslaw Nalewaj2024-04-05
| | | | | | Refresh patches for kernel 6.6.23 with make target/linux/refresh. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* apm821xx: restore 6.1 config+patchesChristian Lamparter2024-04-05
| | | | | | | simply attached previous versions of the config-6.1 and patches-6.1 directory. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* apm821xx: add 6.6 testing kernelChristian Lamparter2024-04-05
| | | | | | | | | refreshed kernel config + patches otherwise same as 6.1/5.15. Tested on: WNDAP620, WNDAP660, MyBook Live Single, MR24, MX60, WNDR4700 Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* apm821xx: prepare WNDR4700 for 6.6 - add preliminary u-boot-env accessChristian Lamparter2024-04-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the default BUILD_BOT configuration on a linux 6.6 kernel, the WNDR4700's kernel no longer fits into the alloted ~3.5MiB, even with LZMA compression. Bigger kernels are possible, but there's a problem with Netgear's "bootcmd": > if loadn_dniimg 0 0x180000 0x4e0000 && chk_dniimg 0x4e0000; then nand read 0x800000 0x180000 0x20000;bootm 0x500000 - 0x800040;else fw_recovery; fi" This loads the dni-image starting offset 0x180000 from the NAND flash (which is the DTB partition) to 0x4e0000 in the RAM. It then checks whenever the provided image is "valid". If it is then it reads the DTB again to 0x800000 in the RAM and starts the extraction and boot process. (If the image wasn't valid then it starts the automated firmware recovery). The issues here are that first: the kernel image gets "squeezed" between 0x500040 and 0x7fffff... And second, the decompressor only has area 0x0 - 0x500000 for decompression. Hence the image now requires to update the bootcmd by providing new values (which have been successfully tested with the original Netgear WNDR4700 v1.0.0.56 firmware) for the RAM locations and make full use of the fact that loadn_dniimg loads the DTB as well. This needs to be done only once. Just connect a serial adapter to interface with uboot and overwrite (and save) the new bootcmd. WARNING: The serial port needs a TTL/RS-232 3.3v level converter! Steps: 0. Power-off the WNDR4700 1. Connect the serial interface (you need to open the WNDR4700) 2. Power-up the WNDR4700 3. Monitor the boot-sequence and hit "Enter"-key when it says: "Hit any key to stop autoboot" (Be quick, you have a ~2 second window) 4. in the Prompt enter the following commands (copy & paste) setenv bootcmd "if loadn_dniimg 0 0x180000 0xce0000 && chk_dniimg 0xce0000; then bootm 0xd00000 - 0xce0040;else fw_recovery; fi" saveenv run bootcmd Note: This new bootcmd will also unbrick devices that were bricked by the bigger 4.19-6.1 kernels. Note2: This method was tested with a WNDR4700. A big kernel with most debug features enabled on v6.6.22 measured 4.30 MiB when compressed with lzma. The uncompressed kernel is 12.34 MiB. This is over the 3 MiB, the device reserves for the kernel... But it booted! For bigger kernels, the device needs repartitioning of the the ubi partition due to the kernel+dtb not fitting into the partition. Note3: For initramfs development. I would advice to load the initramfs images to 0x800000 (or higher). i.e.: tftp 800000 wndr4700.bin Note4: the fw_recovery uboot command to transfer the factory image to the flash still works. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* ramips: 6.6: set testing kernelMieczyslaw Nalewaj2024-04-05
| | | | | | Allow selecting 6.6 as testing kernel on ramips. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* ramips: 6.6: refresh kernel configMieczyslaw Nalewaj2024-04-05
| | | | | | Refresh kernel config. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* ramips: adjusted pinctrl-aw9523 for kernel 6.6Mieczyslaw Nalewaj2024-04-05
| | | | | | | | Compatiblity with kernel 6.6 for Awinic AW9523B i2c pin controller driver. It follows the kernel patch: i2c: Drop legacy callback .probe_new() (https://github.com/torvalds/linux/commit/5eb1e6e459cfa025f79c43014f66ff62a55542f1) and kernel patch: gpiolib: Get rid of not used of_node member (https://github.com/torvalds/linux/commit/70d0fc4288dabd65025fde7774b4f9262afa9034) Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* ramips: mt7620: alignment with updated snd_soc_dai_driver structureMieczyslaw Nalewaj2024-04-05
| | | | | | | Fix error: 'struct snd_soc_dai_driver' has no member named 'remove' It follows the kernel patch: ASoC: soc-dai.h: remove unused call back functions (https://github.com/torvalds/linux/commit/446b31e894935ebbcf84302061a4e0e2efb2368f) Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* generic: fix detect_memory_region() functionShiji Yang2024-04-05
| | | | | | | This patch fixes the broken detect_memory_region() function on 6.6 kernel. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
* ramips: 6.6: fix net drivers compatibilityMieczyslaw Nalewaj2024-04-05
| | | | | | | Fix compatibility of ralink net drivers with kernel 6.6. It follows the kernel patch: u64_stats: Streamline the implementation (https://github.com/torvalds/linux/commit/44b0c2957adc62b86fcd51adeaf8e993171b) Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* ramips: 6.6: refresh patchesMieczyslaw Nalewaj2024-04-05
| | | | | | Refresh kernel patches. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* ramips: 6.6: remove old patchesMieczyslaw Nalewaj2024-04-05
| | | | | | Remove patches for old kernel. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* kernel/ramips: Restore kernel files for v6.1Mieczyslaw Nalewaj2024-04-05
| | | | | | | | | | This is an automatically generated commit which aids following Kernel patch history, as git will see the move and copy as a rename thus defeating the purpose. See: https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html for the original discussion. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* kernel/ramips: Create kernel files for v6.6 (from v6.1)Mieczyslaw Nalewaj2024-04-05
| | | | | | | | This is an automatically generated commit. During a `git bisect` session, `git bisect --skip` is recommended. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* kernel/ramips: Restore kernel patches for v6.1Mieczyslaw Nalewaj2024-04-05
| | | | | | | | | | This is an automatically generated commit which aids following Kernel patch history, as git will see the move and copy as a rename thus defeating the purpose. See: https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html for the original discussion. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* kernel/ramips: Create kernel patches for v6.6 (from v6.1)Mieczyslaw Nalewaj2024-04-05
| | | | | | | | This is an automatically generated commit. During a `git bisect` session, `git bisect --skip` is recommended. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* libubox: fix PKG_MIRROR_HASH of 2024-03-29Paul Spooren2024-04-04
| | | | | | | | | | The PKG_MIRROR_HASH was wrong (again), likely due to an old set of tools which did not contain the downgrade of xz. Ref 2070049 unetd: fix PKG_MIRROR_HASH Fix 89c594e libubox: update to Git HEAD (2024-03-29)" Signed-off-by: Paul Spooren <mail@aparcar.org>
* kirkwood: add 6.6 kernel as testing versionPawel Dembicki2024-04-04
| | | | | | This patch introduce kernel 6.6 for kirkwood target as testing version. Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>