AnsweredAssumed Answered

RGMII with DP83867 in T2081 board Ping Test Failed

Question asked by Anshul khare on Mar 13, 2019
Latest reply on Mar 26, 2019 by bpe

We are having a custom board based on T2081 processor having two PHY (DP83867) attached to the processor via RGMII interface.
The design is based on the T2080RDB-PC Board.

i have made the below changes in u-boot configuration file to enable the RGMII PHY.

 

#define CONFIG_PHY_TI
#define RGMII_PHY1_ADDR 0x00
#define RGMII_PHY2_ADDR 0x01


The problem is when i am trying to ping from the board i am getting error
*** ERROR: `ethaddr' not set
ping failed; host 192.168.1.4 is not alive

i am trying to find the "ethaddr" but i am not getting.

I am attaching the U-boot log which includes RCW settings of the board.


in u-boot logs also i am getting error.

 

"FM1@DTSEC3 connected to TI DP83867
Initial value for argc=3
Final value for argc=3
fm_eth_rx_port_parameter_init: rx_buf_pool = 0fafa7e0
FM1@DTSEC4 connected to TI DP83867
FM1@DTSEC3 [PRIME]
Error: FM1@DTSEC3 address not set.
, FM1@DTSEC4
Error: FM1@DTSEC4 address not set."

 

i am having the below mentioned environment variable.

 

printenv
EXPORT table = 0ff87134, htab.size = 227, htab.filled = 26, size = 0
Unsorted: n=26
0: 0faf4138 ==> stdin => serial
1: 0faf4188 ==> ramdiskfile => t2080qds/ramdisk.uboot
2: 0faf4250 ==> ramboot => setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;tftp $ramdiskaddr $ramdiskfile;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr $ramdiskaddr $fdtaddr
3: 0faf42a0 ==> initrd_high => 0x0FFFFFF0
4: 0faf441c ==> 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
5: 0faf44a8 ==> 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
6: 0faf455c ==> baudrate => 115200
7: 0faf4610 ==> consoledev => ttyS0
8: 0faf47a0 ==> fman_ucode => eff00000
9: 0faf47b4 ==> loadaddr => 1000000
10: 0faf4804 ==> fdtaddr => 1e00000
11: 0faf4840 ==> bootfile => uImage
12: 0faf4868 ==> netdev => eth0
13: 0faf48a4 ==> ubootaddr => 0xeff40000
14: 0faf4ac0 ==> stderr => serial
15: 0faf4b9c ==> bdev => sda3
16: 0faf4bb0 ==> ethprime => FM1@DTSEC3
17: 0faf4c3c ==> fdtfile => t2080qds/t2080qds.dtb
18: 0faf4c8c ==> uboot => "u-boot.bin"
19: 0faf4cb4 ==> stdout => serial
20: 0faf4d54 ==> bootdelay => 10
21: 0faf4ef8 ==> ramdiskaddr => 2000000
22: 0faf4f48 ==> ethact => FM1@DTSEC3
23: 0faf4fac ==> hwconfig => fsl_ddr:ctlr_intlv=cacheline,bank_intlv=auto;usb1:dr_mode=host,phy_type=utmi
24: 0faf5254 ==> bootcmd => setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;setenv ramdiskaddr 0x02000000;setenv fdtaddr 0x00c00000;setenv loadaddr 0x1000000;bootm $loadaddr $ramdiskaddr $fdtaddr
25: 0faf52cc ==> rootpath => /opt/nfsroot
baudrate=115200
bdev=sda3
bootcmd=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;setenv ramdiskaddr 0x02000000;setenv fdtaddr 0x00c00000;setenv loadaddr 0x1000000;bootm $loadaddr $ramdiskaddr $fdtaddr
bootdelay=10
bootfile=uImage
consoledev=ttyS0
ethact=FM1@DTSEC3
ethprime=FM1@DTSEC3
fdtaddr=1e00000
fdtfile=t2080qds/t2080qds.dtb
fman_ucode=eff00000
hwconfig=fsl_ddr:ctlr_intlv=cacheline,bank_intlv=auto;usb1:dr_mode=host,phy_type=utmi
initrd_high=0x0FFFFFF0
loadaddr=1000000
netdev=eth0
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=2000000
ramdiskfile=t2080qds/ramdisk.uboot
rootpath=/opt/nfsroot
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=0xeff40000

Environment size: 1399/8188 bytes


mii info


PHY 0x00: OUI = 0x80028, Model = 0x23, Rev = 0x01, 10baseT, HDX
PHY 0x01: OUI = 0x80028, Model = 0x23, Rev = 0x01, 10baseT, HDX
PHY 0x02: OUI = 0x80028, Model = 0x23, Rev = 0x01, 10baseT, FDX
PHY 0x03: OUI = 0x80028, Model = 0x23, Rev = 0x01, 10baseT, FDX

 

mdio list

 

FSL_MDIO0:
FM_TGEC_MDIO:
T2080QDS_MDIO_RGMII1:
0 - TI DP83867 <--> FM1@DTSEC3
T2080QDS_MDIO_RGMII2:
1 - TI DP83867 <--> FM1@DTSEC4
T2080QDS_MDIO_SLOT1:
T2080QDS_MDIO_SLOT2:
T2080QDS_MDIO_SLOT3:
T2080QDS_MDIO_SLOT4:
T2080QDS_MDIO_SLOT5:
T2080QDS_MDIO_10GC:


To perform the "ping" test i have updated the below environment variables as,

 

setenv ipaddr 192.168.1.3
setenv serverip 192.168.1.4
setenv netmask 255.255.255.0
setenv gatewayip 192.168.1.1

 

and when i am running the test i am getting below error.

 

ping 192.168.1.4
Trying FM1@DTSEC3
memac_set_interface_mode, if_mode = 5006
memac_set_interface_mode, if_status = b000
*** ERROR: `ethaddr' not set
ping failed; host 192.168.1.4 is not alive
Command failed, result=1

 

kindly help to solve this issue.

Attachments

Outcomes