Support for Comtrend WR-5931: AC2600 (same base as Edimax Gemini RG21S)

Note: no firmware download available
fccid L9VWR5931
According to fcc NDD9568771606 is a rebranded L9VWR5931
Tried the edimax firmware, received 'bad magic packet'
Question is what is needed to support this router?
I have a serial console and can provide

Partial serial console boot.

U-Boot 1.1.3 (Nov  7 2017 - 16:05:28)
Board: Ralink APSoC DRAM:  128 MB
relocate_code Pointer at: 87fa0000
Config XHCI 40M PLL 
flash manufacture id: c2, device id 20 18
find flash: MX25L12805D
*** Warning - bad CRC, using default environment

Ralink UBoot Version: 5.0.3.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/4
Flash component: SPI Flash
Date:Nov  7 2017  Time:16:05:28

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 =128 Mbytes
Reset_MT7530
set LAN/WAN WLLLL
default: 3
3: System Boot system code via Flash.
Booting image at bc050000 ...
Magic number at 0xBC050000 
   Image Name:   Linux Kernel Image
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    6539893 Bytes =  6.2 MB
   Load Address: 81001000
   Entry Point:  81438aa0
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
Transferring control to Linux (at address 81438aa0) ...
Giving linux memsize in MB, 128
Starting kernel ...
LINUX started...

Boot console log:

     		MT7621   stage1 code 10:33:55 (ASIC)
     		CPU=500000000 HZ BUS=125000000 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: 0x7, 1/0 = 540/484 1D000000
PLL4 FB_DL: 0x13, 1/0 = 513/511 4D000000
PLL2 FB_DL: 0x17, 1/0 = 641/383 5D000000
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    0    0

000E:|    0    0    0    0    0    0    0    0    0    0    1    1    1    1    1    1

000F:|    0    0    0    0    0    1    1    1    1    1    1    1    1    1    1    0

0010:|    1    1    1    1    1    1    1    1    1    1    0    0    0    0    0    0

0011:|    1    1    1    1    1    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 = 16
rank 0 fine = 40
B:|    0    0    0    0    0    0    0    0    0    0    1    1    1    0    0    0
opt_dle value:11
DRAMC_R0DELDLY[018]=00001F1E

		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 |    9 6 7 7 6 6 7 4 4 7 
10 |    6 9 9 11 7 9 

2.dqs window
x=pass dqs delay value (min~max)center 
y=0-7bit DQ of every group
input delay:DQS0 =30 DQS1 = 31
bit	DQS0	 bit      DQS1
0  (1~58)29  8  (1~55)28
1  (1~58)29  9  (1~60)30
2  (1~58)29  10  (1~57)29
3  (1~58)29  11  (1~58)29
4  (1~57)29  12  (1~61)31
5  (1~58)29  13  (1~59)30
6  (1~58)29  14  (1~60)30
7  (1~60)30  15  (1~61)31

3.dq delay value last

bit|    0  1  2  3  4  5  6  7  8   9
--------------------------------------
0 |    10 7 8 8 7 7 8 4 7 8 
10 |    8 11 9 12 8 9 

     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 = ffff00aa
dqs_perbyte_dly.last_dqdly_pass[1]=15,  finish count=1 
DQ loop=14, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqdly_pass[0]=14,  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=125000000 HZ
U-Boot 1.1.3 (Nov  7 2017 - 16:05:28)
Board: Ralink APSoC DRAM:  128 MB
relocate_code Pointer at: 87fa0000
************** Init GPIO Pin Start **************
************** Init GPIO Pin Done **************
Config XHCI 40M PLL 
flash manufacture id: c2, device id 20 18
find flash: MX25L12805D

Ralink UBoot Version: 5.0.3.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/4
Flash component: SPI Flash
Date:Nov  7 2017  Time:16:05:28

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 =128 Mbytes
#Reset_MT7530

set LAN/WAN WLLLL

default: 3

 2  1  0 

   

3: System Boot system code via Flash.
## Booting image at bc050000 ...
Magic number at 0xBC050000 
   Image Name:   Linux Kernel Image
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    6539893 Bytes =  6.2 MB
   Load Address: 81001000
   Entry Point:  81438aa0
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 81438aa0) ...
## Giving linux memsize in MB, 128

Starting kernel ...

LINUX started...

 THIS IS ASIC

SDK 5.0.S.0
Linux version 3.10.14+ (root@localhost.localdomain) (gcc version 4.6.3 (Buildroot 2012.11.1) ) #135 SMP Fri Sep 7 16:08:06 CST 2018

 The CPU feqenuce set to 880 MHz
GCMP present
CPU0 revision is: 0001992f (MIPS 1004Kc)
Software DMA cache coherency
Determined physical RAM map:
 memory: 08000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone ranges:
  DMA      [mem 0x00000000-0x00ffffff]
  Normal   [mem 0x01000000-0x07ffffff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x00000000-0x07ffffff]
Detected 3 available secondary CPU(s)
Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
PERCPU: Embedded 7 pages/cpu @81b5b000 s6912 r8192 d13568 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: console=ttyS1,57600n8 root=/dev/ram0 console=ttyS0
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Writing ErrCtl register=000100ba
Readback ErrCtl register=000100ba
Memory: 119220k/131072k available (4364k kernel code, 11852k reserved, 1459k data, 4472k init, 0k highmem)
Hierarchical RCU implementation.
NR_IRQS:128
console [ttyS1] enabled
Calibrating delay loop... 577.53 BogoMIPS (lpj=1155072)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
launch: starting cpu1
launch: cpu1 gone!
CPU1 revision is: 0001992f (MIPS 1004Kc)
Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Synchronize counters for CPU 1: done.
launch: starting cpu2
launch: cpu2 gone!
CPU2 revision is: 0001992f (MIPS 1004Kc)
Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Synchronize counters for CPU 2: done.
launch: starting cpu3
launch: cpu3 gone!
CPU3 revision is: 0001992f (MIPS 1004Kc)
Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Synchronize counters for CPU 3: done.
Brought up 4 CPUs
devtmpfs: initialized
NET: Registered protocol family 16
release PCIe RST: RALINK_RSTCTRL = 7000000
PCIE PHY initialize
***** Xtal 40MHz *****
start MT7621 PCIe register access
RALINK_RSTCTRL = 7000000
RALINK_CLKCFG1 = 77ffeff8

