25397 Commits

Author SHA1 Message Date
Aabandon
66ea5bed2d mediatek: add support for Newland NL-WR9103
Hardware specification:
SoC: MediaTek MT7981B 2x A53
Flash: GSTO GSS01GSAK1 128MB (No machine tests yet)
       WINBOND W25N01GVZE1G 128MB
RAM: DDR3 256MB
Ethernet: 4x 10/100/1000 Mbps
Switch: MediaTek MT7531AE
WiFi: MediaTek MT7976C
Button: Reset, Mesh
Power: DC 12V 1A
2024-09-03 20:56:48 +08:00
Aabandon
d10d8a3174 mediatek: add support for Newland NL-WR8103/MR3000D-CIq(256MB RAM version)
Hardware specification:
SoC: MediaTek MT7981B 2x A53
Flash: FORESEE F35SQA001G 128MB
RAM: DDR3 256MB
Ethernet: 4x 10/100/1000 Mbps
Switch: MediaTek MT7531AE
WiFi: MediaTek MT7976C
Button: Reset, Mesh
Power: DC 12V 1A
2024-09-03 20:56:48 +08:00
Aabandon
6cf32632e8 mediatek: add support for HONOR FUR-602/603(HONOR XT50/XU50/XC50)
Hardware specification:
SoC: MediaTek MT7981B 2x A53
Flash: DOSILICON DS35Q1GA-IB 128MB (No machine tests yet)
         GIGADEVICE GD5F1GM7UExxG 128MB
         WINBOND W25N01GVZE1G 128MB
