T2080 kernel ethernet problem

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

T2080 kernel ethernet problem

1,773 Views
pushpamanjunath
Contributor I

I am working T2080 based custom board. 

Pinging is successful  in u-boot, whereas ping is failing in kernel.

ifconfig displays the interfaces

root@t2080rdb:~# ifconfig -a
fm1-mac3 Link encap:Ethernet HWaddr 00:04:9f:02:02:fd
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:fe4e4000-fe4e4fff

fm1-mac4 Link encap:Ethernet HWaddr 00:04:9f:02:03:fd
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:fe4e6000-fe4e6fff

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

sit0 Link encap:UNSPEC HWaddr 00-00-00-00-1F-08-00-00-00-00-00-00-00-00-00-00
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

tunl0 Link encap:IPIP Tunnel HWaddr
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

I tried the following

ifconfig fm1-mac3 200.168.1.117 netmask 255.255.255.0 up

But still it is not pinging

Below is the u-boot log

U-Boot 2015.01QorIQ-SDK-V1.8+g6ba8eed (Jul 29 2016 - 19:42:28)

initcall: 002104dc
U-Boot code: 00201000 -> 002C1000 BSS: -> 0030DFE0
initcall: 00209dd4
CPU0: T2080E, Version: 1.1, (0x85380011)
Core: e6500, Version: 2.0, (0x80400120)
Clock Configuration:
CPU0:999.900 MHz, CPU1:999.900 MHz, CPU2:999.900 MHz, CPU3:999.900 MHz,
CCB:466.620 MHz,
DDR:533.280 MHz (1066.560 MT/s data rate) (Asynchronous), IFC:116.655 MHz
FMAN1: 499.950 MHz
QMAN: 233.310 MHz
PME: 466.620 MHz
L1: D-cache 32 KiB enabled
I-cache 32 KiB enabled
Reset Configuration Word (RCW):
00000000: 0e08000f 0f000000 00000000 00000000
00000010: e0360002 20406400 e8104000 c1000000
00000020: 00000000 00000000 00000000 0002a78c
00000030: 00000214 02800000 00000000 00000001
initcall: 00210118
initcall: 0020d3f8
Board: T2080RDB, Board rev: 0xff CPLD ver: 0xff, boot from NAND
SERDES Reference Clocks:
SD1_CLK1=156.25MHZ, SD1_CLK2=100.00MHZ
SD2_CLK1=100.00MHZ, SD2_CLK2=100.00MHZ
initcall: 002108c8
I2C: Requested speed:100000, i2c_clk:233310000
FDR:0x30, div:2560, ga:0x4, gb:0x4, a:10, b:256, speed:91136
Tr <= 955 ns
divider:2333, est_div:2560, DFSR:11
FDR:0x30, speed:91136
ready
Requested speed:100000, i2c_clk:233310000
FDR:0x30, div:2560, ga:0x4, gb:0x4, a:10, b:256, speed:91136
Tr <= 955 ns
divider:2333, est_div:2560, DFSR:11
FDR:0x30, speed:91136
Sata Clock Auto Configuration
Requested speed:100000, i2c_clk:233310000
FDR:0x30, div:2560, ga:0x4, gb:0x4, a:10, b:256, speed:91136
Tr <= 955 ns
divider:2333, est_div:2560, DFSR:11
FDR:0x30, speed:91136
Sata Clock Auto Configuration
initcall: 0021056c
SPI: ready
initcall: 0021022c
DRAM: initcall: 00210518
initcall: 00210958
Monitor len: 0010CFE0
Ram size: 80000000
Ram top: 80000000
Reserving MP boot page to 7ffff000
initcall: 00210168
initcall: 0021017c
initcall: 00210468
Reserving 1075k for U-Boot at: 7fef0000
initcall: 00210420
Reserving 4104k for malloc() at: 7faee000
initcall: 0021060c
Reserving 72 Bytes for Board Info at: 7faedfb8
initcall: 00210184
initcall: 002103d4
Reserving 184 Bytes for Global Data at: 7faedf00
initcall: 00210354
initcall: 00210224
initcall: 0021018c
initcall: 00210708
initcall: 002106c0
2 GiB (DDR3, 64-bit, CL=8, ECC on)
initcall: 002101cc
initcall: 002101f8
initcall: 00210324
New Stack Pointer is: 7faedef0
initcall: 00210274
initcall: 002102c0
Relocation Offset is: 7fcef000
Relocating to 7fef0000, new gd at 7faedf00, sp at 7faedef0
initcall: 00210258
initcall: 7feffa40
initcall: 7feffccc
initcall: 00210da4 (relocated to 7feffda4)
initcall: 00210ca8 (relocated to 7feffca8)
initcall: 00210a48 (relocated to 7feffa48)
initcall: 00210c70 (relocated to 7feffc70)
using memory 0x7faee000-0x7fef0000 for malloc()
initcall: 00210a38 (relocated to 7feffa38)
initcall: 0022e8f0 (relocated to 7ff1d8f0)
initcall: 00210c4c (relocated to 7feffc4c)
initcall: 00210bd0 (relocated to 7feffbd0)
Now running in RAM - U-Boot at: 7fef0000
initcall: 00210c24 (relocated to 7feffc24)
initcall: 00210c00 (relocated to 7feffc00)
initcall: 0020d4a4 (relocated to 7fefc4a4)
Cleared 18 portals
Cleared 18 portals
i2c_wait: No RXACK
i2c_wait: No RXACK
i2c_wait: No RXACK
i2c_wait: No RXACK
i2c_wait: No RXACK
i2c_wait: No RXACK
VID: Could not find voltage regulator on I2C.
Warning: Adjusting core voltage failed.
initcall: 00210a58 (relocated to 7feffa58)
initcall: 00210d08 (relocated to 7feffd08)
Flash: flash detect cfi
fwc addr e8000000 cmd f0 f0 8bit x 8 bit
fwc addr e8000000 cmd ff ff 8bit x 8 bit
fwc addr e8000055 cmd 98 98 8bit x 8 bit
is= cmd 51(Q) addr e8000010 is= 0 51
fwc addr e8000555 cmd 98 98 8bit x 8 bit
is= cmd 51(Q) addr e8000010 is= 0 51
fwc addr e8000000 cmd f0 f0f0 16bit x 8 bit
fwc addr e8000000 cmd ff ffff 16bit x 8 bit
fwc addr e80000aa cmd 98 9898 16bit x 8 bit
is= cmd 51(Q) addr e8000020 is= 0082 5151
fwc addr e8000aaa cmd 98 9898 16bit x 8 bit
is= cmd 51(Q) addr e8000020 is= 0082 5151
fwc addr e8000000 cmd f0 00f0 16bit x 16 bit
fwc addr e8000000 cmd ff 00ff 16bit x 16 bit
fwc addr e80000aa cmd 98 0098 16bit x 16 bit
is= cmd 51(Q) addr e8000020 is= 0082 0051
fwc addr e8000aaa cmd 98 0098 16bit x 16 bit
is= cmd 51(Q) addr e8000020 is= 0082 0051
fwc addr e8000000 cmd f0 f0f0f0f0 32bit x 8 bit
fwc addr e8000000 cmd ff ffffffff 32bit x 8 bit
fwc addr e8000154 cmd 98 98989898 32bit x 8 bit
is= cmd 51(Q) addr e8000040 is= 00820082 51515151
fwc addr e8001554 cmd 98 98989898 32bit x 8 bit
is= cmd 51(Q) addr e8000040 is= 00820082 51515151
fwc addr e8000000 cmd f0 00f000f0 32bit x 16 bit
fwc addr e8000000 cmd ff 00ff00ff 32bit x 16 bit
fwc addr e8000154 cmd 98 00980098 32bit x 16 bit
is= cmd 51(Q) addr e8000040 is= 00820082 00510051
fwc addr e8001554 cmd 98 00980098 32bit x 16 bit
is= cmd 51(Q) addr e8000040 is= 00820082 00510051
fwc addr e8000000 cmd f0 000000f0 32bit x 32 bit
fwc addr e8000000 cmd ff 000000ff 32bit x 32 bit
fwc addr e8000154 cmd 98 00000098 32bit x 32 bit
is= cmd 51(Q) addr e8000040 is= 00820082 00000051
fwc addr e8001554 cmd 98 00000098 32bit x 32 bit
is= cmd 51(Q) addr e8000040 is= 00820082 00000051
fwrite addr e8000000 cmd f0 f0f0f0f0f0f0f0f0 64 bit x 8 bit
fwrite addr e8000000 cmd ff ffffffffffffffff 64 bit x 8 bit
fwrite addr e80002a8 cmd 98 9898989898989898 64 bit x 8 bit
is= cmd 51(Q) addr e8000080 is= 0082008200820082 5151515151515151
fwrite addr e8002aa8 cmd 98 9898989898989898 64 bit x 8 bit
is= cmd 51(Q) addr e8000080 is= 0082008200820082 5151515151515151
fwrite addr e8000000 cmd f0 00f000f000f000f0 64 bit x 16 bit
fwrite addr e8000000 cmd ff 00ff00ff00ff00ff 64 bit x 16 bit
fwrite addr e80002a8 cmd 98 0098009800980098 64 bit x 16 bit
is= cmd 51(Q) addr e8000080 is= 0082008200820082 0051005100510051
fwrite addr e8002aa8 cmd 98 0098009800980098 64 bit x 16 bit
is= cmd 51(Q) addr e8000080 is= 0082008200820082 0051005100510051
fwrite addr e8000000 cmd f0 000000f0000000f0 64 bit x 32 bit
fwrite addr e8000000 cmd ff 000000ff000000ff 64 bit x 32 bit
fwrite addr e80002a8 cmd 98 0000009800000098 64 bit x 32 bit
is= cmd 51(Q) addr e8000080 is= 0082008200820082 0000005100000051
fwrite addr e8002aa8 cmd 98 0000009800000098 64 bit x 32 bit
is= cmd 51(Q) addr e8000080 is= 0082008200820082 0000005100000051
fwrite addr e8000000 cmd f0 00000000000000f0 64 bit x 64 bit
fwrite addr e8000000 cmd ff 00000000000000ff 64 bit x 64 bit
fwrite addr e80002a8 cmd 98 0000000000000098 64 bit x 64 bit
is= cmd 51(Q) addr e8000080 is= 0082008200820082 0000000000000051
fwrite addr e8002aa8 cmd 98 0000000000000098 64 bit x 64 bit
is= cmd 51(Q) addr e8000080 is= 0082008200820082 0000000000000051
not found
0 Bytes
initcall: 0020a8ac (relocated to 7fef98ac)
L2: 2 MiB enabled
Corenet Platform Cache: 512 KiB enabled
A007186: sfp_spfr0= b0dc2714
A007186: pll_num=0 pllcr0=800009
A007186: pll_num=1 pllcr0=80000008
Using SERDES1 Protocol: 224 (0xe0)
A007186: sfp_spfr0= b0dc2714
A007186: pll_num=0 pllcr0=10800008
A007186: pll_num=1 pllcr0=8a0008
A007186: 3.0/3.072 protocol rate
A007186: pll_num=1 Updated PLLCR1=2826c100
A007186: pll_num=1, Updated PLLCR0=8a0088
A007186: pll_num=1 Updated PLLCR1=3a26c100
A007186: pll_num=1 pllsr2=8d0000
A007186: pll_num=1 pllcr0=8a0088
A007186 Serdes PLL locked
Using SERDES2 Protocol: 54 (0x36)
BRSIZE is 0xb
address size
0 80000000
fe8000000 10000000
min start_addr is 0
max end_addr is ff7ffffff
size found is 0
PAACT :Base addr is 0
PAACT : Size is 1000000000
configured ppace
subwin_size is 20000000
sec_addr < end_addr is 0 < 80000000
win_size is a
sec_addr < end_addr is 20000000 < 80000000
win_size is a
SPAACT:Writing at location 00000000, index 1
Reached overlap condition
59 < 28
sec_addr < end_addr is 40000000 < 80000000
win_size is a
SPAACT:Writing at location 00000040, index 2
Reached overlap condition
59 < 28
sec_addr < end_addr is 60000000 < 80000000
win_size is a
SPAACT:Writing at location 00000080, index 3
Reached overlap condition
59 < 28
sec_addr < end_addr is fe0000000 < ff8000000
win_size is a
SPAACT:Writing at location 00001f80, index 127
Reached overlap condition
59 < 28
min start_addr is 0
max end_addr is ff7ffffff
size found is 0
PAACT :Base addr is 0
PAACT : Size is 1000000000
configured ppace
subwin_size is 20000000
sec_addr < end_addr is 0 < 80000000
win_size is a
sec_addr < end_addr is 20000000 < 80000000
win_size is a
SPAACT:Writing at location 00001fc0, index 1
Reached overlap condition
59 < 28
sec_addr < end_addr is 40000000 < 80000000
win_size is a
SPAACT:Writing at location 00002000, index 2
Reached overlap condition
59 < 28
sec_addr < end_addr is 60000000 < 80000000
win_size is a
SPAACT:Writing at location 00002040, index 3
Reached overlap condition
59 < 28
sec_addr < end_addr is fe0000000 < ff8000000
win_size is a
SPAACT:Writing at location 00003f40, index 127
Reached overlap condition
59 < 28
01: operation
02: jump
03: load_imm_u32
05: operation
00000000: No error:
Error 0
SEC0: RNG instantiated
initcall: 00210a60 (relocated to 7feffa60)
initcall: 00210ba0 (relocated to 7feffba0)
NAND: 512 MiB
initcall: 00210b6c (relocated to 7feffb6c)
MMC: FSL_SDHC: 0
initcall: 00210b2c (relocated to 7feffb2c)
Destroy Hash Table: 7ff7fd14 table = 00000000
Create Hash Table: N=512
INSERT: table 7ff7fd14, filled 1/521 rv 7faf4120 ==> name="baudrate" value="115200"
INSERT: table 7ff7fd14, filled 2/521 rv 7faf5278 ==> name="bdev" value="sda3"
INSERT: table 7ff7fd14, filled 3/521 rv 7faf5cb4 ==> name="bootargs" value="root=/dev/ram rw console=ttyS0,115200"
INSERT: table 7ff7fd14, filled 4/521 rv 7faf4544 ==> name="bootcmd" value="tftp 1000000 uImage.bin;tftp c00000 uImage.dtb;tftp 2000000 fs.rootfs.ext2.gz.u-boot;bootm 1000000 2000000 c00000"
INSERT: table 7ff7fd14, filled 5/521 rv 7faf4da0 ==> name="bootdelay" value="5"
INSERT: table 7ff7fd14, filled 6/521 rv 7faf4864 ==> name="bootfile" value="uImage.bin"
INSERT: table 7ff7fd14, filled 7/521 rv 7faf3eb4 ==> name="consoledev" value="ttyS0"
INSERT: table 7ff7fd14, filled 8/521 rv 7faf3cfc ==> name="eth1addr" value="00:04:9F:02:01:FD"
INSERT: table 7ff7fd14, filled 9/521 rv 7faf375c ==> name="eth2addr" value="00:04:9F:02:02:FD"
INSERT: table 7ff7fd14, filled 10/521 rv 7faf5a70 ==> name="eth3addr" value="00:04:9F:02:03:FD"
INSERT: table 7ff7fd14, filled 11/521 rv 7faf54d0 ==> name="eth4addr" value="00:04:9F:02:04:FD"
INSERT: table 7ff7fd14, filled 12/521 rv 7faf4f30 ==> name="eth5addr" value="00:04:9F:02:05:FD"
INSERT: table 7ff7fd14, filled 13/521 rv 7faf4990 ==> name="eth6addr" value="00:04:9F:02:06:FD"
INSERT: table 7ff7fd14, filled 14/521 rv 7faf4468 ==> name="ethact" value="FM1@DTSEC4"
INSERT: table 7ff7fd14, filled 15/521 rv 7faf5d2c ==> name="ethaddr" value="00:04:9F:02:00:FD"
INSERT: table 7ff7fd14, filled 16/521 rv 7faf3bbc ==> name="ethprime" value="FM1@DTSEC3"
INSERT: table 7ff7fd14, filled 17/521 rv 7faf4f44 ==> name="fdtaddr" value="0x00c00000"
INSERT: table 7ff7fd14, filled 18/521 rv 7faf4a44 ==> name="fdtfile" value="uImage.dtb"
INSERT: table 7ff7fd14, filled 19/521 rv 7faf4f08 ==> name="fileaddr" value="1000000"
INSERT: table 7ff7fd14, filled 20/521 rv 7faf4788 ==> name="filesize" value="494b5c"
INSERT: table 7ff7fd14, filled 21/521 rv 7faf4b84 ==> name="fman_ucode" value="7faf64c0"
INSERT: table 7ff7fd14, filled 22/521 rv 7faf4a6c ==> name="hwconfig" value="fsl_ddr:ctlr_intlv=cacheline,bank_intlv=auto;usb1:dr_mode=host,phy_type=utmi"
INSERT: table 7ff7fd14, filled 23/521 rv 7faf5bd8 ==> name="ipaddr" value="192.168.1.15"
INSERT: table 7ff7fd14, filled 24/521 rv 7faf4c24 ==> name="loadaddr" value="0x1000000"
INSERT: table 7ff7fd14, filled 25/521 rv 7faf52f0 ==> name="netdev" value="eth0"
INSERT: table 7ff7fd14, filled 26/521 rv 7faf49cc ==> name="nfsboot" value="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"
INSERT: table 7ff7fd14, filled 27/521 rv 7faf45f8 ==> name="ramboot" value="setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;tftp $ramdiskaddr $ramdiskfile;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr $ramdiskaddr $fdtaddr"
INSERT: table 7ff7fd14, filled 28/521 rv 7faf3a7c ==> name="ramdiskaddr" value="0x2000000"
INSERT: table 7ff7fd14, filled 29/521 rv 7faf3acc ==> name="ramdiskfile" value="fs.rootfs.ext2.gz.u-boot"
INSERT: table 7ff7fd14, filled 30/521 rv 7faf4e7c ==> name="rootpath" value="/opt/nfsroot"
INSERT: table 7ff7fd14, filled 31/521 rv 7faf433c ==> name="serverip" value="192.168.1.10"
INSERT: table 7ff7fd14, filled 32/521 rv 7faf4940 ==> name="stderr" value="serial"
INSERT: table 7ff7fd14, filled 33/521 rv 7faf4080 ==> name="stdin" value="serial"
INSERT: table 7ff7fd14, filled 34/521 rv 7faf51b0 ==> name="stdout" value="serial"
INSERT: table 7ff7fd14, filled 35/521 rv 7faf3f68 ==> name="tftpflash" value="tftpboot $loadaddr $uboot && protect off $ubootaddr +$filesize && erase $ubootaddr +$filesize && cp.b $loadaddr $ubootaddr $filesize && protect on $ubootaddr +$filesize && cmp.b $loadaddr $ubootaddr $filesize"
INSERT: table 7ff7fd14, filled 36/521 rv 7faf36bc ==> name="uboot" value=""u-boot.bin""
INSERT: table 7ff7fd14, filled 37/521 rv 7faf37e8 ==> name="ubootaddr" value="0x00201000"
INSERT: free(data = 7faf1488)
INSERT: done
initcall: 00210d80 (relocated to 7feffd80)
initcall: 0020d140 (relocated to 7fefc140)
EEPROM: Requested speed:100000, i2c_clk:233310000
FDR:0x30, div:2560, ga:0x4, gb:0x4, a:10, b:256, speed:91136
Tr <= 955 ns
divider:2333, est_div:2560, DFSR:11
FDR:0x30, speed:91136
i2c_wait: No RXACK
i2c_wait: No RXACK
ID: SN:
Errata:
Build date: 2000/00/00 00:00:00
CRC: 00000000 (should be a66359f1)
EEPROM dump: (0x100 bytes)
00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Read failed.
initcall: 00210b08 (relocated to 7feffb08)
PCIe1: Root Complex, Setting outbound memory
mem_bus:mem_phys:mem_sizee0000000:c00000000
Setting outbound io
io_bus:io_phys:io_size0:ff8000000
po->wbar:po->tar:e000000000020:e0000
po->wbar:po->tar:20:0
Outbound memory range: e0000000:100000000
PCICSRBAR @ 0xdf000007
R0 bus_start: 0 phys_start: 0 size: 80000000
R64 bus_start: 1000000000 phys_start: 0 size: 80000000
PCI reg:0 0000000c00000000:00000000e0000000 0000000020000000 00000000
PCI reg:1 0000000ff8000000:0000000000000000 0000000000010000 00000001
PCI reg:2 0000000ffe000000:00000000df000007 0000000000fffff9 00000100
PCI reg:3 0000000000000000:0000000000000000 0000000080000000 00000108
PCI reg:4 0000000000000000:0000001000000000 0000000080000000 00000108
no link, regs @ 0xfe240000
PCIe1: Bus 00 - 00
PCIe2: disabled
PCIe3: Root Complex, Setting outbound memory
mem_bus:mem_phys:mem_sizee0000000:c30000000
Setting outbound io
io_bus:io_phys:io_size0:ff8020000
po->wbar:po->tar:e000000000020:e0000
po->wbar:po->tar:20:0
Outbound memory range: e0000000:f0000000
PCICSRBAR @ 0xff000007
R0 bus_start: 0 phys_start: 0 size: 80000000
R64 bus_start: 1000000000 phys_start: 0 size: 80000000
PCI reg:0 0000000c30000000:00000000e0000000 0000000010000000 00000000
PCI reg:1 0000000ff8020000:0000000000000000 0000000000010000 00000001
PCI reg:2 0000000ffe000000:00000000ff000007 0000000000fffff9 00000100
PCI reg:3 0000000000000000:0000000000000000 0000000080000000 00000108
PCI reg:4 0000000000000000:0000001000000000 0000000080000000 00000108
no link, regs @ 0xfe260000
PCIe3: Bus 01 - 01
PCIe4: Root Complex, Setting outbound memory
mem_bus:mem_phys:mem_sizee0000000:c40000000
Setting outbound io
io_bus:io_phys:io_size0:ff8030000
po->wbar:po->tar:e000000000020:e0000
po->wbar:po->tar:20:0
Outbound memory range: e0000000:f0000000
PCICSRBAR @ 0xff000007
R0 bus_start: 0 phys_start: 0 size: 80000000
R64 bus_start: 1000000000 phys_start: 0 size: 80000000
PCI reg:0 0000000c40000000:00000000e0000000 0000000010000000 00000000
PCI reg:1 0000000ff8030000:0000000000000000 0000000000010000 00000001
PCI reg:2 0000000ffe000000:00000000ff000007 0000000000fffff9 00000100
PCI reg:3 0000000000000000:0000000000000000 0000000080000000 00000108
PCI reg:4 0000000000000000:0000001000000000 0000000080000000 00000108
no link, regs @ 0xfe270000
PCIe4: Bus 02 - 02
initcall: 0022e928 (relocated to 7ff1d928)
initcall: 00210ae4 (relocated to 7feffae4)
initcall: 00229f70 (relocated to 7ff18f70)
In: serial
Out: serial
Err: serial
Initial value for argc=3
Final value for argc=3
Initial value for argc=3
Final value for argc=3
Initial value for argc=3
Final value for argc=3
initcall: 0020d554 (relocated to 7fefc554)
initcall: 0020c448 (relocated to 7fefb448)
iivpr1@fe050220 = 810001
iivpr2@fe050240 = 810002
iivpr3@fe050260 = 810003
iivpr9@fe050320 = 810009
iivpr10@fe050340 = 81000a
iivpr11@fe050360 = 81000b
initcall: 00210ab0 (relocated to 7feffab0)
initcall: 00210a7c (relocated to 7feffa7c)
Net: SerDes1 protocol 0xe0 is not supported on T208xRDB
Fman1: Uploading microcode version 108.4.2
Initial value for argc=3
Final value for argc=3
FM1@DTSEC3 connected to Generic PHY
Initial value for argc=3
Final value for argc=3
Phy 0 not found
PHY reset timed out
FM1@DTSEC4 connected to Generic PHY
memac_set_interface_mode, if_mode = 9002
memac_set_interface_mode, if_status = 2000
memac_set_interface_mode, if_mode = 9002
memac_set_interface_mode, if_status = 2000
FM1@DTSEC3 [PRIME], FM1@DTSEC4, FM1@DTSEC5, FM1@DTSEC6
initcall: 00210a68 (relocated to 7feffa68)
### main_loop entered: bootdelay=5

