Commit Graph

5770 Commits

Author SHA1 Message Date
coolsnowwolf
012f1419de WWAN: add Fibocom linux usb QMI WWAN driver and dial app 2023-02-28 00:09:36 +08:00
1054009064
15d1af2d95
kernel: backport 6.2 patch to fix kernel WARNING issues (#10936) 2023-02-27 21:37:53 +08:00
coolsnowwolf
21fa87f194 rockchip: add Rongpin King3399 wireless AP mode support 2023-02-27 18:02:01 +08:00
coolsnowwolf
971d690caa linux-firmware: add Rongpin King3399 ap6356s firmware 2023-02-27 17:51:24 +08:00
coolsnowwolf
745f6ec773 linux-firmware: add RealTek RTW89 firmware 2023-02-27 15:25:06 +08:00
coolsnowwolf
a2c61871bc iwlwifi: fix build with kernel 6.1 2023-02-26 16:47:48 +08:00
coolsnowwolf
21e254e7da kernel: bump 6.1 to 6.1.14 2023-02-26 16:31:11 +08:00
coolsnowwolf
79aed7f287 quectel_cm_5G: fix comple path error 2023-02-26 16:02:50 +08:00
zfdx
efb9242261
mtwifi/mt7612e: disable set/get_fs by default (#10930) 2023-02-24 11:05:51 +00:00
aakkll
53b83ba81a
kernel: bump to 5.4.232, 6.1.13 (#10922) 2023-02-23 03:02:26 +00:00
Yuan Tao
ccb04d670d base-files: sysfixtime: Fix time on the fake RTC
On some devices the chip has RTC but no battery save time.
This leads back to getting the wrong time
and skipping the check of the last file modification date.

This commit ensures that the file time is checked even
if the RTC exists.
which would ordinarily return an approbiate
system time used for e.g. certificate generation.

Tested-on: NanoPi R2S

Signed-off-by: Yuan Tao <ty@wevs.org>
2023-02-22 23:35:16 +08:00
zfdx123
d519e5fd0d Revert "ramips: ethernet: fix to interrupt handling"
Fixes 7620/7621 transmit timed out issue.
Close: #10920
2023-02-22 23:33:36 +08:00
Marcel Ziswiler
545c2478aa mediatek: add support for Netgear WAX206
Specifications:
* SoC: MediaTek MT7622BV
* RAM: DDR3 512 MiB (Nanya NT5CC256M16ER-EK)
* Flash: SPI-NAND 256 MiB (Toshiba TC58CVG1S3HRAIJ)
* Wi-Fi 2.4/5 GHz 4T4R:
  * 2.4 GHz: MediaTek MT7622BV
  * 5 GHz: MediaTek MT7915AN/MT7975AN
* Ethernet: 4x 10/100/1000 Mbps LAN,
            1x 10/100/1000/2500 Mbps WAN (Realtek RTL8221B PHY)
* Switch: MediaTek MT7531AE
* LEDs/Keys: 8/1 (Power, Internet, LAN1, LAN2, LAN3, LAN4,
             Wifin and Wifia dual-colour LEDs + Reset pin)
* UART: Marked J19 on board VCC GND TX RX, beginning from "1". 3.3v,
        115200n8
* Power: 12 VDC, 2.5 A

Installation:
* Flash the factory image through the stock web interface, or TFTP to
  the bootloader. NMRP can be used to TFTP without opening the case.
* U-Boot allows booting an initramfs image via TFTP as follows:
  setenv ipaddr 192.168.1.1
  setenv serverip 192.168.1.100
  tftpboot openwrt-mediatek-mt7622-netgear_wax206-initramfs-recovery.itb
  bootm

Known Limitations:
* The 2.5G WAN port labeled 'wan' only works for speeds up to 1G at the
  moment. If connected to a multi-gig port the speed has to be manually
  set to 1G/full either for the switch port or in OpenWrt. For example
  add the following to /etc/rc.local to set it on boot:
  /usr/sbin/ethtool -s wan speed 1000 duplex full

Revert to stock firmware:
* Flash the stock firmware to the bootloader using TFTP/NMRP.

References to WAX206 GPL source:
https://www.downloads.netgear.com/files/GPL/WAX206_V1.0.4.0_Source.rar

* openwrt/target/linux/mediatek/dts/mt7622-netgear-wax206.dts
  DTS file for this device.
* openwrt/target/linux/mediatek/image/mt7622.mk
  Image creation code for this device

Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
[fix WAN port, adjust partition layout and image creation]
Signed-off-by: Thomas Kupper <thomas.kupper@gmail.com>
2023-02-20 23:29:12 +08:00
Daniel Golle
3732ec0ff1 kernel: import accepted MediaTek Ethernet patches
Import some accepted and pending upstream patches for mtk_eth_soc,
replacing some semantically equivalent local patches and fixing issues
when operating the PCS in 1G SGMII mode.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-02-20 23:26:40 +08:00
coolsnowwolf
7032f6d8b9 mt76: fix build errors with upsteam version 2023-02-18 20:52:42 +08:00
Felix Fietkau
45b15e953c kernel: add missing optimization for page pool
Improves performance in combination with threaded NAPI

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-02-17 18:25:04 +08:00
Felix Fietkau
26db249dbb mt76: import WED related mtk_eth_soc patches
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-02-17 18:24:05 +08:00
Felix Fietkau
80ea885fe3 kernel: make it possible for packages to select page pool support
Will be used by the next mt76 update

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-02-17 18:22:48 +08:00
lovehackintosh
c3ac3c9350
kernel: bump 5.10 to 5.10.168 (#10904) 2023-02-16 12:38:17 +00:00
aakkll
a292c0e88e
kernel: bump 6.1 to 6.1.12 (#10900)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-02-16 11:19:40 +08:00
lovehackintosh
5f61ca66c8
kernel: bump to 5.15.94, 6.1.12 (#10901) 2023-02-16 09:28:24 +08:00
coolsnowwolf
f3c8c2a243 Update README.md 2023-02-15 18:26:06 +08:00
Felix Fietkau
7faea8407a kernel: add fix for a page pool related crash on GRO
Needed for upcoming mt76 page pool support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-02-15 12:09:39 +08:00
Felix Fietkau
5cd7dc1d64 kernel: backport page pool fragment support from v5.15
Required for an upcoming mt76 update

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-02-15 12:08:22 +08:00
Daniel Golle
47643a2ba9 mediatek: mtk_thermal: replace with upstream patch
Replace local patch adding thermal support for MT7986 with version
accepted upstream.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-02-15 11:55:24 +08:00
AmadeusGhost
470ca53250 mediatek: add support for TP-Link TL-XDR6086/6088
Hardware specification:
  SoC: MediaTek MT7986A 4x A53
  Flash: ESMT F50L1G41LB 128MB
  RAM: ESMT M15T4G16256A 512MB
  Ethernet (Max Speed):
    XDR6086: 1x 2.5G Wan, 1x 2.5G Lan, 1x 1G Lan
    XDR6088: 1x 2.5G Wan, 1x 2.5G Lan, 4x 1G Lan
  WiFi1: MT7976GN 2.4GHz ax 4x4
  WiFi2: MT7976AN 5GHz ax 4x4
  Button: Reset, Wps, Turbo
  USB: 1 x USB 3.2
  Power: DC 12V 4A

Signed-off-by: AmadeusGhost <amadeus@openjmu.xyz>
2023-02-14 23:57:22 +08:00
AmadeusGhost
0973fa001a rtw88-usb: remove upstream patches
No functional changes.
2023-02-14 23:53:30 +08:00
AmadeusGhost
58e26ac817 default-settings: drop unneeded file 2023-02-13 23:58:12 +08:00
AmadeusGhost
b80da91037 meson: refresh kernel configuration
No test, just enable CPUFREQ and THERMAL support.
2023-02-13 23:50:15 +08:00
coolsnowwolf
edfb7ec749 kernel: add missing symbol to 5.10 config 2023-02-13 21:00:16 +08:00
John Audia
f2fed1286d openssl: bump to 1.1.1t
Removed upstreamed patch: 010-padlock.patch

Changes between 1.1.1s and 1.1.1t [7 Feb 2023]

  *) Fixed X.400 address type confusion in X.509 GeneralName.

     There is a type confusion vulnerability relating to X.400 address processing
     inside an X.509 GeneralName. X.400 addresses were parsed as an ASN1_STRING
     but subsequently interpreted by GENERAL_NAME_cmp as an ASN1_TYPE. This
     vulnerability may allow an attacker who can provide a certificate chain and
     CRL (neither of which need have a valid signature) to pass arbitrary
     pointers to a memcmp call, creating a possible read primitive, subject to
     some constraints. Refer to the advisory for more information. Thanks to
     David Benjamin for discovering this issue. (CVE-2023-0286)

     This issue has been fixed by changing the public header file definition of
     GENERAL_NAME so that x400Address reflects the implementation. It was not
     possible for any existing application to successfully use the existing
     definition; however, if any application references the x400Address field
     (e.g. in dead code), note that the type of this field has changed. There is
     no ABI change.
     [Hugo Landau]

  *) Fixed Use-after-free following BIO_new_NDEF.

     The public API function BIO_new_NDEF is a helper function used for
     streaming ASN.1 data via a BIO. It is primarily used internally to OpenSSL
     to support the SMIME, CMS and PKCS7 streaming capabilities, but may also
     be called directly by end user applications.

     The function receives a BIO from the caller, prepends a new BIO_f_asn1
     filter BIO onto the front of it to form a BIO chain, and then returns
     the new head of the BIO chain to the caller. Under certain conditions,
     for example if a CMS recipient public key is invalid, the new filter BIO
     is freed and the function returns a NULL result indicating a failure.
     However, in this case, the BIO chain is not properly cleaned up and the
     BIO passed by the caller still retains internal pointers to the previously
     freed filter BIO. If the caller then goes on to call BIO_pop() on the BIO
     then a use-after-free will occur. This will most likely result in a crash.
     (CVE-2023-0215)
     [Viktor Dukhovni, Matt Caswell]

  *) Fixed Double free after calling PEM_read_bio_ex.

     The function PEM_read_bio_ex() reads a PEM file from a BIO and parses and
     decodes the "name" (e.g. "CERTIFICATE"), any header data and the payload
     data. If the function succeeds then the "name_out", "header" and "data"
     arguments are populated with pointers to buffers containing the relevant
     decoded data. The caller is responsible for freeing those buffers. It is
     possible to construct a PEM file that results in 0 bytes of payload data.
     In this case PEM_read_bio_ex() will return a failure code but will populate
     the header argument with a pointer to a buffer that has already been freed.
     If the caller also frees this buffer then a double free will occur. This
     will most likely lead to a crash.

     The functions PEM_read_bio() and PEM_read() are simple wrappers around
     PEM_read_bio_ex() and therefore these functions are also directly affected.

     These functions are also called indirectly by a number of other OpenSSL
     functions including PEM_X509_INFO_read_bio_ex() and
     SSL_CTX_use_serverinfo_file() which are also vulnerable. Some OpenSSL
     internal uses of these functions are not vulnerable because the caller does
     not free the header argument if PEM_read_bio_ex() returns a failure code.
     (CVE-2022-4450)
     [Kurt Roeckx, Matt Caswell]

  *) Fixed Timing Oracle in RSA Decryption.

     A timing based side channel exists in the OpenSSL RSA Decryption
     implementation which could be sufficient to recover a plaintext across
     a network in a Bleichenbacher style attack. To achieve a successful
     decryption an attacker would have to be able to send a very large number
     of trial messages for decryption. The vulnerability affects all RSA padding
     modes: PKCS#1 v1.5, RSA-OEAP and RSASVE.
     (CVE-2022-4304)
     [Dmitry Belyavsky, Hubert Kario]

Signed-off-by: John Audia <therealgraysky@proton.me>
2023-02-12 11:28:05 +08:00
Michael Pratt
dfcf9963e2 Revert "tools/fakeroot: update to 1.30.1"
This reverts commit 52167feff8ae3fbd02be22dfe6021e7e9c79c599.

Fakeroot 1.30.1 broke building on certain hosts (32-bit archs).

As of 2023-01-10, this was apparently fixed in source code,
however, the version is still 1.30.1 (patch release),
so the old binaries are removed from the repository and replaced,
but the source provided by the repository remains the same.

Furthermore, there are some complicated issues blocking
the "testing" release from being bumped to a 1.30.x version.

Considering all of this, it would likely be better for this package
to follow the "testing" release instead of the "unstable" release,
which is still 1.29-1, so revert to that.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
2023-02-12 11:27:41 +08:00
Oleg S
43a6b311c4 mediatek: mt7622: fix rootfs/ubi detection for Xiaomi AX6S
By specifying the flag "denx,fit" for partition "kernel", the kernel
try to find rootfs in the same partition during boot. Reality is that
the placement of rootfs is precisely determined by the name of another
partition -"ubi".
It was also found that on some device (for example devices with NAND
chips), the "Denx search engine" manages to find roots at the end of
partition "kernel", but such partition doesn't exist and is empty
there.

Fix this by removing the "denx,fit" flag from partition "kernel". With
this change the original behavior of searchif rootfs in partition "ubi"
is restored.

Signed-off-by: Oleg S <remittor@gmail.com>
2023-02-12 11:26:36 +08:00
coolsnowwolf
96a2274228 default-settings: add rules to ban Xiaomi APK install DNS redirect 2023-02-11 21:33:41 +08:00
lovehackintosh
e610757c58
kernel: bump to 5.10.167, 5.15.93, 6.1.11 (#10891) 2023-02-10 15:23:29 +08:00
Chen Minqiang
29d85f9b04 wolfssl: fix build with make < 4.2
Inline the preinst.arm-ce script. Support for including was added in
make 4.2 and is not working with older make versions.

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2023-02-08 21:58:10 +08:00
Beginner
46f2c7e07f luci-proto-mbim: move to luci feeds 2023-02-08 21:55:36 +08:00
coolsnowwolf
4fe620f842 Revert "rockchip: add FriendlyElec NanoPi R5C support"
This reverts commit 62133a8392.
Closed: #10883, #10890
2023-02-08 21:53:57 +08:00
1054009064
8336b817ec
rockchip: fix cannot stat dtb file (#10885) 2023-02-07 23:14:20 +08:00
aakkll
bb99eaf39c
kernel: bump 5.4 to 5.4.231 (#10881)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-02-07 11:40:27 +08:00
coolsnowwolf
b52193a031 kernel: bump 6.1 to 6.1.10 2023-02-06 18:15:52 +08:00
Nuc
62133a8392
rockchip: add FriendlyElec NanoPi R5C support
* add NanoPi R5C board

* Update armv8.mk

* Delete nanopi-r5c.bootscript

---------

Co-authored-by: coolsnowwolf <31687149+coolsnowwolf@users.noreply.github.com>
2023-02-06 18:03:27 +08:00
lovehackintosh
f1cd5542cf
Openwrt-CI: small cleanup (#10848) 2023-02-06 11:44:57 +08:00
fishg
91bc6bfd32
mt76x2: fix for 6.1 (#10863) 2023-02-05 13:05:48 +08:00
Tsenghan
60178fd03d
Define domain request parameter "Line" as default (#10862)
In Action "DescribeSubDomainRecords", define argument “Line” to the specific "defalut". This is for someone who have two or more same domain names but in different dns request source(ISP), but return more than 1 record will goto print "地址需要修改".  For document of  aliyun API, set a Line parament can solve this issue because most of users just have one ISP for each domain and its value was set as "default".
2023-02-04 21:54:27 +08:00
Beginner
b597493248
wwan/app: code alignment (#10850)
Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com>
2023-02-04 21:45:21 +08:00
coolsnowwolf
1daa71c005 quectel_QMI_WWAN: port to linux 6.1 support 2023-02-02 23:55:49 +08:00
coolsnowwolf
de25320d7a Version update to R23.2.14 2023-02-02 19:50:19 +08:00
coolsnowwolf
a8b2e68da8 package: add wwan Quectel modem packages and luci 2023-02-02 19:43:57 +08:00
1054009064
f143a15985
ipq807x: add tl-er2260t dts for other device builds in 5.15 (#10846)
Only solves other device builds, doesn't support tl-er2260t running.
2023-02-02 16:39:58 +08:00