aboutsummaryrefslogtreecommitdiff
path: root/target/linux/bcm27xx/bcm2711
Commit message (Collapse)AuthorAge
* bcm27xx: drop 6.6 supportÁlvaro Fernández Rojas2025-05-21
| | | | | | Drop configs, files and patches for Linux 6.6. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* bcm27xx: switch to upstream SDHOST driverÁlvaro Fernández Rojas2025-05-21
| | | | | | | The RPi upstream repo switched to the upstream SDHOST driver some time ago, so it's time to do the same in our configs. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* bcm27xx: update config for kernel 6.12Álvaro Fernández Rojas2025-05-21
| | | | | | Update bcm27xx target config for kernel 6.12. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* bcm27xx: restore kernel config for v6.6Álvaro Fernández Rojas2025-05-21
| | | | | | | | | | | 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. For the original discussion see: https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* bcm27xx: create kernel config for v6.12 (from v6.6)Álvaro Fernández Rojas2025-05-21
| | | | | | | | This is an automatically generated commit. When doing `git bisect`, consider `git bisect --skip`. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* bcm27xx: pull 6.6 patches from RPi repoÁlvaro Fernández Rojas2024-12-28
| | | | | | | | | | | | Adds latest 6.6 patches from the Raspberry Pi repository. These patches were generated from: https://github.com/raspberrypi/linux/commits/rpi-6.6.y/ With the following command: git format-patch -N v6.6.67..HEAD (HEAD -> 811ff707533bcd67cdcd368bbd46223082009b12) Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* kernel: filter out compiler opts from configRosen Penev2024-11-17
| | | | | | | | | These get dynamically set based on compiler version. Not relevant for targets. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16770 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* bcm27xx: update to latest RPi patchesÁlvaro Fernández Rojas2024-10-31
| | | | | | | The patches were generated from the RPi repo with the following command: git format-patch v6.6.58..rpi-6.6.y Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* kernel: activate *_FS_SECURITY and *_FS_ACL_ATTR options for all big flash ↵Leo Barsky2024-09-06
| | | | | | | | | | | | | targets This patch activate *_FS_SECURITY and *_FS_ACL_ATTR options for all big flash memory targets. Fixes docker error: "failed to register layer: lsetxattr security.capability /usr/bin/ping: operation not supported" Forum discussion: https://forum.openwrt.org/t/docker-pull-fails-failed-to-register-layer-operation-not-supported/138253 Signed-off-by: Leo Barsky <leobrsky@proton.me> Link: https://github.com/openwrt/openwrt/pull/16181 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: add missing config symbolsDaniel Golle2024-08-22
| | | | | | | | | Kconfig symbols CONFIG_ARM64_CNP and CONFIG_ARM64_EPAN got exposed by enabling CONFIG_ARM64_PAN. Enable them as well, as just like for PAN, also EPAN and CNP will be detected at runtime at no cost. Fixes: a2662309aa ("kernel: Enable CONFIG_ARM64_PAN to restrict kernel access to user space memory") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: Enable CONFIG_ARM64_PAN to restrict kernel access to user space memoryHauke Mehrtens2024-08-21
| | | | | | | | | | | | | | Enable the CONFIG_ARM64_PAN kernel security option, which leverages the ARMv8.1 Privileged Access Never (PAN) extension to prevent the kernel from directly accessing user space memory. Instead, copy_to_user and similar functions must be used for data transfer between kernel and user space. This feature is automatically disabled at runtime on CPUs without PAN support, making it a no-op in those cases. Link: https://github.com/openwrt/openwrt/pull/16189 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* Revert "bcm27xx: align and enable hwmon/thermal symbols"Álvaro Fernández Rojas2024-08-20
| | | | | | | | | | | This reverts commit f98f95359b60ba25f7f458190f1da4835410003d. It seems that this commit is causing issues with the PWM fan on the RPi 5 as reported here: https://github.com/openwrt/openwrt/issues/16191 So let's revert this for now. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* bcm27xx: align and enable hwmon/thermal symbolsÁlvaro Fernández Rojas2024-08-07
| | | | | | | | - Enable CONFIG_HWMON and CONFIG_THERMAL_HWMON on all subtargets. - Drop kmod-thermal from bcm2712. - Add CONFIG_SENSORS_RASPBERRYPI_HWMON generic symbol. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* bcm27xx: drop kernel 6.1 supportÁlvaro Fernández Rojas2024-06-19
| | | | | | kernel 6.1 can be dropped since 6.6 is the default kernel. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* bcm27xx: refresh 6.6 kernel config filesÁlvaro Fernández Rojas2024-06-18
| | | | | | Refresh config for kernel 6.6 and add missing symbols. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* bcm27xx: copy kernel config from 6.1 to 6.6Álvaro Fernández Rojas2024-06-18
| | | | | | | This is preparation for 6.6 kernel support. Copying files makes it easier to track their git history. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* bcm27xx: update 6.1 patches from RPi foundationÁlvaro Fernández Rojas2024-04-07
| | | | | | | | Sync 6.1 patches with the RPi foundation. Since rpi-6.6.y is now the main branch of the RPi foundation, there won't be any new patches for linux 6.1. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* bcm27xx: enable video symbolsÁlvaro Fernández Rojas2024-02-05
| | | | | | CONFIG_MEDIA_CONTROLLER has to be enabled for Raspberry Pi V4L2 drivers. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* bcm27xx: refresh bcm2711 kernel configÁlvaro Fernández Rojas2024-01-28
| | | | | | Refresh outdated bcm2711 (RPi 4B) kernel config. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* bcm27xx: update 6.1 patches to latest versionMarty Jones2024-01-25
| | | | | | | | | | | | | | | | Add support for BCM2712 (Raspberry Pi 5). https://github.com/raspberrypi/linux/commit/3bb5880ab3dd31f75c07c3c33bf29c5d469b28f3 Patches were generated from the diff between linux kernel branch linux-6.1.y and rpi-6.1.y from raspberry pi kernel source: - git format-patch linux-6.1.y...rpi-6.1.y Build system: x86_64 Build-tested: bcm2708, bcm2709, bcm2710, bcm2711 Run-tested: bcm2710/RPi3B, bcm2711/RPi4B Signed-off-by: Marty Jones <mj8263788@gmail.com> [Remove applied and reverted patches, squash patches and config commits] Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* bcm27xx: 6.1: turn on cpu erratum for A72 and disable A53Yangyu Chen2024-01-16
| | | | | | | | The original configuration might be copied from bcm2710 which uses cortex A53 rather than A72 in BCM2711, without errata might be harmful to system stability and security. Signed-off-by: Yangyu Chen <cyy@cyyself.name>
* treewide: remove CONFIG_FRAME_WARN from kernel configsRobert Marko2023-07-01
| | | | | | | CONFIG_FRAME_WARN is set dynamically, so there is no need for it to be set in target kernel configs, so lets remove it from all configs. Signed-off-by: Robert Marko <robert.marko@sartura.hr>
* kernel: migrate FORCE_MAX_ZONEORDER to ARCH_FORCE_MAX_ORDER for 6.1Stefan Kalscheuer2023-06-25
| | | | | | | | | | The flag FORCE_MAX_ZONEORDER was renamed to ARCH_FORCE_MAX_ORDER in Kernel 6.1 [1]. Rename the flag in generic Kconfig and remove it from target configs. [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=0192445cb2f7ed1cd7a95a0fc8c7645480baba25 Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
* bcm27xx: remove kernel v5.15 supportÁlvaro Fernández Rojas2023-06-09
| | | | | | | Due to the amount of patches from the RPi foundation, maintaining two kernels version is an insane effort. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* bcm27xx: 6.1: refresh config and add missing symbolsÁlvaro Fernández Rojas2023-06-09
| | | | | | Refresh config for kernel 6.1 and add missing symbols. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* bcm27xx: 6.1: copy config from 5.15Álvaro Fernández Rojas2023-06-09
| | | | | | Copy config from 5.15 kernel version. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* kernel: enable (ARM|ARM64)_MODULE_PLTS in generic configTony Ambardar2023-05-23
| | | | | | | | | | | | | | | | | | | This allows loading modules with large memory requirements, recently needed while testing on armvirt/32. Past forum discussions [1] and bug reports [2] also raised this and the ipq806x target already set it in response [3]. Given this increases kernel image size by only ~1KB, is generally useful on multi-platform kernels, and enabled by default on upstream arm32 Linux, add it to the generic config. The setting has similar utility on arm64, is a requirement for KASLR, and already enabled on most OpenWrt aarch64 targets, so pull this into the top-level generic config. [1]: https://forum.openwrt.org/t/vmap-allocation-for-size-442368-failed-use-vmalloc-size-to-increase-size/34545/7 [2]: https://github.com/openwrt/openwrt/issues/8282 [3]: f81e148eb6 ("ipq806x: update 4.19 kernel config"). Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* kernel: Add missing kernel configuration optionsHauke Mehrtens2022-12-21
| | | | | | This fixes compile of the bmips target. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* bcm27xx: disable duplicate sdhost driverJohn Audia2022-11-23
| | | | | | | | | | | | | | | | Enabling both CONFIG_MMC_BCM2835 and CONFIG_MMC_BCM2835_SDHOST causes this error in dmesg: Error: Driver 'sdhost-bcm2835' is already registered, aborting... Disabling CONFIG_MMC_BCM2835 and leaving CONFIG_MMC_BCM2835_SDHOST enabled avoids this error. Build-tested: bcm2711/RPi4B Run-tested: bcm2711/RPi4B Signed-off-by: John Audia <therealgraysky@proton.me> [Disable driver for all subtargets, refresh configs, tweak description] Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* kernel: disable CONFIG_CPU_LITTLE_ENDIAN in generic configAleksander Jan Bajkowski2022-10-21
| | | | | | | | | | | | | | | | | | | | | | | | | 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>
* kernel: remove target specific CONFIG_IKCONFIG linesFelix Fietkau2022-10-14
| | | | | | Use generic configuration for this feature Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: Activate CONFIG_GPIOLIB in generic configurationHauke Mehrtens2022-08-10
| | | | | | | | All targets expect the malta target already activate the CONFIG_GPIOLIB option. Move it to generic kernel configuration and also activate it for malta. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM]Tomasz Maciej Nowak2022-06-24
| | | | | | | | | | | | This is now built-in, enable so it won't propagate on target configs. Link: https://lkml.org/lkml/2022/1/3/168 Fixes: 79e7a2552e89 ("kernel: bump 5.15 to 5.15.44") Fixes: 0ca93670693b ("kernel: bump 5.10 to 5.10.119") Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com> (Link to Kernel's commit taht made it built-in, CRYPTO_LIB_BLAKE2S[_ARM|_X86] as it's selectable, 5.10 backport) Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* bcm27xx/bcm2711: enable asm crypto algorithmsEneas U de Queiroz2022-06-04
| | | | | | | | This enables arm64/neon version of AES, SHA256 and SHA512 algorithms in the kernel. bcm2711 does not support armv8 crypto extensions, so they are not included. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
* bcm27xx: enable PWM drivers in configÁlvaro Fernández Rojas2022-05-20
| | | | | | Removes PWM module package. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* config: limit CONFIG_DEBUG_INFO to top-level generic configsTony Ambardar2022-05-18
| | | | | | | | | | Remove redundant target-level entries, noting that these settings will be configured from "Kernel build options" of Kconfig. Signed-off-by: Tony Ambardar <itugrok@yahoo.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> [remove from new configs introduced after patch submission] Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* bcm27xx: add CPU_FREQ_GOV_SCHEDUTILJohn Audia2022-05-17
| | | | | | | | | This is enabled upstream for bcm2709, bcm2710 and bcm2711. https://github.com/raspberrypi/linux/blob/dff79e31c3b05a50f725442c1fc19a6194491523/arch/arm/configs/bcm2709_defconfig#L51 https://github.com/raspberrypi/linux/blob/dff79e31c3b05a50f725442c1fc19a6194491523/arch/arm/configs/bcm2711_defconfig#L51 Signed-off-by: John Audia <graysky@archlinux.us> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* bcm27xx: remove linux 5.10 configsÁlvaro Fernández Rojas2022-05-17
| | | | | | Sorry, I missed these when removing linux v5.10 support... Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* bcm27xx: add support for linux v5.15Álvaro Fernández Rojas2022-05-17
| | | | | | | | | Build system: x86_64 Build-tested: bcm2708, bcm2709, bcm2710, bcm2711 Run-tested: bcm2708/RPiB+, bcm2709/RPi3B, bcm2710/RPi3B, bcm2711/RPi4B Signed-off-by: Marty Jones <mj8263788@gmail.com> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* bcm27xx: bcm2711: update defconfigJohn Audia2022-02-28
| | | | | | | | | | | | | | | | | | Ran `make kernel_menuconfig CONFIG_TARGET=bcm2711` having used the snapshot config for bcm2711[1]. Manually added back two symbols that the make target removed, namely: * # CONFIG_SND_SOC_AD193X_I2C is not set * # CONFIG_SND_SOC_AD193X_SPI is not set Without adding these back, the build fails due to unsatisfied deps[2]. Build system: x86_64 Build-tested: bcm2711/multidevices 1. https://downloads.openwrt.org/snapshots/targets/bcm27xx/bcm2711/config.buildinfo 2. https://github.com/openwrt/openwrt/commit/a478202d74b66c3da17d57442649eb4f131fc7b2#commitcomment-67096592 Signed-off-by: John Audia <graysky@archlinux.us>
* Revert "bcm27xx: bcm27xx: update defconfig"Christian Lamparter2022-02-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts all four commits dbb45421bab "bcm27xx: bcm2708: update defconfig" 332f69583ad "bcm27xx: bcm2709: update defconfig" a478202d74b "bcm27xx: bcm2710: update defconfig" 82da1dfd69a "bcm27xx: bcm2711: update defconfig" this also highlighted an unrelated kconfig failure that warrants investigation. But for now it is important for the bcm27xx target to come back again. |* |* Restart config... |* |* |* Allow override default queue discipline |* |Allow override default queue discipline (NET_SCH_DEFAULT) [Y/n/?] y | Default queuing discipline | 1. Fair Queue (DEFAULT_FQ) (NEW) | 2. Controlled Delay (DEFAULT_CODEL) (NEW) | > 3. Fair Queue Controlled Delay (DEFAULT_FQ_CODEL) | 4. Stochastic Fair Queue (DEFAULT_SFQ) (NEW) | 5. Priority FIFO Fast (DEFAULT_PFIFO_FAST) | choice[1-5?]: |Error in reading or end of file. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* bcm27xx: bcm2711: update defconfigJohn Audia2022-02-20
| | | | | | | | | | Enabled CONFIG_ALL_KMODS and ran make kernel_menuconfig against bcm2711 to update defconfig. Some of the removed symbols are present in target/linux/generic/config-5.10 while others were removed by the make target. Signed-off-by: John Audia <graysky@archlinux.us> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> (wrapped)
* kernel: 5.10: consolidate mac80211 crypto optionsSergey Ryazanov2021-12-17
| | | | | | | | | | | | | | | | | | | | | | Each of - CRYPTO_AEAD2 - CRYPTO_AEAD - CRYPTO_GF128MUL - CRYPTO_GHASH - CRYPTO_HASH2 - CRYPTO_HASH - CRYPTO_MANAGER2 - CRYPTO_MANAGER - CRYPTO_NULL2 either directly required for mac80211 crypto support, or directly selected by such options. Support for the mac80211 crypto was enabled in the generic config since c7182123b9 ("kernel: make cryptoapi support needed by mac80211 built-in"). So move the above options from the target configs to the generic config to make it clear why do we need them. CC: Felix Fietkau <nbd@nbd.name> Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
* kernel: filter out both Clang and LLD versionsSergey Ryazanov2021-12-17
| | | | | | | | Both CLANG_VERSION and LLD_VERISON are autogenerated runtime configuration options, so add them to the kernel configuration filter and remove from generic and per-target configs to keep configs clean. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
* kernel: Set some options in generic configurationHauke Mehrtens2021-11-02
| | | | | | | Add CONFIG_USB_ETH and CONFIG_PWM_JZ4740 to generic kernel configuration. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* bcm27xx: remove obsolete kernel 5.4Adrian Schmutzler2021-10-05
| | | | | | | With the upgrade to kernel 5.10 per default the old version is no longer required to be in tree. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* bcm27xx: add RPI_AXIPERF symbolStijn Tintel2021-10-05
| | | | | | | | When KERNEL_PERF_EVENTS is enabled in OpenWrt, or PERF_EVENTS in the kernel config, the RPI_AXIPERF is exposed. Add it to the subtarget kernel configs to avoid build failures. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* bcm27xx: add SND_SOC_AD193X_{I2C,SPI} symbolsStijn Tintel2021-10-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When building an image for the bcm27xx target, some combinations of config options will fail to build due the SND_SOC_AD193X_I2C and SND_SOC_AD193X_SPI kernel config symbols being missing. The problem only occurs on bcm27xx as the target contains a patch that modifies the Kconfig file containing the symbols; in the vanilla kernel, there is no string after the tristate keyword so the symbol is not exposed. The _I2C symbol depends on I2C, which is enabled in the kernel configs of all bcm27xx subtargets. The _SPI symbol depends on SPI_MASTER, which is exposed by either kmod-mmc-spi, kmod-spi-bitbang, kmod-spi-dev, kmod-spi-bcm2835 or kmod-spi-bcm2835-aux. Both symbols are defined in the sound/soc/codecs directory, which is only included when SND_SOC is enabled, so this problem doesn't occur when kmod-sound-soc-core is not enabled. As the kmod-sound-soc-bcm2835-i2s package disables the SND_SOC_AD193X_SPI symbol, it also doesn't occur when kmod-sound-soc-bcm2835-i2s is enabled. As there are several possible config combinations that do exhibit this problem, it is best to solve it by adding the missing symbols to the subtarget kernel configs. By doing this we can remove them from the kmod-sound-soc-bcm2835-i2s package. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* kernel: Deactivate some ARM64 errata workaroundsHauke Mehrtens2021-10-03
| | | | | | | | | | | This deactivates the following workarounds for erratas in ARM64 CPUS: CONFIG_ARM64_ERRATUM_1165522: Cortex-A76 cores (r0p0, r1p0, r2p0) CONFIG_ARM64_ERRATUM_1286807: Cortex-A76 cores (r0p0 to r3p0) CONFIG_ARM64_ERRATUM_1418040: Cortex-A76/Neoverse-N1 cores (r0p0 to r3p1) CONFIG_CAVIUM_TX2_ERRATUM_219: Cavium ThunderX2 CONFIG_FUJITSU_ERRATUM_010001: Fujitsu-A64FX Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: move two symbols to the generic kconfigsRui Salvaterra2021-08-29
| | | | | | | CONFIG_RCU_{NEED_SEGCBLIST,STALL_COMMON} are set basically everywhere. Move them to the generic kconfigs. And resort the generic kconfigs while at it. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>