Add support for b2368 (MT7621 +WDU1CPM1AWB)

hello all,
I have a ramips platform 4g router b2368
the version I have is b2368-57 (which is odu + idu)
Main specifications for the odu

*dmesg

Linux version 2.6.36 (willie@MBA-bsh1) (gcc version 4.6.3 (Buildroot 2012.11.1) ) #1 SMP Fri May 17 14:37:30 CST 2019

 The CPU feqenuce set to 880 MHz
GCMP present
CPU revision is: 0001992f (MIPS 1004Kc)
Software DMA cache coherency
Determined physical RAM map:
 memory: 08000000 @ 00000000 (usable)
Zone PFN ranges:
  Normal   0x00000000 -> 0x00008000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00008000
On node 0 totalpages: 32768
free_area_init_node: node 0, pgdat 80550980, node_mem_map 81000000
  Normal zone: 256 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 32512 pages, LIFO batch:7
Detected 3 available secondary CPU(s)
PERCPU: Embedded 7 pages/cpu @81103000 s6528 r8192 d13952 u65536
pcpu-alloc: s6528 r8192 d13952 u65536 alloc=16*4096
pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: console=ttyS1,57600n8 ubi.mtd=7 root=ubi0_0 ro rootfstype=ubifs
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)
Primary instruction cache 32kB, VIPT, , 4-waylinesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Writing ErrCtl register=000040c2
Readback ErrCtl register=000040c2
Memory: 123828k/131072k available (4120k kernel code, 7244k reserved, 1323k data, 220k init, 0k highmem)
Hierarchical RCU implementation.
        RCU debugfs-based tracing is enabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:128