But the ping is working in T2080RDB board, both in u-boot and kernel.

Anyone please let me know what could be the reason?

0 Kudos
6 Replies

1,112 Views
pushpamanjunath
Contributor I

Thanks for your time Yiping.

I have changed the dts file as suggested by you but, still no luck.

Attaching the dts file kernel boot log

Also following is the mii info output

=> mdio list
FSL_MDIO0:
0 - Generic PHY <--> FM1@DTSEC4
1 - Generic PHY <--> FM1@DTSEC3
FM_TGEC_MDIO:
=> mii info
PHY 0x01: OUI = 0x5043, Model = 0x1D, Rev = 0x01, 10baseT, HDX
=>

But one thing which is conflicting is RGMII PHY ADR in u-boot

In u-boot following is the Phy Address

#define RGMII_PHY1_ADDR 0x00
#define RGMII_PHY2_ADDR 0x01

and RGMII_PHY1_ADDR is configured to FM1_DTSEC3 and RGMII_PHY2_ADDR 0x01 is configured to FM1_DTSEC4

But mdio list says 

=> mdio list
FSL_MDIO0:
0 - Generic PHY <--> FM1@DTSEC4
1 - Generic PHY <--> FM1@DTSEC3

0 Kudos

1,112 Views
pushpamanjunath
Contributor I

Hello Yiping,

Any Ideas? Require some points to move ahead, I am struck at this point itself.

0 Kudos

1,112 Views
pushpamanjunath
Contributor I

Now I am able to see that Link is getting detected

root@:~#ethtool fm1-mac3
Settings for fm1-mac3:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Current message level: 0xffffffff (-1)
drv probe link timer ifdown ifup rx_err tx_err tx_queued intr tx_done rx_status pktdata hw wol 0xffff8000
Link detected: yes

But however pinging is failing

0 Kudos

1,112 Views
pushpamanjunath
Contributor I

Finally it's pinging!!

Issue was with ARP packets.

0 Kudos

1,112 Views
pushpamanjunath
Contributor I

mdio list command lists the following PHY

=> mdio list
FSL_MDIO0:
0 - Generic PHY <--> FM1@DTSEC4
1 - Generic PHY <--> FM1@DTSEC3
FM_TGEC_MDIO:

PING works on FM1@DTSEC4

=> ping 192.168.1.10
Trying FM1@DTSEC3
FM1@DTSEC3 Waiting for PHY auto negotiation to complete......... TIMEOUT !
memac_set_interface_mode, if_mode = 3006
memac_set_interface_mode, if_status = 2000
FM1@DTSEC3: No link.
FAIL
Initial value for argc=3
Final value for argc=3
Trying FM1@DTSEC4
memac_set_interface_mode, if_mode = 5006
memac_set_interface_mode, if_status = b000
Using FM1@DTSEC4 device
host 192.168.1.10 is alive

