25749 Commits

Author SHA1 Message Date
potatoigit
72034420c2
mediatek: add BPI-R3MINI-NAND 110M Layout (#185) 2023-12-05 23:06:06 +08:00
Tianling Shen
cbfb74a070
mediatek: add JDCloud RE-CP-03 support (#183)
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-12-05 17:31:06 +08:00
hanwckf
b298e36452 update defconfig 2023-11-23 19:48:01 +08:00
padavanonly
b4316271e8
Mediatek:Fix GL.inet mt2500 hnat port setting (#172) 2023-11-23 18:19:51 +08:00
hanwckf
ea37177e3a mediatek: platform.sh: remove unused mtk_mmc_do_upgrade 2023-11-21 22:25:31 +08:00
padavanonly
850894a6e6 mediatek:correct nums of lan ports 2023-11-21 22:20:20 +08:00
padavanonly
7edbdbbf68 mediatek:add suport for gl-mt6000 and tp-xdr608x 2023-11-21 22:20:20 +08:00
padavanonly
bcd46e3b1d mediatek:add support for rtl8221x 2023-11-21 22:20:20 +08:00
potatoigit
a5c5eef119
mediatek: fix emmc sysupgrade on MT7986 (#169) 2023-11-20 14:48:14 +08:00
padavanonly
1e3e270dca
mediatek:fix netcore n60 lan (#166) 2023-11-20 14:48:06 +08:00
hanwckf
4a1f0eb31b mediatek: fix asr3000 lan order
fix #159
2023-11-16 21:41:12 +08:00
padavanonly
65fb5f0767
mediatek: add support for Netcore N60 (#165)
* add netcore n60 support

* revert to old wifi firmware

---------

Co-authored-by: padavanonly <padavanonly@github.com>
2023-11-16 21:33:32 +08:00
secd4ck
d63a69e0d2
fixed mt7981 platform.sh introduced Tabs by Aabandon (#163) 2023-11-16 18:52:35 +08:00
Aabandon
194443120a
mediatek: add support for Xiaomi AX3000T (#160) 2023-11-15 20:38:11 +08:00
abettmr
ea63ce92bc
asr3000: fix mesh-led gpio 2023-11-15 15:07:20 +08:00
potatoigit
e1b4487fbc
mediatek: fix BPI-R3 EMMC support (#157) 2023-11-11 22:32:43 +08:00
Zy143L
1814465e22
add C8-660(WT9103) 512M Flash && fixs DTS (#155)
* add nradio wt9103 support

* add C8-660(WT9103) 512M Flash && fixs DTS
2023-11-11 21:25:03 +08:00
potatoigit
c915c12f5c mediatek: BPI-R3 EMMC support 2023-11-11 21:24:29 +08:00
potatoigit
38c8c837fc mediatek: initial Banana Pi R3 Mini support 2023-11-11 21:24:29 +08:00
Rafał Miłecki
4a1d8ef55c bcm53xx: refresh kernel config
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2023-11-06 13:29:45 +01:00
benboguan
358c1fa651
mediatek: fix clt-r30b1 (#148) 2023-10-31 11:28:39 +08:00
Rafał Miłecki
c31872bad8 bcm53xx: backport 1 more late DT patch accepted for v6.7
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 732ae343ffb3ad19978b75a8105d55f5e6d1d435)
2023-10-26 13:43:33 +02:00
Rafał Miłecki
754dfab01c bcm53xx: disable unused switch ports in downstream patch
This makes Linux use correct switch ports again.

Fixes: fff279f4a712 ("bcm53xx: backport DT changes from v6.5")
Fixes: https://github.com/openwrt/openwrt/issues/13548
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit a912ee74d6ca08020933dcdb9ce791e74244c25b)
2023-10-26 13:43:33 +02:00
Rafał Miłecki
74212e7be3 bcm53xx: backport DT changes queued for v6.7
Among other changes this commit makes Linux use correct switch ports
again.

Fixes: fff279f4a712 ("bcm53xx: backport DT changes from v6.5")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit a67af19bc84e98588c307af9b08686bde9dd38d5)
2023-10-26 13:43:33 +02:00
Rafał Miłecki
ded99ab483 bcm53xx: simplify patch adding switch ports
We now have all raw ports defined in bcm-ns.dtsi. Leave only lables in
custom device files.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 08ce0c76d7d7daad5e9382d51960d69f4b8b8f3a)
2023-10-26 13:43:33 +02:00
Rani Hod
c5cb4287b8 bcm53xx: build a single device per profile
So far every build of a single bcm53xx Target Profile (it means: when
NOT using CONFIG_TARGET_MULTI_PROFILE) resulted in all target devices
images being built. Now it only builds the one matching selected
profile.

Fixes: #13572

Suggested-by: Jonas Gorski <jonas.gorski@gmail.com>
Signed-off-by: Rani Hod <rani.hod@gmail.com>
[rmilecki: update commit subject + body & move PROFILES line]
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 802a5f5cb4a7b42d25e82b787d7ab1323a20183f)
2023-10-26 13:43:33 +02:00
Arınç ÜNAL
66c2715a56 bcm53xx: add support for ASUS RT-AC3100
ASUS RT-AC3100 is ASUS RT-AC88U without the external switch.

OpenWrt forum users effortless and ktmakwana have confirmed that there are
revisions with either 4366b1 or 4366c0 wireless chips.

Therefore, include firmware for 4366b1 along with 4366c0. This way, all
hardware revisions of the router will be supported by having brcmfmac use
the firmware file for the wireless chip it detects.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
(cherry picked from commit 2214bab3503981fe6168746acd13044a9d5e89e7)
2023-10-26 13:43:33 +02:00
Arınç ÜNAL
b3baba3854 bcm53xx: backport DT changes for ASUS RT-AC3100 queued for v6.6
Backport the patch that adds the DT for ASUS RT-AC3100.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
(cherry picked from commit b7ee8c9f83ea0e3b861e6b71b08ed7a62066d149)
2023-10-26 13:07:30 +02:00
hanwckf
e6ea2ba32a mediatek: dts: fix typo 2023-10-26 11:21:06 +08:00
hanwckf
08c62ad2d0 mediatek: fix ct3003, jcg q30 hnat settings 2023-10-26 00:20:43 +08:00
Zy143L
33f15e3224 add nradio wt9103 support 2023-10-25 14:55:22 +08:00
Jan-Niklas Burfeind
90c8c47188
sunxi: ensure NanoPi R1 has unique MAC address
Ensure the MAC address for all NanoPi R1 boards is assigned uniquely for
each board.

The vendor ships the device in two variants; one with and one without
eMMC; but both without static mac-addresses.
In order to assign both board types unique MAC addresses, fall back on
the same method used for the NanoPi R2S and R4S in case the EEPROM
chip is not present by generating the board MAC from the SD card CID.

[0] https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R1#Hardware_Spec

Similar too and based on:

commit b5675f500daf ("rockchip: ensure NanoPi R4S has unique MAC address")

Co-authored-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Jan-Niklas Burfeind <git@aiyionpri.me>
2023-10-22 12:44:55 +08:00
Tianling Shen
6f822de5e2 mediatek: initial cmcc a10 support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-10-22 01:24:20 +08:00
Koen Vandeputte
18f12e6f69 ipq40xx: switch to performance governor by default
Doing a simple ping to my device shows this:

64 bytes from 10.0.253.101: icmp_seq=1 ttl=64 time=2.00 ms
64 bytes from 10.0.253.101: icmp_seq=2 ttl=64 time=2.02 ms
64 bytes from 10.0.253.101: icmp_seq=3 ttl=64 time=1.68 ms
64 bytes from 10.0.253.101: icmp_seq=4 ttl=64 time=1.91 ms
64 bytes from 10.0.253.101: icmp_seq=5 ttl=64 time=1.92 ms
64 bytes from 10.0.253.101: icmp_seq=6 ttl=64 time=2.04 ms

Some users even report higher values on older kernels:

64 bytes from 192.168.1.10: seq=0 ttl=64 time=0.612 ms
64 bytes from 192.168.1.10: seq=1 ttl=64 time=2.852 ms
64 bytes from 192.168.1.10: seq=2 ttl=64 time=2.719 ms
64 bytes from 192.168.1.10: seq=3 ttl=64 time=2.741 ms
64 bytes from 192.168.1.10: seq=4 ttl=64 time=2.808 ms

The problem is that the governor is set to Ondemand, which causes
the CPU to clock all the way down to 48MHz in some cases.

Switching to performance governor:

64 bytes from 10.0.253.101: icmp_seq=1 ttl=64 time=0.528 ms
64 bytes from 10.0.253.101: icmp_seq=2 ttl=64 time=0.561 ms
64 bytes from 10.0.253.101: icmp_seq=3 ttl=64 time=0.633 ms
64 bytes from 10.0.253.101: icmp_seq=4 ttl=64 time=0.526 ms

In theory, using the Performance governor should increase power draw,
but it looks like it really does not matter for this soc.

Using a calibrated precision DC power supply (cpu idle):

Ondemand
24.00V * 0.134A = 3.216 Watts
48.00V * 0.096A = 4.608 Watts

Performance
24.00V * 0.135A = 3.240 Watts
48.00V * 0.096A = 4.608 Watts

Let's simply switch to the Performance governor by default
to fix the general jittery behaviour on devices using this soc.

Tested on: MikroTik wAP ac

Fixes: #13649
Reviewed-by: Robert Marko <robimarko@gmail.com>
Reviewed-by: Thibaut VARÈNE <hacks@slashdirt.org>
Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
(cherry picked from commit b8e52852bd62236a2a84663b4592d221ebc64cb4)
2023-10-20 15:24:48 +02:00
Tianling Shen
8d8f0f3ec6 mediatek: update device title for cmcc rax3000m
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-10-19 17:43:37 +08:00
Tianling Shen
0713c653e7 mediatek: add ABT ASR3000 support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-10-19 17:43:37 +08:00
Tianling Shen
508bcfdfc5 mediatek: fix target features for mt798x
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-10-16 15:00:51 +08:00
Tianling Shen
f78d2e13cf mediatek: initial cmcc rax3000m emmc support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-10-16 15:00:51 +08:00
Tianling Shen
586d18ac5b mediatek: create shared dtsi for cmcc rax3000m
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-10-16 15:00:51 +08:00
Koen Vandeputte
42374bcee6 ath79: wpj563: enable 2nd USB controller
The compex WPJ563 actually has both usb controllers wired:

usb0 --> pci-e slot
usb1 --> pin header

As the board exposes it for generic use, enable this controller too.

fixes: #13650
Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
(cherry picked from commit 9188c77cbee55a933d0fa75c74e175fbc52c556d)
2023-10-13 18:02:25 +02:00
hanwckf
bacf9165dc
mediatek: hnat: set ipv6 local out skb with hnat_alg mark
fix #9
2023-10-06 09:17:17 +08:00
hanwckf
dd4312da3b Merge branch 'openwrt-21.02' of https://github.com/immortalwrt/immortalwrt into openwrt-21.02 2023-09-29 01:04:42 +08:00
Tianling Shen
0bd0306b05
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-09-28 11:02:31 +08:00
Enrico Mioso
7c89acbebf
base-files: add eMMC sysupgrade support
Adds generic support for sysupgrading on eMMC-based devices.

Provide function emmc_do_upgrade and emmc_copy_config to be used in
/lib/upgrade/platform.sh instead of redundantly implementing the same
logic over and over again.
Similar to generic sysupgrade on NAND, use environment variables
CI_KERNPART, CI_ROOTPART and newly introduce CI_DATAPART to indicate
GPT partition names to be used. On devices with more than one MMC
block device, CI_ROOTDEV can be used to specify the MMC device for
partition name lookups.

Also allow to select block devices directly using EMMC_KERN_DEV,
EMMC_ROOT_DEV and EMMC_DATA_DEV, as using GPT partition names is not
always an option (e.g. when forced to use MBR).

To easily handle writing kernel and rootfs make use of sysupgrade.tar
format convention which is also already used for generic NAND support.

Signed-off-by: Enrico Mioso <mrkiko.rs@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
CC: Li Zhang <li.zhang@gl-inet.com>
CC: TruongSinh Tran-Nguyen <i@truongsinh.pro>
(cherry picked from commit 57c1f3f9c5c699cc215bebde772552787c632570)
2023-09-26 15:36:54 +08:00
hanwckf
101adeccce mediatek: rax3000m: add usb-rndis packages 2023-09-25 22:35:22 +08:00
lgs2007m
ebd1ad3d16
mediatek: fix the incorrect network port sequence of CMCC RAX3000M (#123) 2023-09-22 18:00:36 +08:00
ssm1588
bc37b40aaf
mediatek: fix the incorrect network port sequence of the redmi AX6000 (#121) 2023-09-22 01:09:53 +08:00
Jonas Gorski
ac52e2013a x86: geode: fix hwrng register accesses
When the membase and pci_dev pointer were moved to a new struct in priv,
the actual membase users were left untouched, and they started reading
out arbitrary memory behind the struct instead of registers. This
unfortunately turned the RNG into a constant number generator, depending
on the content of what was at that offset.

To fix this, update geode_rng_data_{read,present}() to also get the
membase via amd_geode_priv, and properly read from the right addresses
again.

Closes #13417.

Reported-by: Timur I. Davletshin <timur.davletshin@gmail.com>
Tested-by: Timur I. Davletshin <timur.davletshin@gmail.com>
Suggested-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
(cherry picked from commit 09d13cd8d87cc50fde67bbe81c6cca4b799b2724)
2023-09-14 11:36:57 +02:00
developer
e01037de5b [Description]
Add spinlock mechanism for mtk_rmw api.
1. When multiple threads operate on the same register resource
which include multiple pins, it will make the register resource
wrong to control. So we add spinlock to avoid this case.

[Release-log]
This patch adds spinlock mechanism to protect mtk_rmw. Without it,
you may suffer from some unexpected problems such as race conidtion
while interrupt occured. And this will lead to pin setting fail.
Hence, we strongly recommand you to merge this patch in your code
base.

Change-Id: I1128dc16cb683b89c2cd9f9138f32552abb00400
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7962757
2023-09-10 00:00:54 +08:00
developer
b4298172e7 [Description]
Change original pinctrl fix-up commit:
https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7007454

Convert patches-5.4 to file-5.4 format to prevent RDKB issue.

[Release-log]
N/A

Change-Id: Id534ae5244c7c52d2c50e468f8208ee1991421c0
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7021354
2023-09-09 23:50:05 +08:00
hanwckf
9f1ba10976 mediatek: fix spi bus width prop name in dts 2023-09-08 15:13:55 +08:00
hanwckf
45329cb67c Merge branch 'openwrt-21.02' of https://github.com/immortalwrt/immortalwrt into openwrt-21.02 2023-09-03 12:27:26 +08:00
abandon-xyz
5eeadb4ce4
mediatek: KONKA KOMI A31: fix check sysupgrade image failed (#110) 2023-08-31 23:55:39 +08:00
Tianling Shen
949f0dd900
kernel: bump to 5.4.255
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-31 13:13:22 +08:00
hanwckf
9194761ed3 kernel: add gigadevice GD5FxGQxUExxH spi-nand support 2023-08-27 02:08:38 +08:00
hanwckf
826cdd3f76 kernel: backport esmt spi-nand of kernel v6.4 2023-08-26 22:42:17 +08:00
hanwckf
3486d7fd69 kernel: add etron spi-nand support 2023-08-26 17:24:28 +08:00
hanwckf
e2b9933e89 kernel: backport gigadevice spi-nand of kernel v6.4 to v5.4 2023-08-26 17:23:19 +08:00
benboguan
912deb4379
mt7981: add clt-r30b1 support (#107)
参考原厂固件修改
2023-08-26 00:30:07 +08:00
developer
5dc2111716 [Description]
Add solution of CH395, which is an ethernet IC chip
from WCH company, to dsa, gsw for mt7981, mt7986.
1. For dsa, CR will be written in mediatek_ge.c
2. For gsw, CR will be written in mt7531.c
3. Enable mt7986 mediatek_ge.c config

[Release-log]
This patch will adjust RX min/max gain. Without this patch,
it may cause a link up fail for CH395 chip under 100Mbps.
In order to enhance the stability of your products,
it's better to merge this patch in your codebase.

Change-Id: If07b4ffc060defb5460ecf98339c1cdd3520a128
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7858068
2023-08-21 02:06:45 +08:00
hanwckf
a65e09d263 kernel: mtd: fix winbond w25nXXkv series 2023-08-17 13:21:58 +00:00
hanwckf
4e02dc25b2 mediatek: add zh-cn i18n packages 2023-08-13 12:13:15 +08:00
hanwckf
59e6d5f909 Merge branch 'openwrt-21.02' of https://github.com/immortalwrt/immortalwrt into openwrt-21.02 2023-08-12 07:30:04 +00:00
Tianling Shen
9dc5245046
mediatek: add Imou LC-HX3001 support (#105)
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-10 16:12:03 +08:00
Tianling Shen
dd689d9d24
x86: add missing Kconfig
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-10 06:54:27 +08:00
Tianling Shen
12f16fb68a
kernel: bump to 5.4.252
Removed upstreamed patches:
- generic/backport-5.4/711-v6.3-bgmac-fix-initial-chip-reset-to-support-BCM5358.patch
- bcm53xx/patches-5.4/043-v6.5-0003-ARM-dts-BCM5301X-Drop-clock-names-from-the-SPI-node.patch

Manually rebased:
- generic/hack-5.4/952-net-conntrack-events-support-multiple-registrant.patch

Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-09 20:24:39 +08:00
hanwckf
9c7feea3e0 hnat: show hnat hook status with seqfile instead of pr_info 2023-08-07 21:44:03 +08:00
abandon-xyz
7268ecd1fa
mediatek: add support for KONKA KOMI A31 (#102) 2023-08-05 21:12:33 +08:00
developer
b64b3c1805 [Description]
Fix the conditions for adding vlan info.
When eth1.x -> wifi, packets cannot be forwarded through the HW path.
(due to with wrong HNAT vlan info)

The patch fix it.

[Release-log]
N/A

Change-Id: Id9e02493157bfc2f3a4dbf046be127cd491f9b17
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7778652
2023-08-01 12:04:34 +08:00
hanwckf
b0360ffa94 mediatek: add support for H3C NX30 Pro 2023-08-01 02:10:06 +08:00
abu9
69794b4861
[][Kernel][hnat][Fix log print level in foe_clear_entry] (#101)
[Description]
Fix log print level in foe_clear_entry.
There are too many logs when neighbor update,
the logs should be printed on debug level.

[Release-log]
N/A


Change-Id: Ic9b75aa5da33f1ab1f398408811487f72ba9f29b
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7709249
2023-07-31 21:52:26 +08:00
Rafał Miłecki
170d9e447d bcm53xx: backport more DT changes queued for v6.6
Those sort out BCM53573 Ethernet info finally.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit ca8868a51127f6081a524d47eab937b90af0bf05)
2023-07-29 21:00:07 +02:00
Rafał Miłecki
4ceaf439a5 bcm53xx: add BCM53573 Ethernet fix sent upstream for v6.6
It seems that DSA-based b53 driver never worked with BCM53573 SoCs and
BCM53125.

In case of swconfig-based b53 this fixes a regression. Switching bgmac
from using mdiobus_register() to of_mdiobus_register() resulted in MDIO
device (BCM53125) having of_node set (see of_mdiobus_register_phy()).
That made downstream b53 driver read invalid data from DT and broke
Ethernet support.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 79fd3e62b4910731c13692b2daa2083e0f95c023)
2023-07-29 21:00:07 +02:00
hanwckf
10b5a7d734 target: remove luci-app-turboacc, luci-app-cpufreq in default packages 2023-07-28 10:07:25 +08:00
hanwckf
cbbfa996aa mediatek: rax3000m: build automount by default 2023-07-27 21:38:03 +08:00
hanwckf
af4f0aac91 mediatek: rax3000m: fix mesh button label and input type 2023-07-27 20:26:44 +08:00
hanwckf
fe761fe277 mediatek: rax3000m: add more usb-related luci apps 2023-07-27 10:54:52 +08:00
hanwckf
e6771f7e39 mediatek: rax3000m: remove read only part 2023-07-27 10:50:53 +08:00
hanwckf
72e13d5f9a Merge branch 'openwrt-21.02' of https://github.com/immortalwrt/immortalwrt into openwrt-21.02 2023-07-26 23:18:13 +08:00
hanwckf
4354230eb3 Revert "[Description]"
This reverts commit 4b60c531ead22dcace1497bfcf5327c7b0087bbc.
2023-07-26 22:31:29 +08:00
hanwckf
c7d72f9c32 mediatek: cmcc-rax3000m: enable mt7531 ssc 2023-07-26 21:48:01 +08:00
Tianling Shen
67603f2a9e
ipq806x: enable fan driver for r3d
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-26 21:10:22 +08:00
Robert Marko
40d838ff6b
ipq806x: add driver for EMC2301 fan controller
Basic fan controls are working, including PWM and
tachometer.

RPM target mode is not working yet.

Signed-off-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-26 21:08:24 +08:00
hanwckf
cc46e0582e mediatek: add support for cmcc-rax3000m 2023-07-26 12:06:37 +08:00
hanwckf
73aa69df13 mediatek: fix mismatch of *x3000* 2023-07-26 01:49:41 +08:00
Tianling Shen
064779f9c2
kernel: bump to 5.4.250
Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-25 20:44:09 +08:00
abandon-xyz
ef7f8d4997
mediatek: wr30u: fix led (#95) 2023-07-21 09:05:39 +08:00
Tomasz Maciej Nowak
47054075e2 sdk: rename README + update Makefile
'help' target fails not finding a file, so follow up on a change[2] made
as a fix for main README[1].

1. d0113711a31f ("README: port to 21st century")
2. 751486b31fd9 ("build: fix README.md reference after rename")

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
(cherry picked from commit 2d5f7035cf45801158bed6f5d0ac0de0002c1810)
(cherry picked from commit e9911f10e482f3174f745a36c0c9fd7964758caf)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2023-07-20 11:31:08 +02:00
Tomasz Maciej Nowak
04ee513ede ib: split out processing user provided packages
Some device recipes remove default target packages. If user tries to add
them back they will be ignored, since packages list is processed in one
go. Process the device recipe packages first and do user ones later, so
additions won't get filtered out.

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
(cherry picked from commit e40b9a7fa002154e85459791101a0444d99dfb86)
2023-07-20 11:31:08 +02:00
hanwckf
3360371f33 mediatek: wr30u: fix bootargs 2023-07-20 00:17:47 +08:00
Tianling Shen
30d8cc5eab
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-19 16:29:18 +08:00
developer
4b60c531ea [Description]
Fix bug: avoid mis-binding of first fragments of ip-fragmented packets.

[Release-log]
N/A

Change-Id: Iabe7e83a2ec683b292628732004afef0d65c05f3
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7597095
2023-07-19 10:09:17 +08:00
hanwckf
c66df37828 hnat: use memcmp instead of strncmp to compare mac addr 2023-07-15 19:04:05 +08:00
Rafał Miłecki
f5fbde4c11 bcm53xx: backport DT changes queued for v6.6
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 37ff916af789911fdefb802ce9903e866eb82435)
2023-07-14 14:56:51 +02:00
Tianling Shen
edcc069409
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-14 19:23:45 +08:00
hanwckf
48dab85809 mediatek: fix xiaomi-wr30u stock layout flash script 2023-07-14 01:13:19 +08:00
developer
46fcd1ca5b [Description]
Fix possibly null pointer and memory leak.
When skb_headroom(skb) < FOE_INFO_LEN, it means that hnat headroom of
the message is incomplete and may have been truncated by other functions.
HNAT should return and not relalloc skb.

If without the patch, may met NULL pointer and memory leak issue.

[Release-log]
N/A

Change-Id: I490191fa2be5fd1d664b228ef7c97951d0efe036
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7694271
2023-07-12 21:45:04 +08:00
thl
1157c56596 hnat: wifi tx hqos support 2023-07-12 21:22:37 +08:00
hanwckf
d0fc857ae2 Merge branch 'openwrt-21.02' of https://github.com/immortalwrt/immortalwrt into HEAD 2023-07-12 21:09:22 +08:00
hank9999
d66f4754b7 mediatek: add support for Xiaomi WR30U
Signed-off-by: hank9999 <mchank9999@gmail.com>
2023-07-12 20:48:38 +08:00
hanwckf
6a3939a965 mediatek: add gpio-export driver 2023-07-12 01:06:31 +08:00
hanwckf
49f6834e9f
ct3003: fix wrong wlan mac address 2023-07-12 00:45:49 +08:00
Rafał Miłecki
fff279f4a7 bcm53xx: backport DT changes from v6.5
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 8674b41c0d84f09e14bf8ebe08e1d6dc6ac5fa64)
2023-07-11 13:38:09 +02:00
Rafał Miłecki
7f06e5f7f2 kernel: bgmac: fix regressed support for BCM53573 SoCs
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit d54f3b2cfdbd34aa61ca67fd590eebfdf3db51cf)
2023-07-10 18:47:41 +02:00
Rafał Miłecki
64261da739 kernel: fix bgmac support for BCM5358
Fix two long-standing regressions.

Fixes: https://github.com/openwrt/openwrt/issues/8278
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 5e48c534f7c6b3a861f4a2dbb81d7bfcd9606f61)
2023-07-10 18:47:41 +02:00
Rafał Miłecki
1d206bcd71 bcm47xx: fix bgmac regression present in 5.4 kernel
This fixes:
[    2.548098] bgmac_bcma bcma0:1: Failed to register fixed PHY device
[    2.554584] bgmac_bcma bcma0:1: Cannot connect to phy
and downstream (swconfig-based) b53 driver failing to load.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 6cdac994012003065a7040ceba3186f80db3cdbe)
2023-07-10 18:47:41 +02:00
Rafał Miłecki
18a5301858 kernel: backport bgmac upstream commits from 5.15 / for 5.16
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit fd71ef34b75c81646d17d21d80dc3a5b5e2e6bb8)
2023-07-10 18:47:41 +02:00
Tianling Shen
7125dd1654
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-05 16:42:53 +08:00
Tianling Shen
722aef9de1
mediatek: add CETRON CT3003 support (#91)
* mediatek: add CETRON CT3003 support

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

* conninfra: remove incorrect default val

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

---------

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-05 14:26:49 +08:00
Tianling Shen
8b23ea31c6
mediatek: add JCG Q30 support (#90)
For flash instructions, see https://mary.kevinmx.top/default/JCG-Q30-Pro-Neo.html

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-04 16:53:56 +08:00
Tianling Shen
86dc811a7c
mediatek: add support for Livinet ZR-3020 (#82)
* autocore: remove ethinfo for mtk arm boards

mediatek target uses legacy swconfig which is not supported by autocore.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

* mediatek: add support for Livinet ZR-3020

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

---------

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-03 02:27:36 +08:00
hanwckf
950722cdfb mediatek: fix kernel patch issue 2023-06-28 01:25:09 +08:00
hanwckf
5ea9ded3d1 Merge branch 'openwrt-21.02' of https://github.com/immortalwrt/immortalwrt into openwrt-21.02 2023-06-28 00:47:14 +08:00
hanwckf
3e744a313d hnat: fix veth tx packet issue
ref: f756e66dc6
2023-06-27 23:38:18 +08:00
hanwckf
b9d3e4343a hnat: fix nat66 issue
ref: 317dbfad66
2023-06-27 23:38:12 +08:00
developer
fe05ec6020 [Description]
Fix hook drop normal packet
In some cases, the packet match the to the logic
of eth->wlan of the legacy chip(mt7621).
After failing to find the interface,
it will be discarded by the hnat function.
Here packets should be handed over to the kernel

[Release-log]
N/A

Change-Id: Idca4c6e899e743c89fbcb562f2695a77b02a98af
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7265953
2023-06-27 22:54:07 +08:00
Tianling Shen
3f4a88db29
kernel: bump to 5.4.248
Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-06-23 16:12:07 +08:00
Álvaro Fernández Rojas
eb8cae5391 bcm63xx: fix NETGEAR DGND3700v2 boot loop
The DGND3700v2 renames the cferam bootloader from cferam to cfeXXX, where XXX
is the number of firmware upgrades performed by the bootloader. Other bcm63xx
devices rename cferam.000 to cferam.XXX, but this device is special because
the cferam name isn't changed on the first firmware flashing but it's changed
on the subsequent ones.
Therefore, we need to look for "cfe" instead of "cferam" to properly detect
the cferam partition and fix the bootlop.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
(cherry picked from commit cdfcac6e246de9f237d1425e498db3f34ddebbaf)
2023-06-15 12:01:32 +02:00
Álvaro Fernández Rojas
39c00a9bdd kernel: mtd: bcm-wfi: add cferam name support
Some devices rename cferam bootloader using specific patterns and don't follow
broadcom standards for renaming cferam files. This requires supporting
different cferam file names.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
(cherry picked from commit 8813edd8d9695d4e3939fdaa3c530c682f91de11)
2023-06-15 12:01:07 +02:00
Tianling Shen
8d858460fe
kernel: bump to 5.4.244
Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-06-01 19:58:05 +08:00
Tianling Shen
d7d319a6d2 kernel: netdevices: enable e-switch support for mlx5 by default
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit acf1d35ae066bc04ded6ef870af6768cf7554710)
2023-05-29 18:09:18 +08:00
Yogi Hermawan
175c24ea94 ramips: fix bolt bl201 dts and update some device related value
1. add bolt_bl201 LED aliases
2. fix bolt_bl201 restart key gpio
3. make bolt_bl201 bootloader read-only
4. add bolt_bl201 partition settings
5. fix bolt_bl201 wrong gpio group
6. update bolt_bl201 LED and network switch settings

(cherry picked from commit 35751576f31aaf493a77436b879131f03fc15c82)
2023-05-28 20:27:57 +08:00
Tianling Shen
25f66d9c49 kernel: bump to 5.4.243
Manually rebased:
* bcm27xx/patches-5.4/950-0052-firmware-bcm2835-Support-ARCH_BCM270x.patch
* bcm27xx/patches-5.4/950-0642-media-uapi-Add-MEDIA_BUS_FMT_SENSOR_DATA-media-bus-f.patch
* bcm27xx/patches-5.4/950-0653-Revert-firmware-raspberrypi-register-clk-device.patch

Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-19 14:46:43 +08:00
Tianling Shen
c744089871
rockchip: reduce default CMA size to 16 MB
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-08 21:43:25 +08:00
Tianling Shen
6e54cb5d37
rockchip: add NanoPi R4SE
The FriendlyARM NanoPi R4SE is a minor variant of R4S with a on-board eMMC.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 1ef239173c8728e28ee913a333944c5f78276915)
2023-04-30 20:23:38 +08:00
Tianling Shen
faf8290e53
kernel: bump to 5.4.242
Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-29 11:23:25 +08:00
Tianling Shen
5c1af46f28
kernel: bump to 5.4.241
Removed upstreamed patches:
- generic/backport-5.4/430-v6.3-ubi-Fix-failure-attaching-when-vid_hdr-offset-equals.patch
- mvebu/patches-5.4/008-net-mvneta-make-tx-buffer-array-agnostic.patch

Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-23 13:57:30 +08:00
svswmw
058ba4a7d1
ramips: add support for ZTE E8820S
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-18 02:50:39 +08:00
Tianling Shen
738b1b7593
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-18 01:39:45 +08:00
Tianling Shen
49092a2ff3
sunxi: build with automount by default
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 327536fb03ae09e5777813c02175a1269564c224)
2023-04-18 01:39:35 +08:00
Tianling Shen
3b5862cf41
bcm27xx: build with automount by default
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 6bed850e06996ff8218cfced9b592ed3b354bf3b)
2023-04-15 20:03:51 +08:00
Daniel Golle
34d2883b9d kernel: backport fix for recently introduced UBI bug
Import commit "ubi: Fix failure attaching when vid_hdr offset equals to
(sub)page size" which did not yet make it to stable upstream Linux trees.

Fixes: #12232
Fixes: #12339
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit aad34818b50029e07ed9221ae46f9770d6e29785)
2023-04-15 03:34:22 +01:00
Tianling Shen
66b063905d
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-11 01:23:56 +08:00
Paul Spooren
bc99ce5b22 imagebuilder: allow to specific ROOTFS_PARTSIZE
Setting this options modifies the rootfs size of created images. When
installing a large number of packages it may become necessary to
increase the size to have enough storage.

This option is only useful for supported devices, i.e. with an attached
SD Card or installed on a hard drive.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 7b7edd25a571568438c886529d3443054e02f55f)
2023-04-09 14:28:16 +02:00
Chuanhong Guo
5dc8c8fedd
ramips: fix 5g mac for TOTOLINK X5000R
There's no valid mac address for the second band in the eeprom.
The vendor fw uses 2.4G mac + 4 as the mac for 5G radio.
Do the same in our firmware.

Fixes: 23be410b3d ("ramips: add support for TOTOLINK X5000R")
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
(cherry picked from commit 212632540043cc9b911c2efb86156479f2710836)
2023-04-07 16:57:16 +08:00
Yogi Hermawan
4ba71021c9
ramips: MT7620 Add support for Bolt BL201 2023-04-06 04:59:29 +08:00
Tianling Shen
93e9ad63c9
ipq: build with automount by default
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-06 03:49:45 +08:00
AmadeusGhost
ece4ab706c
ipq806x: add support for Ruijie M520
Signed-off-by: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com>
2023-04-06 03:29:04 +08:00
Tianling Shen
116d3ccfd7
rockchip: fix supported device for firefly roc-rk3328-cc
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit bed2c6c773c945a95bf2444d149defb186666c40)
2023-04-04 20:06:16 +08:00
Tianling Shen
bb19c0e1d8
rockchip: add Firefly ROC-RK3328-CC support
Hardware
--------
RockChip RK3328 ARM64 (4 cores)
4GB DDR4 RAM
1x 1000 Base-T
2 LEDs (POWER / USER)
HDMI 2.0
3.5mm TRRS AV jack
Micro-SD slot
eMMC slot
1x USB 3.0 Port
2x USB 2.0 Port

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit f05de856379977e0f48f9fcd27ec199c1bf5aa74)
2023-04-04 18:52:47 +08:00
Tianling Shen
e6ba105d6e
Revert "kernel: remove obsolete netfilter tcp window size check bypass patch"
Keep this for shortcut-fe.

This reverts commit cbe73ea33d027dbb4b2cf1eca947ae746119e7d2.
Fixes: #923

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-04 16:35:07 +08:00
Tianling Shen
4e570b7b08
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-02 02:08:11 +08:00
Felix Fietkau
cbe73ea33d kernel: remove obsolete netfilter tcp window size check bypass patch
On any currently supported hardware, the performance impact should not
matter anymore.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit 75e78bcaab847557ce1782eb2dea9dff9a029171)
2023-03-30 14:18:04 +02:00
Daniel González Cabanelas
2541ca616d ipq40xx: Linksys MR8300: fix the USB port power
The USB port on the MR8300 randomly fails to feed bus-powered devices.