*************** MT7621 PCIe RC mode *************
PCIE2 no card, disable it(RST&CLK)
pcie_link status = 0x3
RALINK_RSTCTRL= 3000000
*** Configure Device number setting of Virtual PCI-PCI bridge ***
RALINK_PCI_PCICFG_ADDR = 21007f2 -> 21007f2
PCIE0 enabled
PCIE1 enabled
interrupt enable status: 300000
Port 1 N_FTS = 1b105000
Port 0 N_FTS = 1b105000
config reg done
init_rt2880pci done
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:00.0: BAR 0: can't assign mem (size 0x80000000)
pci 0000:00:01.0: BAR 0: can't assign mem (size 0x80000000)
pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
pci 0000:00:00.0: BAR 1: assigned [mem 0x60200000-0x6020ffff]
pci 0000:00:01.0: BAR 1: assigned [mem 0x60210000-0x6021ffff]
pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
pci 0000:00:00.0: PCI bridge to [bus 01]
pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
pci 0000:02:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bit]
pci 0000:00:01.0: PCI bridge to [bus 02]
pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff]
PCI: Enabling device 0000:00:00.0 (0004 -> 0006)
PCI: Enabling device 0000:00:01.0 (0004 -> 0006)
BAR0 at slot 0 = 0
bus=0x0, slot = 0x0
res[0]->start = 0
res[0]->end = 0
res[1]->start = 60200000
res[1]->end = 6020ffff
res[2]->start = 0
res[2]->end = 0
res[3]->start = 0
res[3]->end = 0
res[4]->start = 0
res[4]->end = 0
res[5]->start = 0
res[5]->end = 0
BAR0 at slot 1 = 0
bus=0x0, slot = 0x1
res[0]->start = 0
res[0]->end = 0
res[1]->start = 60210000
res[1]->end = 6021ffff
res[2]->start = 0
res[2]->end = 0
res[3]->start = 0
res[3]->end = 0
res[4]->start = 0
res[4]->end = 0
res[5]->start = 0
res[5]->end = 0
bus=0x1, slot = 0x0, irq=0x4
res[0]->start = 60000000
res[0]->end = 600fffff
res[1]->start = 0
res[1]->end = 0
res[2]->start = 0
res[2]->end = 0
res[3]->start = 0
res[3]->end = 0
res[4]->start = 0
res[4]->end = 0
res[5]->start = 0
res[5]->end = 0
bus=0x2, slot = 0x1, irq=0x18
res[0]->start = 60100000
res[0]->end = 601fffff
res[1]->start = 0
res[1]->end = 0
res[2]->start = 0
res[2]->end = 0
res[3]->start = 0
res[3]->end = 0
res[4]->start = 0
res[4]->end = 0
res[5]->start = 0
res[5]->end = 0
Switching to clocksource MIPS
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP: reno registered
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
4 CPUs re-calibrate udelay(lpj = 1167360)
fuse init (API version 7.22)
msgmni has been set to 232
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x1e000d00 (irq = 27) is a 16550A
serial8250: ttyS1 at MMIO 0x1e000c00 (irq = 26) is a 16550A
brd: module loaded
flash manufacture id: c2, device id 20 18
MX25L12805D(c2 2018c220) (16384 Kbytes)
mtd .name = raspi, .size = 0x01000000 (16M) .erasesize = 0x00010000 (64K) .numeraseregions = 0
Creating 7 MTD partitions on "raspi":
0x000000000000-0x000000030000 : "Bootloader"
0x000000030000-0x000000040000 : "Config"
0x000000040000-0x000000050000 : "Factory"
0x000000050000-0x000000a50000 : "Uimage"
0x000000a50000-0x000000fd0000 : "Reserved"
0x000000fd0000-0x000000ff0000 : "nvram"
0x000000ff0000-0x000001000000 : "hwconfig"
IMQ driver loaded successfully. (numdevs = 2, numqueues = 1)
	Hooking IMQ after NAT on PREROUTING.
	Hooking IMQ before NAT on POSTROUTING.
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
PPP generic driver version 2.4.2
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
PPTP driver version 0.8.5
rdm_major = 253
GMAC1_MAC_ADRH -- : 0x0000000c
GMAC1_MAC_ADRL -- : 0x432880a2
Ralink APSoC Ethernet Driver Initilization. v3.1  1024 rx/tx descriptors allocated, mtu = 1500!
GMAC1_MAC_ADRH -- : 0x0000000c
GMAC1_MAC_ADRL -- : 0x432880c3
PROC INIT OK!
*****run project phy.
FM_OUT value: u4FmOut = 0(0x00000000)
xhci-hcd xhci-hcd: xHCI Host Controller
xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 1
xhci-hcd xhci-hcd: irq 22, io mem 0x1e1c0000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
xhci-hcd xhci-hcd: xHCI Host Controller
xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
Ralink APSoC Hardware Watchdog Timer
GACT probability on
Mirror/redirect action on
Failed to load ipt action
Simple TC action Loaded
netem: version 1.3
u32 classifier
    Performance counters on
    input device check on
    Actions configured
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (1862 buckets, 7448 max)
ctnetlink v0.93: registering with nfnetlink.
xt_time: kernel timezone is -0000
gre: GRE over IPv4 demultiplexor driver
ip_tables: (C) 2000-2006 Netfilter Core Team
Type=Restricted Cone
ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
arp_tables: (C) 2002 David S. Miller
TCP: cubic registered
NET: Registered protocol family 17
l2tp_core: L2TP core driver, V2.0
l2tp_ppp: PPPoL2TP kernel driver, V2.0
8021q: 802.1Q VLAN Support v1.8
Freeing unused kernel memory: 4472K (815b2000 - 81a10000)

init started: BusyBox v1.12.1 (2018-08-20 10:11:39 CST)

starting pid 50, tty '': '/etc/init.d/rcS sysinit'
rc ver. 1.0.7
Initializing...Success!
Mounting file systems...Success!
Creating devices...Success!
Creating loopback device...Success!

starting pid 59, tty '': '/etc/init.d/rcS start'
rc ver. edx_gpio: module license 'unspecified' taints kernel.
1.0.7
InitializDisabling lock debugging due to kernel taint
ing...Success!
Initializing EDX GPIO...Loading dynamic Done
libraries...Success!
Acelink events notification ver. 1.6
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_REGISTER name=NAME=lo hold=
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_UP name=NAME=lo hold=
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_REGISTER name=NAME=imq0 hold=
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_REGISTER name=NAME=imq1 hold=
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_REGISTER name=NAME=eth2 hold=
NVRAM access daemon Ver. 1.0 Build 20180820101800
daemon<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_REGISTER name=NAME=teql0 hold=
ize process
Starting L0000Config.so...Device.isDefault = 1
Done ! (ret=0)
[wlan_main:1386]*** wlan_main start
killall: bndstrg: no process killed
register mt_drv


