Commit Graph

1400 Commits

Author SHA1 Message Date
Tianling Shen
c01acf6c4d
x86: sync upstream grub config
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-06-17 18:32:23 +08:00
AmadeusGhost
7e33e24758 ipq806x: m520: add gpio-led sys supportt
(cherry picked from commit 6e017db)
Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2021-06-15 23:35:06 +08:00
Hauke Mehrtens
af7578867d
ramips: remove upstreamed patches
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-06-13 21:18:16 +08:00
AmadeusGhost
0c512fa3c4 sunxi: 02_network: remove the extra part 2021-06-13 12:19:00 +08:00
Tianling Shen
b632ec7b90
sunxi: cortexa53: make at24 eeprom driver built-in
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-06-12 23:55:01 +08:00
Tianling Shen
a8aa2f0593
sunxi: nanopi r1s h5: read mac address from eeprom
NanoPi R1S H5 has a unique MAC address for the ethernet on board. As
the USB NIC doesn't have, just reuse this MAC and flipp the LA bit for it.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-06-11 15:57:14 +08:00
Tianling Shen
afd4f84321
kernel: bump to 4.9.272, 4.14.236, 4.19.194
Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-06-11 00:48:28 +08:00
Josef Schlehofer
b0789e5156 linux-firmware: update to version 20210315 and trim down broadcom FW
In there linux-firmware repository located in kernel, there were removed old
broadcom firmware [1] as they seem to be likely vulnerable to KrØØk vulnerability
(CVE-2019-15126), because Cypress released new versions and superseded
by it.

In OpenWrt, there is Makefile for cypress-firmware, which already provides
the same named packages like it was in linux-firmware. For example, cypress-firmware-43455-sdio
provides brcmfmac-firmware-43455-sdio [2].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=0f0aefd733f70beae4c0246edbd2c158d5ce974c

[2] eeda8652f1/package/firmware/cypress-firmware/Makefile (L124)

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2021-06-06 23:57:49 +08:00
Tomasz Maciej Nowak
c8e6f77e8c ipq40xx: add uboot-envtools to default packages
When support for Luma WRTQ-329ACN was added, the instructions for
flashing this device include using tools from uboot-envtools package.
Unfortunately the OpenWrt buildroot system omits packages from
DEVICE_PACKAGES when CONFIG_TARGET_MULTI_PROFILE,
CONFIG_TARGET_PER_DEVICE_ROOTFS, CONFIG_TARGET_ALL_PROFILES are set. In
result the official images are without tools mentioned in the
instruction. The workoround for the fashing would be installing
uboot-envtools when booted with initramfs image, but not always the
access to internet is available. The other method would be to issue the
necesary command in U-Boot environment but some serial terminals default
configuration don't work well with pasting lines longer than 80 chars.
Therefore add uboot-envtools to default packages, which adds really
small flash footprint to rootfs, where increased size usually is not an
issue.

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
2021-06-06 23:51:29 +08:00
AmadeusGhost
d5599f485a kernel: add original patch information for SFE driver
This commit adds the original patch information for the opensource Qualcomm Shortcut FE driver.
Ref: b87b4734c6
2021-05-29 23:35:05 +08:00
AmadeusGhost
3d9a53dc35 bcm27xx: rpi4: remove wifi hack script 2021-05-29 23:24:22 +08:00
Tianling Shen
8b3da8c24d
kernel: bump to 4.9.270, 4.14.234, 4.19.192
Backported latest BBR fixes for kernel 4.14 and 4.19.

No patch needs to be refreshed.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-28 20:06:13 +08:00
ElonH
f7602bc1f1
sdk: generate correct base feed
immortalwrt default branch is not master
2021-05-26 22:33:34 +08:00
Tianling Shen
4c7cf87e6b
kernel: bump to 4.9.269, 4.14.233, 4.19.191
Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-25 01:20:11 +08:00
Leonardo Mörlein
2a821d862c
build: introduce $(MKHASH)
Before this commit, it was assumed that mkhash is in the PATH. While
this was fine for the normal build workflow, this led to some issues if

    make TOPDIR="$(pwd)" -C "$pkgdir" compile

was called manually. In most of the cases, I just saw warnings like this:

    make: Entering directory '/home/.../package/gluon-status-page'
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    [...]

