Imx6ull uses kernel5.4, the network chip is SR8201F (with reset pin), and an error is reported when using "ifconfig eth0 up". (kernel 4.1.15 has no faults)。
imx6ull使用kernel5.4,网络芯片为SR8201F(有复位引脚),使用“ifconfig eth0 up”报错。(kernel4.1.15无故障)
Do you setup the gpio pin in the device tree file (your_board.dts) ?
Normally, for porting the phy, please check the points below:
1. PHY address is correct or not. Need to match the PHY address on both hardware side and the setting in device tree.
2. check GPIO pin output is correct or not if it used for the reset pin of the phy. also check the iomux setting in the device tree file.
3. check the phy driver is loaded properly if the driver is used.
For your reference,
https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Porting-KSZ9031-to-i-MX-BSP/ta-p/1112601