- 27 Feb, 2020 2 commits
-
-
Jo-Philipp Wich authored
Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Jo-Philipp Wich authored
7da6643 tests: blobmsg: add test case 75e300a blobmsg: fix wrong payload len passed from blobmsg_check_array Fixes: FS#2833 Signed-off-by:
Jo-Philipp Wich <jo@mein.io> (cherry picked from commit 955634b4)
-
- 26 Feb, 2020 5 commits
-
-
Roger Pueyo Centelles authored
When porting support from ar71xx to ath79, the reset-gpios option was missed. Due to a hardware bug, this would eventually leave the devices with RX-deaf Ethernet PHY. Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net> (cherry picked from commit 6613a7f5)
-
Roger Pueyo Centelles authored
This commit adds support for the NanoStation Loco M2/M5 XW devices on the ath79 target (support was long ago available on ar71xx). Specifications: - AR9342 SoC @ 535 MHz - 64 MB RAM - 8 MB SPI flash - 1x 10/100 Mbps Ethernet, 24 Vdc PoE-in - AR8032 switch - 2T2R 5 GHz radio, 22 dBm - 13 dBi built-in antenna - POWER/LAN green LEDs - 4x RSSI LEDs (red, orange, green, green) - UART (115200 8N1) on PCB Flashing via TFTP: - Use a pointy tool (e.g., pen cap, paper clip) and keep the reset button on the device or on the PoE supply pressed - Power on the device via PoE (keep reset button pressed) - Keep pressing until LEDs flash alternatively LED1+LED3 => LED2+LED4 => LED1+LED3, etc. - Release reset button - The device starts a TFTP server at 192.168.1.20 - Set a static IP on the computer (e.g., 192.168.1.21/24) - Upload via tftp the factory image: $ tftp 192.168.1.20 tftp> bin tftp> trace tftp> put openwrt-ath79-generic-xxxxx-ubnt_nanostation-loco-m-xw-squashfs-factory.bin Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net> (backported from commit 633c4304 ) Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
Petr Štetiar authored
8d45443bb5c9 pppd: Ignore received EAP messages when not doing EAP 8d7970b8f3db pppd: Fix bounds check in EAP code 858976b1fc31 radius: Prevent buffer overflow in rc_mksid() Signed-off-by:
Petr Štetiar <ynezz@true.cz> (cherry picked from commit 215598fd ) Fixes: CVE-2020-8597 Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Jo-Philipp Wich authored
This reverts commit 6b7eeb74 since it didn't contain a reference to the CVE it addresses. The next commit will re-add the commit including a CVE reference in its commit message. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Jo-Philipp Wich authored
2ee323c file: poke ustream after starting deferred program Signed-off-by:
Jo-Philipp Wich <jo@mein.io> (cherry picked from commit 04069fde)
-
- 24 Feb, 2020 1 commit
-
-
Koen Vandeputte authored
Refreshed all patches. Fixes: - CVE-2013-1798 Compile-tested on: cns3xxx Runtime-tested on: cns3xxx Signed-off-by:
Koen Vandeputte <koen.vandeputte@ncentric.com>
-
- 23 Feb, 2020 4 commits
-
-
Ansuel Smith authored
It has been notice a buf in L2 cache scaling where the scaling is not done proprely if the frequency is set to the initial state before the new frequency. From: https://patchwork.kernel.org/patch/10565443/ * The clocks are set to aux clock rate first to make sure the * secondary mux is not sourcing off of QSB. The rate is then set to * two different rates to force a HFPLL reinit under all * circumstances. In the initial stage of boot to force a new frequency to apply, is needed to first set the frequency back to the lowest one (aux_rate) and then to the target one. This force and make sure the controller actually switch the frequency to the right one. Apply the same mechanism to L2 frequency scaling. Before scaling to the target frequency, first set the frequency to the aux_rate to force the transition, then scale it to the target frequency. Doing the wrong way can produce unexpected results and could lock the scaling mechanism until a full reboot is done (Causing a full reset by the krait-cc driver) From: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=77612720a2362230af726baa4149c40ec7a7fb05 When the Hfplls are reprogrammed during the rate change, the primary muxes which are sourced from the same hfpll for higher frequencies, needs to be switched to the 'safe secondary mux' as the parent for that small window. This is done by registering a clk notifier for the muxes and switching to the safe parent in the PRE_RATE_CHANGE notifier and back to the original parent in the POST_RATE_CHANGE notifier. This should apply also to L2 scaling... as we can't relly use the notifier, we manually do this on L2 scaling. Tested-By: Marc Benoit <marcb62185@gmail.com> [19.07: R7800] Tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de> [nbg6817/ipq8065] Signed-off-by:
Ansuel Smith <ansuelsmth@gmail.com> (cherry picked from commit 5ab9c0b3)
-
Pavel Kubelun authored
Voltage tolerance is accounted per core, not per cpu, so add missing DT entry. Tested-By: Marc Benoit <marcb62185@gmail.com> [19.07: R7800] Signed-off-by:
Pavel Kubelun <be.dissent@gmail.com> Signed-off-by:
Ansuel Smith <ansuelsmth@gmail.com> (cherry picked from commit 77e7d6c2)
-
Johann Neuhauser authored
This was already available on ar71xx, but is missing on ath79. This solves the slow usb speed on TP-Link WDR3600/WDR4300 and similar, as reported in Flyspray [0], OpenWRT Forum [1] and GitHub PR [2]. [0] https://bugs.openwrt.org/index.php?do=details&task_id=2567 [1] https://forum.openwrt.org/t/usb-wdr4300-low-speed-on-external-storage/46794 [2] https://github.com/openwrt/openwrt/pull/964 Tested-By: Lech Perczak <lech.perczak@gmail.com> [TL-WDR4300] Signed-off-by:
Johann Neuhauser <johann@it-neuhauser.de> (cherry picked from commit bda6b614)
-
Johann Neuhauser authored
[ Upstream commit 6cca6fff ] Do not put usb-phy into reset if clearing the usb-phy reset or setting the suspend_override has failed. Reorder (de)asserts like in arch/mips/ath79/dev-usb.c. Add an optional reset_control "usb-phy-analog", which is needed for ar934x SoCs like in the old mach-driver arch/mips/ath79/dev-usb.c. Tested-By: Lech Perczak <lech.perczak@gmail.com> [TL-WDR4300] Signed-off-by:
Johann Neuhauser <johann@it-neuhauser.de> [added reference to upstream commit, Tested-by] Signed-off-by:
Petr Štetiar <ynezz@true.cz>
-
- 22 Feb, 2020 2 commits
-
-
Adrian Schmutzler authored
This reverts commit 21bf718b . Until the mdio-reset is solved, this is not ready for stable release. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
Roger Pueyo Centelles authored
This commit adds support for the NanoStation Loco M2/M5 XW devices on the ath79 target (support was long ago available on ar71xx). Specifications: - AR9342 SoC @ 535 MHz - 64 MB RAM - 8 MB SPI flash - 1x 10/100 Mbps Ethernet, 24 Vdc PoE-in - AR8032 switch - 2T2R 5 GHz radio, 22 dBm - 13 dBi built-in antenna - POWER/LAN green LEDs - 4x RSSI LEDs (red, orange, green, green) - UART (115200 8N1) on PCB Flashing via TFTP: - Use a pointy tool (e.g., pen cap, paper clip) and keep the reset button on the device or on the PoE supply pressed - Power on the device via PoE (keep reset button pressed) - Keep pressing until LEDs flash alternatively LED1+LED3 => LED2+LED4 => LED1+LED3, etc. - Release reset button - The device starts a TFTP server at 192.168.1.20 - Set a static IP on the computer (e.g., 192.168.1.21/24) - Upload via tftp the factory image: $ tftp 192.168.1.20 tftp> bin tftp> trace tftp> put openwrt-ath79-generic-xxxxx-ubnt_nanostation-loco-m-xw-squashfs-factory.bin Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net> (backported from commit 633c4304 ) Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
- 21 Feb, 2020 5 commits
-
-
Sungbo Eo authored
Stock firmware has a vendor-defined tail at the end of uImage for image validation. This patch enables OpenWrt installation from stock firmware without having to access the UART console. Installation via web interface: 1. Flash **initramfs** image through the stock web interface. 2. Boot into OpenWrt and perform sysupgrade with sysupgrade image. Signed-off-by:
Sungbo Eo <mans0n@gorani.run> (cherry picked from commit be3e98ce)
-
Adrian Schmutzler authored
This adds support for the Ubiquiti Picostation M (XM), which has the same board/LEDs as the Bullet M XM, but different case and antennas. Specifications: - AR7241 SoC @ 400 MHz - 32 MB RAM - 8 MB SPI flash - 1x 10/100 Mbps Ethernet, 24 Vdc PoE-in - External antenna: 5 dBi (USA), 2 dBi (EU) - POWER/LAN green LEDs - 4x RSSI LEDs (red, orange, green, green) - UART (115200 8N1) on PCB Flashing via WebUI: Upload the factory image via the stock firmware web UI. Attention: airOS firmware versions >= 5.6 have a new bootloader with an incompatible partition table! Please downgrade to <= 5.5 _before_ flashing OpenWrt! Refer to the device's Wiki page for further information. Flashing via TFTP: Same procedure as other NanoStation M boards. - Use a pointy tool (e.g., pen cap, paper clip) and keep the reset button on the device or on the PoE supply pressed - Power on the device via PoE (keep reset button pressed) - Keep pressing until LEDs flash alternatively LED1+LED3 => LED2+LED4 => LED1+LED3, etc. - Release reset button - The device starts a TFTP server at 192.168.1.20 - Set a static IP on the computer (e.g., 192.168.1.21/24) - Upload via tftp the factory image: $ tftp 192.168.1.20 tftp> bin tftp> trace tftp> put openwrt-ath79-generic-xxxxx-ubnt_picostation-m-squashfs-factory.bin Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> (cherry picked from commit 6fdaf16d)
-
Sven Roederer authored
This adds support for the Ubiquiti Nanostation Loco M (XM), which has the same board/LEDs as the Bullet M XM, but different case and antennas. Specifications: - AR7241 SoC @ 400 MHz - 32 MB RAM - 8 MB SPI flash - 1x 10/100 Mbps Ethernet, 24 Vdc PoE-in - NS Loco M2: built-in antenna: 8 dBi; AR9287 - NS Loco M5: built-in antenna: 13 dBi; 2T2R 5 GHz radio - POWER/LAN green LEDs - 4x RSSI LEDs (red, orange, green, green) - UART (115200 8N1) on PCB Flashing via WebUI: Upload the factory image via the stock firmware web UI. Note that only certain firmware versions accept unsigned images. Refer to the device's Wiki page for further information. Flashing via TFTP: Same procedure as other NanoStation M boards. - Use a pointy tool (e.g., pen cap, paper clip) and keep the reset button on the device or on the PoE supply pressed - Power on the device via PoE (keep reset button pressed) - Keep pressing until LEDs flash alternatively LED1+LED3 => LED2+LED4 => LED1+LED3, etc. - Release reset button - The device starts a TFTP server at 192.168.1.20 - Set a static IP on the computer (e.g., 192.168.1.21/24) - Upload via tftp the factory image: $ tftp 192.168.1.20 tftp> bin tftp> trace tftp> put openwrt-ath79-generic-xxxxx-ubnt_nanostation-loco-m-squashfs-factory.bin Tested on NanoStation Loco M2. Signed-off-by:
Sven Roederer <freifunk@it-solutions.geroedel.de> Co-developed-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> (cherry picked from commit b56bcfe3)
-
Adrian Schmutzler authored
This adds a pinmux to the shared DTSI for TP-Link TL-WR841N/ND v8, TL-WR842N v2 and TL-MR3420 v2. It is supposed to be the equivalent of: /* config gpio4 as normal gpio function */ ath79_gpio_output_select(TL_MR3420V2_GPIO_USB_POWER,AR934X_GPIO_OUT_GPIO); This allows to enable USB power on these devices. While at it, move the jtag_disable_pins to &gpio node and remove the redundant status=okay there. Tested on TP-Link TL-WR842N v2. Fixes: FS#2753 Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Tested-by:
Armin Fuerst <armin@fuerst.priv.at> [backport: change individual DTS files, no mr3420-v2 present] (backported from commit 18c95c9d)
-
Adrian Schmutzler authored
This adds the ar71xx board name to the SUPPORTED_DEVICES on ath79, so forceless sysupgrade on this device becomes possible. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> (cherry picked from commit 49ff00db)
-
- 20 Feb, 2020 1 commit
-
-
Petr Štetiar authored
8d45443bb5c9 pppd: Ignore received EAP messages when not doing EAP 8d7970b8f3db pppd: Fix bounds check in EAP code 858976b1fc31 radius: Prevent buffer overflow in rc_mksid() Signed-off-by:
Petr Štetiar <ynezz@true.cz> (cherry picked from commit 215598fd)
-
- 11 Feb, 2020 2 commits
-
-
Chuanhong Guo authored
Add migration for all ar71xx device path as well as previously incorrect ath79 path. Signed-off-by:
Chuanhong Guo <gch981213@gmail.com> (cherry picked from commit d08b5bb3) Tested-by: Lech Perczak <lech.perczak@gmail.com> [TP-Link TL-WDR4300 v1]
-
Chuanhong Guo authored
according to functional block diagram in datasheet, these devices don't belong to apb bus. Move these nodes out to match datasheet description. Signed-off-by:
Chuanhong Guo <gch981213@gmail.com> (cherry picked from commit f65501e1) Tested-by: Lech Perczak <lech.perczak@gmail.com> [TP-Link TL-WDR4300 v1]
-
- 08 Feb, 2020 1 commit
-
-
Jo-Philipp Wich authored
The $(space) definition in the hostapd Makefile ceased to work with GNU Make 4.3 and later, leading to syntax errors in the generated Kconfig files. Drop the superfluous redefinition and reuse the working $(space) declaration from rules.mk to fix this issue. Fixes: GH#2713 Ref: https://github.com/openwrt/openwrt/pull/2713#issuecomment-583722469 Reported-by:
Karel Kočí <cynerd@email.cz> Suggested-by:
Jonas Gorski <jonas.gorski@gmail.com> Tested-by:
Shaleen Jain <shaleen@jain.sh> Signed-off-by:
Jo-Philipp Wich <jo@mein.io> (cherry picked from commit 766e7782)
-
- 07 Feb, 2020 6 commits
-
-
Adrian Schmutzler authored
Some node names were inconsistent with the reg property. Fix it. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> (cherry picked from commit 1a0d6e1e) [fixed XM->XW in commit title for backport]
-
Michal Cieslakiewicz authored
Add Netgear WNDR3700v2 to the list of supported boards. Signed-off-by:
Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl> [rebase, adjusted commit title] Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> (cherry picked from commit a09408fa)
-
Michal Cieslakiewicz authored
Remove read-only flag from U-boot environment partition for Netgear WNDR3700 v1 and v2 so u-boot-envtools can modify data there. Signed-off-by:
Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl> (cherry picked from commit 6227c8d1)
-
Dan Haab authored
Luxul ABR-4500 and XBR-4500 devices are wired routers with 5 Ethernet ports and 1 USB 3.0 port. Flashing requires using Luxul firmware 6.4.0 or newer and uploading firmware using "Firmware Update" web UI page. Signed-off-by:
Dan Haab <dan.haab@legrand.com> (cherry picked from commit 1d47f815 ) [rmilecki: use DEVICE_TITLE for 19.07] Signed-off-by:
Rafał Miłecki <rafal@milecki.pl>
-
Dan Haab authored
It's a simple tool prepending image with a Luxul header. Signed-off-by:
Dan Haab <dan.haab@legrand.com> (cherry picked from commit 9aa6569a)
-
Rafał Miłecki authored
Signed-off-by:
Rafał Miłecki <rafal@milecki.pl> (cherry picked from commit aca27409)
-
- 05 Feb, 2020 1 commit
-
-
Koen Vandeputte authored
Reported by Buildbot: x86 instruction decoder selftest (X86_DECODER_SELFTEST) [N/y/?] (NEW) aborted! Fixes: eca8a2ee ("kernel: bump 4.14 to 4.14.169") Signed-off-by:
Koen Vandeputte <koen.vandeputte@ncentric.com>
-
- 04 Feb, 2020 2 commits
-
-
Koen Vandeputte authored
This chip is used on newer RB912UAG-5HPnD r2 boards: Before: [ 0.642553] m25p80 spi0.0: unrecognized JEDEC id bytes: c8, 40, 10 [ 0.649381] NAND flash driver for the RouterBOARD 91x series After: [ 0.641714] m25p80 spi0.0: found gd25d05, expected m25p80 [ 0.649916] m25p80 spi0.0: gd25d05 (64 Kbytes) [ 0.655122] Creating 4 MTD partitions on "spi0.0": [ 0.660164] 0x000000000000-0x00000000c000 : "routerboot" [ 0.667782] 0x00000000c000-0x00000000d000 : "hard_config" [ 0.675073] 0x00000000d000-0x00000000e000 : "bios" [ 0.682613] 0x00000000e000-0x00000000f000 : "soft_config" [ 0.690304] NAND flash driver for the RouterBOARD 91x series Signed-off-by:
Koen Vandeputte <koen.vandeputte@ncentric.com>
-
Koen Vandeputte authored
Refreshed all patches. Fixes: - CVE-2019-14896 - CVE-2019-14897 Remove upstreamed: - 023-0007-crypto-crypto4xx-Fix-wrong-ppc4xx_trng_probe-ppc4xx_.patch - 001-4.22-01-MIPS-BCM63XX-drop-unused-and-broken-DSP-platform-dev.patch Compile-tested on: cns3xxx Runtime-tested on: cns3xxx Signed-off-by:
Koen Vandeputte <koen.vandeputte@ncentric.com>
-
- 01 Feb, 2020 1 commit
-
-
Mason Clarke authored
This commit reenables the image creation for the D-Link DIR-645. Images built for the D-Link DIR-645 work just fine, there is no reason to disable the image creation for it. I tested the OpenWrt 18.06.5 and 19.07.0-rc1 images, as well as an image I built from the current 19.07 branch (git HEAD 62d5ece7) with the default 19.07 release config, and I cannot confirm the report that commit 2607c02e ("ramips: disable D-Link DIR-645 by default") references. Configuration changes were applied successfully and remained set after a reboot as well. The log also showed no anomalies. This reverts commit 2607c02e . Signed-off-by:
Mason Clarke <mclarke2355@gmail.com>
-
- 30 Jan, 2020 1 commit
-
-
Jan Alexander authored
This converts the TP-Link TL-MR3020v3 board to use the WLAN throughput LED trigger in order to react to all VAPs. It also moves the WLAN trigger config of the TP-Link TL-WA801NDv5 to the DTS and merges the now identical LAN LED configs. Verified these changes on a TL-MR3020v3 and TL-WA801NDv5. Signed-off-by:
Jan Alexander <jan@nalx.net> [changed commit title and extended commit message] Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> [added comment about test result on TL-WA801ND v5] Signed-off-by:
David Bauer <mail@david-bauer.net> (cherry picked from commit 20eb45da)
-
- 29 Jan, 2020 4 commits
-
-
Adrian Schmutzler authored
DEVICE_PACKAGES is specified twice for the same device. Remove the first (=older) assignment. Fixes: 40692f0f ("ramips: mt7620: select only the matching mt76 driver") Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> (cherry picked from commit 4ecd6510)
-
Jo-Philipp Wich authored
Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Jo-Philipp Wich authored
Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Jo-Philipp Wich authored
80d161e opkg: Fix -Wformat-overflow warning c09fe20 libopkg: fix skipping of leading whitespace when parsing checksums Fixes: CVE-2020-7982 Signed-off-by:
Jo-Philipp Wich <jo@mein.io> (cherry picked from commit c69c20c6)
-
- 28 Jan, 2020 2 commits
-
-
Felix Fietkau authored
Fixes a significant amount of leaked memory with lots of connections Ref: PR#2721 Tested-by: Jerome Benoit <jerome.benoit@sap.com> [WRT1900AC v1] Signed-off-by:
Felix Fietkau <nbd@nbd.name> [removed 4.19 patch during cherry-pick] Signed-off-by:
Petr Štetiar <ynezz@true.cz> (cherry picked from commit c6c4701d)
-
Adrian Schmutzler authored
Based on a script for comparison, this fixes (hopefully) all errors in SUPPORTED_DEVICES for ar71xx->ath79 upgrade. Devices where old string is removed as the device does not exist in ar71xx: - dlink_dir-859-a1 - tplink_archer-a7-v5 - tplink_cpe510-v3 [only in master] Devices where string is changed because it did not match the board name in ar71xx: - tplink_tl-mr3220-v1 - tplink_tl-mr3420-v1 - tplink_tl-wr2543-v1 - tplink_tl-wr741nd-v4 - tplink_tl-wr841-v7 - ubnt_unifiac-mesh - ubnt_unifiac-mesh-pro - ubnt_unifiac-pro For this device, the correct string could not be found, but we could not determine the correct one. Thus, the string is removed for now: - tplink_tl-wr740n-v4 The script for checking this is quite simple (note that newer entries, i.e. ath79->ath79 upgrade, are displayed as missing): newpath=target/linux/ath79/image/ oldpath=target/linux/ar71xx/base-files/lib/ar71xx.sh for s in $(grep -roh "SUPPORTED_DEVICES.*" $newpath | sed 's/SUPPORTED_DEVICES *.= *//'); do found="Missing" grep -q -r "\"$s\"" $oldpath && found="Found" echo "$s: $found." done The errors might be filtered by appending 'grep "Missing"' to the script. Fixes: FS#2751 Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> (cherry picked from commit 07ce940b)
-