OpenWrt for Z 您所在的位置:网站首页 mt7621a和mt7621at OpenWrt for Z

OpenWrt for Z

2024-02-01 15:01| 来源: 网络整理| 查看: 265

Hi OpenWRT developers & community, Please help me (and other users) to create openwrt firmware for a WiFi6 AX1800 router with MTK MT7621AT chipset (with other chips MT7975 + MT7905).

Router name : WiFi6 Giga Dual-Band AX1800 Router. Brand : Z-Router. Model : ZR-2660. HW revision : V1.0 SW ver: V1.0.1

Chipset detail info:

(1) MT7621AT , 2139-AMKH , CTPCY166 , DTPCW104. (2) MT7975DN , 2145-AJCSL , DAP3G994. (3) MT7905DEN , 2136-BXDAL , CCMCPG78. (4) 7YK77 , D9PRR , VV6W , M. Supplied router chips have heatsink attached/glued on them, so i cannot see exact chip numbers. But when i requested a picture to MFR=manufacturer before HW modifications, then mfr shared PCB top-side picture (without heatsink attached), so i can see some of the chip numbers very clearly. i can add a PCB bottom side picture later. 3 LAN ports (gigabit) , 1 WAN port (gigabit) , 1 USB 2.0 , 1 reset switch , 1 power-supply port. Flash ROM in this router is suppose to be NAND based.

FIRMWARE info:

Currently the router has MTK SDK based deeply modified openwrt v15 firmware, loaded by MFR = manufacturer. This firmware lacks many many standard/vanilla openwrt features & packages & options , No access to openwrt repo , user-interface (UI) is also very different & heavily customized by MTK, etc etc. So current firmware is pretty much USELESS for any custom or advanced routing functionalities or network tools.

OPENWRT WEBSITE GUIDE/TOOLS: in OpenWRT website TOH page(s) , i see that Tenbay KuWfi T-MB5EU router has similar chipset & similar functionality as this "ZR-2660 WiFi6 AX1800" router. This "ZR-2660 WiFi6 AX1800" router also has some similarity with MR70X router.

i do not have those other routers , so i do not know if PCB is same as this router, or not. i added picture of this router , who has T-MB5EU or MR70X, is free to compare. i do not think PCB is same . i think, these manufacturers obtain circuit diagram from similar developer or develops on their own , and as the chipset are same so they will have similar PCB design, but not-exact 100% same , i'm sure each MFR modifies the circuit design on their own to suit with their available component supply & target size, etc, so PCB layout will be different . Their firmware is different / customized , not-only because of slightly different HW component , because some MFR puts their brand name in firmware & UI , customizes it , selects + unselects various options , & there are also some MFR who wud not do huge modification(s) / customization(s) . Unfortunately this router's MFR decided to use the MTK-SDK-OpenWRT based deeply customized openwrt , which now they regret.

atErik_RTR_wifi6-ax1800_MT7621AT-MT7975-MT7905_pcb-11_IMG_0158 atErik_RTR_wifi6-ax1800_MT7621AT-MT7975-MT7905_pcb-11_IMG_01581600×1200 208 KB

i have purchased this "ZR-2660 WiFi6 AX1800" router with a custom order:

i have changed their general router's hardware components : upgraded the RAM ( into 512MB ) and ROM (to 128MB), etc, and added USB 2.0 port & added an UART port.

MANUFACTURER=MFR HAS SHARED SOME TOOLS:

mfr shared tools (with some conditions) in order to help me, so that i'm able to compile and load and run the latest stable standard / vanilla openwrt in this router / PCB. Per our deal+agreement, manufacturer=MFR would help (aka: provide tools) , to upgrade core mtk-openwrt v15 into standard / vanilla openwrt v21.x or v19.x , and i have to do the compile/load work.

MFR shared these tools:

(1) MTK SDK based MTK-OpenWRT : mtk-openwrt-lede-4.2.1.0-20200612-d2c8e460.tar.xz (991MB), (2) MT7975 wifi drivers : mt7915_20201106-34067b.tar.xz (8.7MB). (3a) Few PDF files : MT7621_MT7915D_Build_SOP_20200203.pdf, (3b) MT7621_ProgrammingGuide_GSW_v01.pdf, (3c) MT7921LEN_MT7921LUN_MT7921LSN_Datasheet.pdf, (4) UART-to-USB adapter. According to MFR , initial mtk-openwrt v15 firmware was developed/compiled in ubuntu.

JTAG:

i know exact contact points where EJTAG connections go in PCB, but the points are very very micro, beyond my ability to solder cables from an EJTAG port.

1ST ATTEMPT TO LOAD FIRMWARE:

i have downloaded the T-MB5EU router's firmware from openwrt site, and tried to upgrade this router from firmware's upgrade UI : upgrade process shows checksum is ok, but upgrade did not work, firmware remained same.

SO WHAT ARE MY OPTIONS TO UPGRADE MFR'S CUSTOM FIRMWARE, INTO LAST STABLE OPENWRT ?

i'm currently using macOS catalina v10.15.7 on a (very) old macbook, i would like to be able to compile/load from this macOS platform:

see more info on Build on macOS. i can also run Ubuntu linux inside VirtualBox in this old macbook.

WHAT DEVELOPMENT TOOLS I WOULD NEED IN MACOS ?

i have older Xcode, and Command-Line-Tools in macOS. more info for macOS is here : Build on macOS. Package Manager : i do not want to use homebrew (as it steals/shares data for google) , i prefer MacPorts.

WHAT DEPENDENCIES I NEED TO LOAD IN MACOS ?

dependencies aka: prerequisites are mentioned here.

HOW CAN I BACKUP EXISTING FIRMWARE 1st, before loading another ?

WHAT ARE THE BUILD / COMPILE STEPS ? To build/compile, should i do/apply these below steps ? ( these are specified inside MT7621_MT7915D_Build_SOP_20200203.pdf file )

cmd-01 : tar xvf mtk-openwrt-lede-4.2.0.0-20200203-28cb0822.tar.xz cmd-02 : tar -xzvf "mt7915_20201106-34067b.tar.xz" cmd-03 : cp -rf mt7915_20201106-34067b/* mtk-openwrt-lede-4.2.0.0 cmd-04 : cd mtk-openwrt-lede-4.2.0.0 cmd-05 : cp -f autobuild/mt7621-mt7915-AP-AX1800/.config . cmd-06 : cp -f autobuild/mt7621-mt7915-AP-AX1800/config-4.4 target/linux/ramips/mt7621/config-4.4 cmd-07 : make defconfig cmd-08 : make V=s

AT WHICH POINT I'M SUPPOSE TO ADD THE LAST STABLE OPENWRT SOURCE INTO ABOVE PROCESS BEFORE USING THE "make" ? IN WHICH DIRECTORY CAN I PLACE THE LAST STABLE OPENWRT ?

( More info on standard / vanilla openwrt build/compile is here ).

After compile/build, the NAND compatible version suppose to be here: bin/targets/ramips/mt7621/lede-ramips-mt7621-mt7621-rfb-ax-nand-squashfs-sysupgrade.bin

The MT7621_MT7915D_Build_SOP_20200203.pdf file is also showing this below instruction in it's most bottom side:

cmd : make kernel_menuconfig but at which point i'm suppose to do that ? before the cmd-07 or after it ?

HW DRIVERS:

DO I NEED TO EXTRACT ANY DRIVER FILES FROM EXISTING MTK-OPENWRT FIRMWARE SOURCE , TO ADD INTO LAST STABLE/VANILLA/STANDARD OPENWRT ? if so, from which directory or after which step i can obtain that ?

HOW CAN I UPLOAD THE bin FIRMWARE FILE INTO FLASH MEMORY VIA UART-to-USB ADAPTER ?

more info on uploading firmware into router via UART-to-USB serial adapter : here.

REQUESTS TO DEVS:

Please kindly add/provide DETAIL & helpful answer / response, so that other users with similar problem/issues, can also update their such router (which has MTK SDK based old or deeply modified OpenWRT), to use last stable openwrt.

Q-and-A:

i have added (some) answer for my own Questions under some Qstn, if you want to add more/better answer/guidance please do so kindly. Obviously some questions i could not answer by myself or did not find an answer (with short time search), so i created this topic, please HELP & post answer for those unanswered Questions.

Thanks in advance.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有