Support for TP-Link ER706W?

Filogic device with metal case, internal shielding and SFP port

https://fcc.report/FCC-ID/2AXJ4ER706W/6899030

MT7981BA
MT7976DAN
MT7531AE

Post full bootlog at maximum debug level.

2 Likes

TP-Link seems to have rebadged these, and are also selling them as Festa FR365.

1 Like

did you achieve a serial connection?

seems mine has the tx rx locked.
could this be a software problem or does it need some sort of bridge soldered to the board?

On the face of it, you may need to bridge R150(?) and R181 - and remove R195. I may be wrong.

2 Likes

Has anyone been able to make progress on the ER706W?

@slh your right
r195 is a resistor between the ground and the RX on the board.
r 181 and 150 should be bridged but i cheated used ide wire straight to the RX and TX.

pinout of serial is

pin1 TX
pin2 RX
pin3 Ground
pin4 VCC

thats right to left.

serial setup is 115200 8 1 N 3.3v

1 Like

How do i upload a putty log of the serial log?

Problem solved.

Full serial output you can get it here.

its above my pay grade.
hope it helps.

https://www.dropbox.com/scl/fi/cvr3xdb505x13duolbcv4/putty.log?rlkey=uwecfp6jpoc6xzkgzi31gnmau&st=vofjojs0&dl=0

gpl source code

https://www.dropbox.com/scl/fi/fymn5kk9t1o8winovsqjl/er706w_gpl.tar.gz?rlkey=hysip4zj8loznejtym846bzk7&st=42laup1v&dl=0

2 Likes

Serial log says OEM fw is a knockoff OpenWRT 22 mtk sdk adding wifi drivers.
Can you break into u-boot and check like help ? commands to see if we can boot from network tftp or so?

2 Likes

tftpboot is there so initramfs image is possible .
what i noticed from the boot log is the names of the partitions are different i think uboot is looking for a rootfs but the names are something else.
the sorcecode appears to be in imortal openwrt form.

here is the help from uboot & printenv.

U-Boot 2022.07-rc3 (Jul 17 2023 - 20:57:17 +0800)

