- 17 Apr, 2020 5 commits
-
-
Petr Štetiar authored
Refreshed all patches, run tested on apalis. Cc: Vladimir Vid <vladimir.vid@sartura.hr> Cc: Tim Harvey <tharvey@gateworks.com> Cc: Koen Vandeputte <koen.vandeputte@ncentric.com> Signed-off-by:
Petr Štetiar <ynezz@true.cz>
-
David Bauer authored
If we know that we have an encrypted link (based on having had a key configured for TX in the past) then drop all data frames in the key selection handler if there's no key anymore. This fixes an issue with mac80211 internal TXQs - there we can buffer frames for an encrypted link, but then if the key is no longer there when they're dequeued, the frames are sent without encryption. This happens if a station is disconnected while the frames are still on the TXQ. Detecting that a link should be encrypted based on a first key having been configured for TX is fine as there are no use cases for a connection going from with encryption to no encryption. With extended key IDs, however, there is a case of having a key configured for only decryption, so we can't just trigger this behaviour on a key being configured. Cc: stable@vger.kernel.org Reported-by:
Jouni Malinen <j@w1.fi> Signed-off-by:
Johannes Berg <johannes.berg@intel.com> Signed-off-by:
Luca Coelho <luciano.coelho@intel.com> Signed-off-by:
David Bauer <mail@david-bauer.net>
-
David Bauer authored
This commit adds support for the AVM Fritz!WLAN Repeater 1750E SOC: Qualcomm QCA9556 (Scorpion) 720MHz MIPS74Kc RAM: 64MB Zentel A3R12E40CBF DDR2 FLASH: 16MiB Winbond W25Q128 SPI NOR WLAN1: QCA9556 2.4 GHz 802.11b/g/n 3x3 WLAN2: QCA9880 5 GHz 802.11 n/ac 3x3 INPUT: WPS button LED: Power, WiFi, LAN, RSSI indicator Serial: Header Next to Black metal shield Pinout is 3.3V - RX - TX - GND (Square Pad is 3.3V) The Serial setting is 115200-8-N-1. Tested and working: - Ethernet - 2.4 GHz WiFi (correct MAC) - 5 GHz WiFi (correct MAC) - Installation via EVA bootloader - OpenWRT sysupgrade - Buttons - LEDs Installation via EVA: In the first seconds after Power is connected, the bootloader will listen for FTP connections on 192.168.178.1. Firmware can be uploaded like following: ftp> quote USER adam2 ftp> quote PASS adam2 ftp> binary ftp> debug ftp> passive ftp> quote MEDIA FLSH ftp> put openwrt-sysupgrade.bin mtd1 Note that this procedure might take up to two minutes. You need to powercycle the Device afterwards to boot OpenWRT. Signed-off-by:
David Bauer <mail@david-bauer.net>
-
David Bauer authored
The QCA9550 family of SoCs have a slightly different reset sequence compared to older chips. Normally the bootloader performs this sequence, however some bootloader implementation expect the operating system to clear the reset. Also get the PCIe resets from OF to support the second RC of the QCA9558. This is required for the AVM FRITZ!WLAN Repeater 1750E to work, as EVA leaves the PCIe bus in reset. Tested: AVM FRITZ!WLAN Repeater 1750E - OCEDO Koala Signed-off-by:
David Bauer <mail@david-bauer.net>
-
Daniel Golle authored
Instead of using the actual interface name, a hard-coded 'wlan0' has slipped into the script. Replace it. Fixes: ccf2aa9d ("mac80211: detect existing interface before adding") Reported-by:
John Crispin <john@phrozen.org> Signed-off-by:
Daniel Golle <daniel@makrotopia.org>
-
- 16 Apr, 2020 5 commits
-
-
Koen Vandeputte authored
This chip is used on newer RB912UAG-5HPnD r2 and 922UAGS-5HPacD boards: Before: [ 0.824562] spi-nor spi0.0: unrecognized JEDEC id bytes: c8 40 10 c8 40 10 [ 0.831607] spi-nor: probe of spi0.0 failed with error -2 After: [ 0.825347] spi-nor spi0.0: gd25d05 (64 Kbytes) [ 0.830291] 1 routerbootpart partitions found on MTD device spi0.0 [ 0.836577] Creating 1 MTD partitions on "spi0.0": [ 0.841448] 0x000000000000-0x000000010000 : "partitions" [ 0.848418] 4 routerbootpart partitions found on MTD device partitions [ 0.855092] Creating 4 MTD partitions on "partitions": [ 0.860318] 0x000000000000-0x00000000c000 : "routerboot" [ 0.866548] 0x00000000c000-0x00000000d000 : "hard_config" [ 0.872832] 0x00000000d000-0x00000000e000 : "bios" [ 0.878580] 0x00000000e000-0x00000000f000 : "soft_config" Signed-off-by:
Koen Vandeputte <koen.vandeputte@ncentric.com>
-
Roger Pueyo Centelles authored
The previous spi-max-frequency value did not work with all the CPU speed settings (configurable with rbcfg or from the stock firmware); the new one does for the three of them. Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Koen Vandeputte authored
Following symbol got renamed upstream: CONFIG_MTD_NAND --> CONFIG_MTD_RAW_NAND Also add this renamed symbol so NAND also works on kernel 5.4. After: [ 0.628372] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1 [ 0.634862] nand: Samsung NAND 128MiB 3,3V 8-bit [ 0.639554] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 0.647263] Scanning device for bad blocks [ 0.656228] random: fast init done [ 0.789652] 3 fixed-partitions partitions found on MTD device ar934x-nand [ 0.796550] Creating 3 MTD partitions on "ar934x-nand": [ 0.801874] 0x000000000000-0x000000040000 : "booter" [ 0.807715] 0x000000040000-0x000000400000 : "kernel" [ 0.813551] 0x000000400000-0x000008000000 : "ubi" Signed-off-by:
Koen Vandeputte <koen.vandeputte@ncentric.com>
-
Koen Vandeputte authored
Refreshed all patches. Remove upstreamed: - 600-ipv6-addrconf-call-ipv6_mc_up-for-non-Ethernet-inter.patch - 184-USB-serial-option-add-Wistron-Neweb-D19Q1.patch Fixes: - CVE-2020-8647 - CVE-2020-8648 (potentially) - CVE-2020-8649 Compile-tested on: cns3xxx Runtime-tested on: cns3xxx Signed-off-by:
Koen Vandeputte <koen.vandeputte@ncentric.com>
-
Koen Vandeputte authored
Refreshed all patches. Remove upstreamed: - 0001-net-thunderx-workaround-BGX-TX-Underflow-issue.patch - 600-ipv6-addrconf-call-ipv6_mc_up-for-non-Ethernet-inter.patch - 184-USB-serial-option-add-Wistron-Neweb-D19Q1.patch Fixes: - CVE-2020-8648 (potentially) - CVE-2020-8647 - CVE-2020-8649 Compile-tested on: cns3xxx, octeontx Runtime-tested on: cns3xxx Signed-off-by:
Koen Vandeputte <koen.vandeputte@ncentric.com>
-
- 15 Apr, 2020 3 commits
-
-
Hannu Nyman authored
Improve the status LED functionality in GL-AR750 by adding the definitions for different statuses (boot, failsafe, running, flashing). Signed-off-by:
Hannu Nyman <hannu.nyman@iki.fi>
-
Adrian Schmutzler authored
This adds the board name from ar71xx to support upgrade without -F for the TP-Link TL-WA901ND v2. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
Chuanhong Guo authored
ubnt er-x/xiaomi/netgear sercomm devices are known to have troble extracting a big kernel from flash and has support for uncompressed uimage This commit uses uncompressed uimage with lzma-loader for these devices to fix boot issue. Signed-off-by:
Chuanhong Guo <gch981213@gmail.com>
-
- 14 Apr, 2020 15 commits
-
-
Paul Spooren authored
Now that the x86 target uses the new image generation code we can also attach metadata to the created images. As currently the `SUPPORTED_DEVICES` list is empty, no JSON metadata is attached, however the signing happens in the same step. This results in signature verification for x86 images. Signed-off-by:
Paul Spooren <mail@aparcar.org>
-
Paul Spooren authored
OpenWrt now has a CDN for sources at sources.cdn.openwrt.org which mirrors sources.openwrt.org. Downloading sources outside Europe or US (mainland) could result in low throughput, extremely slowing down the first compilation of the build system. This patch adds sources.cdn.openwrt.org as the first mirror to offer worldwide fast download speeds by default. If the CDN goes down for whatever reason, the script jumps to the next available mirror and downloads requested files as before (in regional varying speed). Signed-off-by:
Paul Spooren <mail@aparcar.org> Acked-by:
Eneas U de Queiroz <cotequeiroz@gmail.com>
-
Paul Spooren authored
The JSON `WORK_DIR` ($(KDIR)/json_info_files) is only created if the new image generation methods from `image.mk` are used. However some targets like `armvirt` do not use it yet, so the folder is never created. The `json_overview_image_info.py` script used to raise an error if the given `WORK_DIR` isn't a folder, however it should just notify about missing JSON files. This patch removes the Python assert and exists with code 0 even if no JSON files were found, as this is not necessarily an error but simply not yet implemented. Using `glob` on an not existing `Path` results in an empty list, therefore the for loop won't run. Signed-off-by:
Paul Spooren <mail@aparcar.org> CC: Petr Štetiar <ynezz@true.cz>
-
Petr Štetiar authored
Refreshed patches, removed upstreamed patches: generic: 746-stable-net-dsa-mt7530-fix-null-pointer-dereferencing-in-por.patch Run tested: qemu-x86-64, apalis Build tested: x86/64, imx6, sunxi/a53 Signed-off-by:
Petr Štetiar <ynezz@true.cz>
-
Ansuel Smith authored
From kernel 4.20 msm-gpio driver is broken and cause the malfunction of the buttons on every ipq806x target. Add a patch to fix this. Tested-by:
Hannu Nyman <hannu.nyman@iki.fi> Signed-off-by:
Ansuel Smith <ansuelsmth@gmail.com>
-
Daniel Golle authored
32c717e jail: only mess with rootfs if CLONE_NEWNS was set b275a62 instance: harmonize instance API 511fd97 jail: make /proc more secure 4953b7c jail: mount /sys read-only a4d6442 jail: replace /etc/resolv.conf with symlink in extroot+overlay a4cc165 jail: always mount /dev as additional tmpfs Signed-off-by:
Daniel Golle <daniel@makrotopia.org>
-
Daniel Golle authored
Signed-off-by:
Daniel Golle <daniel@makrotopia.org>
-
Adrian Schmutzler authored
This applies further fixes to the DTS of ZyXEL NBG6716 based on what is found in ar71xx (mach-nbg6716.c): - use WiFi label names as in ar71xx - fix WPS gpio number - fix GPIO_ACTIVE_HIGH and mode for WiFi switch - add codes for USB eject buttons - fix node name for "internet" LED This device has separate LEDs for WAN and "Internet". As the WAN-LED (and the four LAN-LEDs) are driven independent of the setup in DT/01_leds, the "internet" LED is left unassigned (in contrast to ar71xx, where it was set up effectively as a second WAN LED) Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
Kevin Darbyshire-Bryant authored
This reverts commit 1b973b54 . It turns out act_police is included in the kmod-sched package so this package turns out to be superfluous and causes file provision conflicts. Ooooops! Best revert it then. Signed-off-by:
Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
-
Chuanhong Guo authored
Some devices have bootloaders with broken lzma code resulting in failed decompression or corrupted kernel code. This image recipe allows to sacrifice 5KB for OpenWrt LZMA loader and take over the task of decompress kernel. Signed-off-by:
Chuanhong Guo <gch981213@gmail.com>
-
Chuanhong Guo authored
Loader platform is a per-soc variable instead of a per-device one. Determine corresponding loader platform at the beginning of image Makefile. Signed-off-by:
Chuanhong Guo <gch981213@gmail.com>
-
Chuanhong Guo authored
LOADER_TYPE is a per-device variable which should be included in DEVICE_VARS. Signed-off-by:
Chuanhong Guo <gch981213@gmail.com>
-
Luiz Angelo Daros de Luca authored
Enables spi-mem interface for 3x faster flash read. Signed-off-by:
Luiz Angelo Daros de Luca <luizluca@gmail.com>
-
Luiz Angelo Daros de Luca authored
Enables spi-mem interface usage. It speeds up flash read in about 3x while it also workaround a possible hardware bug when normal spi read is used. Fixes: FS#2742 Signed-off-by:
Luiz Angelo Daros de Luca <luizluca@gmail.com>
-
Luiz Angelo Daros de Luca authored
Reimplements read optimization on top of spi-mem. Similar to what 461-spi-ath79-add-fast-flash-read.patch used to do with the dropped flash read interface. It accelerate only fast-read op reading flash directly from memory mapped region. 'm25p,fast-read' must be set in order to use the new spi-mem. It improved read speed up to 3x on old devices (tplink,tl-wr2543-v1) while no speed improvement was noticed on newer devices like (tplink,archer-c7-v2). Signed-off-by:
Luiz Angelo Daros de Luca <luizluca@gmail.com>
-
- 13 Apr, 2020 12 commits
-
-
Daniel Golle authored
The previous commit introduced a regression for netns jails without jail_ifname set. Fix that. Fixes: 4e4f7c6d ("netifd: network namespace jail improvements") Signed-off-by:
Daniel Golle <daniel@makrotopia.org>
-
Daniel Golle authored
aaaca2e interface: allocate and free memory for jail name d93126d interface: allow renaming interface when moving to jail netns Signed-off-by:
Daniel Golle <daniel@makrotopia.org>
-
Daniel Golle authored
Signed-off-by:
Daniel Golle <daniel@makrotopia.org>
-
Daniel Golle authored
Signed-off-by:
Daniel Golle <daniel@makrotopia.org>
-
Alberto Bursi authored
forcedeth is necessary to use the integrated ethernet controller of Nvidia nForce chipset. There are PC motherboards with this chipset from 2001 that run 32bit Athlon XP CPUs and more modern ones up to 2009 that can run Intel and AMD 64bit processors, so add this to all non-geode x86 targets. Signed-off-by:
Alberto Bursi <bobafetthotmail@gmail.com>
-
Tomasz Maciej Nowak authored
These patches were necessarry for Atheros and some Intel WiFi cards. After short testing, the current upstream driver state is enough for these WiFi cards to work. If there are still some issues with other devices, the patches could be easily restored. Signed-off-by:
Tomasz Maciej Nowak <tomek_n@o2.pl>
-
DENG Qingfang authored
Signed-off-by:
DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
-
DENG Qingfang authored
Signed-off-by:
DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
-
DENG Qingfang authored
Signed-off-by:
DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
-
DENG Qingfang authored
Signed-off-by:
DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
-
Daniel González Cabanelas authored
Buffalo LinkStation LS421DE is a dual bay NAS, based on Marvell Armada 370 Hardware: SoC: Marvell Armada 88F6707-A1 CPU: Cortex-A9 1200 MHz, 1 core Flash: SPI-NOR 1 MiB, NAND 512 MiB RAM: DDR3 512 MiB Ethernet: 1x 10/100/1000 Mbps USB: 1x 2.0, 1x 3.0 SATA: 2x 3.0 Gbps LEDs/Input : 5x / 2x (1x button, 1x slide-switch) RTC: Ricoh RS5C372A, I2C, no battery Flash instruction (UART+TFTP): 1. Downgrade the OEM firmware to 1.34 version (BUFFALO_BOOTVER=0.13) 2. Remove any hard drive from inside the bays. 3. Boot the Openwrt initramfs image using the U-Boot serial console: tftpboot 0x1200000 buffalo_ls421de-initramfs-kernel.bin bootm 0x1200000 4. Flash the sysupgrade image using the Openwrt console: sysupgrade -n buffalo_ls421de-squashfs-sysupgrade.bin 5. Wait until it finish, the device will reboot with Openwrt installed on the NAND flash. Note: - Device shuting down doesn't work, even if the power slide switch is used. We must first, via MDIO, set the unused LED2 at the ethernet phy0 to off state. Reboot works ok. Signed-off-by:
Daniel González Cabanelas <dgcbueu@gmail.com> Reviewed-by:
Tomasz Maciej Nowak <tomek_n@o2.pl>
-
Rosen Penev authored
This was introduced with 014d3b98 , which is almost 10 years old. uClibc-ng does not suffer from this problem. Note that this hack prevents libstdc++ from using C++11 math functions. Tested by removing all of the mpd patches designed to fix this and compiling. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-