imx6ull使用kernel5.4,网络芯片为SR8201F(有复位引脚),使用“ifconfig eth0 up”报错。

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6ull使用kernel5.4,网络芯片为SR8201F(有复位引脚),使用“ifconfig eth0 up”报错。

249 Views
wangchao5128
Contributor II

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无故障)

错误打印--Snipaste_2023-11-28_14-03-10.png代码注释--Snipaste_2023-11-28_14-02-39.png

0 Kudos
3 Replies

233 Views
jimmychan
NXP TechSupport
NXP TechSupport

Do you setup the gpio pin in the device tree file (your_board.dts) ?

0 Kudos

220 Views
wangchao5128
Contributor II
设备树已经添加了,添加的方式和4.1.15一样,可以正常启动。也读取到了PhyID
0 Kudos

211 Views
jimmychan
NXP TechSupport
NXP TechSupport

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

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Using-KSZ9031-PHY-On-i-MX8MM-and-L5-4-24...

0 Kudos