I.MX8MM : ARP Retry count exceeded; starting again

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

I.MX8MM : ARP Retry count exceeded; starting again

6,827 Views
santhosh2
Contributor IV

Hi,

I am getting the below Error,

"ARP Retry count exceeded; starting again" in Uboot

I had configured the PHY control register 00H as 0x1000 (Only Auto-Negotiation Enabled) under this condition  ping is not working in uboot. and I had also configured PHY control register 00H as 0x5000(loopback and Auto-Negotiation Enabled) Under hardware loop back also i am getting the same error.

Please find the log below and do advice how to resolve
-------------------------------------------------------------------------------------
u-boot=> mii dump                                                              
0.     (ffff)                 -- PHY control register --                        
  (8000:8000) 0.15    =     1    reset                                          
  (4000:4000) 0.14    =     1    loopback                                      
  (2040:2040) 0. 6,13 =   b11    speed selection = 10 Mbps                      
  (1000:1000) 0.12    =     1    A/N enable                                    
  (0800:0800) 0.11    =     1    power-down                                    
  (0400:0400) 0.10    =     1    isolate                                        
  (0200:0200) 0. 9    =     1    restart A/N                                    
  (0100:0100) 0. 8    =     1    duplex = full                                  
  (0080:0080) 0. 7    =     1    collision test enable                          
  (003f:003f) 0. 5- 0 =    63    (reserved)                                    
                                                                               
                                                                               
u-boot=> mii write 3 0 0x5000                                                  
u-boot=> mii dump                                                              
0.     (5000)                 -- PHY control register --                        
  (8000:0000) 0.15    =     0    reset                                          
  (4000:4000) 0.14    =     1    loopback                                      
  (2040:0000) 0. 6,13 =   b00    speed selection = 10 Mbps                      
  (1000:1000) 0.12    =     1    A/N enable                                    
  (0800:0000) 0.11    =     0    power-down                                    
  (0400:0000) 0.10    =     0    isolate                                        
  (0200:0000) 0. 9    =     0    restart A/N                                    
  (0100:0000) 0. 8    =     0    duplex = half                                  
  (0080:0000) 0. 7    =     0    collision test enable                          
  (003f:0000) 0. 5- 0 =     0    (reserved)                                    

u-boot=> mdio list

FEC0:

3 - NatSemi DP83848 <--> ethernet@30be0000

u-boot=> mii read 0x3 0-6            

addr=03 reg=00 data=1000

addr=03 reg=01 data=786D

addr=03 reg=02 data=2000

addr=03 reg=03 data=5C90

addr=03 reg=04 data=01E1

addr=03 reg=05 data=CDE1

addr=03 reg=06 data=000F                                                                              
u-boot=> printenv ipaddr                                                        
ipaddr=192.168.36.126                                                          
u-boot=> ping 192.168.36.126                                                    
LVDS: phy_startup                                                              
LVDS: genphy_update_link                                                        
Using ethernet@30be0000 device                                                  
                                                                               
ARP Retry count exceeded; starting again                                        
ping failed; host 192.168.36.126 is not alive                                  

-------------------------------------------------------------------------

Regards

Santhosh

0 Kudos
3 Replies

6,667 Views
igorpadykov
NXP Employee
NXP Employee

Hi Santhosh

for such error one can look at

ARP Retry count exceeded..in u-boot 

linux - ARP Retry count exceeded in uboot - Stack Overflow 

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

0 Kudos

6,668 Views
santhosh2
Contributor IV

HI Igor,

So how do we ensure to give proper MAC address instead of setting the fake mac address in uboot, Please advice

I tried setting the MAC address randomly by enabling the below in imx8mm_evk.h file but same issue i got when i tried pining.

#define CONFIG_NET_RANDOM_ETHADDR

Please find the below trace

--------------------------------------------------------------------------------------

U-Boot 2018.03-imx_v2018.03_4.14.78_1.0.0_ga+g7ade5b4 (Jun 12 2020 - 10:41:34 +0000)

CPU:   Freescale i.MX8MMQ rev1.0 1600 MHz (running at 1200 MHz)
CPU:   Industrial temperature grade (-40C to 105C) at 62C
Reset cause: POR
Model: FSL i.MX8MM EVK board
DRAM:  2 GiB
debug setup_fec
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... OK
No panel detected: default to MIPI2HDMI
adv7535_init: Can't find device id=0x3d, on bus 1
Display: MIPI2HDMI (1920x1080)
Video: 1920x1080x24
In:    serial
Out:   serial
Err:   serial

 BuildInfo:
  - ATF d6451cc
  - U-Boot 2018.03-imx_v2018.03_4.14.78_1.0.0_ga+g7ade5b4

switch to partitions #0, OK
mmc1(part 0) is current device
flash target is MMC:1
Net:   

Warning: ethernet@30be0000 (eth0) using random MAC address - 02:01:02:03:04:05
eth0: ethernet@30be0000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot:  0
u-boot=>

--------------------------------------------------------------------------------------

0 Kudos

6,668 Views
igorpadykov
NXP Employee
NXP Employee

Hi Santhosh

one can check uboot wiki:

EthernetDoesNotWork < DULG < DENX 

"Please use only valid MAC addresses that were assigned to you. "

so obtain proper mac address

https://electronic-products-design.com/resources/customer-guides/manufacturing/obtaining-mac-address... 

then configure it in uboot:

Configure mac Addresses in U-boot  

Best regards
igor

0 Kudos