I bought a router on the MT7621A processor, help me to flash on Openwrt
Do you have a working serial connection and more specs about the chips inside the router?
yes there is a connection, I can also disassemble and take all the photos of chips
https://exe.ua/en/product/p273104/
usb port 3.0
That is a good start. Try to look for similar devices which are supported by OpenWRT and maybe your device can be supported.
tftp firmware log
===================================================================
MT7621 stage1 code 10:33:55 (ASIC)
CPU=500000000 HZ BUS=166666666 HZ
==================================================================
Change MPLL source from XTAL to CR...
do MEMPLL setting..
MEMPLL Config : 0x11100000
3PLL mode + External loopback
=== XTAL-40Mhz === DDR-1200Mhz ===
PLL3 FB_DL: 0xe, 1/0 = 626/398 39000000
PLL2 FB_DL: 0x12, 1/0 = 623/401 49000000
PLL4 FB_DL: 0x14, 1/0 = 575/449 51000000
do DDR setting..[01F40000]
Apply DDR3 Setting...(use customer AC)
0 8 16 24 32 40 48 56 64 72 80 88 96 104 112 120
--------------------------------------------------------------------------------
0000:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0001:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0002:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0003:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0004:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0005:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0006:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0007:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0008:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0009:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
000A:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
000B:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
000C:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
000D:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1
000E:| 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
000F:| 0 0 0 1 1 1 1 1 1 1 1 1 1 0 0 0
0010:| 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
0011:| 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0
0012:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0013:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0014:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0015:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0016:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0017:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0018:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0019:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001A:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001B:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001C:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001D:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001E:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001F:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
rank 0 coarse = 15
rank 0 fine = 64
B:| 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0
opt_dle value:9
DRAMC_R0DELDLY[018]=00001A1C
==================================================================
RX DQS perbit delay software calibration
==================================================================
1.0-15 bit dq delay value
==================================================================
bit| 0 1 2 3 4 5 6 7 8 9
--------------------------------------
0 | 7 5 6 10 6 6 7 4 3 6
10 | 6 8 6 9 5 7
--------------------------------------
==================================================================
2.dqs window
x=pass dqs delay value (min~max)center
y=0-7bit DQ of every group
input delay:DQS0 =28 DQS1 = 26
==================================================================
bit DQS0 bit DQS1
0 (1~53)27 8 (2~49)25
1 (1~49)25 9 (1~49)25
2 (1~52)26 10 (1~52)26
3 (1~55)28 11 (2~48)25
4 (1~52)26 12 (1~49)25
5 (1~52)26 13 (1~50)25
6 (1~55)28 14 (1~50)25
7 (1~54)27 15 (1~50)25
==================================================================
3.dq delay value last
==================================================================
bit| 0 1 2 3 4 5 6 7 8 9
--------------------------------------
0 | 8 8 8 10 8 8 7 5 4 7
10 | 6 9 7 10 6 8
==================================================================
==================================================================
TX perbyte calibration
==================================================================
DQS loop = 15, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqsdly_pass[0]=15, finish count=1
dqs_perbyte_dly.last_dqsdly_pass[1]=15, finish count=2
DQ loop=15, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqdly_pass[0]=15, finish count=1
dqs_perbyte_dly.last_dqdly_pass[1]=15, finish count=2
byte:0, (DQS,DQ)=(8,8)
byte:1, (DQS,DQ)=(8,8)
20,data:88
[EMI] DRAMC calibration passed
===================================================================
MT7621 stage1 code done
CPU=500000000 HZ BUS=166666666 HZ
===================================================================
U-Boot U-Boot 1.1.3 (Mar 13 2018 - 15:14:55)
Board: Ralink APSoC DRAM: 256 MB
relocate_code Pointer at: 8ffb8000
Config XHCI 40M PLL
flash manufacture id: c2, device id 20 17
find flash: MX25L6405D
*** Warning - bad CRC, using default environment
============================================
Ralink UBoot Version: 5.0.0.0
--------------------------------------------
ASIC MT7621A DualCore (MAC to MT7530 Mode)
DRAM_CONF_FROM: Auto-Detection
DRAM_TYPE: DDR3
DRAM bus: 16 bit
Xtal Mode=3 OCP Ratio=1/3
Flash component: SPI Flash
Date:Mar 13 2018 Time:15:14:55
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:256, ways:4, linesz:32 ,total:32768
##### The CPU freq = 880 MHZ ####
estimate memory size =256 Mbytes
#Reset_MT7530
set LAN/WAN LLLLW
Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP.
a: Load JCG firmware then write to Flash via TFTP.
You choosed 3
0
Reset pressed, entering rescue mode!
10: System Load Firmware then write to Flash via TFTP.
Input device IP (192.168.1.123) Input server IP (192.168.1.100) Input Linux Kernel filename ()
NetTxPacket = 0x8FFE5440
KSEG1ADDR(NetTxPacket) = 0xAFFE5440
NetLoop,call eth_halt !
NetLoop,call eth_init !
Trying Eth0 (10/100-M)
Waitting for RX_DMA_BUSY status Start... done
ETH_STATE_ACTIVE!!
TFTP from server 192.168.1.100; our IP address is 192.168.1.123
Filename 'firmware.bin'.
TIMEOUT_COUNT=10,Load address: 0x80100000
help me please create openwrt
So you have a lot of information of your device. Look at the m7621 target to see if there are similar or even identical devices. It might be as easy as a few edits to build OpenWRT for your device.
Are you familiar with OpenWRT's build environment?
I am not familiar with the environment, I am an experienced user
The problem is that no one but yourself can do this porting, as you're the only one with this model on their desk. Porting doesn't work by mechanically following steps 1
-2
-3
but requires independent -actual- development, first observing what the OEM firmware does and then applying what you've learned to your development tree. Development by proxy (as in remote-controlling another person) rarely works (never, except in the most trivial cases of very closely related devices), someone -you- has to do the heavy lifting themselves, depending on the difficult the devices poses, your experience (developer level, not user level) and your available time and equipment (serial console, spi-nor writer, etc.) this may take somewhere between a rainy weekend and (more likely) several weeks of midnight oil te get ready.
I dumped the flash drive using the programmer CH314A
http://enaveste.pp.ua:2020/usb/dump_wr-ac1210ug.bin
That is good practice. If things go south you can restore from that.
Have you seen and read this? https://openwrt.org/docs/guide-developer/add.new.device
Привет! Удалось что-то с прошивкой?
The preferred language in the OpenWrt forum is english.
When writing in your native language, please always provide an english translation.
This way other users all around the world can take part in the discussion and possibly benefit from the outcome, without having to use a translator.
Thanks!