Trying to install interrupt handler for IRQ24
Trying to install interrupt handler for IRQ25
Trying to install interrupt handler for IRQ22
Trying to install interrupt handler for IRQ9
Trying to install interrupt handler for IRQ10
Trying to install interrupt handler for IRQ11
Trying to install interrupt handler for IRQ12
Trying to install interrupt handler for IRQ13
Trying to install interrupt handler for IRQ14
Trying to install interrupt handler for IRQ16
Trying to install interrupt handler for IRQ17
Trying to install interrupt handler for IRQ18
Trying to install interrupt handler for IRQ19
Trying to install interrupt handler for IRQ20
Trying to install interrupt handler for IRQ21
Trying to install interrupt handler for IRQ23
Trying to install interrupt handler for IRQ26
Trying to install interrupt handler for IRQ27
Trying to install interrupt handler for IRQ28
Trying to install interrupt handler for IRQ15
Trying to install interrupt handler for IRQ8
Trying to install interrupt handler for IRQ29
Trying to install interrupt handler for IRQ30
Trying to install interrupt handler for IRQ31
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!
CPU revision is: 0001992f (MIPS 1004Kc)
Primary instruction cache 32kB, VIPT, , 4-waylinesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
launch: starting cpu2
launch: cpu2 gone!
CPU revision is: 0001992f (MIPS 1004Kc)
Primary instruction cache 32kB, VIPT, , 4-waylinesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
launch: starting cpu3
launch: cpu3 gone!
CPU revision is: 0001992f (MIPS 1004Kc)
Primary instruction cache 32kB, VIPT, , 4-waylinesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Brought up 4 CPUs
Synchronize counters across 4 CPUs: done.
NET: Registered protocol family 16
CONFIG_USB_NET_HUAWEI: Force RALINK_GPIO_CTRL0 = 86180
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 *************
PCIE0 no card, disable it(RST&CLK)
PCIE1 no card, disable it(RST&CLK)
PCIE2 no card, disable it(RST&CLK)
pcie_link status = 0x0
RALINK_RSTCTRL= 0
FPU Affinity set after 720 emulations
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource MIPS
hw_cdc_init: running
usbcore: registered new interface driver huawei_ether
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 128 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)
NET: Registered protocol family 1
PCI: CLS 0 bytes, default 64
4 CPUs re-calibrate udelay(lpj = 1167360)
CPU IDLE report timer module is runningCPU1 overload packet drop mechanism is enabledRegistering panic notifier
squashfs: version 4.0 (2009/01/31) Phillip Lougher
NTFS driver 2.1.29 [Flags: R/W].
yaffs: yaffs built May 17 2019 14:37:11 Installing.
msgmni has been set to 241
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered (default)
Ralink gpio driver initialized
spidrv_major = 217
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
MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
Allocate 16 byte aligned buffer: 805bf640
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [C2 F1 80 95 02, 00809502]
Device found in MTK table, ID: c2f1, EXT_ID: 809502
Support this Device in MTK table! c2f1
NAND device: Manufacturer ID: 0xc2, Chip ID: 0xf1 (Unknown NAND 128MiB 3,3V 8-bit)
[NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
Scanning device for bad blocks
Signature matched and data read!
load_fact_bbt success 1023
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
mstc_nand_mtd_adjust(): Running!
Creating 20 MTD partitions on "MT7621-NAND":
0x000000000000-0x000007f80000 : "ALL"
0x000000000000-0x000000080000 : "Bootloader"
0x000000080000-0x000000100000 : "Config"
0x000000100000-0x000000140000 : "Factory"
0x000000140000-0x000000540000 : "Kernel"
0x000000540000-0x000002540000 : "RootFS"
0x000002540000-0x000002940000 : "Kernel2"
0x000002940000-0x000004940000 : "RootFS2"
0x000004940000-0x000004980000 : "mrd_cert1"
0x000004980000-0x0000049c0000 : "mrd_cert2"
0x0000049c0000-0x000004dc0000 : "ConfigFS"
0x000004dc0000-0x0000050c0000 : "rom_c"
0x0000050c0000-0x0000053c0000 : "rom_c2"
0x0000053c0000-0x000005dc0000 : "NVLOG"
0x000005dc0000-0x000005e40000 : "SEC_I"
0x000005e40000-0x000005ea0000 : "SEC_II"
0x000005ea0000-0x000005f00000 : "SEC_III"
0x000005f00000-0x000007f80000 : "firmware"
0x000000140000-0x000002540000 : "Kernel_RootFS"
0x000002540000-0x000004940000 : "Kernel_RootFS2"
[mtk_nand] probe successfully! nand_chip->phys_erase_shift=17
UBI: attaching mtd7 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: max. sequence number:       0
UBI: attached mtd7 to ubi0
UBI: MTD device name:            "RootFS2"
UBI: MTD device size:            32 MiB
UBI: number of good PEBs:        256
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             33
UBI: total number of reserved PEBs: 223
UBI: number of PEBs reserved for bad PEB handling: 4
UBI: max/mean erase counter: 0/0
UBI: image sequence number:  0
UBI: background thread "ubi_bgt0d" started, PID 62
rdm_major = 249
GMAC1_MAC_ADRH -- : 0x0000e4ab
GMAC1_MAC_ADRL -- : 0x8939c5b2
Ralink APSoC Ethernet Driver Initilization. v3.1  512 rx/tx descriptors allocated, mtu = 1500!
GMAC1_MAC_ADRH -- : 0x0000e4ab
GMAC1_MAC_ADRL -- : 0x8939c5b2
PROC INIT OK!
PPP generic driver version 2.4.2
PPP BSD Compression module registered
MSTC: Force stop ubifs background thread for RootFS2
PPP MPPE Compression module registered
NET: Registered protocol family 24
IMQ driver loaded successfully.
        Hooking IMQ before NAT on PREROUTING.
        Hooking IMQ after NAT on POSTROUTING.
usbcore: registered new interface driver cdc_ether
DRV_RHPC: Detect Modem fail with 0x1, run startup status detection thread!!
Platform Driver Remote Host Procedure Call init.
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
netem: version 1.2
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (1934 buckets, 7736 max)
ctnetlink v0.93: registering with nfnetlink.
SIP_ALG: handling multiport from 5060 to 5067
matchsize=264
xt_time: kernel timezone is -0000
IPVS: Registered protocols ()
IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
IPVS: ipvs loaded.
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
ip_tables: (C) 2000-2006 Netfilter Core Team, Type=Restricted Cone
ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
TCP cubic registered
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
tunl0: Disabled Privacy Extensions
ip6_tables: (C) 2000-2006 Netfilter Core Team
IPv6 over IPv4 tunneling driver
sit0: Disabled Privacy Extensions
ip6tnl0: Disabled Privacy Extensions
NET: Registered protocol family 17
Bridge firewalling registered
Ebtables v2.0 registered
L2TP core driver, V2.0
PPPoL2TP kernel driver, V2.0
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
DRV_RHPC: Waiting LTE module initialization...
UBIFS: static UBI volume - read-only mode
UBIFS: mounted UBI device 0, volume 0, name "rootfs"
UBIFS: mounted read-only
UBIFS: file system size:   26030080 bytes (25420 KiB, 24 MiB, 205 LEBs)
UBIFS: journal size:       2064384 bytes (2016 KiB, 1 MiB, 17 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root:  0 bytes (0 KiB)
VFS: Mounted root (ubifs filesystem) readonly on device 0:11.
Freeing unused kernel memory: 220k freed
DRV_RHPC: Waiting LTE module initialization...
yaffs: dev is 32505866 name is "mtdblock10" rw
yaffs: passed flags ""
yaffs: yaffs: Attempting MTD mount of 31.10,"mtdblock10"
yaffs: 1 blocks to be sorted...
yaffs: yaffs_read_super: is_checkpointed 0
yaffs: dev is 32505873 name is "mtdblock17" rw
yaffs: passed flags ""
yaffs: yaffs: Attempting MTD mount of 31.17,"mtdblock17"
yaffs: 1 blocks to be sorted...
yaffs: yaffs_read_super: is_checkpointed 0
yaffs: dev is 32505869 name is "mtdblock13" rw
yaffs: passed flags ""
yaffs: yaffs: Attempting MTD mount of 31.13,"mtdblock13"
yaffs: 43 blocks to be sorted...
yaffs: yaffs_read_super: is_checkpointed 0
Raeth v3.1 (Tasklet)
phy_free_head is 0x76e2000!!!
phy_free_tail_phy is 0x76e3ff0!!!
txd_pool=a76e4000 phy_txd_pool=076E4000
ei_local->skb_free start address is 0x87f3d494.
free_txd: a76e4010, ei_local->cpu_ptr: 076E4000
 POOL  HEAD_PTR | DMA_PTR | CPU_PTR
----------------+---------+--------
     0xa76e4000 0x076E4000 0x076E4000

phy_qrx_ring = 0x076df000, qrx_ring = 0xa76df000

phy_rx_ring0 = 0x076e6000, rx_ring0 = 0xa76e6000
change HW-TRAP to 0x17ccf
set LAN/WAN LLLLW
GMAC1_MAC_ADRH -- : 0x0000e4ab
GMAC1_MAC_ADRL -- : 0x8939c5b2
GDMA2_MAC_ADRH -- : 0x0000e4ab
GDMA2_MAC_ADRL -- : 0x8939c5b2
eth3: ===> VirtualIF_open
MT7621 GE2 link rate to 10M/1G
CDMA_CSG_CFG = 81000000
GDMA1_FWD_CFG = 20710000
GDMA2_FWD_CFG = 20710000
FM_OUT value: u4FmOut = 0(0x00000000)
FM_OUT value: u4FmOut = 0(0x00000000)
FM_OUT value: u4FmOut = 0(0x00000000)
FM_OUT value: u4FmOut = 0(0x00000000)
FM_OUT value: u4FmOut = 0(0x00000000)
FM_OUT value: u4FmOut = 0(0x00000000)
FM_OUT value: u4FmOut = 0(0x00000000)
FM_OUT value: u4FmOut = 0(0x00000000)
FM_OUT value: u4FmOut = 0(0x00000000)
FM_OUT value: u4FmOut = 0(0x00000000)
FM_OUT value: u4FmOut = 0(0x00000000)
FM_OUT value: u4FmOut = 0(0x00000000)
FM_OUT value: u4FmOut = 0(0x00000000)
FM_OUT value: u4FmOut = 0(0x00000000)
FM_OUT value: u4FmOut = 0(0x00000000)
FM_OUT value: u4FmOut = 0(0x00000000)
FM_OUT value: u4FmOut = 0(0x00000000)
FM_OUT value: u4FmOut = 0(0x00000000)
FM_OUT value: u4FmOut = 0(0x00000000)
FM_OUT value: u4FmOut = 0(0x00000000)
xhc_mtk xhc_mtk: xHCI Host Controller
xhc_mtk xhc_mtk: new USB bus registered, assigned bus number 1
xhc_mtk xhc_mtk: irq 22, io mem 0x1e1c0000
xHCI xhci_add_endpoint called for root hub
xHCI xhci_check_bandwidth called for root hub
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
xhc_mtk xhc_mtk: xHCI Host Controller
xhc_mtk xhc_mtk: new USB bus registered, assigned bus number 2
xHCI xhci_add_endpoint called for root hub
xHCI xhci_check_bandwidth called for root hub
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
usb 1-2: new high speed USB device number 2 using xhc_mtk
xhc_mtk xhc_mtk: WARN: short transfer on control ep
xhc_mtk xhc_mtk: WARN: short transfer on control ep
xhc_mtk xhc_mtk: WARN: short transfer on control ep
usb 1-2: ep 0x83 - rounding interval to 32768 microframes, ep desc says 0 microframes
usb 1-2: ep 0x2 - rounding interval to 32768 microframes, ep desc says 0 microframes
usb 1-2: ep 0x84 - rounding interval to 32768 microframes, ep desc says 0 microframes
usb 1-2: ep 0x3 - rounding interval to 32768 microframes, ep desc says 0 microframes
usb 1-2: ep 0x85 - rounding interval to 32768 microframes, ep desc says 0 microframes
usb 1-2: ep 0x4 - rounding interval to 32768 microframes, ep desc says 0 microframes
usb 1-2: ep 0x86 - rounding interval to 32768 microframes, ep desc says 0 microframes
usb 1-2: ep 0x5 - rounding interval to 32768 microframes, ep desc says 0 microframes
xhc_mtk xhc_mtk: WARN: short transfer on control ep
info=876f04c0
usb 1-2: ep 0x81 - rounding interval to 32768 microframes, ep desc says 0 microframes
usb 1-2: ep 0x1 - rounding interval to 32768 microframes, ep desc says 0 microframes
xhc_mtk xhc_mtk: WARN: short transfer on control ep
lxz device is Balong device bcdDevice=102, InterfaceSubClass=3
xhc_mtk xhc_mtk: WARN: Stalled endpoint
option 1-2:1.1: GSM modem (1-port) converter detected
ADDRCONF(NETDEV_UP): usbcomm0: link is not ready
ADDRCONF(NETDEV_CHANGE): usbcomm0: link becomes ready
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0
option 1-2:1.2: GSM modem (1-port) converter detected
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB1
option 1-2:1.3: GSM modem (1-port) converter detected
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB2
option 1-2:1.4: GSM modem (1-port) converter detected
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB3
Router hwver is 0x1234.
DRV_RHPC: Router hardware version read from modem at 3 time is 0x1234.
ESW: Link Status Changed - Port2 Link UP
device eth2 entered promiscuous mode
br0: port 1(eth2) entering learning state
br0: port 1(eth2) entering learning state
got netlink message from user_pid 229
br0: port 1(eth2) entering forwarding state
eth2: no IPv6 routers present
[CHIP_COMM] LINE:731: [client] wait resp msg timeout, error:-11!
drv_rhpc_router_get_product_name_proc: Send msg to modem fail with 0x1.
chip_comm_server_proc: get_productname failed with 1.
[CHIP_COMM] LINE:445: [server] begin receive message...
usbcomm0: no IPv6 routers present
switch register base addr to 0xbe110008
write offset 0x0, value 0x8000c
0x8000c
br0: no IPv6 routers present
hw_nat: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
Ralink HW NAT Module Enabled
GDMA2_MAC_ADRH -- : 0x00000010
GDMA2_MAC_ADRL -- : 0x18000a01
eth3: ===> VirtualIF_open
device eth3 entered promiscuous mode

cat /proc/mtd

dev:    size   erasesize  name
mtd0: 07f80000 00020000 "ALL"
mtd1: 00080000 00020000 "Bootloader"
mtd2: 00080000 00020000 "Config"
mtd3: 00040000 00020000 "Factory"
mtd4: 00400000 00020000 "Kernel"
mtd5: 02000000 00020000 "RootFS"
mtd6: 00400000 00020000 "Kernel2"
mtd7: 02000000 00020000 "RootFS2"
mtd8: 00040000 00020000 "mrd_cert1"
mtd9: 00040000 00020000 "mrd_cert2"
mtd10: 00400000 00020000 "ConfigFS"
mtd11: 00300000 00020000 "rom_c"
mtd12: 00300000 00020000 "rom_c2"
mtd13: 00a00000 00020000 "NVLOG"
mtd14: 00080000 00020000 "SEC_I"
mtd15: 00060000 00020000 "SEC_II"
mtd16: 00060000 00020000 "SEC_III"
mtd17: 02080000 00020000 "firmware"
mtd18: 02400000 00020000 "Kernel_RootFS"
mtd19: 02400000 00020000 "Kernel_RootFS2"

serial console

===================================================================
                MT7621   stage1 code 10:33:11 (ASIC)
                CPU=50000000 HZ BUS=16666666 HZ
==================================================================
Change MPLL source from XTAL to CR...
do MEMPLL setting..
MEMPLL Config : 0x31100000
3PLL mode + External loopback
=== XTAL-40Mhz === DDR-800Mhz ===
PLL3 FB_DL: 0xd, 1/0 = 567/457 35000000
PLL4 FB_DL: 0x18, 1/0 = 630/394 61000000
PLL2 FB_DL: 0x1a, 1/0 = 579/445 69000000
do DDR setting..[00320381]
Apply DDR2 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    1
0007:|    0    0    0    0    0    0    1    1    1    1    1    1    1    1    1    1
0008:|    1    1    1    1    1    1    1    1    1    1    1    1    1    1    0    0
0009:|    1    1    1    1    1    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    0    0    0    0    0    0
000F:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0010:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0011:|    0    0    0    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 = 8
rank 0 fine = 56
B:|    0    0    0    0    0    0    0    1    1    1    0    0    0    0    0    0
opt_dle value:8
DRAMC_R0DELDLY[018]=00003233
==================================================================
                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 7 10 13 9 7 7 7 5 7
10 |    9 7 9 10 10 11
--------------------------------------

==================================================================
2.dqs window
x=pass dqs delay value (min~max)center
y=0-7bit DQ of every group
input delay:DQS0 =51 DQS1 = 50
==================================================================
bit     DQS0     bit      DQS1
0  (1~100)50  8  (1~97)49
1  (1~98)49  9  (2~97)49
2  (1~98)49  10  (1~98)49
3  (2~101)51  11  (1~94)47
4  (1~99)50  12  (1~99)50
5  (1~99)50  13  (1~97)49
6  (2~100)51  14  (1~99)50
7  (1~101)51  15  (1~97)49
==================================================================
3.dq delay value last
==================================================================
bit|    0  1  2  3  4  5  6  7  8   9
--------------------------------------
0 |    10 9 12 13 10 8 7 7 6 8
10 |    10 10 9 11 10 12
==================================================================
==================================================================
     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=50000000 HZ BUS=16666666 HZ
===================================================================


U-Boot 1.1.3 (Oct  4 2018 - 09:54:11)

Board: Ralink APSoC DRAM:  128 MB
relocate_code Pointer at: 87fac000

Config XHCI 40M PLL
Allocate 16 byte aligned buffer: 87fdee90
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [C2 F1 80 95 02]
Device found in MTK table, ID: c2f1, EXT_ID: 809502
Support this Device in MTK table! c2f1
select_chip
[NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
Signature matched and data read!
load_fact_bbt success 1023
load fact bbt success
[mtk_nand] probe successfully!
mtd->writesize=2048 mtd->oobsize=64,    mtd->erasesize=131072  devinfo.iowidth=8
..============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC MT7621A DualCore (MAC to MT7530 Mode)
DRAM_CONF_FROM: Auto-Detection
DRAM_TYPE: DDR2
DRAM bus: 16 bit
Xtal Mode=3 OCP Ratio=1/3
Flash component: 128 MBytes NAND Flash
Date:Oct  4 2018  Time:09:54:11
============================================
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
NAND -> RAM
.start copy
freeing
## Starting application at 0x81E00000 ...


Z-LOADER V2.00 | 10/04/2018 09:54:16

!!! nand page size = 2048, addr len=4
PWR_LED_PIN=14
MSTC_SYSFAIL_LED_PIN=13
LED_ON=1
NAND -> RAM
.start copy
freeing
NAND -> RAM
.start copy
freeing

Hit ESC key to stop autoboot: 

how to compile openwrt for this router?

Check https://openwrt.org/toh/start if it's already listed as supported, if that isn't the case, someone -read you- will have to do the leg-work to get it ported to OpenWrt (https://openwrt.org/docs/guide-developer/add.new.device).

1 Like

Why embedded device support must be so hard??...... :sob: :sob:

Any news on this device?
How did you get telnet access to IDU?
Did you check if there is dtb or dts in IDU/ODU?

there is a modified firmware that gives access by telnet, but only to odu.
the idu is a soc mt7620a swicht mt7530wu , wifi mt7612en and spi 4mb.
I did not find dtb or dts for this specific device, but I did find a similar device zyxel nr7101, the difference is that this one has a Qualcomm 5g module and the ram is ddr3.
the two devices are manufactured by mitrastar

4mb flash is a dead end, from an openwrt point of view.

I know that's why I put the idu aside and concentrated on the odu, which has 128 ram and 128 nand storage

First, try taking dts from the nearest device, fixing and loading initramfs via tftp from the uboot console.

Hi @neko98,

I have a strange request. I have the same ODU/Antenna. I've bought mine used without power supply and tried using 802.11af power supply. This didn't go well… :smiley:
I believe I fried this part


Part code on mine is something like BM 8DINN (this is littelfuse part but I can't find anything using part number)
Maybe I could ask you a favor - could you test what’s the voltage on both ends of this part when device is powered?
If you’re comfortable with it – of course!
Thanks!

lol, you plugged in an "af" power source (44-50v).
When I did the measurement of how much the idu delivered to the odu it was less than 12v (11.xx I don't remember very well), I put a passive poe of the tp-link and its own 12v 2a power supply, if it worked for me, it bad is that it only gave me 100m of link and not the gigabit (I don't know why?).
tomorrow I raise the voltage of that component since I am in another city

Yeah... I'm new to poe stuff and I thought active poe negotiated voltage... :confused: well, now I know it doesn't :slight_smile:
Maybe your passive poe adapter is only 100mb? Because I've seen alot of those.
I've bought this one

I will be waiting for your measurements! Thanks!

tvs diode ?

Hi, thanks for your input. I'm pretty sure this a TVS diode but I would like to confirm its output voltage with a working unit because if I mess this up I will fry something else down the line :confused: and I think next time it might not be something that has overcurrent protection :smiley:

1 Like

thats weird ?,
In the datasheet it says that this adapter is passive since the output voltage is based on the input voltage.
my adapted poe(pasive) is this (it's from my old tl-wa5210g hehe).
something to understand the protocol poe af

So both adapters are passive. I couldn't find a datasheet for your poe adapter but when searching for mine I've seen some that were only 100mbit.

Passive means that there is no IEEE af / at logic to keep the power off for non-PoE devices. DC always flows from the power supply to the cable. Note there is a warning sticker on the PoE port of the indoor unit not to plug anything other than the outdoor unit into it.

A 10/100 passive PoE injector uses two pairs of the cable exclusively for DC. It does not support gigabit Ethernet because for a gigabit connection, all four pairs of the cable must carry data. The gigabit capable injector is more expensive because it contains a transformer so that data and power share the same wires.

The voltage here is almost certainly going to be taken directly from the power supply that runs the indoor unit. This can be tested by measuring the voltage leaving the indoor unit. Typically pins 4 and 5 (the blue wires in a standard cable) are positive, and 7 and 8 (the brown wires) are negative.

Based on device description this port supports gigabit on the ODU and IDU

image

EDIT:
Sadly - I do not have IDU so I can't do any testing and confirm this :confused:

the voltaje is 9.5 v

I tried the odu with a af poe adapter (I borrowed one ,since the one I had was passive and only 100mb) and if it gives gigabit.
I dont remember much, the idu soc was a mt7620a swicht mt7530wu and wifi mt7612en. when starting the odu it provided a xxx.bin (his system of it) to the idu by tftp so that the idu starts. and the idu is gigabit

yep is only 100mb ,because it was from an old cpe from tp link (tl.wa510g)