summaryrefslogtreecommitdiffstats
path: root/target/linux
Commit message (Collapse)AuthorAgeFilesLines
* mpc85xx: p2020: add missing symbolsRosen Penev45 hours1-2/+3
| | | | | | | | | | Since kernel_oldconfig doesn't work properly with it, I ran that first and then moved all the config symbols to config-6.6 and found the differences. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16847 Signed-off-by: Robert Marko <robimarko@gmail.com>
* mpc85xx: p1020: add missing symbolsRosen Penev45 hours1-4/+25
| | | | | | | | | | Since kernel_oldconfig doesn't work properly with it, I ran that first and then moved all the config symbols to config-6.6 and found the differences. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16847 Signed-off-by: Robert Marko <robimarko@gmail.com>
* mpc85xx: p1010: add missing symbolsRosen Penev45 hours1-1/+19
| | | | | | | | | | Since kernel_oldconfig doesn't work properly with it, I ran that first and then moved all the config symbols to config-6.6 and found the differences. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16847 Signed-off-by: Robert Marko <robimarko@gmail.com>
* mpc85xx: run make kernel_oldconfigRosen Penev45 hours1-1/+2
| | | | | | | | Adjusts the default config to modern kernels. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16847 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ipq806x: tr4400v2: fix dtc warnings by deleting stock partitionsRodrigo Balerdi2 days1-27/+3
| | | | | | | | | | | | | | | | | | | | The original set of stock partitions was kept in the TR4400 v2 port, with the same partition numbers but their names prefixed with 'stock_'. This allowed scripts (installation, back to stock, etc) to run on both stock and OpenWrt firmware. But this triggers warnings in the device tree compiler, as partitions of the old and new schemes overlap. This commit fixes the dtc warnings by deleting the stock partitions, also renumbering some of the remaining MTD partitions in the process. Additionally, the 'fw_env' partition is set to read-only. These changes can break existing scripts as well as user configurations that utilize the 'extra' partition. Users wanting to run old scripts can do so by reverting to the 23.05 series releases. Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16958 Signed-off-by: Robert Marko <robimarko@gmail.com>
* net: phy: broadcom: update dependency conditionDavid Bauer3 days1-0/+35
| | | | | | | | | | | | | | | | | | The broadcom PHY driver only has to depend upon PTP_1588_CLOCK_OPTIONAL if NETWORK_PHY_TIMESTAMPING is enabled. The PTP functionality is stubbed in this case. Reflect this circumstance in the dependence condition. This allows to build the driver as a built-in module even if PTP is built as a module. This is required to include the broadcom PHY module regardless of the built-setting of the PTP subsystem. On ath79 (and probably more) targets with Broadcom PHY, Gigabit operation is currently broken as the PHY driver is only built as a module in case all kernel-packages are built. Due to this circumstance, affected devices fall back to using the generic PHY driver. Signed-off-by: David Bauer <mail@david-bauer.net>
* airoha: an7581: sync patch with upstream version and tag themChristian Marangi3 days8-41/+52
| | | | | | | | | Sync patch with upstream version and tag them. Minor changes done to Pinctrl patch to support older kernel. Patch automatically refreshed with make target/linux/refresh. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* linux: fix missing default packages in profiles.jsonPetr Štetiar4 days1-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Robert reported, that in firmware images generated by ASU, there is `apk` package manager missing after the commit 44598c233dd9 ("build: remove broken dependency of metadata on toplevel .config variables"). That is happening, because apk got removed from `default_packages` list in `profiles.json`, which is being generated by `json_overview_image_info` Make target, which uses `scripts/json_overview_image_info.py` helper script, which gets the information from `DEFAULT_PACKAGES` Make variable. So lets fix it by providing `DEFAULT_PACKAGES` variable when its needed. The reason why we didn't added those packages as a dependency to base-files like any other packages, was to allow disabling them (in order to save space). Fixes: #16969 Fixes: openwrt/asu/issues/1084 Fixes: 44598c233dd9 ("build: remove broken dependency of metadata on toplevel .config variables") Reported-by: Robert Marko <robimarko@gmail.com> Signed-off-by: Petr Štetiar <ynezz@true.cz> Link: https://github.com/openwrt/openwrt/pull/16986 Signed-off-by: Robert Marko <robimarko@gmail.com>
* generic: add CONFIG_FB_INTELRobert Marko4 days1-0/+1
| | | | | | | CONFIG_FB_INTEL is now visible on x86 since i915 driver is packaged as kmod now and it stops compilation, so add it to the generic config. Signed-off-by: Robert Marko <robimarko@gmail.com>
* ath79: lzma-loader: fix syntax errorShiji Yang4 days1-1/+1
| | | | | | | | | C compiler can't parse '#else if'. Fixes: f84a9f7dc095 ("ath79: add support for Huawei AP6010DN") Signed-off-by: Shiji Yang <yangshiji66@qq.com> Link: https://github.com/openwrt/openwrt/pull/16989 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: filter out compiler opts from configRosen Penev4 days60-155/+3
| | | | | | | | | 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>
* kernel: remove GCC11_NO_ARRAY_BOUNDSRosen Penev4 days21-21/+0
| | | | | | | | This symbol is no longer present. 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>
* kernel: move CONFIG_INTEL_MEI settings to target genericMieczyslaw Nalewaj4 days4-9/+3
| | | | | | | | | Move settings CONFIG_INTEL_MEI_GSC_PROXY, CONFIG_INTEL_MEI_HDCP and CONFIG_INTEL_MEI_PXP to target generic. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Link: https://github.com/openwrt/openwrt/pull/16971 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ipq807x: delete unused legacy eMMC sysupgrade codeRodrigo Balerdi4 days1-83/+0
| | | | | | | | | All ipq807x devices that were using the legacy 'mmc_do_upgrade' eMMC sysupgrade code were ported to the replacement 'emmc_do_upgrade' code. Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16505 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ipq807x: order devices alphabeticallyRodrigo Balerdi4 days1-3/+3
| | | | | | | | Alphabetically sort devices in platform.sh Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16505 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ipq807x: prpl haze & qnap 301w: use the standard eMMC sysupgrade codeRodrigo Balerdi4 days2-5/+7
| | | | | | | | | | | | | | Note that the old ad-hoc method did not explicitly align backup data to 64 KiB boundaries. Also note that the qnap 301w has a 'rootfs_data' partition in the eMMC that is being ignored by fstools during boot, presumably due to a bug. This is why the partition is also ignored in the sysupgrade code and there is no definition of CI_DATAPART="rootfs_data". Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16505 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ipq807x: nbg7815: use the standard eMMC sysupgrade codeRodrigo Balerdi4 days2-8/+8
| | | | | | | | | Note that the old ad-hoc method did not explicitly align backup data to 64 KiB boundaries. Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16505 Signed-off-by: Robert Marko <robimarko@gmail.com>
* realtek: align kernel config with upstreamMarkus Stockhausen5 days15-144/+39
| | | | | | | | | | Since the start of the Realtek target OpenWrt works with RTL83XX as the target architecture. Upstream is using MACH_REALTEK_RTL instead. To simplify further development align that. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> Link: https://github.com/openwrt/openwrt/pull/16963 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* x86: switch config to a tickless kernelJohn Audia5 days1-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes and closes #16313. Switch the x86 kernel's timer to tickless operation which is more power efficient since it is not woken up by periodic timer interrupts when idle. Also add several other options for CPU idle governors particularly the upstream default for tickless kernels, CONFIG_CPU_IDLE_GOV_MENU. Without this commit, my AMD Ryzen 7 5800U can only achieve a minimum core frequency of 1,384 MHz which is over 3x higher than the processor's minimum frequency of 400 MHz which is accessible with this modification. In addition to the lower clock rate, I have seen a concomitant reduction in both idle temps and at-the-wall power consumption. Summary: * Idle CPU freqs dropped from 1,384 MHz to 400 Mhz. * Idle power consumption dropped from 7 W avg to 5 W. * Idle temps have dropped from 50C on avg to 43C. There are other well known reasons to switch to a tickless timer including: reduced interrupt overhead, better use of CPU resources, and reduced latency to name a few. Build system: x86/64 Build-tested: x86/64/AMD Cezanne Run-tested: x86/64/AMD Cezanne Signed-off-by: John Audia <therealgraysky@proton.me> Link: https://github.com/openwrt/openwrt/pull/16317 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* kernel: bump 6.6 to 6.6.61John Audia6 days18-37/+38
| | | | | | | | | | | | | | | | | Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.61 Manually rebased: bcm27xx/patches-6.6/950-0998-i2c-designware-Add-support-for-bus-clear-feature.patch All other patches automatically rebased. 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> Link: https://github.com/openwrt/openwrt/pull/16959 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* x86: make i915 as a kmod with required firmwareJoe Zheng6 days3-72/+0
| | | | | | | | | | | i915 driver requires to load correct firmware to work on latest x86 GPU, it is more reasonable to make it as a kernel module, so that initramfs is not required, and it can also save some space from the kernel image comparing being a built-in driver Signed-off-by: Joe Zheng <joe.zheng@intel.com> Link: https://github.com/openwrt/openwrt/pull/16276 Signed-off-by: Robert Marko <robimarko@gmail.com>
* utils: Add the omnia-eeprom utilityMarek Behún6 days1-1/+2
| | | | | | | | | | | | | | | | | | Add a new utility, `omnia-eeprom`, which can be used to print / set EEPROM fields on Turris Omnia. One example when this utility might be useful is if the board experiences random crashes due to newer versions of the DDR training algorithm in newer U-Boot. The user can change the DDR speed from 1600K to 1333H to solve these issues, with ``` omnia-eeprom set ddr_speed 1333H ``` Signed-off-by: Marek Behún <kabel@kernel.org> Link: https://github.com/openwrt/openwrt/pull/16264 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ipq806x: tr4400v2: revert nesting of MTD partitions that bricks deviceRodrigo Balerdi7 days1-45/+35
| | | | | | | | | | | | | | | | This reverts commit e1043a746a1030062e73ea027d9a35c58bce6c6a, that attempts to nest partitions that overlap but are not nested. This causes the 'ubi' partition to be truncated, making rootfs inaccessible and bricking the device. Also, had this commit worked, it would have renumbered MTD partitions in a way that would have broken documented scripts for installation and update of main and recovery OSes, making backups, return to stock, etc, and broken user configurations that put the 'extra' partition to use. Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16944 Signed-off-by: Robert Marko <robimarko@gmail.com>
* mediatek: filogic: add support for GatoNetworks GDSPEnrico Mioso7 days3-0/+410
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The GatoNetworks GDSP is a re-branded version of the R5000 5G Industrial router from Yinghua Technologies. The re-branded device comes with OpenWrt preinstalled, and an OpenWrt-based U-Boot bootloader version. While the flash layout has been kept compatible with the OpenWrt version found on the stock device (see [5]), the image format changed, making a bootloader upgrade necessary. Specifications: SoC: Mediatek MT7981BA RAM: 256MB Flash: SPI-NOR 32 MiB (Winbond W25Q256) WLAN: MT7976CN DBDC AX Wi-Fi Switch: MT7531AE (4x LAN Gigabit ports, 1x WAN Gigabit port) 5G: Quectel RM520N modem Watchdog: an external WDT connected to GPIO 6 is present and always running; the built-in Mediatek watchdog is also present and effective, but not used at the moment. This porting has been tested only with 1x 5G modems installed (the device supports up to two). Installation: Installation is possible via sysupgrade both in the stock device and re-branded version. However, in the former case, updating the bootloader is required. OpenWrt-based U-Boot Bootloader installation -------------------------------------------- The firmware flashed in the re-branded device at manifacturing time will flash an OpenWrt-based U-Boot bootloader with some extra recovery features (see [1]) at first boot. To update the bootloader, you need to install the mtd-rw module and insmod it: insmod mtd-rw i_want_a_brick=1 Then update relevant flash partitions: mtd erase u-boot-env mtd erase BL2 mtd erase FIP mtd write openwrt-mediatek-filogic-gatonetworks_gdsp-preloader.bin BL2 mtd write openwrt-mediatek-filogic-gatonetworks_gdsp-bl31-uboot.fip FIP And reboot, making sure all previous commands ran succesfully. If something goes wrong, you can recover your device via the mtk_uartboot tool. In my testing, it was possible to start the process even without (un)-plugging the device, may be handy for remote recovery. Installation from stock device and firmware ------------------------------------------- To install vanilla OpenWrt in the stock device (R5000 5G Industrial router from Yinghua Technologies) running the stock vendor firmware, you will need to update your bootloader as described in previous section. Remember to use -F (force upgrade) and -n (not keeping settings). U-Boot Recovery --------------- This procedure has been tested only with the OpenWrt-based U-boot bootloader. Assign your system static IP address 192.168.1.1 and start a TFTP server. The device will look for an initramfs image named openwrt-mediatek-filogic-gatonetworks_gdsp-initramfs-kernel.bin (so you may use openwrt/bin/targets/mediatek/filogic as root dir for your TFTP server). Power on the device while keeping the reset button pressed, until you see a TFTP request from 192.168.1.10. Your environment will be restored to it's default state. MAC addresses assignment ------------------------ MAC addresses are assigned slightly differently than in stock firmware. In particular, the 5 GHz Wi-Fi uses 2.4 GHZ MAC + 1, rather than reusing it with LA bit set as done in stock firmware. This MAC address is allocated to the device, so it can be used. The 2.4 GHz Wi-Fi MAC address is the label MAC. LAN MAC is used to set the special U-Boot environment ethaddr variable. device MAC address U-Boot env variable factory partition offset 2.4 GHz Wi-Fi :84 wifi_mac 0x4 5.8 GHz Wi-Fi :85 not present not present WAN :86 wan_mac 0x24 LAN :87 lan_mac 0x2A Notes ----- [1]: the OpenWrt-based U-Boot bootloader you will find installed in the re-branded device is configured to request for the initramfs image via TFTP for $gdsp_tftp_tries times before trying normal boot from NOR flash. Setting this U-Boot environment variable to 0x0 will disable the feature, which is not implemented in this patch. [2]: the exposed UART port is connected to ttyS1; the ttyS0 console port is not exposed. [3]: the provided bootloader environment has no provision for operating on BL2 and the FIP partitions. This is an intentional choice to make it (slightly) more difficult to brick the device. [4]: it seems GPIO 6 is used both for the "SYS" LED and external WDT. [5] BL2 expects to find FIP payload at a fixed offset, so some constraints apply. Signed-off-by: Enrico Mioso <mrkiko.rs@gmail.com>
* qualcommax: ipq60xx: add NSS reserved memoryRobert Marko9 days4-3/+30
| | | | | | | | It seems that despite NSS not being supported in OpenWrt the memory it usually uses needs to be reserved anyway for stability reasons. Link: https://github.com/openwrt/openwrt/pull/16928 Signed-off-by: Robert Marko <robimarko@gmail.com>
* airoha: an7581: backport upstream ethernet fixesChristian Marangi9 days2-0/+222
| | | | | | Backport patches fixing some ethernet problem merged upstream. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* realtek: rtl83xx: use devm for mutex_initRosen Penev9 days1-1/+3
| | | | | | | | mutex_destroy is missing in remove. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16926 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ramips: mt7621: fix typoRosen Penev10 days1-1/+1
| | | | | | | | Missing u caused the regulator to fail probe. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16925 Signed-off-by: Robert Marko <robimarko@gmail.com>
* lantiq: use devm for mutex_initRosen Penev11 days1-2/+4
| | | | | | | | It's common to avoid calling mutex_destroy when done. It's not correct strictly speaking. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16832 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* lantiq: use more devm for i2cRosen Penev11 days1-8/+5
| | | | | | | | | | i2c_add_numbered_adapter is the wrong function to use here. It requires setting nr to some value, otherwise it behaves the same as i2c_add_adapter. nr is not set. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16825 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: bump 6.6 to 6.6.60John Audia11 days20-111/+52
| | | | | | | | | | | | | | | | | | | Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.60 Removed upstreamed: generic/backport-6.6/409-mtd-spi-nor-winbond-fix-w25q128-regression.patch All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.60&id=27a58a19bd20a7afe369da2ce6d4ebea70768acd Build system: x86/64 Build-tested: x86/64/AMD Cezanne, flogic/glinet_gl-mt6000, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3 Run-tested: x86/64/AMD Cezanne, flogic/glinet_gl-mt6000, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3 Signed-off-by: John Audia <therealgraysky@proton.me> Link: https://github.com/openwrt/openwrt/pull/16892 Signed-off-by: Nick Hainke <vincent@systemli.org>
* treewide: remove THIS_MODULE assignmentRosen Penev12 days24-37/+12
| | | | | | | | Matches upstream coccinelle check: api/platform_no_drv_owner.cocci. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16846 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ramips: mt7621: add missing regulator-boot-onRosen Penev12 days5-0/+5
| | | | | | | | | | | | | What seems to be happening is that the kernel requests an ACTIVE_LOW gpio initially and sets it to high later based on gpios in dts. This seems to break some devices where the bootloader sets it to high. Fixes: e612900ae0 ("ramips: mt7621: convert usb power to regulators") Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16877 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ath79: Add support for Sophos AP15CDavid Lutz13 days3-0/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Sophos AP15C uses the same hardware as the AP15, but has a reset button. Based on: commit 6f1efb289837 ("ath79: add support for Sophos AP100/AP55 family") author Andrew Powers-Holmes <andrew@omnom.net> Fri, 3 Sep 2021 15:53:57 +0200 (23:53 +1000) committer Hauke Mehrtens <hauke@hauke-m.de> Sat, 16 Apr 2022 16:59:29 +0200 (16:59 +0200) Unique to AP15C: - Reset button - External RJ45 serial console port Flashing instructions: This firmware can be flashed either via a compatible Sophos SG or XG firewall appliance, which does not require disassembling the device, or via the U-Boot console available on the internal UART header. To flash via XG appliance: - Register on Sophos' website for a no-cost Home Use XG firewall license - Download and install the XG software on a compatible PC or virtual machine, complete initial appliance setup, and enable SSH console access - Connect the target AP device to the XG appliance's LAN interface - Approve the AP from the XG Web UI and wait until it shows as Active (this can take 3-5 minutes) - Connect to the XG appliance over SSH and access the Advanced Console (Menu option 5, then menu option 3) - Run `sudo awetool` and select the menu option to connect to an AP via SSH. When prompted to enable SSH on the target AP, select Yes. - Wait 2-3 minutes, then select the AP from the awetool menu again. This will connect you to a root shell on the target AP. - Copy the firmware to /tmp/openwrt.bin on the target AP via SCP/TFTP/etc - Run `mtd -r write /tmp/openwrt.bin astaro_image` - When complete, the access point will reboot to OpenWRT. To flash via U-Boot serial console: - Configure a TFTP server on your PC, and set IP address 192.168.99.8 with netmask 255.255.255.0 - Copy the firmware .bin to the TFTP server and rename to 'uImage_AP15C' - Open the target AP's enclosure and locate the 4-pin 3.3V UART header [4] - Connect the AP ethernet to your PC's ethernet port - Connect a terminal to the UART at 115200 8/N/1 as usual - Power on the AP and press a key to cancel autoboot when prompted - Run the following commands at the U-Boot console: - `tftpboot` - `cp.b $fileaddr 0x9f070000 $filesize` - `boot` - The access point will boot to OpenWRT. Signed-off-by: David Lutz <kpanic@hirnduenger.de>
* rampis: mt7621: Edgerouter-X adjust IMAGE_SIZE to reflect new kernel sizeTim Lunn13 days1-1/+1
| | | | | | | | | IMAGE_SIZE was previously set to kernel1 + ubi size = 256768k, now kernel1 is 6MB adjust this value to add 3072k to total image size. Signed-off-by: Tim Lunn <tim@feathertop.org> Link: https://github.com/openwrt/openwrt/pull/15194 Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ramips: mt7621: Edgerouter-X drop factory imageTim Lunn13 days1-26/+0
| | | | | | | | | | | | | | Edgerouter-X factory images have not built automatically since 19.x due to images being over 3MB. While it was possible to build custom images with very stripped down config, this is no longer possible with the size increases of linux 6.1 and 6.6. Drop code for generation of factory images, if some dev later wishes to try custom images they can revert this commit. Signed-off-by: Tim Lunn <tim@feathertop.org> Link: https://github.com/openwrt/openwrt/pull/15194 Signed-off-by: Petr Štetiar <ynezz@true.cz>
* rampis: mt7621: Re-enable Edgerouter-X image buildsTim Lunn13 days1-1/+0
| | | | | | | | | | | | With the new layout providing 6MB for kernel there will be no issues with kernel size affecting build of images. Re-enable image builds for Edgerouter-X and X-SFP. Signed-off-by: Tim Lunn <tim@feathertop.org> Tested-by: Mauri Sandberg <maukka@ext.kapsi.fi> Link: https://github.com/openwrt/openwrt/pull/15194 Signed-off-by: Petr Štetiar <ynezz@true.cz>
* rampis: mt7621: Edgerouter-X update compat version to 2.0Tim Lunn13 days1-0/+2
| | | | | | | | | | | Use compat version to indicate that the new layout for larger kernels is in place. This handled by the patch to ubnt.sh to always select the kernel1 slot for flashing and as active kernel slot. Signed-off-by: Tim Lunn <tim@feathertop.org> Tested-by: Mauri Sandberg <maukka@ext.kapsi.fi> Link: https://github.com/openwrt/openwrt/pull/15194 Signed-off-by: Petr Štetiar <ynezz@true.cz>
* rampis: mt7621: Edgerouter-X set compat version messageTim Lunn13 days1-0/+4
| | | | | | | | | | Refer user to the wiki page for instructions on how to migrate to the new kernel layout. Signed-off-by: Tim Lunn <tim@feathertop.org> Tested-by: Mauri Sandberg <maukka@ext.kapsi.fi> Link: https://github.com/openwrt/openwrt/pull/15194 Signed-off-by: Petr Štetiar <ynezz@true.cz>
* rampis: mt7621: resize Edgerouter-X kernel size to 6MBTim Lunn13 days1-1/+1
| | | | | | | | | | With the updated partition layout set in dts, set the KERNEL_SIZE parameter to 6MB allowing builds of Linux 6.1 and later to fit. Signed-off-by: Tim Lunn <tim@feathertop.org> Tested-by: Mauri Sandberg <maukka@ext.kapsi.fi> Link: https://github.com/openwrt/openwrt/pull/15194 Signed-off-by: Petr Štetiar <ynezz@true.cz>
* rampis: mt7621: Edgerouter-X disable toggling of kernel slotsTim Lunn13 days1-32/+7
| | | | | | | | | | | Uboot selects which kernel slot to boot based on a flag in the factory mtd partition. Patch ubnt.sh to ensure always flash to kernel1 slot and update flag if required. Signed-off-by: Tim Lunn <tim@feathertop.org> Tested-by: Mauri Sandberg <maukka@ext.kapsi.fi> Link: https://github.com/openwrt/openwrt/pull/15194 Signed-off-by: Petr Štetiar <ynezz@true.cz>
* rampis: mt7621: Convert Edgerouter-X dts to single kernel configTim Lunn13 days1-7/+2
| | | | | | | | | | | | | | | The OEM layout for Edgerouter X provides for two 3MB kernel slots. As of linux 6.1 the kernel images no longer fit and as such Edgerouter X builds have been disabled in Main. Revise the layout to make kernel1 slot 6MB and drop kernel2 slot. This patch applies the required changes to the dts file. Signed-off-by: Tim Lunn <tim@feathertop.org> Tested-by: Mauri Sandberg <maukka@ext.kapsi.fi> Link: https://github.com/openwrt/openwrt/pull/15194 Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ath79: linksys_ea4500-v3: take over the space for user dataEdward Chow2024-11-073-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | | The last "syscfg" partition of the OEM firmware turns out to be a UBIFS used to store user data, just as the "rootfs_data" of OpenWrt, so it should be reasonable to absorb it into the "ubi" partition. Factory installations via either OEM firmware or tftp, or by forcibly flashing factory image to mtd5 (firmware) partition with mtd tool are confirmed working, but the UBI remaining inside "syscfg" partition could break upgrade. Fortunately, installing kmod-mtd-rw and erasing "syscfg" partition before upgrade is confirmed working, in which case, "ubi" will automatically expand to the blank space once occupied by the former mtd8 (syscfg), with the total block number increased, but the UBIFS for rootfs_data will not automatically claim the newly available space (since it is created when mtd8 still exists, and sysupgrade does not set "autoresize" flag to rootfs_data). These space will be claimed during the next upgrade, when rootfs_data is removed and created again. Fixes: 50f727b7737d1 ("ath79: add support for Linksys EA4500 v3") Signed-off-by: Edward Chow <equu@openmail.cc> Link: https://github.com/openwrt/openwrt/pull/14791 Signed-off-by: Robert Marko <robimarko@gmail.com>
* mediatek: set 7 MACs per wifi band in board.json on OpenWrt OneJohn Crispin2024-11-051-0/+16
| | | | | | | | Mass production units will get 16 assigned MAC addresses. This allows each phy to spawn up to 7 VAPs which will each have unique MAC without needing the private bit. Signed-off-by: John Crispin <john@phrozen.org>
* mediatek: set mac increment to 7 for the 5G radio on OpenWrt OneJohn Crispin2024-11-051-1/+1
| | | | | | | | Mass production units will get 16 assigned MAC addresses. This allows each phy to spawn up to 7 VAPs which will each have unique MAC without needing the private bit. Signed-off-by: John Crispin <john@phrozen.org>
* kernel: bump 6.6 to 6.6.59Mieczyslaw Nalewaj2024-11-0424-112/+30
| | | | | | | | | | | | | | | | | Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.59 Removed upstreamed: - generic/backport-6.6/777-netfilter-xtables-fix-typo-causing-some-targets-to-not-load-on-IPv6.patch[1] - generic/backport-6.6/780-24-v6.12-r8169-avoid-unsolicited-interrupts.patch[2] All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.59&id=433742ba96baf30c21e654ce3e698ad87100593b 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.59&id=7d6d46b429804b1a182106e27e2f8c0e84689e1a Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Link: https://github.com/openwrt/openwrt/pull/16835 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: Fix EX400 imagebuilderMauri Sandberg2024-11-041-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | A factory image for DNA EX400 depends on an initramfs image and they were explicitly removed from the imagebuilder recently. Now the factory image creation fails miserably and it also affects custom image creation with the firmware selector. Add the initramfs kernel to the staging so that it's shipped with the imagebuilder. Also remove a image build target added solely for DNA EX400. Tested by creating a factory and syspupgrade images locally with the imagebuilder and verified their functionality. Related work c85348d9abf4 ("imagebuilder: remove initramfs image files") Fixes: fea2264d9fdd ("ramips: mt7621: Add DNA Valokuitu Plus EX400") Signed-off-by: Mauri Sandberg <maukka@ext.kapsi.fi> --- v4: use append-image-stage, remove Build/kernel-initramfs-bin v3: adjust commit subject v2: remove fix for inconsistent line ending elsewhere in the file Link: https://github.com/openwrt/openwrt/pull/16659 Signed-off-by: Robert Marko <robimarko@gmail.com>
* mtd: Add backported Winbond fixLinus Walleij2024-11-041-0/+59
| | | | | | | Upstream stable is slow at picking this up and several systems are regressing. Add the patch locally in OpenWrt. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* mediatek: YunCore AX835: fix voltage regulatorLeon M. Busch-George2024-11-031-0/+1
| | | | | | | | | | Specifying GPIO_ACTIVE_HIGH on the GPIO for the voltage regulator doesn't suffice. The regulator itself requires enable-active-high to be set. Fixes: #16292 Signed-off-by: Leon M. Busch-George <leon@georgemail.eu> Link: https://github.com/openwrt/openwrt/pull/16839 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ath79: gpio-rb91x-key: use gpiochip_get_dataRosen Penev2024-11-031-7/+2
| | | | | | | | | | No need for a custom function that does the same thing. Oversight from devm conversion. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16748 Signed-off-by: Robert Marko <robimarko@gmail.com>