I have tested your kernel which I ported here by adding dts file and .config. And compiled a simple busybox as rootfs. Then enter the shell console and type ip link set eth1 up and ip link set lan5 up. They are both in no carrier status when connected to 1G cable
although 2.5G works fine. I checked ethtool it showed Supported link modes: 2500baseT/Full and Advertised link modes: 2500baseT/Full.
I think this issue is related to the MAC driver. I will try to debug.
I wonder has anyone tested any devices with mtk soc with 2.5GMAC and the PHY is not working at rate adaptor mode? Has anyone tested this configuration with 10M or 100M speed?
I have tested in my branch which imported some patches, but when the link speed is 10M or 100M, we will get a watchdog warning that shows transmit queue timed out. This happens if we will the iperf between WAN and LAN with different speeds without limiting the bandwidth. The detailed debug message is here.
I think this issue is related to flow control or something else, but I have no idea how to debug and solve it.
I have tested your kernel with TP-Link TL-XDR6088 with busybox rootfs. Directly adding the device tree of my hardware can get the system to boot up. But the 2.5G PHY does not work. Then I take some patches you can see here. Then I get both WAN and LAN5 to work at 2.5G speed.
But when the link partner is at 1G speed, I can get the WAN link up but never receive any ethernet frame. I checked /proc/interrupts and get no interrupts on this network interface. As for the LAN5 port, will not advertise 1G speed, so the link is never up.
I've seen that message about transmit queue 3 timed out on another MT7986A router too (Banana Pi R3). I had a 2.5Gbps SFP Ethernet adapter plugged in (now removed to see if it was related), a 1Gbps ethernet connection to WAN, and a 1Gbps ethernet connection to LAN1 (now also removed).
OpenWrt SNAPSHOT r22171-fdd1af9a44
mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control off
mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
mt7530 mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control rx/tx
So it looks like it might be to do with the actual chipset and not the TL-XDR6088 specifically. (Good news I think?)
I guess the three important questions are:
1- Why is this happening?
2- Why is the warm reset failing?
3- Is there a workaround for now? (like can flow control be disabled?)
There is a working tutorial in English to install Openwrt or X-wrt on this device? I don't care About 2.5gbps port, just need one working 1gbps Rj45 and wireless to use this as a dumb ap
recently my device has been automatically restarting every day, and after the restart, the network configuration is lost (no SSID broadcast, interface and subnet configuration restored to default). The only way to restore the configuration is to unplug the device power (SSID and network configuration are restored). I don't have a serial cable, do you have any ideas on how I can use the kernel log or system log to find out the reason for the restart? @cyyself
Thanks my friend but I guess that's the instructions to build the installation file. I need the instructions to root and install, I don't have enough skill to do it without a step by step guide
Please, what are the steps in u-boot menu to come back to original TP-Link firmware?
I should mention that prior to install OpenWRT I did a backup for mtdblock9 and now wanted to come back to original firmware. I want to be sure I'm not messing something as I not very knowledge with u-boot.
dd: command gave me this error Operation not permitted
root@OpenWrt:/# dd of=/dev/mtdblock0 if=/tmp/backup.img bs=131072 conv=sync
[ 1920.921893] mtdblock: MTD device 'bl2' is NAND, please consider using UBI block devices instead.
dd: error writing '/dev/mtdblock0': Operation not permitted
1+0 records in
0+0 records out
Before flashing OpenWRT I saved the entire stock partition (mtd9) that is basicly the whole SPI-NAND - "backup.img"
I'm not looking on writing entire flash memory, I need to have TP-Link factory boot ready. I believe that when using this dd: command - "dd bs=131072 conv=sync of=/dev/mtdblock0 if=/tmp/backup.img" I can get in recovery mode., and after reboot to load the original TP-Link factory firmware.
Doing dd: on mtdblock0 (for sure original "backup.img" 128M cannot fit in "bl2"), I will write only "bl2" leaving the rest untouched (art, wireless calibration data etc).
You are very lucky that this didn't work, you would have bricked the device if it did.
In order to restore the stock firmware bootloader, you have to write not only bl2, but at least also bl3/u-boot, otherwise you end up with a brick for sure.
Thank you for your feedback. However, is there a way to go back on factory firmware? What are the steps to accomplish this?
Much appreciated your help!
You have to write all /dev/mtdX partitions one by one. Use mtd write /tmp/filenameX.img /dev/mtdX instead of dd. If you are sure you know what you are doing (and I mean be really sure, you have only one shot!), then