CPU:   MediaTek MT7981
Model: mt7981-rfb
DRAM:  512 MiB
Core:  36 devices, 16 uclasses, devicetree: embed
e7e[re[999;999He[6ne8
Initializing NMBM ...
spi-nand: spi_nand spi_nand@0: GigaDevice SPI NAND was found.
spi-nand: spi_nand spi_nand@0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
Could not find a valid device for nmbm0
Signature found at block 1023 [0x07fe0000]
First info table with writecount 0 found in block 992
Second info table with writecount 0 found in block 995
NMBM has been successfully attached 

Loading Environment from MTD... *** Warning - bad CRC, using default environment

In:    serial@11002000
Out:   serial@11002000
Err:   serial@11002000
Net:   
Warning: ethernet@15100000 (eth0) using random MAC address - 9e:5f:3c:7f:ef:1d
eth0: ethernet@15100000
gpio: pin 12 (gpio 12) value is 0
gpio: pin 5 (gpio 5) value is 0
gpio: pin 9 (gpio 9) value is 0
gpio: pin 8 (gpio 8) value is 0
gpio: pin 34 (gpio 34) value is 0
gpio: pin 13 (gpio 13) value is 0
gpio: pin 5 (gpio 5) value is 1
gpio: pin 9 (gpio 9) value is 1
gpio: pin 8 (gpio 8) value is 1
gpio: pin 13 (gpio 13) value is 1
gpio: pin 34 (gpio 34) value is 1
e[?25le[2Je[1;1He[1;1He[2Ke[2;3H*** U-Boot Boot Menu ***e[0Ke[3;1He[2Ke[12;1He[2Ke[13;3HPress UP/DOWN to move, ENTER to select, ESC/CTRL+C to quite[0Ke[14;1He[2Ke[4;7He[7m1. Startup system (Default)e[0me[5;7H2. Upgrade firmwaree[6;7H3. Upgrade ATF BL2e[7;7H4. Upgrade ATF FIPe[8;7H5. Upgrade single imagee[9;7H6. Load imagee[10;7H0. U-Boot consolee[12;3HHit any key to stop autoboot: 4 e[12;1He[2Ke[1;1He[2Ke[2;3H*** U-Boot Boot Menu ***e[0Ke[3;1He[2Ke[12;1He[2Ke[13;3HPress UP/DOWN to move, ENTER to select, ESC/CTRL+C to quite[0Ke[14;1He[2Ke[4;7H1. Startup system (Default)e[5;7He[7m2. Upgrade firmwaree[0me[6;7H3. Upgrade ATF BL2e[7;7H4. Upgrade ATF FIPe[8;7H5. Upgrade single imagee[9;7H6. Load imagee[10;7H0. U-Boot consolee[1;1He[2Ke[2;3H*** U-Boot Boot Menu ***e[0Ke[3;1He[2Ke[12;1He[2Ke[13;3HPress UP/DOWN to move, ENTER to select, ESC/CTRL+C to quite[0Ke[14;1He[2Ke[4;7H1. Startup system (Default)e[5;7H2. Upgrade firmwaree[6;7He[7m3. Upgrade ATF BL2e[0me[7;7H4. Upgrade ATF FIPe[8;7H5. Upgrade single imagee[9;7H6. Load imagee[10;7H0. U-Boot consolee[1;1He[2Ke[2;3H*** U-Boot Boot Menu ***e[0Ke[3;1He[2Ke[12;1He[2Ke[13;3HPress UP/DOWN to move, ENTER to select, ESC/CTRL+C to quite[0Ke[14;1He[2Ke[4;7H1. Startup system (Default)e[5;7H2. Upgrade firmwaree[6;7H3. Upgrade ATF BL2e[7;7He[7m4. Upgrade ATF FIPe[0me[8;7H5. Upgrade single imagee[9;7H6. Load imagee[10;7H0. U-Boot consolee[1;1He[2Ke[2;3H*** U-Boot Boot Menu ***e[0Ke[3;1He[2Ke[12;1He[2Ke[13;3HPress UP/DOWN to move, ENTER to select, ESC/CTRL+C to quite[0Ke[14;1He[2Ke[4;7H1. Startup system (Default)e[5;7H2. Upgrade firmwaree[6;7H3. Upgrade ATF BL2e[7;7H4. Upgrade ATF FIPe[8;7He[7m5. Upgrade single imagee[0me[9;7H6. Load imagee[10;7H0. U-Boot consolee[1;1He[2Ke[2;3H*** U-Boot Boot Menu ***e[0Ke[3;1He[2Ke[12;1He[2Ke[13;3HPress UP/DOWN to move, ENTER to select, ESC/CTRL+C to quite[0Ke[14;1He[2Ke[4;7H1. Startup system (Default)e[5;7H2. Upgrade firmwaree[6;7H3. Upgrade ATF BL2e[7;7H4. Upgrade ATF FIPe[8;7H5. Upgrade single imagee[9;7He[7m6. Load imagee[0me[10;7H0. U-Boot consolee[1;1He[2Ke[2;3H*** U-Boot Boot Menu ***e[0Ke[3;1He[2Ke[12;1He[2Ke[13;3HPress UP/DOWN to move, ENTER to select, ESC/CTRL+C to quite[0Ke[14;1He[2Ke[4;7H1. Startup system (Default)e[5;7H2. Upgrade firmwaree[6;7H3. Upgrade ATF BL2e[7;7H4. Upgrade ATF FIPe[8;7H5. Upgrade single imagee[9;7H6. Load imagee[10;7He[7m0. U-Boot consolee[0me[?25he[2Je[1;1HMT7981> help
?         - alias for 'help'
base      - print or set address offset
bdinfo    - print Board Info structure
blkcache  - block cache diagnostics and control
boot      - boot default, i.e., run 'bootcmd'
bootd     - boot default, i.e., run 'bootcmd'
bootefi   - Boots an EFI payload from memory
bootelf   - Boot from an ELF image in memory
bootflow  - Boot flows
booti     - boot Linux kernel 'Image' format from memory
bootm     - boot application image from memory
bootmenu  - ANSI terminal bootmenu
bootp     - boot image via network using BOOTP/TFTP protocol
bootvx    - Boot vxWorks from an ELF image
cmp       - memory compare
coninfo   - print console devices and information
cp        - memory copy
crc32     - checksum calculation
disable_phy- disable mt7531 phy port
echo      - echo args to console
editenv   - edit environment variable
enable_phy- enable mt7531 phy port
env       - environment handling commands
erase     - erase FLASH memory
fdt       - flattened device tree utility commands
flinfo    - print FLASH memory information
go        - start application at address 'addr'
gpio      - query and control gpio pins
gzwrite   - unzip and write memory to block device
help      - print command description/usage
httpd     - start httpd server for firmware recovery
iminfo    - print header information for application image
imxtract  - extract a part of a multi-image
itest     - return true/false on integer compare
loadb     - load binary file over serial line (kermit mode)
loads     - load S-Record file over serial line
loadx     - load binary file over serial line (xmodem mode)
loady     - load binary file over serial line (ymodem mode)
loop      - infinite loop on address range
lzmadec   - lzma uncompress a memory region
md        - memory display
mdio      - MDIO utility commands
mii       - MII utility commands
mm        - memory modify (auto-incrementing address)
mtd       - MTD utils
mtkautoboot- Display MediaTek bootmenu
mtkboardboot- Boot MTK firmware
mtkload   - MTK image loading utility
mtkupgrade- MTK firmware/bootloader upgrading utility
mw        - memory write (fill)
nand      - NAND utility
net       - NET sub-system
nfs       - boot image via network using NFS protocol
nm        - memory modify (constant address)
nmbm      - NMBM utility commands
panic     - Panic with optional message
ping      - send ICMP ECHO_REQUEST to network host
pinmux    - show pin-controller muxing
printenv  - print environment variables
protect   - enable or disable FLASH write protection
pwm       - control pwm channels
random    - fill memory with random pattern
reset     - Perform RESET of the CPU
run       - run commands in an environment variable
saveenv   - save environment variables to persistent storage
setenv    - set environment variables
setexpr   - set environment variable as the result of eval expression
sf        - SPI flash sub-system
sleep     - delay execution for some time
smc       - Issue a Secure Monitor Call
source    - run script from memory
tftpboot  - boot image via network using TFTP protocol
tftpput   - TFTP put command, for uploading files to a server
ubi       - ubi commands
ubifsload - load file from an UBIFS filesystem
ubifsls   - list files in a directory
ubifsmount- mount UBIFS volume
ubifsumount- unmount UBIFS volume
unlz4     - lz4 uncompress a memory region
unzip     - unzip a memory region
version   - print monitor, compiler and linker version
MT7981> printenv
baudrate=115200
bootdelay=2
bootmenu_0=Startup system (Default)=mtkboardboot
bootmenu_1=Upgrade firmware=mtkupgrade fw
bootmenu_2=Upgrade ATF BL2=mtkupgrade bl2
bootmenu_3=Upgrade ATF FIP=mtkupgrade fip
bootmenu_4=Upgrade single image=mtkupgrade simg
bootmenu_5=Load image=mtkload
ethaddr=9e:5f:3c:7f:ef:1d
fdtcontroladdr=5ffc1550
ipaddr=192.168.1.1
loadaddr=0x46000000
netmask=255.255.255.0
serverip=192.168.1.2
stderr=serial@11002000
stdin=serial@11002000
stdout=serial@11002000

Environment size: 482/131068 bytes
MT7981> versip n  onionon
U-Boot 2022.07-rc3 (Jul 17 2023 - 20:57:17 +0800)

aarch64-linux-gnu-gcc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0
GNU ld (GNU Binutils for Ubuntu) 2.30
MT7981> 

1 Like

Got this from above but does this mean ethernet wont work?

Tried a initramfs image from imortalwrt (kernel 5.4 like source code)for a test i thought was safe enough to try.

tftpboot couldnt see the server via ethernet it just timed out.

could it be a setting needs changing or adding?

computer with the tftpserver cannot see a connection either.

Yep source code is barrier breaker but at kernel 4.5.

wifi drivers not sure i haven't done anything with sdk.

Uboot does ubi can the mtd partitions be copied and tftput back to my computer?

To turn on the ethernet port the command in uboot is

enable_phy

i have got it booting as a filogic device with no source code used.(with ethernet)

every time i add it as a new device no ethernet or kernel panic.(think im having trouble adding the 7531 switch driver....