MikroTik RB5009UPr+S+IN (RB5009UG with PoE)

If anyone would like to test the proposed TDR fix and also get useful timing data (which I could use to fine-tune the default sleep periods in the driver)...

I've pushed the debug version of the patch to this branch for convenience: https://github.com/tim-seoss/openwrt/tree/cabletest-tdr-timeout-fix

This is based on OpenWrt main (i.e. the "snapshot" builds), so testers will need to build-in any packages needed, so at least CONFIG_PACKAGE_ethtool-full=y should be set in the .config so that the full ethtool package gets pre-installed in the files. Otherwise the normal OpenWrt build rules can be followed... https://openwrt.org/docs/guide-developer/start

It should be possible to tftpboot the initramfs-kernel.bin file which gets built under bin/targets/ to test this with everything running from ram so that flash isn't touched.

Sorry for the late reply. I have tested your patch and it unfortunately did not resolve the problem. According to the debug output, it seems like the modified function is called twice for every TDR test. The first call succeeded on the very first iteration, but the second still timed out.

I haven't had time to debug this any further, and I am currently having trouble getting my RB5009 to boot at all.

1 Like

Oh dear. Thanks for testing! You could try changing the: i < 100 up to something bigger. Maybe 10000, otherwise that's going to be tricky to diagnose without access to hardware... Was it the same on all Ethernet ports?

edit: I've started a separate thread for this: Ethernet cable test feature bug fix - testers needed