IMX6ULL MAC does not receive

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

IMX6ULL MAC does not receive

653 Views
claudio1
Contributor II

Hello

I try to connect a PHY (KSZ8041NL) to my iMX6ULL (MCIMX6Y0).

Actually i try to get a connection with U-Boot.

I have configured all neccessary Pins in my board file.

I am able to send packets (seen with wireshark) but the mac or the layer above dont receive anything.

After diving into the registers i saw, that the

Ethernet Control Register (ENETx_ECR)

Is first read as 0xf0000000
After sending a packet (during try to get a dhcp) the register changed to
0xf0000100 it stays at this value. 

Now the problem is, that BIT1 of the mentioned register is for enabling the Ethernet. 

Enables/disables the Ethernet MAC. When the MAC is disabled, 
the buffer descriptors for an aborted transmit frame are not updated. 
The uDMA, buffer descriptor, and FIFO control logic are reset, 
including the buffer descriptor and FIFO pointers.

When i manually enable this bit and therefore the Ethernet and try 
again to receive some packet like during dhcp, nothing changes. 
the dhcp request is still not successful. In wireshark i can see the 
answer packet, going to my board. 
I can also see the data after the PHY on the RMII interface: 
https://www.mikrocontroller.net/attachment/415823/RX_RMII2.PNG 
But the Chip itself or u-boot never "see" an answer. 
And after sending some packets, the mentioned register is again
0xf0000100 but it should be 0xf0000102 i think.

Also all statistical registers like
Frames Transmitted OK Statistic Register (ENETx_IEEE_T_FRAME_OK)
are always read as zero (0x00000000)

I dont have any further ideas how to debug this problem. 
I would be very happy if some engineer or some nxp representative 
could answer here. 

Thanks
Labels (2)
Tags (3)
0 Kudos
1 Reply

524 Views
igorpadykov
NXP Employee
NXP Employee

Hi claudio

one can look at similar issue on

uboot 2015.04 can't obtain ip from dhcp 

uboot dhcp hints

A Handy U-Boot Trick | Linux Journal 

and post it on uboot mail list

U-Boot Info Page 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos