Ethernet link up doesn't work on custom board based on iMX93

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Ethernet link up doesn't work on custom board based on iMX93

1,137 次查看
Bob_NXP_user
Contributor III

Hi everybody,

I'm tryng to test Ethernet interface on a custom board, similar to IMX93QSB. The big difference is the physical Ethernet, that in my case is ADIN1200 while iMX93-QSB uses RTL8211. Since I don't have a custom Linux image yet, I loaded imx-boot-imx93-11x11-lpddr4x-evk-sd.bin-flash_singleboot on my board hoping that U-boot ping command could help me. 

First of all I use the command: mii info to see whether the chip is recognized and everything seems to be ok:

 

Immagine3.jpg

then I tried to read and write on ADIN1200 registers and these commands work without problems (for example I can change LED_link_status with the command mdio write 1c 0x210E).

Then I did:

-setenv  ipaddr 192.168.1.150

-setenv  netmask 255.255.255.0

-ping 192.168.1.127 (my pc host)

And at this point nothing seems to work! Not even the Link-up LED works when I connect the devices with the cable (both pc side and board side), it is like unconnected.

Immagine4.jpg

Do I need to change some configurations to, at least, see the correct functionality of the link-up or Ethernet PHY should be sort of plug and play in terms of link-up? By the way, I'm sure that the cable is ok! Please help me understand.

Thanks in advance,

Bob

0 项奖励
回复
6 回复数

1,108 次查看
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

You need to port the PHY address, the eqos is looking for an specific PHY. Changes are required in board.h.

https://github.com/nxp-imx/uboot-imx/blob/lf_v2022.04/include/configs/imx93_qsb.h#L195-L200

Regards

0 项奖励
回复

981 次查看
Bob_NXP_user
Contributor III

Hello @JosephAtNXP ,

Now I'm able to generate new bootloader starting from the one NXP provides. I changed the following uboot file:

/include/configs/imx93_evk.h (uboot-imx/include/configs/imx93_evk.h at lf_v2022.04 · nxp-imx/uboot-imx · GitHub)

I modified DWC_NET_PHYADDR to 0 (from 1)

Since I'm using imx93 11x11, it fit better then imx93_qsb. Unfortunately It still doesn't work, there is no link-up between the board and the host pc. I have done the same steps using iMX93-QSB board and I achieved link-up and ping succesfully, so I'm pretty sure that the procedure and the cable are ok.
It is the change of PHY Address enough to use ADIN1200 instead of RTL8211 in U-Boot?

Please, let me know something, it is very important.

Thanks,

Bob

0 项奖励
回复

952 次查看
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Please run the following commands at U-boot

=> pri ethprime
=> mdio list
=> mdio read <bus output> 0 0
=> mdio read <bus output> 0 1

Regards

0 项奖励
回复

936 次查看
Bob_NXP_user
Contributor III

Hello @JosephAtNXP ,

This is what I see running these commands:

Bob_NXP_user_0-1742911402989.png

Please, let me know your thoughts.

Thank you,

Bob

0 项奖励
回复

908 次查看
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

The PHY is not getting detected, there is an error that has not been spotted yet.

1. Confirm that MDIO HW complies with pull up design, if possible, probe the bus.

2. Verify that you have the correct PADs set for MDIO in your DTS.

3. Confirm that you DTS has the correct PHY address.

4. Issue the commands

=> mdio read ethernet@428a0000 0 0
=> mdio read ethernet@428a0000 0 1

Regards

0 项奖励
回复

1,081 次查看
Bob_NXP_user
Contributor III

Hello,

I'm currently having troubles building the bootloader. Is there another way I can change this parameter using the imx-boot-imx93-11x11-lpddr4x-evk-sd-orig.bin-flash_singleboot?  

Thanks,

Bob

0 项奖励
回复