AnsweredAssumed Answered

Ethernet issues on T4240QDS

Question asked by Vigneshwaren Sankaran on Mar 1, 2014
Latest reply on Apr 8, 2014 by Vigneshwaren Sankaran

I am working on a T4240QDs board. When I boot into the system, the eth0 is not generated.

I checked the dmesg dump and found out the following error messages

 

[1.751442] fsl_mac: mac.c:417:mac_load() fsl_mac: FSL FMan MAC API based driver ()
[1.758122] fsl_mac ffe4e0000.ethernet: of_get_mac_address(/soc@ffe000000/fman@400000/ethernet@e0000) failed
[1.766663] fsl_mac: probe of ffe4e0000.ethernet failed with error -22
[1.771981] fsl_mac ffe4e8000.ethernet: of_get_mac_address(/soc@ffe000000/fman@400000/ethernet@e8000) failed
[1.780518] fsl_mac: probe of ffe4e8000.ethernet failed with error -22
[1.785914] fsl_mac ffe5e8000.ethernet: of_get_mac_address(/soc@ffe000000/fman@500000/ethernet@e8000) failed
[1.794452] fsl_mac: probe of ffe5e8000.ethernet failed with error -22
[1.799911] fsl_dpa: dpaa_eth.c:4304:dpa_load() fsl_dpa: FSL DPAA Ethernet driver ()
[1.806813] fsl_dpa ethernet.16: dev_get_drvdata(ffe4e8000.ethernet) failed
[1.812483] fsl_dpa: probe of ethernet.16 failed with error -22
[1.817219] fsl_dpa ethernet.17: dev_get_drvdata(ffe5e8000.ethernet) failed
[1.822888] fsl_dpa: probe of ethernet.17 failed with error -22

 

I booted into the U-boot prompt and tried to set the IP address

I set a suitable IP address(10.116.65.38) netmask(255.255.255.0) gatewayip(10.116.65.1)

 

The error that I got was:

 

*** ERROR: `eth1addr' not set

FM1@DTSEC5 Waiting for PHY auto negotiation to complete......... TIMEOUT !

FM1@DTSEC5: No link.

ping failed; host 10.116.65.38 is not alive

 

 

 

I checked the board infor structure:

=> bdinfo 

memstart    = 0x00000000

memsize     = 0x200000000

flashstart  = 0xE0000000

flashsize   = 0x08000000

flashoffset = 0x00000000

sramstart   = 0x00000000

sramsize    = 0x00000000

immr_base   = 0xFE000000

bootflags   = 0x00000000

intfreq     = 1666.667 MHz

busfreq     = 666.667 MHz

addressing  = 36-bit

ethaddr     = (not set)

IP addr     = 10.116.65.32

baudrate    = 115200 bps

relocaddr   = 0x7FF30000

Core voltage= 1043 mV

XVDD        = 1.50 V

SYSCLK      = 66.67 MHz

DDRCLK      = 66.67 MHz

RCW source  = I2C extended addressing

HRESET_REQ  = Reset system

 

Clearly ethaddr was not set.

 

I am trying to figure out a way to recover the MAC address and I am not able to. Where and how do I retrieve my MAC address.

Thanks in advance.

 

 

I have attached my environment variables:

=> print

baudrate=115200

bdev=sda3

bootargs=root=/dev/mmcblk0p1 rw rootdelay=5 console=ttyS0,115200

bootcmd=setenv bootargs root=/dev/mmcblk0p1 rw rootdelay=5 console=$consoledev,$baudrate;mmcinfo;ext2load mmc 0:1 $loadaddr $bootfile;ext2load mmc 0:1 $fdtaddr $fdtfile; bootm $loadaddr - $fdtaddr

bootdelay=10

bootfile=uImage

c=ffe

consoledev=ttyS0

ethact=FM1@DTSEC5

ethprime=FM1@DTSEC1

fdtaddr=0x17200000

fdtfile=uImage-t4240qds.dtb

filesize=0x3df080

fman_ucode=0xeff40000

gatewayip=10.116.65.1

hwconfig=fsl_ddr:ctlr_intlv=3way_4KB,bank_intlv=auto;usb1:dr_mode=host,phy_type=utmi

ipaddr=10.116.65.32

loadaddr=0x10000000

netdev=eth0

netmask=255.255.255.0

nfsboot=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr

ramboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;tftp $ramdiskaddr $ramdiskfile;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr $ramdiskaddr $fdtaddr

ramdiskaddr=0x02000000

ramdiskfile=t4240qds/ramdisk.uboot

rootpath=/opt/nfsroot

serverip=10.116.65.38

stderr=serial

stdin=serial

stdout=serial

tftpflash=tftpboot $loadaddr $uboot && protect off $ubootaddr +$filesize && erase $ubootaddr +$filesize && cp.b $loadaddr $ubootaddr $filesize && protect on $ubootaddr +$filesize && cmp.b $loadaddr $ubootaddr $filesize

uboot="u-boot.bin"

ubootaddr=0xeff80000

Outcomes