=== pAd = c2b01000, size = 3746832 ===

<-- RTMPAllocAdapterBlock, Status=0
get_wdev_by_idx: invalid idx(0)
pAd->PciHif.CSRBaseAddress =0xc2a00000, csr_addr=0xc2a00000!
get_wdev_by_idx: invalid idx(0)
RTMPInitPCIeDevice():device_id=0x7615
DriverOwn()::Try to Clear FW Own...
DriverOwn()::Success to clear FW Own
mt_pci_chip_cfg(): HWVer=0x8a10, FWVer=0x8a10, pAd->ChipID=0x7615
mt_pci_chip_cfg(): HIF_SYS_REV=0x76150001
RtmpChipOpsHook(493): Not support for HIF_MT yet! MACVersion=0x0
mt7615_init()-->
Use 1st iPAiLNA default bin.
Use 0st /etc_ro/wlan/MT7615E_EEPROM1.bin default bin.
<--mt7615_init()
ChipOpsMCUHook
cut_through_token_list_init(): TokenList inited done!id_head/tail=0/4096
cut_through_token_list_init(): 85ed8f88,85ed8f88
cut_through_token_list_init(): TokenList inited done!id_head/tail=0/4096
cut_through_token_list_init(): 85ed8f98,85ed8f98
<-- RTMPAllocTxRxRingMemory, Status=0


=== pAd = c3001000, size = 3746832 ===