RAM: DDR3 256MB
Ethernet: 4x 10/100/1000 Mbps
Switch: MediaTek MT7531AE
WiFi: MediaTek MT7976C
Button: Reset, Mesh
Power: DC 12V 1A
2024-09-03 20:56:48 +08:00
Aabandon
f48a5ca163 kernel: mtd: add support for fmsh dosilicon gsto spi nand 2024-09-03 20:56:48 +08:00
铍盐甜不甜
522de4896a
Change spi group to fix LED bug (#315) 2024-08-29 15:26:35 +08:00
hanwckf
23e9eb0b6e mediatek: refresh mt7981 kernel config 2024-08-22 00:19:07 +08:00
csharper2005
90ac94fb7a
mediatek: add support for Routerich AX3000 (#303)
* mediatek: add support for Routerich AX3000

Routerich AX3000 is a wireless WiFi 6 router.

Specification
-------------
- SoC       : MediaTek MT7981BA dual-core ARM Cortex-A53 1.3 GHz
- RAM       : DDR3 256 MiB (ESMT M15T2G16128A)
- Flash     : SPI-NAND 128 MiB (ESMT F50L1G41LB)
- WLAN      : MediaTek MT7976CN dual-band WiFi 6
  - 2.4 GHz : b/g/n/ax, MIMO 2x2
  - 5 GHz   : a/n/ac/ax, MIMO 2x2
- Ethernet  : 10/100/1000 Mbps x4 (MediaTek MT7531AE)
- USB       : 1x 2.0
- UART      : through-hole on PCB
  - [J500] GND, TX, RX, 3.3V (115200n8)
- Buttons   : Mesh, Reset
- LEDs      : 1x Power (Blue)
              1x WiFi 2.4 GHz (Blue)
              1x WiFi 5 GHz (Red)
              1x Mesh (Blue)
              3x LAN activity (Blue)
              1x WAN activity (Blue)
              2x WAN no-internet (Red)
- Power     : 12 VDC, 1.5 A

Installation
------------
Flash OpenWrt 'sysupgrade.bin' image using stock firmware web-interface
(without keeping settings).

Return to stock
---------------
Install stock firmware image (without keeping settings) using OpenWrt
sysupgrade method.

Recovery
--------
Connect uart, use u-boot menu to flash stock firmware image or boot
OpenWrt initramfs image.

MAC addresses
-------------
+---------+-------------------+-----------+
|         | MAC               | Algorithm |
+---------+-------------------+-----------+
| WAN     | 24:0f:5e:xx:xx:b4 | label     |
| LAN     | 24:0f:5e:xx:xx:b5 | label+1   |
| WLAN 2g | 24:0f:5e:xx:xx:b6 | label+2   |
| WLAN 5g | 24:0f:5e:xx:xx:b7 | label+3   |
+---------+-------------------+-----------+
The WLAN 2g MAC was found in 'Factory', 0x4

Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>

---------

Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
Co-authored-by: hanwckf <hanwckf@vip.qq.com>
Co-authored-by: hanwckf <my375229675@gmail.com>
2024-08-22 00:17:09 +08:00
谱尼
7a0b5b83c2
mediatek: add iKuai-Q3000 model support; (#291)
Co-authored-by: seer300 <youremail@eg.com>
Co-authored-by: hanwckf <hanwckf@vip.qq.com>
2024-08-22 00:00:07 +08:00
铍盐甜不甜
5cdd9218b2
Update mt7986a-netcore-n60.dts (#310)
Fix Netcore N60 LAN Problem
2024-08-21 23:56:25 +08:00
Ashley Lee
8706569797
mediatek: add support for Ruijie RG-X30E and Ruijie RG-X30E Pro (#289)
Signed-off-by: Ashley Lee <code@emtips.net>
2024-08-21 23:55:11 +08:00
Tianling Shen
82f852cda1
mediatek: add Nokia EA0326GMP support (#270)
Hardware specification:
  SoC: MediaTek MT7981B 2x A53
  Flash: 128 MB SPI-NAND
  RAM: 256MB
  Ethernet: 4x 10/100/1000 Mbps
  Switch: MediaTek MT7531AE
  WiFi: MediaTek MT7976C
  Button: Reset, WPS/Mesh
  Power: DC 12V 1A

Gain SSH access:
1. Login into web interface, and download the configuration.
2. Download the configration utilities:
   https://firmware.download.immortalwrt.eu.org/cnsztl/mediatek/filogic/openwrt-mediatek-mt7981-nokia-ea0326gmp-config-utils.tar.gz
     These binaries are extraced from the factory firmware, which are
     dynamically linked with aarch64 musl 1.1.24. To use them, you
     must run them under the same runtime environment, otherwise the
     binaries will not work!
3. Upload the configuration and utilities to a suitable environment.
4. Uncompress the utilities, move them to '/bin' and give them executable permisison:
   tar -zxf openwrt-mediatek-mt7981-nokia-ea0326gmp-config-utils.tar.gz
   mv mkconfig seama /bin
   chmod +x /bin/mkconfig
   chmod +x /bin/seama
5. Decrypt and uncompress the configuration:
     Enter fakeroot if you are not login as root.
   mkconfig -a de-enca -m EA0326GMP_3FE79221BAAA -i EA0326GMP_3FE79221BAAA-xxxxxxxx-backup.tar.gz -o backup.tar.gz
   tar -zxf backup.tar.gz
6. Edit 'etc/config/dropbear', set 'enable' to '1'.
7. Edit `etc/passwd`, remove root password: 'root::1:0:99999:7:::'.
8. Repack the configuration:
   tar -zcf backup.tar.gz etc/
   mkconfig -a enca -m EA0326GMP_3FE79221BAAA -i backup.tar.gz -o EA0326GMP_3FE79221BAAA-xxxxxxxx-backup.tar.gz
9. Upload new configuration via web interface, now you can SSH to EA0326GMP.

A minimum configuration which enabled SSH access is also provided to simplify the process:
https://firmware.download.immortalwrt.eu.org/cnsztl/mediatek/filogic/openwrt-mediatek-mt7981-nokia-ea0326gmp-enable-ssh.tar.gz

Flash instructions:
1. SSH to EA0326GMP, backup everything, especially 'Factory' part.
2. Write new FIP provided by https://github.com/hanwckf/bl-mt798x.
3. Reboot, enter web failsafe and upload -factory.bin firmware.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-08-21 23:54:48 +08:00
hanwckf
4747a8dcda mediatek: hnat: fix vlan for ext-devices hnat 2024-06-13 19:07:45 +08:00
hanwckf
3fa9687ca7 mediatek: dts: remove gmac1 node for q30, ct3003 2024-02-25 12:28:13 +08:00
hanwckf
24546fd666 mediatek: fix typo 2024-02-02 17:32:08 +08:00
seckv
61c2cbe8ac
mediatek: fix xdr608x eth & wifi mac addr (#242)
set xdr608x’s eth & mac address same as stock firmware:
<lan_mac>=<label_mac>=<ra0_mac>
<wan_mac>=<lan_mac>+1
<rax0_mac>=<lan_mac>+2
2024-02-01 21:01:21 +08:00
hanwckf
d3ab1bf5e6 mediatek: fix xdr608x wifi mac addr settings 2024-02-01 09:38:53 +08:00
hanwckf
f130079301 mediatek: rtl822x: fix led blink 2024-02-01 09:18:26 +08:00
hanwckf
557269a77d mediatek: fix ruijie rg-x60 wifi mac 2024-01-31 23:43:12 +08:00
Ashley Lee
91e8f420be
mediatek: add support for Ruijie RG-X60 Pro (#230)
Signed-off-by: Ashley Lee <code@emtips.net>
2024-01-31 23:42:30 +08:00
hanwckf
3896a15db0 mediatek: add samba4 packages for mt7981 usb devices 2024-01-31 23:15:26 +08:00
hanwckf
a8bd1e2477 mediatek: add usb packages for glinet mt2500/mt3000 2024-01-31 18:57:47 +08:00
hanwckf
ebd9ce723a mediatek: dts: fix typo 2024-01-31 18:37:00 +08:00
hanwckf
46bd2aa298 mediatek: add ext-devices hnat support for glinet mt2500/mt3000 2024-01-31 18:28:03 +08:00
hanwckf
492c1e5597 mediatek: reverse WAN/LAN port for glinet mt7981 devices to fix hnat issues 2024-01-31 18:25:32 +08:00
hanwckf
929cd0f9d2 mediatek: rax3000m: remove ksmbd packages 2024-01-31 11:30:25 +08:00
hanwckf
c07c4b30a6 kernel: mtd: add support for foresee spi nand 2024-01-31 10:15:34 +08:00
hanwckf
1ee9a8b732 mediatek: mtk_eth_soc: enable admav2 for mt7986 only 2024-01-26 19:15:02 +08:00
hanwckf
dabfebc9a0 mediatek: image.mk: fix fw file name 2024-01-23 23:30:38 +08:00
hanwckf
78e01d8729 mediatek: hnat: set ppe num to 1 for GMAC1 mode 2024-01-23 22:06:18 +08:00
hanwckf
31c2a045db mediatek: hnat: set default ppe num to 2 2024-01-19 12:50:49 +08:00
hanwckf
f518559c0f mediatek: hnat: fix wifi->ext hnat support 2024-01-19 12:50:49 +08:00
hanwckf
fcbff49bcc mediatek: mtk_eth_soc: change mt798x adma from v2 to v1 2024-01-19 12:50:49 +08:00
hanwckf
f7aecec1da mediatek: hnat: fix match ext dev by prefix 2024-01-18 22:13:44 +08:00
hanwckf
02e53453a3 Revert "[Description]"
This reverts commit cb8d930879726d51161e612d48b5c3dba7aa494a.
2024-01-18 22:13:44 +08:00
developer
f137a9ece7 [Description]
Fix BIND entry with DP=0 issue for Wifi Tx

Without this patch, the PPE entry state could be set to BIND
unexpectedly, adds a check to confirm if the copied entry
state is UNBIND.

[Release-log]
N/A

Change-Id: I49825572617eb804cda18e8f054b9106f26926bb
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8498669
2024-01-17 10:56:10 +08:00
hanwckf
c430f7b29d Revert "[Description]"
This reverts commit efef901d06e9193fc283cc601aee26c8ca59d640.
2024-01-16 23:28:00 +08:00
developer
efef901d06 [Description]
Change qdma dmad from sram to dram

[Release-log]
-dmad in sram and payload in dram may probabilistic cause control
 path is incoherent with payload path
-causing the actual packet sent is not the one
 you really want

Change-Id: Ieeca5093f3cb24e07d659c8bec10fbaa0bbb336a
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7912387
2024-01-16 21:34:35 +08:00
developer
19f2e53562 [Description]
Fix panic issue for mtk_pending_work.

If without this patch, mtk_pending_work might cause kernel panic
in the one gmac system.

[Release-log]
N/A

Change-Id: I9d2940645d738bac8888a7410c5ad5586a08c115
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6814894
2024-01-16 21:29:08 +08:00
developer
daba7b9a2d [Description]
Fix GMAC data corruption issue.

If without this patch, kernel might receive invalid packets that are corrupted by GMAC.

[Release-log]
N/A

Change-Id: I8a9f00402e4b8d9181a8c4c518665a16619cdc0a
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6398721
2024-01-16 21:24:34 +08:00
developer
f81f1d5ffc [Description]
Remove QDMA global configuration for PKT_RX_WDONE
-- customer corner test case may occur qmda rx hang
-- DE confirm this item may cause qdma rx hang, it is hw bug

[Release-log]

Change-Id: I104ffbcdf140f8f7bf66d20b3f2ad349d733158f
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6270079
2024-01-16 21:23:58 +08:00
developer
2a758ab185 [Description]
Change code for memory free which may cause memory leak
-- memory leak occurs when user use DRAM for DMAD
   -- SRAM ==1, no need free ring->dma
   -- SRAM ==0, DMAD memory should be freed in mtk_rx_clean

[Release-log]
N/A

Change-Id: I599d3e38c66d67c0e9bfd7afc3e8f773258f97db
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6182630
2024-01-16 21:22:09 +08:00
developer
9c0d04cab0 [Description]
Change ADMA RX HANG condition
-- ADMA RX HANG condition
   - PSE p0 output queue is not zero
   - CDM1 FSM indication CDM is from PSE to ADMA status
   - ADMA DBG MONITOR show CURR_STAT is zero
   - CDM_FIFO_RDY is zero
   - remove check RX_FIFO_WCNT is zero because sometimes it is not zero

[Release-log]
N/A

Change-Id: I666d3df5eddc128f6f2fc4df44b9c76aa8b64254
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6182238
2024-01-16 21:21:50 +08:00
developer
cb8d930879 [Description]
Add configurations to enable WDMA Rx ring full drop for
solving Panther AX7800/AX8400 5G(MT7915) WA CPU bound issue.

If without this patch, system might run into WiFi Tx/Rx
deadlock issue or WiFi Tx small packet low throughput issue.

[Release-log]
N/A

Change-Id: I57cd4a8e3ae19bdcb34d7d042989b7c1327ea08e
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6193220
2024-01-16 21:21:22 +08:00
developer
5ead770db2 [Description]
Fix the issue of mistakenly deleting entries in foe_clear_entry.
When packets are forwarded in the 6RD scenario,
HNAT entry is mistakenly deleted.

This patch fix it.

[Release-log]
N/A

Change-Id: I7ece4115f07eaca354d2c0301d6cafb2ba6e539c
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7531312
2024-01-16 21:18:02 +08:00
developer
f189c50ef1 [Description]
Fix QDMA TX queue page error issue.

If the TX queue page is changed before hnat_qos_shaper_ebl function,
it may cause the function to set queue config on wrong TX queue page.

In order to avoid this situation, we will check queue ID to
switch to correct TX queue page.

If without this patch, QDMA TX queue config will be wrong
when the numbers of TX queue is greater than 16.

[Release-log]
N/A

Change-Id: I42b013982885830355b4108d6bc49f2feac1ef08
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8203881
2024-01-16 21:16:26 +08:00
Aes64X
02df69b2d5
修复时区问题 (#226)
某些docker容器会因缺少时区组件导致无法启动
例如:Home Assistant
2024-01-14 20:44:28 +08:00
hanwckf
35722caede mediatek: tune smp settings 2024-01-14 20:32:23 +08:00
hanwckf
302556c1ac mediatek: rax3000m: add usb/wwan nic to hnat ext devices 2024-01-14 10:54:44 +08:00
hanwckf
fb1028fa8c mediatek: hnat: add ext-devices-prefix prop to match ext devices 2024-01-14 10:54:44 +08:00
hanwckf
42fbe2ced3 mediatek: add usb/wwan ext devices rps settings 2024-01-14 10:54:44 +08:00