T1040 board change eht phy chip

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

T1040 board change eht phy chip

2,077 Views
diniu
Contributor I

Hi, Our t1040 board have different eth phy chips from t1040rdb, Now the u-boot can work, but the eth does not work. According u-boot output as following:

Board: T1040RDB
Board rev: 0xff CPLD ver: 0xff, vBank: 7
I2C: ready
SPI: ready
DRAM: Detected UDIMM Tigo-1600MHz-2G
Not enough bank(chip-select) for CS0+CS1 on controller 0, interleaving disabled!
2 GiB (DDR3, 64-bit, CL=11, ECC off)
L2: 256 KiB enabled
Corenet Platform Cache: 256 KiB enabled
Using SERDES1 Protocol: 142 (0x8e)
SERDES1[PRTCL] = 0x8e is not valid
MMC: FSL_SDHC: 0
SF: Detected N25Q512 with page size 256 Bytes, erase size 4 KiB, total 64 MiB
PCIe1: disabled
PCIe2: disabled
PCIe3: disabled
PCIe4: disabled
In: serial
Out: serial
Err: serial
Net: Initializing Fman
SF: Detected N25Q512 with page size 256 Bytes, erase size 4 KiB, total 64 MiB
Fman1: Uploading microcode version 107.4.2
No ethernet found.
Hit any key to stop autoboot: 0
=> mdio list
FSL_MDIO0:

What should I do? 

Regards.

0 Kudos
Reply
2 Replies

1,203 Views
gautamsontu
Contributor I

root@t1040d4rdb:~# uname -a
Linux t1040d4rdb 4.1.8-rt8+gbd51baf #1 SMP Sun May 15 04:13:24 CST 2016 ppc GNU/Linux
root@t1040d4rdb:~# ip link set eth0 up
Cannot find device "eth0"
root@t1040d4rdb:~# dmesg | grep -i eth
[ 1.366625] fsl_mac ffe4e0000.ethernet: FMan MEMAC
[ 1.370128] fsl_mac ffe4e0000.ethernet: FMan MAC address: 00:04:9f:09:09:7c
[ 1.376264] fsl_mac ffe4e2000.ethernet: FMan MEMAC
[ 1.379762] fsl_mac ffe4e2000.ethernet: FMan MAC address: 00:04:9f:09:09:7d
[ 1.385579] fsl_mac ffe4e4000.ethernet: FMan MEMAC
[ 1.389074] fsl_mac ffe4e4000.ethernet: FMan MAC address: 00:04:9f:09:09:7e
[ 1.394823] fsl_mac ffe4e6000.ethernet: FMan MEMAC
[ 1.398319] fsl_mac ffe4e6000.ethernet: FMan MAC address: 00:04:9f:09:09:7f
[ 1.404067] fsl_mac ffe4e8000.ethernet: FMan MEMAC
[ 1.407559] fsl_mac ffe4e8000.ethernet: FMan MAC address: 00:04:9f:09:09:80
[ 1.413423] fsl_dpa: FSL DPAA Ethernet driver
[ 1.418634] fsl_dpa: fsl_dpa: Probed interface eth0
[ 1.423790] fsl_dpa: fsl_dpa: Probed interface eth1
[ 1.428940] fsl_dpa: fsl_dpa: Probed interface eth2
[ 1.434128] fsl_dpa: fsl_dpa: Probed interface eth3
[ 1.439293] fsl_dpa: fsl_dpa: Probed interface eth4
[ 1.451107] fsl_dpa_shared: FSL DPAA Shared Ethernet driver
[ 1.455537] fsl_dpa_macless: FSL DPAA MACless Ethernet driver
[ 1.786756] fsl_generic: FSL DPAA Generic Ethernet driver
[ 3.500615] fsl_dpa fsl,dpaa:ethernet@0 fm1-gb0: renamed from eth0
[ 3.582245] fsl_dpa fsl,dpaa:ethernet@1 fm1-gb1: renamed from eth1
[ 3.582288] udevd[1080]: renamed network interface eth0 to fm1-gb0
[ 3.638263] fsl_dpa fsl,dpaa:ethernet@2 fm1-gb2: renamed from eth2
[ 3.638298] udevd[1081]: renamed network interface eth1 to fm1-gb1
[ 3.670203] fsl_dpa fsl,dpaa:ethernet@3 fm1-gb3: renamed from eth3
[ 3.675509] udevd[1082]: renamed network interface eth2 to fm1-gb2
[ 3.706191] fsl_dpa fsl,dpaa:ethernet@4 fm1-gb4: renamed from eth4
[ 3.706250] udevd[1083]: renamed network interface eth3 to fm1-gb3
[ 3.905019] udevd[1084]: renamed network interface eth4 to fm1-gb4
root@t1040d4rdb:~# lsmod
Module Size Used by
uio_seville 19810 1
root@t1040d4rdb:~#
root@t1040d4rdb:~#
root@t1040d4rdb:~# ip link set dev fm1-gb0 down
root@t1040d4rdb:~# ip link set dev fm1-gb0 up
root@t1040d4rdb:~# udhcpc -i fm1-gb0
udhcpc (v1.23.2) started
Sending discover...
Sending discover...
Sending discover...
Sending discover...
root@t1042d4rdb:~# ip link set fm1-gb0 up
RTNETLINK answers: No such device
root@t1042d4rdb:~# ethtool fm1-gb0
Settings for fm1-gb0:
Supported ports: [ ]
Supported link modes: Not reported
Supported pause frame use: No
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: Unknown!
Duplex: Half
Auto-negotiation: off
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
MDI-X: Unknown
Current message level: 0x00002037 (8247)
drv probe link ifdown ifup hw
Link detected: no


