Paul Spooren [Sun, 16 Jun 2019 19:34:46 +0000 (21:34 +0200)]
ath79: split DEVICE_TITLE in multiple variables
This allows the definition of DEVICE_VENDOR, DEVICE_MODEL and
DEVICE_VARIANT. All three are merged together to look the same as the
current DEVICE_TITLE. Also, if DEVICE_TITLE is set it's directly used as
a *fallback* for devices which weren't upgraded yet.
This is based on the work of @sudhanshu16.
The motivation is to create JSON files based on provided metadata,
needing clear differentiation between vendor, model and revision.
With kernel 4.19 the DMA API relies on a struct device to work properly.
Backport upstream patches which passed a struct device instead of NULL
to the DMA API.
Fixes kernel panics during boot.
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Mathias Kresin <dev@kresin.me>
Mathias Kresin [Sun, 23 Jun 2019 18:17:08 +0000 (20:17 +0200)]
lantiq: 4.19: load PCIe driver after PCI driver
In case a PCI device is physical present, the Lantiq PCI driver need to
be loaded prior to the Lantiq PCIe driver. Otherwise none of them will
work because updating the BAR 0 of a device attached to the PCIe Bus
will fail.
Till kernel commit 9667bb039bf6 ("MIPS: lantiq: remove unnecessary
of_platform_default_populate call"), the Lantiq PCI driver was probed
early in the boot process via plat_of_setup().
Since the mentioned commit, both drivers are probed via
of_platform_default_populate_init() and they are probed according to
their order in the devicetree source file.
If the Lantiq PCI driver is enabled in the devicetree, defer the probing
og the Lantiq PCIe driver till the Lantiq PCI driver is probed. Use the
presence of a PCU bus as indicater for a loaded Lantiq PCI driver.
This way we don't need to shuffle the PCI/PCIe nodes in the devicetree
source file, as they are already (correctly) ordered based on the unit
address.
Hauke Mehrtens [Sun, 25 Nov 2018 19:06:39 +0000 (20:06 +0100)]
lantiq: make patches apply
The following patches are dropped because they are now upstreamed:
- 0002-gpio-stp-xway-Implement-get-callback.patch
upstreamed with commit 5b9b2b5284f819 ("gpio: stp-xway: Implement get
callback")
- 0027-01-net-phy-intel-xway-add-VR9-version-number.patch
upstreamed with commit 5b73d9955fb4b0 ("net: phy: intel-xway: add VR9
version number")
- 0027-02-net-phy-intel-xway-add-VR9-v1.1-phy-ids.patch
upstreamed with commit f452518c982e57 ("net: phy: intel-xway: add VR9
v1.1 phy ids")
The following patches were updated:
- 0018-MTD-nand-lots-of-xrx200-fixes.patch
the mainline driver now resides in drivers/mtd/nand/raw/xway_nand.c
(instead of drivers/mtd/nand/xway_nand.c)
- 0025-NET-MIPS-lantiq-adds-xrx200-net.patch
the DMA API now requires a valid device to be passed to all operations
- 0028-NET-lantiq-various-etop-fixes.patch
the DMA API now requires a valid device to be passed to all operations
Hauke Mehrtens [Sun, 25 Nov 2018 18:35:16 +0000 (19:35 +0100)]
lantiq: copy target to kernel 4.19
This just copies the files from the kernel 4.14 specific folders into
the kernel 4.19 specific folder, no changes are done to the files in
this commit.
lantiq: ltq-tapi: fix compatibility with Linux 4.15+
Linux 4.15 removes the init_timer() API. It's replaced by two functions:
- timer_setup() is used instead of init_timer() and also replaces the
timer "function" (callback) setup.
- from_timer() has to be used to obtain the use-case specific data from
a struct timer_list, which is now passed to the timer callback.
Update the timer API to be compatible with Linux 4.15+ so it compiles
with the upcoming Linux 4.19 kernel update.
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Matt Merhar [Sat, 22 Jun 2019 07:05:14 +0000 (03:05 -0400)]
openvpn: fix handling of list options
This addresses an issue where the list option specified in
/etc/config/openvpn i.e. 'tls_cipher' would instead show up in the
generated openvpn-<name>.conf as 'ncp-ciphers'. For context,
'ncp_ciphers' appears after 'tls_cipher' in OPENVPN_LIST from
openvpn.options.
Also, the ordering of the options in the UCI config file is now
preserved when generating the OpenVPN config. The two currently
supported list options deal with cipher preferences.
Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
Karel Kočí [Sat, 29 Jun 2019 09:10:19 +0000 (11:10 +0200)]
base-files: supress service restart of umount
Restart is in default implemented so it calls stop and start. This is
pretty unsafe to call on umount service. This service should not do
anything on restart the same way as on start. Only use of this service
is on stop.
Florian Eckert [Thu, 27 Jun 2019 12:42:48 +0000 (14:42 +0200)]
uqmi: add mtu config option possibility
There are mobile carrier who have different MTU size in their network.
With this change it is now possible to configure this with the qmi
proto handler.
ar71xx: fix ath79/rb4xx IRQ initialization on kernel 4.14
Apply the same approach as in commit 3b53d6fdbc24 ("ar71xx: fix pci irq
init on kernel 4.14") to fix IRQ initialization for ath79-based chipsets
on rb4xx.
Ref: PR#2182 Acked-by: Koen Vandeputte <koen.vandeputte@ncentric.com> Signed-off-by: W. Michael Petullo <mike@flyn.org>
[commit ref fix] Signed-off-by: Petr Štetiar <ynezz@true.cz>
In ath79, identifiers tplink_tl-wdr3600 and tplink_tl-wdr4300 have
been used while most other TP-Link devices include the revision.
Although there actually is only one major revision of these
devices, they bear the revision on their bottom (v1.x). TP-Link
also refers to the devices as V1 on its web page.
This patch thus adds -v1 to both so it is more consistent
with other devices and with what you would expect from reading
the on-device sticker and the support pages.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Alban Bedel [Sat, 15 Jun 2019 10:18:01 +0000 (12:18 +0200)]
scripts: time.pl: Don't print the time on stderr
Having the build time written on stderr make it appear with V=w
although it is not an error or warning. Just write the time on stdout
to have it part of the build log like all the rest, but not clutter
the output when only warnings and errors should be shown.
Fix wrong paths in InstallDev which cause Lua 5.3 headers to be staged
in /usr/include/, overwriting Lua 5.1 headers and leading to widespread
build failures in all Lua related packages.
* curve25519: not all linkers support bmi2 and adx
This should allow WireGuard to build on older toolchains.
* global: switch to coarse ktime
Our prior use of fast ktime before meant that sometimes, depending on how
broken the motherboard was, we'd wind up calling into the HPET slow path. Here
we move to coarse ktime which is always super speedy. In the process we had to
fix the resolution of the clock, as well as introduce a new interface for it,
landing in 5.3. Older kernels fall back to a fast-enough mechanism based on
jiffies.
* receive: queue dead packets to napi queue instead of empty rx_queue
This mitigates a WARN_ON being triggered by the workqueue code. It was quite
hard to trigger, except sporadically, or reliably with a PC Engines ALIX, an
extremely slow board with an AMD LX800 that Ryan Whelan of Axatrax was kind
enough to mail me.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Make linux kernel builds reproducible when BUILDBOT selected
The linux kernel is not reproducible because the build user
and domain is included into the kernel. Set the build user
to `builder` and build domain to buildhost.
It's also possible to build reproducible builds by setting
KERNEL_BUILD_USER KERNEL_BUILD_DOMAIN to static values.
Installation:
- copy the
'openwrt-ramips-mt76x8-tl-wr841n-v14-squashfs-tftp-recovery.bin'
file to your tftp server root and rename it to 'tp_recovery.bin'.
- configure your PC running the TFTP server with the static IP address
192.168.0.66/24
- push the reset button and plug in the power connector. Wait until
the orange led starts blinking (~6sec)
Signed-off-by: Alexander Müller <donothingloop@gmail.com> Signed-off-by: Alexander Couzens <lynxis@fe80.eu> [small modifications gpio-hog]
Similiar to the lantiq target use a dts alias to define the wlan led
instead of static mapping in /etc/board.d/01_leds. Reduce code
duplication.
A device tree must define the alias "led-wlan" similiar to "led-boot".
Linus Walleij [Sun, 30 Jun 2019 15:05:13 +0000 (17:05 +0200)]
gemini: Drop switch kmod and swconfig
The DIR-685 needs this module compiled in for safety
(it is facing the LAN ports) and it is now (as of
kernel v4.19) using the DSA switch architecture so
swconfig is not needed.
Rafał Miłecki [Sun, 30 Jun 2019 08:16:08 +0000 (10:16 +0200)]
lua5.3: drop unwanted & unneeded PROVIDES
The plan for packaging Lua is to have "lua5.1" and "lua5.3" packages
with only the first one having "lua" alias (PROVIDES) for backward
compatibility with existing packages.
Putting PROVIDES in lua5.3 was a copy & paste mistake.
Vladimir Vid [Wed, 19 Jun 2019 19:00:03 +0000 (21:00 +0200)]
mvebu: add initial support for uDPU board
This adds initial support for micro-DPU (uDPU) board which is based on
Armada-3720 SoC. micro-DPU is the single-port FTTdp distribution point
unit made by Methode Electronics which offers complete modularity with
replaceable SFP modules both for uplink and downlink (G.hn over
twisted-pair, G.hn over coax, 1G and 2.5G Ethernet over Cat-5e cable).
On-board features:
- 512 MiB DDR3
- 2 x 2.5G SFP via HSGMII SERDES interface to the A3720 SoC
- USB 2.0 Type-C connector
- 4GB eMMC
- ETSI TS 101548 reverse powering via twisted pair (RJ45) or coax (F Type)
uDPU is intented to run on kernel 4.19 on newer due to the SFP and hardware support.
Signed-off-by: Vladimir Vid <vladimir.vid@sartura.hr>
Brett Mastbergen [Tue, 25 Jun 2019 20:03:48 +0000 (16:03 -0400)]
mvebu: Fix platform.sh for non-generic espressobin versions
When the non-generic espressobin targets were added these board checks
were not updated. One side effect of this is that config is not saved
during an upgrade of -emmc,-v7, or -v7-emmc devices.
Rafał Miłecki [Fri, 28 Jun 2019 09:38:23 +0000 (11:38 +0200)]
lua: fix build with MacOS's make
It apparently requires passing V variable explicitly.
Fixes: fe59b46ca7e0 ("lua: include version number in installed files") Reported-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Rafał Miłecki [Sat, 22 Jun 2019 12:47:41 +0000 (14:47 +0200)]
lua5.3: package Lua 5.3 version
This package provides an interpreter and compiler for Lua 5.3.5. It has
been decided to use separated package due to a backward incompatibility
of Lua 5.2 and 5.3.
This package/version:
1) Does not include lnum patch as its author didn't decide to port it to
the new version.
2) Does not provide shared library as the old patch doesn't apply
anymore. It can be added later if needed.
3) Does not come with examples package as tests were dropped by upstream
developers.
That said there is definitely a room for improvement and any further
work is highly appreciated. It works however and can be safely pushed as
a basic/early package release.
Petr Štetiar [Wed, 26 Jun 2019 15:19:28 +0000 (17:19 +0200)]
build: image: make image padding OS agnostic
Image padding with dd needs to be done in an OS independent way as not
all dd understand capital letter unit specifiers, and not all understand
lowercase either.
Fixes: 97833a57eff1 ("build: image: add pad-to and pad-rootfs-squashfs helpers") Reported-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> Signed-off-by: Petr Štetiar <ynezz@true.cz>
Petr Štetiar [Wed, 26 Jun 2019 08:43:39 +0000 (10:43 +0200)]
kernel: generic: add missing 4.19 config symbol
Fixes following kernel build issue on ath79 with CONFIG_KERNEL_FTRACE=y
enabled:
Tracers (FTRACE) [Y/n/?] y
Kernel Function Tracer (FUNCTION_TRACER) [Y/n/?] y
Kernel Function Graph Tracer (FUNCTION_GRAPH_TRACER) [Y/n/?] y
Enable trace events for preempt and irq disable/enable (PREEMPTIRQ_EVENTS) [N/y/?] (NEW)
...
Preempt / IRQ disable delay thread to test latency tracers (PREEMPTIRQ_DELAY_TEST) [N/m/?] (NEW)
Yangbo Lu [Wed, 12 Jun 2019 06:11:32 +0000 (14:11 +0800)]
layerscape: drop pause frame support for aquantia phy
An aquantia phy patch which dropped pause frame support was
missing when integrated LSDK-19.03 kernel patches into OpenWrt.
Without this patch, LS1043A 10G port would not work. So apply it.
Bjørn Mork [Tue, 25 Jun 2019 12:20:53 +0000 (14:20 +0200)]
base-files: use OPENWRT prefix for os-release variables
Just stumbled across this LEDE legacy, without finding any real reason
to keep it. There is a single LEDE_DEVICE_MANUFACTURER_URL dependency
in the luci feed repo which needs to be syncronized.
Petr Štetiar [Thu, 28 Mar 2019 14:34:26 +0000 (14:34 +0000)]
malta: fix overlay support by updating to f2fs/ext4 based overlays
Current snapshot images doesn't provide images with usable overlay
filesystems:
mount_root: no usable overlay filesystem found, using tmpfs overlay
So this patch fixes this by updating support to current f2fs/ext4 based
overlays and providing squashfs with proper rootfs
TARGET_ROOTFS_PARTSIZE size.
While at it, I've also added support for optional gzipping of the
images, and renamed the output rootfs image filenames to match the more
common naming pattern $(IMG_PREFIX)-rootfs-$(FS-TYPE).img.
Petr Štetiar [Mon, 24 Jun 2019 08:31:04 +0000 (08:31 +0000)]
malta: configure kernel for f2fs and ext4 based overlays
jffs2/mtdblock overlays are long time gone, and as we switch to the new
f2fs/ext4 based overlays, we need to add missing support for loop block
device and f2fs to kernel.
Petr Štetiar [Thu, 28 Mar 2019 14:34:26 +0000 (14:34 +0000)]
armvirt: fix overlay support by updating to f2fs/ext4 based overlays
Current snapshot images doesn't provide images with usable overlay
filesystems:
mount_root: no usable overlay filesystem found, using tmpfs overlay
So this patch fixes this by updating support to current f2fs/ext4 based
overlays and providing squashfs with proper rootfs
TARGET_ROOTFS_PARTSIZE size.
While at it, I've also added support for optional gzipping of the
images, and renamed the output rootfs image filenames to match the more
common naming pattern $(IMG_PREFIX)-rootfs-$(FS-TYPE).img.
Cc: Yousong Zhou <yszhou4tech@gmail.com> Signed-off-by: Petr Štetiar <ynezz@true.cz>
Petr Štetiar [Mon, 24 Jun 2019 08:08:20 +0000 (08:08 +0000)]
armvirt: configure kernel for f2fs and ext4 based overlays
jffs2/mtdblock overlays are long time gone, and as we switch to the new
f2fs/ext4 based overlays, we need to add missing support for loop block
device and f2fs to kernel.
Petr Štetiar [Thu, 28 Mar 2019 15:05:25 +0000 (15:05 +0000)]
x86: image: fix small disk space in squashfs overlay
Current squashfs snapshot images are improperly padded by just 128k,
which doesn't correspond with TARGET_ROOTFS_PARTSIZE=128 default config
option, leading to following:
Filesystem Size Used Available Use% Mounted on
/dev/root 2.5M 2.5M 0 100% /rom
/dev/loop0 85.0K 9.0K 71.0K 11% /overlay
overlayfs:/overlay 85.0K 9.0K 71.0K 11% /
Petr Štetiar [Tue, 25 Jun 2019 05:54:51 +0000 (07:54 +0200)]
build: enable gzipped images for armvirt and malta
As we're now going to pad all images by default to 128MiB let's enable
compression of the images for armvirt and malta in order to save some
space and bandwidth.
Petr Štetiar [Wed, 27 Mar 2019 10:31:14 +0000 (11:31 +0100)]
x86: image: remove TARGET_IMAGES_PAD option and force padding
Currently we're producing unusable x86 combined squashfs images
(18.06.1, 18.06.2 and snapshots) as we don't enable TARGET_IMAGES_PAD,
thus providing very small space for the overlay filesystem, leading to
the following with OpenWrt 18.06.1 r7258-5eb055306f images on x86 QEMU:
root@(none):/# mount | egrep 'root|overlay'
/dev/root on /rom type squashfs
/dev/loop0 on /overlay type ext4
overlayfs:/overlay on / type overlay
Petr Štetiar [Wed, 27 Mar 2019 10:31:14 +0000 (11:31 +0100)]
build: remove TARGET_IMAGES_PAD option
It's being used only in x86 target to produce combined images, where
it's mandatory to have padded images in order to produce working
squashfs combined images usable in QEMU.
Currently we're producing unusable x86 combined squashfs images
(18.06.1, 18.06.2 and snapshots) as we don't enable TARGET_IMAGES_PAD,
thus providing very small space for the overlay filesystem, leading to
the following with OpenWrt 18.06.1 r7258-5eb055306f images on x86 QEMU:
root@(none):/# mount | egrep 'root|overlay'
/dev/root on /rom type squashfs
/dev/loop0 on /overlay type ext4
overlayfs:/overlay on / type overlay
Hardware specs:
SoC: Mediatek MT7621A
CPU: 4x 880Mhz
Cache: 32 KB I-Cache and 32 KB D-Cach
256 KB L2 Cache (shared by Dual-Core)
RAM: DDR3 512MB 16bits BUS
FLASH: 16MB
Switch: Mediatek Gigabit Switch (1 x LAN, 1 x WAN)
USB: 1x 3.0
PCI: 3x Mini PCIe
GPS: Quectel L70B
BTN: Reset
LED: - Power
- Ethernet
- Wifi
- USB
UART: UART is present as Pads with throughholes on the PCB.
They are located on left side.
3.3V - RX - GND - TX / 57600-8N1
3.3V is the square pad
Installation:
The stock image is a modified openwrt and can be overflashed via
# sysupgrade -F image.bin
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
[removed unused label, formatting]
Jonas Gorski [Sat, 22 Jun 2019 12:02:27 +0000 (14:02 +0200)]
build: warn when packages have no associated install section
Declaring a package without the appropriate install section is an easy
mistake to make, especially when renaming packages. Since this is also
easy to detect, warn about it when it happens.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> No-objections-at-all-by: Jo-Philipp Wich <jo@mein.io>
Felix Fietkau [Fri, 7 Jun 2019 17:07:14 +0000 (19:07 +0200)]
mt76: update to the latest version, adds preliminary mt7615 support
b3a2965 mt76x02: fix crash on device reset ffddb68 mt76x02u: check chip version on probe 7fc5f92 mt76x2u: remove duplicated entry in mt76x2u_device_table 61311d9 mt76: introduce mt76_free_device routine a7dfcf2 mt76: move mac_work in mt76_dev 334b4ce mt76: add mac80211 driver for MT7615 PCIe-based chipsets edb2a00 mt76: add unlikely() for dma_mapping_error() check 355c079 mt76: use macro for sn and seq_ctrl conversion 133bffb add firmware for MT7615E 49d9c1b mt76: usb: reduce locking in mt76u_tx_tasklet 3e371ca mt76: set txwi_size according to the driver value 5007326 mt76: add skb pointer to mt76_tx_info c47a568 mt76: dma: introduce skb field in mt76_txwi_cache 9029560 mt76: dma: add skb check for dummy pointer e9eea39 mt76: mt7615: use sizeof instead of sizeof_field 98c5359 Revert "mt76: fix potential deadlock on cancelling workqueues" bc9baa7 mt76x02u: remove bogus stop on suspend 6c1cab9 mt76usb: fix tx/rx stop 0e674c5 mt76x02: remove bogus mutex usage 59f7bb6 Revert "mt76: mt76x02: send no-skb tx status without holding the status lock" b0f2a30 mt76x02: avoid status_list.lock and sta->rate_ctrl_lock dependency 62054de mt76: mt7603: remove query from mt7603_mcu_msg_send signature e79d96a mt76: mt7603: use standard signature for mt7603_mcu_msg_send be8f039 mt76: mt7603: initialize mt76_mcu_ops data structure 9a9c656 mt76: introduce mt76_mcu_restart macro 980b91e mt76: mt7603: init mcu_restart function pointer a97db3f mt76: mt7603: run __mt76_mcu_send_msg in mt7603_mcu_send_firmware 151115f mt76: mt76x02: mt76x02_poll_tx() can be static 7391f98 mt76: fix endianness sparse warnings 6c06f73 mt76: mt7603: report firmware version using ethtool f06647e mt76: usb: use EP max packet aligned buffer sizes for rx f43fccf mt76: move beacon_int in mt76_dev 74ab2cf mt76: move beacon_mask in mt76_dev 23c2f94 mt76: add TX/RX antenna pattern capabilities 6e790e1 mt76: move pre_tbtt_tasklet in mt76_dev 7606c08 mt76: mt7603: enable/disable pre_tbtt_tasklet in mt7603_set_channel ff22eee mt76: do not enable/disable pre_tbtt_tasklet in scan_start/scan_complete 3157385 mt76: mt7603: dynamically alloc mcu req in mt7603_mcu_set_eeprom cc674e2 mt76: mt76x02: remove useless return in mt76x02_resync_beacon_timer 6b18427 mt76: move tx_napi in mt76_dev bce63c4 mt76: mt7603: use napi polling for tx cleanup 4afd89e mt76: mt7615: use napi polling for tx cleanup 2cb4683 mt76: move netif_napi_del in mt76_dma_cleanup b4ceb9f mt76: Fix a signedness bug in mt7615_add_interface() d00dc95 mt76: mt7615: Use after free in mt7615_mcu_set_bcn() 4e0ccc6 mt76: mt7615: Make mt7615_irq_handler static 0fd552a mt7615: mcu: simplify __mt7615_mcu_set_wtbl 50f7094 mt7615: mcu: simplify __mt7615_mcu_set_sta_rec 4434d04 mt7615: mcu: remove bss_info_convert_vif_type routine 083fbb9 mt7615: mcu: use proper msg size in mt7615_mcu_add_wtbl_bmc f61ca80 mt7615: mcu: use proper msg size in mt7615_mcu_add_wtbl 35bd12d mt7615: mcu: unify mt7615_mcu_add_wtbl_bmc and mt7615_mcu_del_wtbl_bmc f8f990b mt7615: mcu: remove unused parameter in mt7615_mcu_del_wtbl 965bca1 mt7615: remove query from mt7615_mcu_msg_send signature 9b9ca18 mt7615: remove dest from mt7615_mcu_msg_send signature 935b7e5 mt7615: mcu: remove skb_ret from mt7615_mcu_msg_send 2442db4 mt7615: mcu: unify __mt7615_mcu_set_dev_info and mt7615_mcu_set_dev_info 645bc45 mt7615: mcu: do not use function pointers whenever possible 40c4201 mt7615: mcu: remove unused structure in mcu.h a8834a2 mt7615: mcu: use standard signature for mt7615_mcu_msg_send 824d25c mt7615: initialize mt76_mcu_ops data structure d943427 mt7615: mcu: init mcu_restart function pointer c2211e4 mt7615: mcu: run __mt76_mcu_send_msg in mt7615_mcu_send_firmware cb63a06 mt76: mt7603: stop mac80211 queues before setting the channel c6aaa3a mt76: mt7615: rearrange cleanup operations in mt7615_unregister_device 97609f3 mt76: mt7615: add static qualifier to mt7615_rx_poll_complete f9dadd2 mt76: mt7603: add debugfs knob to enable/disable edcca 89cda5d mt7603: fix reading target tx power from eeprom 77d0e33 mt76: fix setting chan->max_power f575da2 mt76: mt76x02: fix tx status reporting issues a5d18dc mt76: mt76x02: fix tx reordering on rate control probing without a-mpdu bd32a93 mt76: mt76x02: remove enable from mt76x02_edcca_init signature 18386ee mt76: mt76x2u: remove mt76x02_edcca_init in mt76x2u_set_channel da3514f mt76: mt76x2: move mutex_lock inside mt76x2_set_channel 0d4719c mt76: mt76x02: run mt76x02_edcca_init atomically in mt76_edcca_set fd5af73 mt76: mt76x02: fix edcca file permission a0f51f2 mt76: mt7615: do not process rx packets if the device is not initialized 753cdee mt76: mt7615: stop mcu first in mt7615_unregister_device 899efe7 mt76: move mt76_insert_ccmp_hdr in mt76-module 6960b6e mt76: mt7615: add support for mtd eeprom parsing 4bcb057 mt76: mt7615: select wifi band according to eeprom 866f2c6 mt76: generalize mt76_get_txpower for 4x4:4 devices 514fb04 mt76: mt7615: add the capability to configure tx power ced9d43 mt76: mt7615: init get_txpower mac80211 callback 8abd502 mt76: mt7615: rearrange locking in mt7615_config 5b9b62e mt76: move mt76_get_rate in mt76-module 661c7c8 mt76: Remove set but not used variables 'pid' and 'final_mpdu' f072c7b mt76: mt7615: enable support for mesh 28d9496 mt76: mt7615: fix slow performance when enable encryption 827b9ad mt76: mt7615: remove unused variable in mt7615_mcu_set_bcn 34eea14 mt76: mt7615: remove key check in mt7615_mcu_set_wtbl_key 2bfae5a mt76: usb: fix rx A-MSDU support b033532 mt76: usb: do not always copy the first part of received frames 3e7fc15 mt76x02: fix reporting of non-probing frames with tx status requested 0d5caea Revert "mt76: usb: do not always copy the first part of received frames" 335e8c6 Revert "mt76: usb: fix rx A-MSDU support" 47ddf4b mt76: revert support for TX_NEEDS_ALIGNED4_SKBS 0b6520b mt7603: rework and fix tx status reporting 539b679 mt7603: improve hardware rate switching configuration d86d6ef mt76x0: fix RF frontend initialization for external PA f476a14 mt76x02: fix endian issue in tx status reporting patch f8d0517 mt76: mt7615: simplify mt7615_mcu_set_sta_rec routine 73ff45f mt76: mt7615: add support for per-chain signal strength reporting 9b67ae6 mt76: mt7615: init per-channel target power 160fdc0 mt76: mt7615: take into account extPA when configuring tx power 2211d93 mt76: mt76x02u: fix sparse warnings: should it be static? 3750533 mt76: mt7615: fix incorrect settings in mesh mode c37c1ca mt76: mt7615: update peer's bssid when state transition occurs 9dd1089 mt76: mt76u: reduce rx memory footprint 0789f45 mt76: mt7615: remove cfg80211_chan_def from mt7615_set_channel signature 2dca431 mt76: move nl80211_dfs_regions in mt76_dev data structure 3386ccf mt76: mt76u: get rid of {out,in}_max_packet d680ab0 mt76: usb: fix rx A-MSDU support
Chris Blake [Mon, 24 Jun 2019 11:32:45 +0000 (06:32 -0500)]
mpc85xx: Use uncompressed kernel on the HiveAP-330
It seems that newer builds of OpenWRT have a gzip kernel
larger than 2MB~, which for some reason fails to boot on this board.
However, we have 8MB of kernel space and currently the uncompressed
kernel is 6.5MB~, so we have some space to grow until a better
solution is worked out.
Before:
## Booting kernel from Legacy Image at ee840000 ...
Image Name: Linux-4.19.53
Created: 2019-06-22 11:17:48 UTC
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 2315724 Bytes = 2.2 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02000000 ...
Image Name: OpenWrt fake ramdisk
Created: 2019-06-22 11:17:48 UTC
Image Type: PowerPC Linux RAMDisk Image (uncompressed)
Data Size: 0 Bytes = 0 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at ec000000
Booting using the fdt blob at 0xec000000
Uncompressing Kernel Image ... Error: Bad gzipped data
GUNZIP: uncompress, out-of-mem or overwrite error -
must RESET board to recover
Loading Ramdisk to 10000000, end 10000000 ... OK
Loading Device Tree to 00ffa000, end 00fffc78 ... OK
ft_fixup_l2cache: FDT_ERR_NOTFOUND
After:
## Booting kernel from Legacy Image at ee840000 ...
Image Name: POWERPC OpenWrt Linux-4.19.53
Created: 2019-06-22 11:17:48 UTC
Image Type: PowerPC Linux Kernel Image (uncompressed)
Data Size: 6724584 Bytes = 6.4 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02000000 ...
Image Name: OpenWrt fake ramdisk
Created: 2019-06-22 11:17:48 UTC
Image Type: PowerPC Linux RAMDisk Image (uncompressed)
Data Size: 0 Bytes = 0 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at ec000000
Booting using the fdt blob at 0xec000000
Loading Kernel Image ... OK
OK
Loading Ramdisk to 10000000, end 10000000 ... OK
Loading Device Tree to 00ffa000, end 00fffc78 ... OK
Signed-off-by: Chris Blake <chrisrblake93@gmail.com> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [75 cpl limit]
The 4.19 code has been available for some time now.
Since the f2fs / loop issue has been under control
I think it's time the target gets to move to it.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Andrew Cameron [Tue, 15 Jan 2019 02:14:54 +0000 (20:14 -0600)]
ath79: add support for TP-Link CPE610-v1
TP-Link CPE610-v1 is an outdoor wireless CPE for 5 GHz with
one Ethernet port based on Atheros AR9344
Specifications:
- Based on the same underlying hardware as the TP-Link CPE510
- Power, LAN, WLAN5G green LEDs
- 23dBi high-gain directional 2×2 MIMO antenna and a dedicated metal reflector
Flashing instructions:
Flash factory image through stock firmware WEB UI
or through TFTP
To get to TFTP recovery just hold reset button while powering on for
around 4-5 seconds and release.
Rename factory image to recovery.bin
Stock TFTP server IP:192.168.0.100
Stock device TFTP adress:192.168.0.254
Signed-off-by: Andrew Cameron <apcameron@softhome.net>
HsiuWen Yen [Thu, 20 Jun 2019 16:44:42 +0000 (00:44 +0800)]
netfilter: fix crash in flow offload by adding netns support
Commit fcb41decf6c6 ("config: enable some useful features on
!SMALL_FLASH devices") enabled netns, which in turn lead to the crash in
the flow offload target.
When the flow offloading framework intends to delete a flow from the
hardware table, it is necessary to retrieve the namespace from
nf_flowtable->ft_net. However, no one ever wrote the namespace into
nf_flowtable->ft_net in advance. So the framework will mistakenly use a
NULL namespace to execute dev_get_by_index_rcu(net, ifindex), leading to
the kernel panic.
Ref: FS#2321 Fixes: fcb41decf6c6 ("config: enable some useful features on !SMALL_FLASH devices") Tested-by: Simon Tretter <simon@mediaarchitectu.re> Signed-off-by: HsiuWen Yen <y.hsiuwen@gmail.com>
[merged patch into offload patch, fix for 4.19, SOB fix, commit subj/msg touches] Signed-off-by: Petr Štetiar <ynezz@true.cz>