OpenWrt support for TD-W9970 V4

The new version of TD-W9970 i.e V4 makes a departure from the earlier broadcom chipset and uses the EcoNet/Mediatek? EN751221 SoC .

Is the EN751221 SoC a rebadged a mediatek chipset that OpenWrt already supports.
If there exists a possibility to support this, i would be happy to contribute.

Attaching details below -(from stock firmware)

~ # cat /proc/cpuinfo
cat /proc/cpuinfo
system type             : EcoNet EN751221 SOC
processor               : 0
cpu model               : MIPS 34Kc V5.8
BogoMIPS                : 465.30
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 64
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0df8, 0x0860, 0x0468]
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

processor               : 1
cpu model               : (null) V5.8
BogoMIPS                : 349.79
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 64
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0df8, 0x0860, 0x0468]
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

processor               : 2
cpu model               : (null) V5.8
BogoMIPS                : 321.94
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 64
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0df8, 0x0860, 0x0468]
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

processor               : 3
cpu model               : (null) V5.8
BogoMIPS                : 294.91
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 64
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0df8, 0x0860, 0x0468]
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available


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

~ # cat /proc/meminfo
cat /proc/meminfo
MemTotal:         126344 kB
MemFree:           79468 kB
Buffers:            3772 kB
Cached:            13584 kB
SwapCached:            0 kB
Active:            12080 kB
Inactive:          13424 kB
Active(anon):       8152 kB
Inactive(anon):        0 kB
Active(file):       3928 kB
Inactive(file):    13424 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:          8168 kB
Mapped:             4044 kB
Shmem:                 0 kB
Slab:               7176 kB
SReclaimable:        748 kB
SUnreclaim:         6428 kB
KernelStack:        1424 kB
PageTables:          656 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:       63172 kB
Committed_AS:      74400 kB
VmallocTotal:    1048180 kB
VmallocUsed:        8280 kB
VmallocChunk:    1016792 kB
IMEM Remains:    13728 Bytes


-----------------------------
# cat /proc/mtd
cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00010000 00010000 "bootloader"
mtd1: 00118eb0 00010000 "kernel"
mtd2: 00e97150 00010000 "rootfs"
mtd3: 00010000 00010000 "config"
mtd4: 00010000 00010000 "config_2"
mtd5: 00010000 00010000 "romfile"

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


/proc # cat partitions
cat partitions
major minor  #blocks  name

  31        0         64 mtdblock0
  31        1       1123 mtdblock1
  31        2      14940 mtdblock2
  31        3         64 mtdblock3
  31        4         64 mtdblock4
  31        5         64 mtdblock5


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