tried connecting eth to all the ports of device but its not detecting at all. the device tree seems fine

/include/ "t104xsi-pre.dtsi"
/include/ "t104xd4rdb.dtsi"
 
/ {
model = "fsl,T1042D4RDB";
compatible = "fsl,T1042D4RDB";
#address-cells = <2>;
#size-cells = <2>;
interrupt-parent = <&mpic>;
 
ifc: localbus@ffe124000 {
cpld@3,0 {
compatible = "fsl,t1040d4rdb-cpld",
"fsl,deepsleep-cpld";
};
};
 
soc: soc@ffe000000 {
fman0: fman@400000 {
ethernet@e0000 {
phy-handle = <&phy_sgmii_0>;
phy-connection-type = "sgmii";
};
 
ethernet@e2000 {
phy-handle = <&phy_sgmii_1>;
phy-connection-type = "sgmii";
};
 
ethernet@e4000 {
phy-handle = <&phy_sgmii_2>;
phy-connection-type = "sgmii";
};
 
ethernet@e6000 {
phy-handle = <&phy_rgmii_0>;
phy-connection-type = "rgmii";
};
 
ethernet@e8000 {
phy-handle = <&phy_rgmii_1>;
phy-connection-type = "rgmii";
};
 
mdio0: mdio@fc000 {
phy_sgmii_0: ethernet-phy@2 {
reg = <0x02>;
};
 
phy_sgmii_1: ethernet-phy@3 {
reg = <0x03>;
};
 
phy_sgmii_2: ethernet-phy@1 {
reg = <0x01>;
};
 
phy_rgmii_0: ethernet-phy@4 {
reg = <0x04>;
};
 
phy_rgmii_1: ethernet-phy@5 {
reg = <0x05>;
};
};
};
};
 
};
 
#include "t1042si-post.dtsi"

 

0 Kudos
Reply

1,856 Views
Pavel
NXP Employee
NXP Employee

Check Ethernet setting in the .dts file for your board. This file is available using the following path in SDK 2.0-1703:

QorIQ-SDK-V2.0-20160527-yocto/build_t1042d4rdb/tmp/work/t1042d4rdb-fsl-linux/linux-qoriq/4.1-r0/git/arch/powerpc/boot/dts/fsl


Have a great day,
Pavel Chubakov

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

0 Kudos
Reply