Hello Team Toradex, I have som-IMX8QM with Android OS. I am currently working on to bring up 2nd ethernet (fec2). I am not able to connect to internet. Second Ethernet phy is KSZ9131RNXI, with is same used on som for ethernet 1. We have directly given the supply to KSZ9131RNXI and put the reset pin in pullup state with external resistor.
dmesg log :
1) for ifconfig:
apalis_8qm:/ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:14:2d:e0:8d:69 Driver fec
UP 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 TX bytes:0
dummy0 Link encap:Ethernet HWaddr 06:af:c3:e9:fa:70
inet6 addr: fe80::4af:c3ff:fee9:fa70/64 Scope: Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:560
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:1000
RX bytes:0 TX bytes:0
eth1 Link encap:Ethernet HWaddr 3e:5d:a4:30:6e:d7 Driver fec
UP 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 TX bytes:0
2) dmesg | grep -i eth
apalis_8qm:/ # dmesg | grep -i eth
[ 0.000000] psci: probing for conduit method from DT.
[ 2.047988] fec 5b040000.ethernet: Adding to iommu group 1
[ 2.054797] fec 5b050000.ethernet: Adding to iommu group 1
[ 2.067624] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[ 2.104974] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.6.0-k
[ 2.182984] usbcore: registered new interface driver cdc_ether
[ 3.152948] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 4.326493] fec 5b040000.ethernet eth0: registered PHC device 0
[ 4.554495] fec 5b050000.ethernet: Invalid MAC address: 00:00:00:00:00:00
[ 4.561302] fec 5b050000.ethernet: Using random MAC address: 3e:5d:a4:30:6e:d7
[ 4.574422] fec 5b050000.ethernet eth1: registered PHC device 1
[ 14.325688] using random self ethernet address
[ 14.330269] using random host ethernet address
[ 29.299943] Microchip KSZ9131 Gigabit PHY 5b050000.ethernet-2:07: attached PHY driver [Microchip KSZ9131 Gigabit PHY] (mii_bus:phy_addr=5b050000.ethernet-2:07, irq=266)
[ 29.339917] Microchip KSZ9131 Gigabit PHY 5b040000.ethernet-1:07: attached PHY driver [Microchip KSZ9131 Gigabit PHY] (mii_bus:phy_addr=5b040000.ethernet-1:07, irq=318)
[ 807.343145] Microchip KSZ9131 Gigabit PHY 5b050000.ethernet-2:07: attached PHY driver [Microchip KSZ9131 Gigabit PHY] (mii_bus:phy_addr=5b050000.ethernet-2:07, irq=266)
[ 1244.628548] fec 5b040000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 1244.636538] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Here, 5b050000 is my second ethernet, When I connect lan cable to first ethernet fec 5b040000, internet is working, but when i connect lan cable to fec 5b050000, ethernet is not working.
I am not getting same like fec 5b050000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
Kindly help us.
Let me know if you required anything.