<-- RTMPAllocAdapterBlock, Status=0
get_wdev_by_idx: invalid idx(0)
pAd->PciHif.CSRBaseAddress =0xc2f00000, csr_addr=0xc2f00000!
get_wdev_by_idx: invalid idx(0)
RTMPInitPCIeDevice():device_id=0x7615
DriverOwn()::Try to Clear FW Own...
DriverOwn()::Success to clear FW Own
mt_pci_chip_cfg(): HWVer=0x8a10, FWVer=0x8a10, pAd->ChipID=0x7615
mt_pci_chip_cfg(): HIF_SYS_REV=0x76150001
RtmpChipOpsHook(493): Not support for HIF_MT yet! MACVersion=0x0
mt7615_init()-->
Use 2nd iPAiLNA default bin.
Use 1st /etc_ro/wlan/MT7615E_EEPROM2.bin default bin.
<--mt7615_init()
ChipOpsMCUHook
cut_through_token_list_init(): TokenList inited done!id_head/tail=0/4096
cut_through_token_list_init(): 86a45208,86a45208
cut_through_token_list_init(): TokenList inited done!id_head/tail=0/4096
cut_through_token_list_init(): 86a45218,86a45218
<-- RTMPAllocTxRxRingMemory, Status=0
pci probe count=2
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_POST_INIT name=NAME=ra0 hold=
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_REGISTER name=NAME=ra0 hold=
[readWlConfig<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_POST_INIT name=NAME=rai0 hold=
:342]NULL Device<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_REGISTER name=NAME=rai0 hold=
.LAN.2G.ShortGI.Enable
[readWlConfig:342]NULL Device.LAN.2G.STBC.Enable
[readWlConfig:342]NULL Device.LAN.2G.Aggregation.Enable
[readWlConfig:342]NULL Device.LAN.2G.Beamforming.Enable
[readWlConfig:342]NULL Device.LAN.2G.MUMiMO.Enable
[readWlConfig:34get_wdev_by_idx: invalid idx(0)
2]NULL Device.LAget_wdev_by_idx: invalid idx(0)
N.2G.0.RS.IPAddrget_wdev_by_idx: invalid idx(0)
ess
[readWlConfget_wdev_by_idx: invalid idx(0)
ig:342]NULL Deviget_wdev_by_idx: invalid idx(0)
ce.LAN.2G.0.RS.Pget_wdev_by_idx: invalid idx(0)
ort
[readWlConfget_wdev_by_idx: invalid idx(0)
ig:342]NULL DeviDriverOwn()::Return since already in Driver Own...
ce.LAN.2G.0.RS.P===============================
assword
[readWlCurrent DevInfo Num: 0
Config:342]NULL ===============================
Device.LAN.2G.0.===============================
RS.Enable
[readCurrent BssInfo Num: 0
WpsConfig:144]NU===============================
LL Device.LAN.2G===============================
.WPS.FriendlyNamCurrent StaRec Num: 0
e
[readWpsConfi===============================
g:144]NULL Devic<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_PRE_UP name=NAME=ra0 hold=
APWdsInitialize():WdsEntry[0]
APWdsInitialize():WdsEntry[1]
APWdsInitialize():WdsEntry[2]
APWdsInitialize():WdsEntry[3]
RtmpOSFileOpen(): Error 2 opening /etc/Wireless/RT2860/RT2860_5G.dat
Open file "/etc/Wireless/RT2860/RT2860_5G.dat" failed!
E2pAccessMode=2
SSID[0]=WR-5931-2G5357, EdcaIdx=0
SSID[1]=c8d12ab95357, EdcaIdx=0
SSID[2]=ON, EdcaIdx=0
cfg_mode=9
cfg_mode=9
wmode_band_equal(): Band Equal!
e[34m[TxPower] BAND0: 100 
e[0me[34m[SKUenable] BAND0: 1 
e[0me[34m[PERCENTAGEenable] BAND0: 1 
e[0mAPEdca0
APEdca1
APEdca2
APEdca3

HT: Ext Channel = BELOW
WtcSetMaxStaNum: MaxStaNum:83, BssidNum:5, WdsNum:4, ApcliNum:2, MaxNumChipRept:32, MinMcastWcid:121
Top Init Done!
Use alloc_skb
RX[0] DESC a0c0e000 size = 8192
RX[1] DESC a0c10000 size = 8192
Hif Init Done!
ctl->txq = c2e91a8c
ctl->rxq = c2e91a98
ctl->ackq = c2e91aa4
ctl->kickq = c2e91ab0
ctl->tx_doneq = c2e91abc
ctl->rx_doneq = c2e91ac8
mt7615_fw_prepare():FW(8a10), HW(8a10), CHIPID(7615))
mt7615_fw_prepare(2752): MT7615_E3, USE E3 patch and ram code binary image
AndesMTLoadRomMethodFwDlRing(1036), cap->rom_patch_len(11150)
AndesRestartCheck: Current TOP_MISC2(0x1)
AndesRestartCheck: (TOP_MISC2 = 1), ready to continue...RET(0)
20170304031443a

platform = 
ALPS
hw/sw version = 
8a108a10
patch version = 
00000010
e.LAN.2G.WPS.ManPatch SEM Status=2
ufacturerUrl
[rMtCmdPatchSemGet:(ret = 0)
eadWpsConfig:144
Patch is not ready && get semaphore success, SemStatus(2)
]NULL Device.LANEventGenericEventHandler: CMD Success
.2G.WPS.ModelDesMtCmdAddressLenReq:(ret = 0)
cription
[readWMtCmdPatchFinishReq
psConfig:144]NULL Device.LAN.2G.WPS.ModelUrl
[readWpsConfig:144]NULL Device.LANEventGenericEventHandler: CMD Success
.2G.WPS.ModelNumSend checksum req..
ber
Patch SEM Status=3
MtCmdPatchSemGet:(ret = 0)

Release patch semaphore, SemStatus(3)
AndesMTEraseRomPatch
WfMcuHwInit: Before NICLoadFirmware, check IcapMode=0
AndesMTLoadFwMethodFwDlRing(810), cap->fw_len(459960)
Build Date:_201705121437
Build Date:_201705121437
AndesRestartCheck: Current TOP_MISC2(0x1)
AndesRestartCheck: (TOP_MISC2 = 1), ready to continue...RET(0)
EventGenericEventHandler: CMD Success
MtCmdAddressLenReq:(ret = 0)
EventGenericEventHandler: CMD Success
MtCmdAddressLenReq:(ret = 0)
MtCmdFwStartReq: override = 1, address = 540672
EventGenericEventHandler: CMD Success
Build Date:_201703141726
EventGenericEventHandler: CMD Success
MtCmdAddressLenReq:(ret = 0)
MtCmdFwStartReq: override = 4, address = 0
EventGenericEventHandler: CMD Success
WfMcuHwInit: NICLoadFirmware OK, Check IcapMode=0
MCU Init Done!
efuse_probe: efuse = 10000212
RtmpChipOpsEepromHook::e2p_type=2, inf_Type=5
RtmpEepromGetDefault::e2p_dafault=1
RtmpChipOpsEepromHook: E2P type(2), E2pAccessMode = 2, E2P default = 1
NVM is FLASH mode. dev_idx [0] FLASH OFFSET [0x0]
NICReadEEPROMParameters():Calling eeinit
e[34mNICReadEEPROMParameters: EEPROM 0x52 b303e[m
e[34mNICReadEEPROMParameters: EEPROM 0x52 b303e[m
Country Region from e2p = 1
mt7615_antenna_default_reset(): TxPath = 4, RxPath = 4
mt7615_antenna_default_reset(): DBDC 2G TxPath = 2, 2G RxPath = 2
mt7615_antenna_default_reset(): DBDC 5G TxPath = 2, 2G RxPath = 2
rtmp_read_txpwr_from_eeprom(243): Don't Support this now!
RTMPReadTxPwrPerRate(1382): Don't Support this now!
RcRadioInit(): DbdcMode=0, ConcurrentBand=1
RcRadioInit(): pRadioCtrl=85ed7440,Band=0,rfcap=3,channel=1,PhyMode=2
MtCmdSetDbdcCtrl:(ret = 0)
Band Rf: 1, Phy Mode: 2
AntCfgInit(2787): Not support for HIF_MT yet!
MtSingleSkuLoadParam: RF_LOCKDOWN Feature OFF !!!
MtBfBackOffLoadTable: RF_LOCKDOWN Feature OFF !!!
EEPROM Init Done!
mt_mac_init()-->
mt_mac_pse_init(2787): Don't Support this now!
mt7615_init_mac_cr()-->
mt7615_init_mac_cr(): TMAC_TRCR0=0x82783c8c
mt7615_init_mac_cr(): TMAC_TRCR1=0x82783c8c
MtAsicSetMacMaxLen(1313): Not finish Yet!
<--mt_mac_init()
CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
MAC Init Done!
MT7615BBPInit():BBP Initialization.....
	Band 0: valid=1, isDBDC=0, Band=2, CBW=1, CentCh/PrimCh=1/1, prim_ch_idx=0, txStream=2
	Band 1: valid=0, isDBDC=0, Band=0, CBW=0, CentCh/PrimCh=0/0, prim_ch_idx=0, txStream=0
MT7615BBPInit() todo 
PHY Init Done!
tx_pwr_comp_init():NotSupportYet!
MtCmdSetMacTxRx:(ret = 0)
CountryCode(2.4G/5G)=0/0, RFIC=25, PHY mode(2.4G/5G)=14/14, support 11 channels
WifiSysOpen(), wdev idx = 0
wdev_attr_update(): wdevId0 = c8:d1:2a:b9:53:57
MtCmdSetDbdcCtrl:(ret = 0)
ApAutoChannelAtBootUp----------------->
ApAutoChannelAtBootUp: AutoChannelBootup = 0, AutoChannelFlag = 0
ApAutoChannelAtBootUp<-----------------
MtAsicSetChBusyStat(865): Not support for HIF_MT yet!
[PMF]APPMFInit:: apidx=0, MFPC=0, MFPR=0, SHA256=0
[PMF]WPAMakeRsnIeCap: RSNIE Capability MFPC=0, MFPR=0
HcUpdatePhyMode(): Update PhyMode for all wdev for this band PhyMode:14,Channel=11
CountryCode(2.4G/5G)=0/0, RFIC=25, PHY mode(2.4G/5G)=14/14, support 11 channels
Enable 20/40 BSSCoex Channel Scan(BssCoex=1)
MtCmdSetMacTxRx:(ret = 0)
mt7615_apply_dcoc() : reload Central CH [4] BW [0] from cetral freq [2432]  offset [2300] 
MtCmdGetRXDCOCCalResult:(ret = 0)
mt7615_apply_dpd() : reload Central CH [4] BW [0] from cetral freq [2422] i[44] offset [4b20] 
MtCmdGetTXDPDCalResult:(ret = 0)
MtCmdChannelSwitch: control_chl = 4,control_ch2=0, central_chl = 4 DBDCIdx= 0, Band= 0 
BW = 0,TXStream = 4, RXStream = 4, scan(1)
SYNC - BBP R4 to 20MHz.l
mt7615_apply_dcoc() : reload Central CH [5] BW [0] from cetral freq [2432]  offset [2300] 
MtCmdGetRXDCOCCalResult:(ret = 0)
mt7615_apply_dpd() : reload Central CH [5] BW [0] from cetral freq [2442] i[45] offset [4bf8] 
MtCmdGetTXDPDCalResult:(ret = 0)
MtCmdChannelSwitch: control_chl = 5,control_ch2=0, central_chl = 5 DBDCIdx= 0, Band= 0 
BW = 0,TXStream = 4, RXStream = 4, scan(1)
SYNC - BBP R4 to 20MHz.l
:MtCmdPktBudgetCtrl: bssid(255),wcid(65535),type(0)
mt7615_apply_dcoc() : reload Central CH [6] BW [0] from cetral freq [2432]  offset [2300] 
MtCmdGetRXDCOCCalResult:(ret = 0)
mt7615_apply_dpd() : reload Central CH [6] BW [0] from cetral freq [2442] i[45] offset [4bf8] 
MtCmdGetTXDPDCalResult:(ret = 0)
MtCmdChannelSwitch: control_chl = 6,control_ch2=0, central_chl = 6 DBDCIdx= 0, Band= 0 
BW = 0,TXStream = 4, RXStream = 4, scan(1)
SYNC - BBP R4 to 20MHz.l
 
MtCmdGetTXDPDCalResult:(ret = 0)
MtCmdChannelSwitch: control_chl = 10,control_ch2=0, central_chl = 10 DBDCIdx= 0, Band= 0 
BW = 0,TXStream = 4, RXStream = 4, scan(1)
SYNC - BBP R4 to 20MHz.l
mt7615_apply_dcoc() : reload Central CH [11] BW [0] from cetral freq [2467]  offset [2500] 
MtCmdGetRXDCOCCalResult:(ret = 0)
mt7615_apply_dpd() : reload Central CH [11] BW [0] from cetral freq [2462] i[46] offset [4cd0] 
MtCmdGetTXDPDCalResult:(ret = 0)
MtCmdChannelSwitch: control_chl = 11,control_ch2=0, central_chl = 11 DBDCIdx= 0, Band= 0 
BW = 0,TXStream = 4, RXStream = 4, scan(1)
SYNC - BBP R4 to 20MHz.l
wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:127 for WDEV_TYPE:1
 LinkToOmacIdx = 0, LinkToWdevType = 1
bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO),                 CmdBssInfoBmcRate.u2BcTransmit= 0,                 CmdBssInfoBmcRate.u2McTransmit = 0
[RadarStateCheck]Set into RD_NORMAL_MODE
MtCmdTxPowerSKUCtrl: fgTxPowerSKUEn: 1, BandIdx: 0
MtCmdTxPowerPercentCtrl: fgTxPowerPercentEn: 1, BandIdx: 0
MtCmdTxBfBackoffCtrl: fgTxBFBackoffEn: 0, BandIdx: 0
mt7615_bbp_adjust():rf_bw=0, ext_ch=0, PrimCh=11, HT-CentCh=11, VHT-CentCh=0
mt7615_apply_dcoc() : reload Central CH [11] BW [0] from cetral freq [2467]  offset [2500] 
MtCmdGetRXDCOCCalResult:(ret = 0)
mt7615_apply_dpd() : reload Central CH [11] BW [0] from cetral freq [2462] i[46] offset [4cd0] 
MtCmdGetTXDPDCalResult:(ret = 0)
MtCmdChannelSwitch: control_chl = 11,control_ch2=0, central_chl = 11 DBDCIdx= 0, Band= 0 
BW = 0,TXStream = 4, RXStream = 4, scan(0)
ap_phy_rrm_init_byRf(): AP Set CentralFreq at 11(Prim=11, HT-CentCh=11, VHT-CentCh=0, BBP_BW=0)
LeadTimeForBcn, OmacIdx = 0, WDEV_WITH_BCN_ABILITY
MtAsicSetRalinkBurstMode(2618): Not support for HIF_MT yet!
MtAsicSetPiggyBack(802): Not support for HIF_MT yet!
MtAsicSetTxPreamble(2597): Not support for HIF_MT yet!
ap_ftkd> Initialize FT KDP Module...
Main bssid = c8:d1:2a:b9:53:57
AsicRadioOnOffCtrl(): DbdcIdx=0 RadioOn
MtCmdSetMacTxRx:(ret = 0)
fdb_enable()
MCS Set = ff ff ff ff 01
<==== mt_wifi_init, Status=0
MtCmdEDCCACtrl: BandIdx: 0, EDCCACtrl: 0 
MtCmdEDCCACtrl: BandIdx: 1, EDCCACtrl: 1 

Total allocated 4 WDS interfaces!
WtcSetMaxStaNum: MaxStaNum:83, BssidNum:5, WdsNum:4, ApcliNum:2, MaxNumChipRept:32, MinMcastWcid:121
red_is_enabled: set CR4/N9 RED Enable to 1.
cp_support_is_enabled: set CR4 CP_SUPPORT to Mode 2.
Correct apidx from 0 to 0 for WscUUIDInit
Generate UUID for apidx(0)
UUID: c2b335d8, len = 16
0x0000 : bc 32 9e 00 1d d8 11 b2 86 01 c8 d1 2a b9 53 57 

<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_POST_INIT name=NAME=ra1 hold=
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_REGISTER name=NAME=ra1 hold=
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_POST_INIT name=NAME=ra2 hold=
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_REGISTER name=NAME=ra2 hold=
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_POST_INIT name=NAME=ra3 hold=
interface ra0 does not exi<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_REGISTER name=NAME=ra3 hold=
st!
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_POST_INIT name=NAME=ra4 hold=
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_REGISTER name=NAME=ra4 hold=
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_POST_INIT name=NAME=wds0 hold=
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_REGISTER name=NAME=wds0 hold=
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_POST_INIT name=NAME=wds1 hold=
get_wdev_by_idx: invalid idx(0)
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_REGISTER name=NAME=wds1 hold=
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_POST_INIT name=NAME=wds2 hold=
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_REGISTER name=NAME=wds2 hold=
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_POST_INIT name=NAME=wds3 hold=
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_REGISTER name=NAME=wds3 hold=
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_POST_INIT name=NAME=apcli0 hold=
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_REGISTER name=NAME=apcli0 hold=
<deferred_gpio_event:188>argv[0]=/sbin/ev_broker i=5 class=2 paction=NETDEV_UP name=NAME=ra0 hold=

Is there more that can be provided?
note the Edimax Gemini RG21S will tftp boot, it just can't be flashed due to magic number?

Notes
Comtrend WR-5931 Firmware is available from second level support:
BR6877AC_Comtrent_1.02_upg.bin

Reference to Edimax Gemini RG21S thread.

Edimax RG21S

Can the boot loader be interrupted, and is the fw source available?

There seems to be "2 1 0" countdown in the bootlog visible above, just before it boots the option "System Boot system code via Flash.", but no interrupt key is given.

Yes, it can be. (It defaults to 3)

I've tried the options:

1: System Load Linux to SDRAM via TFTP.
2: System Load Linux Kernel then write to Flash via TFTP.
3: System Boot system code via Flash. (Default if no option selected)
4: System Enter Boot Command Line Interface.
5: System Load Boot Loader | F/W  then write to Flash via TFTP Client.
6: seems to be 3
7: System Load Boot Loader then write to Flash via Serial.
8: System Load UBoot to SDRAM via TFTP.
9: System Load Boot Loader then write to Flash via TFTP.

note: able to tftp boot the Edimax RG21S openwrt & Edimax factory fw.

I'll try and open a ticket with Comtrend / NexusLink Support and see if they will provide the fw source.
Thanks.

Does everything work when running the openwrt fw?

I will confirm with openwrt-22.03.0-rc1-ramips-mt7621-edimax_rg21s-squashfs-factory.bin

The only difference might be the switch for AP vs Router that doesn't appear on the edimax. (which would be minor)

1: System Load Linux to SDRAM via TFTP.
using openwrt-22.03.0-rc1-ramips-mt7621-edimax_rg21s-squashfs-factory.bin
I'll have to try wireless & hook up to internet for a full test, however the webadmin works:

boot log:

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2022.04.28 15:04:24 =~=~=~=~=~=~=~=~=~=~=~=


===================================================================

     		MT7621   stage1 code 10:33:55 (ASIC)

     		CPU=500000000 HZ BUS=125000000 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: 0x8, 1/0 = 727/297 21000000

PLL4 FB_DL: 0x13, 1/0 = 513/511 4D000000

PLL2 FB_DL: 0x17, 1/0 = 579/445 5D000000

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    0    0

000E:|    0    0    0    0    0    0    0    0    0    0    1    1    1    1    1    1

000F:|    0    0    0    0    0    1    1    1    1    1    1    1    1    1    1    0

0010:|    1    1    1    1    1    1    1    1    1    1    0    0    0    0    0    0

0011:|    1    1    1    1    1    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 = 16

rank 0 fine = 40

B:|    0    0    0    0    0    0    0    0    0    1    1    1    0    0    0    0

opt_dle value:10

DRAMC_R0DELDLY[018]=00001F1E

==================================================================

		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 |    9 5 7 7 6 6 7 4 4 6 

10 |    7 9 9 11 7 9 

--------------------------------------



==================================================================

2.dqs window

x=pass dqs delay value (min~max)center 

y=0-7bit DQ of every group

input delay:DQS0 =30 DQS1 = 31

==================================================================

bit	DQS0	 bit      DQS1

0  (1~57)29  8  (1~56)28

1  (1~56)28  9  (1~59)30

2  (1~60)30  10  (1~60)30

3  (1~58)29  11  (1~59)30

4  (1~57)29  12  (1~61)31

5  (1~58)29  13  (1~60)30

6  (1~56)28  14  (1~60)30

7  (1~60)30  15  (1~61)31

==================================================================

3.dq delay value last

==================================================================

bit|    0  1  2  3  4  5  6  7  8   9

--------------------------------------

0 |    10 7 7 8 7 7 9 4 7 7 

10 |    8 10 9 12 8 9 

==================================================================

==================================================================

     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 = ffff00aa

dqs_perbyte_dly.last_dqdly_pass[1]=15,  finish count=1 

DQ loop=14, cmp_err_1 = ffff0000

dqs_perbyte_dly.last_dqdly_pass[0]=14,  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=125000000 HZ

===================================================================



U-Boot 1.1.3 (Nov  7 2017 - 16:05:28)


Board: Ralink APSoC DRAM:  128 MB

relocate_code Pointer at: 87fa0000

************** Init GPIO Pin Start **************

************** Init GPIO Pin Done **************


Config XHCI 40M PLL 

flash manufacture id: c2, device id 20 18

find flash: MX25L12805D

============================================ 

Ralink UBoot Version: 5.0.3.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/4

Flash component: SPI Flash

Date:Nov  7 2017  Time:16:05:28

============================================ 

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 =128 Mbytes

#Reset_MT7530

set LAN/WAN WLLLL

default: 3



You choosed 1


 0 


   

1: System Load Linux to SDRAM via TFTP. 

 Please Input new ones /or Ctrl-C to discard

	Input device IP (192.168.1.4) ==:192.168.1.4

	Input server IP (192.168.1.8) ==:192.168.1.8

	Input Linux Kernel filename (openwrt-22.03.0-rc1-ramips-mt7621-edimax_rg21s-initramfs-kernel.bin) ==:openwrt-22.03.0-rc1-ramips-mt7621-edimax_rg21s-initramfs-kernel.bin


 NetLoop,call eth_halt ! 


 NetLoop,call eth_init ! 

Trying Eth0 (10/100-M)


 Waitting for RX_DMA_BUSY status Start... done



 ETH_STATE_ACTIVE!! 

(NetLoop 383) bd->bi_enetaddr = 00:00:aa:bb:cc:dd

(NetLoop 384) NetOurEther = 00:00:aa:bb:cc:dd

Select server or client model: 1/2

client model start

TFTP from server 192.168.1.8; our IP address is 192.168.1.4

Filename 'openwrt-22.03.0-rc1-ramips-mt7621-edimax_rg21s-initramfs-kernel.bin'.


 TIMEOUT_COUNT=10,Load address: 0x84000000

Loading: *checksum bad

checksum bad

checksum bad

checksum bad

Got ARP REPLY, set server/gtwy eth addr (40:8d:5c:bd:b6:6d)

Got it

#################################################################

	 #################################################################

	 #################################################################

	 #################################################################

	 #################################################################

	 #################################################################

	 #################################################################

	 #################################################################

	 #################################################################

	 #################################################################

	 #################################################################

	 #################################################################

	 #################################################################

	 #################################################################

	 #################################################################

	 #################################################################

	 #################################################################

	 #####

done

Bytes transferred = 5678275 (56a4c3 hex)

LoadAddr=84000000 NetBootFileXferSize= 0056a4c3

Automatic boot of image at addr 0x84000000 ...

## Booting image at 84000000 ...

Magic number at 0x84000000 

   Image Name:   MIPS OpenWrt Linux-5.10.111

   Image Type:   MIPS Linux Kernel Image (uncompressed)

   Data Size:    5678211 Bytes =  5.4 MB

   Load Address: 80001000

   Entry Point:  80001000

   Verifying Checksum ... OK

OK

No initrd

## Transferring control to Linux (at address 80001000) ...

## Giving linux memsize in MB, 128


Starting kernel ...




OpenWrt kernel loader for MIPS based SoC

Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>

Decompressing kernel... done!

Starting kernel at 80001000...


[    0.000000] Linux version 5.10.111 (builder@buildhost) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r19302-df622768da) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Wed Apr 20 10:37:37 2022
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Edimax RG21S
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] percpu: Embedded 15 pages/cpu s30160 r8192 d23088 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Writing ErrCtl register=000100b6
[    0.000000] Readback ErrCtl register=000100b6
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 116656K/131072K available (6989K kernel code, 629K rwdata, 824K rodata, 4152K init, 244K bss, 14416K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 256
[    0.000000] random: get_random_bytes called from 0x80842a80 with crng_init=0
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000013] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns
[    0.015853] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.033737] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.106058] pid_max: default: 32768 minimum: 301
[    0.115366] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.129771] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.147814] rcu: Hierarchical SRCU implementation.
[    0.157590] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.173077] smp: Bringing up secondary CPUs ...
[    0.182655] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.182665] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.182676] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.182803] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.243009] Synchronize counters for CPU 1: done.
[    0.305023] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.305031] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.305039] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.305086] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.363989] Synchronize counters for CPU 2: done.
[    0.424195] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.424204] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.424212] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.424263] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.483563] Synchronize counters for CPU 3: done.
[    0.543174] smp: Brought up 1 node, 4 CPUs
[    0.555319] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.574821] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.588652] pinctrl core: initialized pinctrl subsystem
[    0.600957] NET: Registered protocol family 16
[    0.611059] thermal_sys: Registered thermal governor 'step_wise'
[    0.612319] cpuidle: using governor teo
[    0.647745] random: fast init done
[    0.674577] clocksource: Switched to clocksource GIC
[    0.686508] NET: Registered protocol family 2
[    0.695377] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.710534] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.727125] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.742322] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.756243] TCP: Hash tables configured (established 1024 bind 1024)
[    0.769017] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.781902] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.795947] NET: Registered protocol family 1
[    0.804520] PCI: CLS 0 bytes, default 32
[    4.466946] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    4.483803] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    4.495338] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    4.515518] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    4.531892] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    4.543345] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    4.554706] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    4.566646] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    4.583587] printk: console [ttyS0] disabled
[    4.592075] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[    4.609986] printk: console [ttyS0] enabled
[    4.609986] printk: console [ttyS0] enabled
[    4.626531] printk: bootconsole [early0] disabled
[    4.626531] printk: bootconsole [early0] disabled
[    4.648389] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[    4.660396] spi-nor spi0.0: mx25l12805d (16384 Kbytes)
[    4.670750] 4 fixed-partitions partitions found on MTD device spi0.0
[    4.683442] Creating 4 MTD partitions on "spi0.0":
[    4.692988] 0x000000000000-0x000000030000 : "u-boot"
[    4.703862] 0x000000030000-0x000000040000 : "u-boot-env"
[    4.715865] 0x000000040000-0x000000050000 : "factory"
[    4.726932] 0x000000050000-0x000001000000 : "firmware"
[    4.796174] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    4.812036] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 20
[    4.829584] i2c /dev entries driver
[    4.839006] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    4.852422] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    4.870029] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    4.886340] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    4.902722] mt7621-pci 1e140000.pcie: Parsing DT failed
[    4.915568] NET: Registered protocol family 10
[    4.925996] Segment Routing with IPv6
[    4.933379] NET: Registered protocol family 17
[    4.942397] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    4.968558] 8021q: 802.1Q VLAN Support v1.8
[    4.980189] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    5.076835] mt7530 mdio-bus:1f wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7530 PHY] (irq=25)
[    5.098737] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=26)
[    5.120712] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7530 PHY] (irq=27)
[    5.142706] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7530 PHY] (irq=28)
[    5.164759] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=29)
[    5.187062] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[    5.203893] DSA: tree 0 setup
[    5.210206] rt2880-pinmux pinctrl: pcie is already enabled
[    5.221317] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    5.234688] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    5.252204] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    5.268500] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    5.284896] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[    5.299998] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[    5.314985] mt7621-pci 1e140000.pcie: failed to parse bus ranges property: -22
[    5.429549] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[    5.440663] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[    5.551907] mt7621-pci 1e140000.pcie: pcie2 no card, disable it (RST & CLK)
[    5.565778] mt7621-pci 1e140000.pcie: PCIE0 enabled
[    5.575487] mt7621-pci 1e140000.pcie: PCIE1 enabled
[    5.585205] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    5.603912] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[    5.616597] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    5.630292] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    5.643979] pci_bus 0000:00: root bus resource [bus 00-ff]
[    5.654918] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff] (bus address [0x00000000-0x0fffffff])
[    5.675233] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    5.687210] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    5.699692] pci 0000:00:00.0: reg 0x14: initial BAR value 0x00000000 invalid
[    5.713734] pci 0000:00:00.0: reg 0x14: [mem size 0x00010000]
[    5.725255] pci 0000:00:00.0: supports D1
[    5.733224] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    5.745096] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    5.757109] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    5.769594] pci 0000:00:01.0: reg 0x14: initial BAR value 0x00000000 invalid
[    5.783622] pci 0000:00:01.0: reg 0x14: [mem size 0x00010000]
[    5.795142] pci 0000:00:01.0: supports D1
[    5.803110] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    5.815840] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    5.831810] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    5.848015] pci 0000:01:00.0: [14c3:7615] type 00 class 0x000280
[    5.860037] pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    5.874077] pci 0000:01:00.0: reg 0x10: [mem size 0x00100000 64bit]
[    5.886737] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    5.917618] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    5.928057] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    5.940191] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    5.953714] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff pref]
[    5.968105] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    5.981525] pci 0000:02:00.0: [14c3:7615] type 00 class 0x000280
[    5.993543] pci 0000:02:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    6.007586] pci 0000:02:00.0: reg 0x10: [mem size 0x00100000 64bit]
[    6.020237] pci 0000:02:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    6.051113] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[    6.061545] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    6.073685] pci 0000:00:01.0:   bridge window [mem 0x60000000-0x600fffff]
[    6.087209] pci 0000:00:01.0:   bridge window [mem 0x60000000-0x600fffff pref]
[    6.101590] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    6.114835] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    6.128006] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    6.141874] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    6.155052] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    6.168917] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    6.182443] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    6.196833] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    6.210351] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[    6.224735] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[    6.238264] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[    6.251785] pci 0000:00:00.0: BAR 7: assigned [io  0x1e160000-0x1e160fff]
[    6.265305] pci 0000:00:01.0: BAR 7: assigned [io  0x1e161000-0x1e161fff]
[    6.278833] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    6.293396] pci 0000:00:00.0: PCI bridge to [bus 01]
[    6.303291] pci 0000:00:00.0:   bridge window [io  0x1e160000-0x1e160fff]
[    6.316815] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    6.330330] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    6.344723] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff 64bit]
[    6.359292] pci 0000:00:01.0: PCI bridge to [bus 02]
[    6.369178] pci 0000:00:01.0:   bridge window [io  0x1e161000-0x1e161fff]
[    6.382691] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    6.396207] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    6.427085] Freeing unused kernel memory: 4152K
[    6.436146] This architecture does not have kernel memory protection.
[    6.448985] Run /init as init process
[    6.456898] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx
[    6.920354] init: Console is alive
[    6.929275] init: - watchdog -
[    6.946965] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.968052] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.994742] init: - preinit -
[    7.191419] random: jshn: uninitialized urandom read (4 bytes read)
[    7.274309] random: jshn: uninitialized urandom read (4 bytes read)
[    7.434091] random: jshn: uninitialized urandom read (4 bytes read)
[    7.700887] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[    7.717028] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    7.724878] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[    7.747360] 8021q: adding VLAN 0 to HW filter on device lan1
[    7.761272] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[   10.907580] mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[   10.922570] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready
[   11.911557] mt7530 mdio-bus:1f lan1: Link is Down
[   11.930565] procd: - early -
[   11.936635] procd: - watchdog -
[   12.504538] procd: - watchdog -
[   12.511249] procd: - ubus -
[   12.578593] procd: - init -
Please press Enter to activate this console.
[   12.931273] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.997823] PPP generic driver version 2.4.2
[   13.007895] NET: Registered protocol family 24
[   13.023981] kmodloader: done loading kernel modules from /etc/modules.d/*
[   13.155930] urngd: v1.0.2 started.
[   13.333960] random: crng init done
[   13.340765] random: 7 urandom warning(s) missed due to ratelimiting
[   35.341464] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[   35.366200] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[   35.382294] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   35.386919] device eth0 entered promiscuous mode
[   35.409031] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   35.423437] 8021q: adding VLAN 0 to HW filter on device lan1
[   35.438292] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   35.452247] br-lan: port 1(lan1) entered blocking state
[   35.462754] br-lan: port 1(lan1) entered disabled state
[   35.474260] device lan1 entered promiscuous mode
[   35.507325] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[   35.521148] 8021q: adding VLAN 0 to HW filter on device lan2
[   35.536593] br-lan: port 2(lan2) entered blocking state
[   35.547132] br-lan: port 2(lan2) entered disabled state
[   35.559120] device lan2 entered promiscuous mode
[   35.578330] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[   35.592202] 8021q: adding VLAN 0 to HW filter on device lan3
[   35.608101] br-lan: port 3(lan3) entered blocking state
[   35.618590] br-lan: port 3(lan3) entered disabled state
[   35.631154] device lan3 entered promiscuous mode
[   35.651075] mt7530 mdio-bus:1f lan4: configuring for phy/gmii link mode
[   35.665015] 8021q: adding VLAN 0 to HW filter on device lan4
[   35.681270] br-lan: port 4(lan4) entered blocking state
[   35.691904] br-lan: port 4(lan4) entered disabled state
[   35.704701] device lan4 entered promiscuous mode
[   35.730887] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[   35.744837] 8021q: adding VLAN 0 to HW filter on device wan
[   41.635590] mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[   41.650597] br-lan: port 1(lan1) entered blocking state
[   41.661207] br-lan: port 1(lan1) entered forwarding state
[   41.673091] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready



BusyBox v1.35.0 (2022-04-20 10:37:37 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 22.03.0-rc1, r19302-df622768da
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/# 

Grab the stable, and you'll get the web ui.

Or install it manually.

You should be able to install by sysupgrading.

21.02.3 image URLs are in

That's the issue I have:

if I flash from u-boot option over tftp:

2: System Load Linux Kernel then write to Flash via TFTP.
 Warning!! Erase Linux in Flash then burn new one. Are you sure?(Y/N)
 Please Input new ones /or Ctrl-C to discard
        Input device IP (192.168.1.4) ==:192.168.1.4
        Input server IP (192.168.1.8) ==:192.168.1.8
        Input Linux Kernel filename (openwrt-22.03.0-rc1-ramips-mt7621-edimax_rg21s-initramfs-kernel.bin) ==:openwrt-22.03.0-rc1-ramips-mt7621-edimax_rg21s-squashfs-factory.bin

The flash completes, reboots

Partial boot log:

##### The CPU freq = 880 MHZ ####
 estimate memory size =128 Mbytes
#Reset_MT7530
set LAN/WAN WLLLL
default: 3                                                                                                                                                            0

3: System Boot system code via Flash.
## Booting image at bc050000 ...
Magic number at 0xBC050000
Bad Magic Number,00000000

Router halts after displaying Bad Magic Number.

-Yes can get back in with a reboot and back to U-Boot menu and flash back to Comtrend factory.

Probably have to modify something for the file to be accepted, or try to do a sysupgrade from within the RAM booted openwrt image.

There's a risk of bricking the device, though.

That's what I'm hoping to get solved, as the boot to SDRAM works, just not the factory flash.

As per the Edimax RG21S thread:

if I run:hexdump -n $((0x80)) -C BR6877AC_Comtrend_1.02_upg.bin

The result is :

00000000  43 53 59 53 00 00 10 01  00 00 07 00 52 4e 37 36  |CSYS........RN76|
00000010  b8 ca 63 00 27 05 19 56  8d 00 60 d2 5b 92 31 eb  |..c.'..V..`.[.1.|
00000020  00 63 ca 75 81 00 10 00  81 43 8a a0 79 de 9a 72  |.c.u.....C..y..r|
00000030  05 05 02 03 4c 69 6e 75  78 20 4b 65 72 6e 65 6c  |....Linux Kernel|
00000040  20 49 6d 61 67 65 00 00  00 00 00 00 00 00 00 00  | Image..........|
00000050  00 00 00 00 5d 00 00 80  00 00 db a0 00 00 00 00  |....]...........|
00000060  00 00 00 6f fd ff ff a3  b7 7f 89 3e 38 8e 35 e0  |...o.......>8.5.|
00000070  52 8b b7 96 b7 f2 ea 4c  da e4 92 54 1d 64 42 16  |R......L...T.dB.|
00000080

But this is going to require some developer knowledge help to go any father.
Thanks.