While these were only warnings and the package still compiled sucessfully,
I also observed that some package even fail to build because of this.

After applying this commit, the variable $(MKHASH) is introduced. This
variable points to $(STAGING_DIR_HOST)/bin/mkhash, which is always the
correct path.

Signed-off-by: Leonardo Mörlein <me@irrelefant.net>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-13 22:49:42 +08:00
Thibaut VARÈNE
8c4a4444cf
generic: platform/mikrotik: release mtd device after use
The code uses get_mtd_device_nm() which must be followed by a call to
put_mtd_device() once the handle is no longer used.

This fixes spurious shutdown console messages such as:
[ 2256.334562] Removing MTD device #7 (soft_config) with use count 1

Reported-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
2021-05-13 22:42:13 +08:00
Shiji Yang
c7b903ac7c
ramips: fix mac addresses of Youku YK1
MAC addresses read from official firmware

        value       location
Wlan    xx 71 de    factory@0x04
Lan     xx 71 dd    factory@0x28
Wan     xx 71 df    factory@0x2e
Label   xx 71 dd    factory@0x28

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
[fix sorting in 02_network, redact commit message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-11 01:02:08 +08:00
Sven Roederer
751fe7ed5b sdk: unset BINARY_FOLDER and DOWNLOAD_FOLDER in final archives
Using these config-options to customize the folders used at build-time makes these
folder settings appear in generated archive. This causes the SDK to be not
portable, as it's going to use the build-time folders on the new systems.
The errors vary from passing the build, disk out-of-space to permission denied.

The build-time settings of these folders are passed into the archive via Config.build.
The expected behavior is that the SDK acts after unpacking like these settings have
their defaults, using intree folders. So just filter these folders out when running
convert-config.pl to create Config.build.

This addresses the same issue that's fixed in the previous commit for the imagebuilder.

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
2021-05-09 00:36:17 +08:00
Sven Roederer
4017223821 imagebuilder: unset BINARY_FOLDER and DOWNLOAD_FOLDER in final archive
Using these config-options to customize the folders used at build-time
makes these folder settings appear in generated archive. This causes the
imagebuilder to be not portable, as it's going to use the build-time folders
on the new systems. Errors look like:

  mkdir: cannot create directory '/mnt/build': Permission denied
  Makefile:116: recipe for target '_call_image' failed
  make[2]: *** [_call_image] Error 1
  Makefile:241: recipe for target 'image' failed
  make[1]: *** [image] Error 2

The build-time settings of these folders are passed into the archives via
.config file.
The expected behavior is that after unpacking the imagebuilder acts like
these settings have their defaults, using intree folders. So unset the
build-time settings.

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
2021-05-09 00:35:59 +08:00
David Bauer
bb93933829
ramips: backport unlocked mdiobus accessors
Commit 718e97c5c843 ("ramips: mt7530 swconfig: fix race condition in
register access") backports a fix which depends on unlocked MMD
accessors, however these were not yet included in Kernel 4.14 and they
were not backported yet.

Fixes commit 718e97c5c843 ("ramips: mt7530 swconfig: fix race condition in register access")

Signed-off-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-03 17:30:16 +08:00
DENG Qingfang
24cfe6f009
ramips: mt7530 swconfig: fix race condition in register access
[ Upstream commit f99c9cd9c4 ]

The mt7530_{r,w}32 operation over MDIO uses 3 mdiobus operations and
does not hold a lock, which causes a race condition when multiple
threads try to access a register, they may get unexpected results.

To avoid this, handle the MDIO lock manually, and use the unlocked
__mdiobus_{read,write} in the critical section.

This fixes the "Ghost VLAN" artifact[1] in MT7530/7621 when the VLAN
operation and the swconfig LED link status poll race between each other.

[1] https://forum.openwrt.org/t/mysterious-vlan-ids-on-mt7621-device/64495

Signed-off-by: DENG Qingfang <dqfext@gmail.com>
(cherry picked from commit f99c9cd9c4)
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-03 17:30:06 +08:00
AmadeusGhost
df1bfb1a6e sunxi: nanopi-r1s-h5: simplify mac address generation path
Idea was from eb85ab9 ("rockchip: use alternative CID path")

Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2021-05-02 23:25:11 +08:00
AmadeusGhost
705dd55888 sunxi: nanopi-r1s-h5: remove non-existent usb node
(cherry picked from commit b8ec046701)
Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2021-05-02 23:22:02 +08:00
Vieno Hakkerinen
6d369ccdb7 kernel: netdev: add qlcnic
Add driver for QLogic QLE8240 and QLE8242 Converged Ethernet devices.

Signed-off-by: Vieno Hakkerinen <vieno@hakkerinen.eu>
2021-05-01 11:35:58 +08:00
Chen Minqiang
39cfa763a0 kernel: add kmod-ipvlan support
This kmod is similar to macvlan with the difference being that the
endpoints have the same mac address.

It is useful on cloud where only one mac address allowed on port,
where macvlan not works but ipvlan would.

One use case is where multiple IPs and gateways assign on one net port

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2021-05-01 11:16:55 +08:00
Tianling Shen
339d6fc2e8
kernel: bump to 4.9.267, 4.14.231, 4.19.188
Remove upstreamed:
- generic/pending-4.14/840-can-flexcan-flexcan_chip_freeze-fix-chip-freeze-for-.patch

Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-04-26 21:31:32 +08:00
AmadeusGhost
f0983b56fc ipq40xx: hiwifi c526a: work-around soft reboot issues
Ref: openwrt/mt76/issues#316
However, that is a hardware bug of mt7615.
2021-04-19 11:28:27 +08:00
AmadeusGhost
d2f3889c61 ipq40xx: hiwifi c526a: add 128m nand version
Warning: This version does not support pbboot and uses
all space of the nand.

Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2021-04-19 00:01:13 +08:00
AmadeusGhost
fad6849f47 Revert "ramips: mt7530 swconfig: fix race condition in register access"
This reverts commit a5b9ff72cf. Fix: #359
2021-04-18 23:55:20 +08:00
DENG Qingfang
a5b9ff72cf ramips: mt7530 swconfig: fix race condition in register access
The mt7530_{r,w}32 operation over MDIO uses 3 mdiobus operations and
does not hold a lock, which causes a race condition when multiple
threads try to access a register, they may get unexpected results.

To avoid this, handle the MDIO lock manually, and use the unlocked
__mdiobus_{read,write} in the critical section.

This fixes the "Ghost VLAN" artifact[1] in MT7530/7621 when the VLAN
operation and the swconfig LED link status poll race between each other.

[1] https://forum.openwrt.org/t/mysterious-vlan-ids-on-mt7621-device/64495

Signed-off-by: DENG Qingfang <dqfext@gmail.com>
2021-04-15 23:18:31 +08:00
Koen Vandeputte
cda237f66d kernel: backport fix for flexcan bug
This patch fixes a DIV/0 error which was introduced in 4.14.225
This patch was forgotten in upstream <= 4.14 and is now queued for
future release.

Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
2021-04-14 23:15:44 +08:00
Tianling Shen
a5e28e4678
kernel: bump to 4.9.265, 4.14.229, 4.19.185
Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-04-10 17:30:47 +08:00
AmadeusGhost
4b855e35fc sunxi/h5: set max cpu freq to 1296MHz 2021-04-08 23:27:46 +08:00
Tianling Shen
0c6e721a78
kernel: bump to 4.9.264, 4.14.228, 4.19.184
Resolve conflicted:
- generic/pending-4.19/611-netfilter_match_bypass_default_table.patch

Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-04-04 20:08:14 +08:00
Tianling Shen
4a24bd4db0
kernel: bump to 4.9.262, 4.14.227, 4.19.183
Resolve conflicted:
- layerscape/patches-4.14/809-flexcan-support-layerscape.patch

Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-27 01:15:23 +08:00
AmadeusGhost
284c9b6345 sunxi: h5: add 1.2GHz CPU OPP 2021-03-26 20:12:53 +08:00
Register
a52382d5d7 sunxi: h3: add more cpu operating points
Signed-off-by: Register <458892+aieu@users.noreply.github.com>
[Fixed format issues, add 960MHz and remove overclock part]
Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
2021-03-26 20:09:43 +08:00
Paul Spooren
7e7ed4c080 build,ib: add STRIP_ABI option for manifest
The ImageBuilder `make manifest` prints all installed packages. This
function can be used to create a list of package and corresponding
package versions before attempting image creation.

When called with `--strip-abi` OPKG can automatically strip attached
ABIVersions from package names. Make this function accessible for the
ImageBuilder by adding a `STRIP_ABI` variable.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-03-17 11:29:19 +08:00
Tianling Shen
b1e3f877a0
kernel: 4.9: backport BBR fixes
Pulled from: https://github.com/Bikram557/android_kernel_xiaomi_santoni_msm4.9/tree/eleven

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-07 14:20:54 +08:00
Tianling Shen
05131fd251
kernel: bump to 4.9.258, 4.14.222, 4.19.177
Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-03 00:40:01 +08:00
Tianling Shen
d9969b8c58
kernel: 4.14: backport tcp_bbr fixes
Pulled from: 4d43b58a4f

Compile-tested on: x86_64

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-02 21:36:09 +08:00
AmadeusGhost
246e88c8ad bcm27xx: rpi4: update wireless script 2021-02-24 12:35:46 +08:00
David Bauer
ddb4f81197 sdk: expose binary strip settings
Expose the SDK options for binary stripping to the menuconfig. This
way, packages can easily be built with debug symbols using the SDK.

Signed-off-by: David Bauer <mail@david-bauer.net>
2021-02-20 12:32:48 +08:00
Mathias Kresin
e3db5c0a53
lantiq: fritz7320: enable USB power supply
The USB ports if a FRIZZ!Box 7320 do not supply power to connected
devices.

Add the GPIOs enabling USB power as regulator, to enable USB power
supply as soon as the USB driver is loaded.

Fixes FS#3624

Signed-off-by: Mathias Kresin <dev@kresin.me>
(cherry picked from commit 6e4e97b2256327bb380ee2a83da9a1ddf657e395)
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 17:17:22 +08:00
Kurt Roeckx
01150c776b
ramips: mark toggle input on EX6150 as a switch
The Netgear EX6150 has an Access Point/Extender switch. Set it as
an EV_SW. Otherwise when it's set to Access Point, it will trigger
failsafe mode during boot.

Fixes: FS#3590
Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
(cherry picked from commit 539966554d)
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 13:07:27 +08:00
Adrian Schmutzler
86eb785feb
ath79: fix USB power GPIO for TP-Link TL-WR810N v1
The TP-Link TL-WR810N v1 is known to cause soft-brick on ath79 and
work fine for ar71xx [1]. On closer inspection, the only apparent
difference is the GPIO used for the USB regulator, which deviates
between the two targets.

This applies the value from ar71xx to ath79.

Tested successfully by a forum user.

[1] https://forum.openwrt.org/t/tp-link-tl-wr810n-v1-ath79/48267

Fixes: cdbf2de777 ("ath79: Add support for TP-Link WR810N")
Fixes: FS#3522

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(cherry picked from commit 6934d30cf8)
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 13:05:49 +08:00
thedukesd
d1f2257d3b
ar71xx: disable pdata->use_flow_control for AR7240
Flow control is causing the AR7240 switch to hang.
Fixes: FS#3054

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 02:08:39 +08:00
Baptiste Jonglez
a5a9fbbdc3
ramips: ethernet: Disable TSO support to improve stability
Stability of this Ethernet driver has been a long-standing issue, with
many people reporting frequent "transmit queue timeouts" and even
occasional crashes.

Disabling TSO in the driver helps with stability, although it is likely a
workaround and might not fix the issue completely.

There is a slight slowdown in forwarding performance for TCP packets
(75 kpps vs. 80 kpps with comparable CPU utilization), but this is still
enough to forward close to 1 Gbit/s of full-sized packets across multiple
flows.

Master is using a different ethernet driver, so this is not a backport.
Because of this different driver, the upcoming 21.02 release does not seem
to be affected by these stability issues.

Thanks to mrakotiq for the initial patch.

Fixes: FS#2628
Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
Signed-off-by: Tianling Shen <cnsztl@project-openwrt.eu.org>
2021-02-16 14:17:20 +08:00
CN_SZTL
7ed8a3dc50
kernel: bump to 4.9.257, 4.14.221, 4.19.175
Resolve conflicted:
 - layerscape/patches-4.14/302-dts-support-layerscape.patch

Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-10 19:37:50 +08:00
AmadeusGhost
ecd317d8f4 sunxi: backport h5 cpufreq support from upstream linux 2021-02-10 16:21:08 +08:00