proc # cat modules
cat modules
nf_nat_sip 5408 0 - Live 0xc1cb5000
nf_conntrack_sip 18272 1 nf_nat_sip,[permanent], Live 0xc1ca5000
nf_nat_h323 4832 0 - Live 0xc1c94000
nf_conntrack_h323 34960 1 nf_nat_h323, Live 0xc1c81000
nf_nat_tftp 448 0 - Live 0xc1c6d000
nf_conntrack_tftp 2448 1 nf_nat_tftp, Live 0xc1c64000
nf_nat_pptp 1328 0 - Live 0xc1c4a000
nf_nat_proto_gre 864 1 nf_nat_pptp, Live 0xc1c40000
nf_nat_ftp 1104 0 - Live 0xc1c2f000
nf_conntrack_ftp 4880 1 nf_nat_ftp, Live 0xc1c1a000
tun 13296 0 - Live 0xc192c000
mt7603eap 1613328 1 - Live 0xc1514000
hw_nat 163120 0 - Live 0xc11ad000 (P)
pwm 5808 0 [permanent], Live 0xc06fc000 (P)
tp_domain 6128 0 - Live 0xc06e8000
ipt_STAT 215104 0 - Live 0xc06a4000
shortcut_fe_cm 47472 0 - Live 0xc0688000
shortcut_fe_ipv6 57008 1 shortcut_fe_cm, Live 0xc066a000
shortcut_fe 56400 2 ipt_STAT,shortcut_fe_cm, Live 0xc064a000
nf_conntrack_pptp 3488 1 nf_nat_pptp, Live 0xc0633000
nf_conntrack_proto_gre 2752 1 nf_conntrack_pptp, Live 0xc0628000
usb_storage 35840 0 - Live 0xc0610000
xhci_hcd 2063040 0 - Live 0xc03e9000
scsi_wait_scan 368 0 - Live 0xc039e000
pptp 15248 0 - Live 0xc0328000
ppp_mppe 5264 0 - Live 0xc0315000
ecb 1440 0 - Live 0xc030a000
arc4 816 0 - Live 0xc0300000
qdma_wan 141920 0 - Live 0xc02d0000 (P)
eth_ephy 94992 0 - Live 0xc0267000 (P)
eth 91872 2 hw_nat,eth_ephy, Live 0xc0214000 (P)
qdma_lan 59504 0 - Live 0xc01c6000 (P)
fe_core 26160 1 hw_nat, Live 0xc0194000 (P)
wlan_ratelimit 8912 0 - Live 0xc0161000 (P)
tccicmd 82944 3 mt7603eap,eth_ephy,eth, Live 0xc013b000 (P)
tcledctrl 24272 5 mt7603eap,hw_nat,eth_ephy,eth,tccicmd, Live 0xc00ef000 (P)
module_sel 1152 0 - Live 0xc00d5000 (P)


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

/proc # cat version
cat version
Linux version 2.6.36 (root@localhost.localdomain) (gcc version 4.3.6 (Buildroot 2012.05) ) #74 SMP Sat Feb 20 09:58:14 HKT 2021

There is no support for EcoNet (who were bought be Mediatek later on, but given the different heritage, it has nothing in common with ramips) derived SOCs/ xDSL hardware, chances for that to happen are non-zero, but extremely low.

Thank you for the clarification. Just a quick question .

  1. The EcoNet SoC uses a MIPS 34Kc processor, and from the driver/modules info one can observe that it probably uses a MT7603 Wireless chipset, so among other things, one of the key missing artifacts would be the drivers associated with xDSL chipset in use with the SoC. Is this assumption correct?

  2. Would it be possible to get a small part of functionality working just as an experiment/learning exercise? will the basic ramips kernel boot on this device Or is it too ambitious to attempt for a newbie at embedded stuff.

Thanks

The xDSL drivers are pretty much out of the question. The EcoNet derived SOCs don't have much (anything, different origin) in common with mt7620/ mt7621 either, yes the ISA is mips 34Kc based, but the SOC itself has no support (neither mainline nor in OpenWrt), you'd have to start from zero.

Ok. Thanks, that explains

@rangarajs I am not a Dev but I have the same device. I don't think OpenWRT or DD-WRT or any other third party firmware is available for the TD-W9970 v4.

BTW how did you access the terminal on the device. AFAIK there's no SSH access to the device. Telnet access is there but has very limited available commands.

My device is currently running Firmware Version: 1.2.0 0.9.1 v00a1.0 Build 210220 Rel.36504n

It has both ssh and telnet support. To access it, you need to google a bit on the vulnerability of the stock firmware. It is relatively straightforward. :slightly_smiling_face:

Frankly, i got kind of conned into buying it. The V3 has the feature set - USB access/sharing that i was looking for, what i received was the V4, which does not have the same. So i started looking under the hood and GPL source available at their website to see if i can tinker it for my needs. No luck on that.

I bought the TD-W9970 to use as a pure VDSL2 modem (bridge mode), thinking it has Broadcom SoC. But I knew OpenWRT does not support Broadcom device very well, especially the DSL model part of the software.

The problems that I face with the TP-W9970 v4 are: Limited Dynamic DNS (DDNS) provider options, Lack of VPN Client.

Also my ISP provides only CGNAT IPv4 and no IPv6. If I can gain Terminal sccess into the device, I can try something like ZeroTier to be able to circumvent CGNAT.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.