But mdio reg output is 0xffff for FM1@DTSEC4,

=> mdio read FM1@DTSEC3 1
Reading from bus FSL_MDIO0
PHY at address 1:
1 - 0x7949
=> mdio read FM1@DTSEC4 1
Reading from bus FSL_MDIO0
PHY at address 0:
1 - 0xffff

kernel log

root@t2080rdb:~# ethtool fm1-mac4
Settings for fm1-mac4:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Current message level: 0xffffffff (-1)
drv probe link timer ifdown ifup rx_err tx_err tx_queued intr tx_done rx_status pktdata hw wol 0xffff8000
Link detected: no

ping is not working in kernel on FM1@DTSEC4 

Is the register output of FM1@DTSEC4 value correct?

0 Kudos

1,112 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello pushpamanjunath,

Please check whether you defined dts similar as the following.


                fm1mac3: ethernet@e4000 {
                        phy-handle = <&rgmii_phy1>;
                        phy-connection-type = "rgmii";
                };

                fm1mac4: ethernet@e6000 {
                        phy-handle = <&rgmii_phy2>;
                        phy-connection-type = "rgmii";
                };

   ... ...

                   mdio0: mdio@fc000 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        rgmii_phy1: ethernet-phy@1 {
                                reg = <0x1>;
                        };
                        rgmii_phy2: ethernet-phy@2 {
                                reg = <0x0>;
                        };
                };

 If your problem remains, please provide your dts file and Linux Kernel boot up log.


Have a great day,
TIC

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

0 Kudos