This is caused by a misconfigured pinmux. The GPIO68 should be used to
enable the USB power (active low), but it's inside the NAND pinmux.

This GPIO pin was found in the original firmware at a startup script in
both MR8300 and EA8300. Therefore apply the fix for both boards.

Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
Reviewed-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit ed64c3323590e3c9fa8b423bf37689023a7a101f)
Signed-off-by: Steffen Scheib <steffen@scheib.me>
2023-03-29 22:19:27 +02:00
Tianling Shen
0e967b37fe
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-03-30 03:10:42 +08:00
Hauke Mehrtens
5e69c097f7 kernel: bump 5.4 to 5.4.238
Compile-tested: armvirt/64, lantiq/xrx200
Run-tested: armvirt/64, lantiq/xrx200

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-03-29 16:31:21 +02:00
hanwckf
3451ac6453 hnat: show ipv6_en and guest_en status 2023-03-28 18:54:29 +08:00
hanwckf
f2d952d7d7 hnat: enable guest wifi by default 2023-03-28 18:54:16 +08:00
developer
1993b4aa94 [Description]
Fix MT7986 timer inaccurate.
Test: pass

[Release-log]
N/A

Change-Id: I32e5eb1d5ff97e68c1ac00bcf1251a052477b787
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7133509
2023-03-28 01:46:58 +08:00
hanwckf
3520be6447 Merge branch 'openwrt-21.02' of https://github.com/immortalwrt/immortalwrt into openwrt-21.02 2023-03-28 01:37:18 +08:00