Hello!
I am currently working on a board with LS1046, I'm using the SERDES1 MAC5 and MAC6 connected each to an external phy (rtl8211f) and then connected to a RJ45.
The external phy is configured for SGMII and in my device tree I have my two macs configured, in the same way (dts file attached).
My SERDES protocol on RCW is 0x2233.
When in linux with the ethtool I see the two eth interfaces have link up when I connect the cable, but I can only ping MAC6 with success.
Does anyone ever encounter a similar problem?
Thank you for your time,
Carlos
Please check whether ping command can run successfully through MAC5 in u-boot.
In u-boot source code, please modify the following SGMII PHY addresses in include/configs/ls1046ardb.h according to your target board.
#define SGMII_PHY1_ADDR 0x3
#define SGMII_PHY2_ADDR 0x4
After rebuild u-boot and deploy it to the target board, please check whether it is possible to ping your PC through FM1@DTSEC5 in u-boot.
=> setenv ethact FM1@DTSEC5
=> setenv ipaddr <board_ip>
=> ping <server_ip>
Hi yipingwang,
Thank you for your reply.
I have tried that approach to get it to ping on u-boot, but I get the same behavior. I can ping FM1@DTSEC6. But cannot ping FM1@DTSEC5.
Please review the hardware design of your custom board.