aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
Commit message (Collapse)AuthorAgeFilesLines
* kernel: disable CONFIG_CPU_LITTLE_ENDIAN in generic configAleksander Jan Bajkowski2022-10-2136-7/+31
| | | | | | | | | | | | | | | | | | | | | | | | | 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>
* lantiq: add rgmii delays on BT Home Hub 5AAleksander Jan Bajkowski2022-10-211-3/+9
| | | | | | | | | | | | 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>
* bcm53xx: only fixup seama on D-Link DIR-885LLinus Walleij2022-10-211-3/+20
| | | | | | | | | | | | 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>
* bcm53xx: enable Broadcom 4366b1 firmware for Asus RT-AC88UArınç ÜNAL2022-10-211-1/+1
| | | | | | | | | | | | 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>
* mediatek: filogic: consolidate adc '32k' clockDaniel Golle2022-10-204-180/+14
| | | | | | | | | | 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>
* pistachio: refresh kernel patchesPetr Štetiar2022-10-201-1/+1
| | | | | | | | 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>
* ath79: refresh kernel patchesPetr Štetiar2022-10-202-2/+2
| | | | | | | | 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>
* mt7622: switch default CPU governor to ondemandJohn Audia2022-10-201-1/+1
| | | | | | | | | | | | | | | | | | 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>
* mediatek: clean up platform kernel modulesDaniel Golle2022-10-193-15/+8
| | | | | | | | | | | | | | 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>
* ramips: kndrt31r19: set up wan interface by defaultAndrey Butirsky2022-10-191-1/+7
| | | | | | 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>
* ipq40xx: Convert mikrotik,wap-ac to DSAMark Mentovai2022-10-194-6/+26
| | | | | | | | | | | | | | | | | | 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>
* ath79: improve MAC address configuration of ELECOM devicesINAGAKI Hiroshi2022-10-191-1/+2
| | | | | | | | 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>
* ath79: use NVMEM for wlan caldata on ELECOM devicesINAGAKI Hiroshi2022-10-193-25/+39
| | | | | | | | 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>
* ath79: use ARTIFACTS for initramfs-factory of ELECOM devicesINAGAKI Hiroshi2022-10-191-22/+12
| | | | | | | | | | 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>
* build: move Build/edimax-header to image-commands.mkINAGAKI Hiroshi2022-10-191-5/+0
| | | | | | | | | | 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>
* x86: switch to 5.15 as default kernelNick Hainke2022-10-191-2/+1
| | | | | | | | | | | | | | | 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>
* mediatek: mt7622: don't rely on existing image for sysupgradeDaniel Golle2022-10-191-2/+2
| | | | | | | | 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>
* mediatek: mt7622: kernel config fixesDaniel Golle2022-10-191-1/+1
| | | | | | | | | | | * 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>
* mediatek: update pending and rename merged patchDaniel Golle2022-10-192-21/+57
| | | | | | | Add patch headers and description for pending patch. Add version tag to patch already merged upstream. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: mtd: backport SafeLoader parserRafał Miłecki2022-10-1914-4/+472
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* kernel: mtd: backport extended dynamic partitions supportRafał Miłecki2022-10-198-4/+302
| | | | | | | 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>
* kernel: mtd: fix unbalanced of_node_put() in dynamic partitions codeRafał Miłecki2022-10-192-0/+202
| | | | | Fixes: 1a9ee367343ed ("kernel: backport mtd dynamic partition patch") Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* generic: 5.15: add missing tag for some backports patchesChristian Marangi2022-10-182-0/+0
| | | | | | | | 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>
* ipq806x: 5.15: add 6.1 tag to upstream patchChristian Marangi2022-10-188-0/+0
| | | | | | | 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>
* mediatek: filogic: don't rely on image preset in flash or sysupgradeDaniel Golle2022-10-181-11/+6
| | | | | | | | 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>
* mediatek: filogic: use UBI fast map to speed up bootDaniel Golle2022-10-181-0/+1
| | | | | | | 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>
* mediatek: don't break auxadc without 32k clkDaniel Golle2022-10-181-5/+7
| | | | | | | 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>
* mt7621: hiwifi_hc5962: fix reboot loop by using LZMA loaderPetr Štetiar2022-10-181-0/+1
| | | | | | | | 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>
* kernel: add missing config symbols for 5.15Josef Schlehofer2022-10-181-0/+5
| | | | | | | | | | | | When I enabled CONFIG_HOTPLUG_PCI for mvebu platform, it was asking for more symbols. Fixes: Support for PCI Hotplug (HOTPLUG_PCI) [Y/?] y CompactPCI Hotplug driver (HOTPLUG_PCI_CPCI) [N/y/?] n SHPC PCI Hotplug driver (HOTPLUG_PCI_SHPC) [N/y/?] (NEW) Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
* kernel: bump 5.15 to 5.15.74John Audia2022-10-181-6/+1
| | | | | | | | | | All patches automatically rebased. Build system: x86_64 Build-tested: bcm2711/RPi4B, mt7622/RT3200 Run-tested: bcm2711/RPi4B, mt7622/RT3200 Signed-off-by: John Audia <therealgraysky@proton.me>
* mt7621: netgear_ex6150: fix reboot loop by using LZMA loaderPetr Štetiar2022-10-181-0/+1
| | | | | | | | This fixes a well known "LZMA ERROR 1" error, reported previously on numerous of similar devices. Fixes: #10645 Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ipq806x: 5.15: refresh target patchesChristian Marangi2022-10-1712-93/+29
| | | | | | Refresh ipq806x target patches for kernel 5.15. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* bcm53xx: 5.10: refresh target patchesChristian Marangi2022-10-171-6/+1
| | | | | | Refresh bcm53xx target patches for kernel 5.10. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: 5.10: refresh hack patchesChristian Marangi2022-10-161-6/+6
| | | | | | Refresh hack patches for kernel 5.10. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: 5.10: refresh backport patchesChristian Marangi2022-10-164-14/+15
| | | | | | Refresh backport patches for kernel 5.10. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: 5.15: refresh hack patchesChristian Marangi2022-10-161-6/+6
| | | | | | Refresh hack patches for kernel 5.15. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: 5.15: refresh backport patchesChristian Marangi2022-10-166-58/+28
| | | | | | Refresh backport patches for kernel 5.15. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* mpc85xx: fix unset kernel symbolDavid Bauer2022-10-141-0/+2
| | | | Signed-off-by: David Bauer <mail@david-bauer.net>
* mpc85xx: p1010: make TP-Link WDR4900 v1 build againMatthias Schiffer2022-10-141-3/+17
| | | | | | | Add the spi-loader as a pre-kernel stage, so we can lift the kernel size limit. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* mpc85xx: add SPI kernel loader for TP-Link TL-WDR4900 v1Matthias Schiffer2022-10-1422-0/+1364
| | | | | | | | | | Similar to the lzma-loader on our MIPS targets, the spi-loader acts as a second-stage loader that will then load and start the actual kernel. As the TL-WDR4900 uses SPI-NOR and the P1010 family does not have support for memory mapping of this type of flash, this loader needs to contain a basic driver for the FSL ESPI controller. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* generic: 5.15: backport qca8k fixup patches for Big-Endian systemsChristian Marangi2022-10-142-0/+251
| | | | | | | | Backport qca8k fixup patches for inband mgmt on Big-Endian systems. This is needed for ath79 and mpc85xx targets that are Big-Endian and use qca8k based switch. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* mediatek: mt7623: fix thermal zoneBruno Umuarama2022-10-141-0/+48
| | | | | | | | | | | | | | | | | | | | | Raising the temperatures for passive and active trips. @VA1DER proposed at issue 9396 to remove passive trip. This commit relates to his suggestion. Without this patch. the CPU will be throttled all the way down to 98MHz if the temperature rises even a degree above the trip point, and it was further discovered that if the internal temperature of the device is above the first trip point temperature when it boots then it will start in a throttled state and even $ echo disabled > /sys/class/thermal/thermal_zone0/mode will have no effect. The patch increases the passive trip point and active cooling map. The throttling temperature will then be at 77°C and 82°C, which is still a low enough temperature for ARM devices to not be in the real danger zone, and gives some operational headroom. Signed-off-by: Bruno Umuarama <anonimou_eu@hotmail.com>
* mediatek: clean up mt7622 kernel configFelix Fietkau2022-10-141-5/+2
| | | | | | Remove a few unused options to reduce kernel size Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: remove target specific CONFIG_IKCONFIG linesFelix Fietkau2022-10-1412-24/+0
| | | | | | Use generic configuration for this feature Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: add missing lockdep config symbols for 5.15Felix Fietkau2022-10-141-0/+5
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mediatek: fill wlan device entries in board.json on mt7622Felix Fietkau2022-10-141-0/+12
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* airoha: fix imagebuilder generation by introducing generic targetNick Hainke2022-10-131-0/+1
| | | | | | | | | | | | | | | The generic imagebuilder does not have a generic in the name, although this is the default naming scheme. Apply the same fix as for the octeon target. Thanks to @dangowrt for reporting that the same issues applies also for the airoha target. Before the fix: openwrt-imagebuilder-airoha.Linux-x86_64.tar.xz After: openwrt-imagebuilder-airoha-generic.Linux-x86_64.tar.xz Signed-off-by: Nick Hainke <vincent@systemli.org>
* bcm53xx: linksys ea6500-v2: extend RAM to full 256MBAleksey Nasibulin2022-10-132-0/+64
| | | | | | | | | Linksys ea6500-v2 have 256MB of ram. Currently we only use 128MB. Expand the definition to use all the available RAM. Signed-off-by: Aleksey Nasibulin <alealexpro100@ya.ru> [ wrap to 80 columns ] Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* kernel: backport gnu11 upgradeOlliver Schinagl2022-10-136-0/+367
| | | | | | | | | | | Upstream has switched to gnu11 not too long ago. One advantage of backporting this to these older kernels is, that we can encourage and write better upstreamable kernels. E.g. the kernel devs prefer loop declarations. Shrinking the master/local gap will be useful in these cases. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl> Acked-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq40xx: Fix wrong GPIO for internal status LED on ZTE MF289FGiammarco Marzano2022-10-121-1/+1
| | | | | | | | Change GPIO from 10 to 35 to make it works as expected Fixes: 0de6a3339f1a ("ipq40xx: Add ZTE MF289F") Signed-off-by: Giammarco Marzano <stich86@gmail.com> Reviewed-by: Robert Marko <robimarko@gmail.com>