We have a custom board using an Apalis i.mx8 Quad Max running Android 10
We are trying to use both eth0 and eth1 ports on the custom boards using 2 x KSZ9131 phy's. We can bring up individual phy's OK (ping etc) but cannot bring up and use both phy's.
apalis_8qm:/ # ifconfig eth1 up
[ 281.500581] Microchip KSZ9131 Gigabit PHY 5b050000.ethernet-2:07: attached PHY driver [Microchip KSZ9131 Gigabit PHY] (mii_bus:phy_addr=5b050000.ethernet-2:07, irq=POLL)
apalis_8qm:/ # [ 284.592335] fec 5b050000.ethernet eth1: Link is Up - 100Mbps/Full - flow control rx/tx
[ 284.600353] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
apalis_8qm:/ $ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:14:2d:67:d5:03 Driver fec
inet addr:192.168.0.92 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::c7fe:c946:c301:ef9f/64 Scope: Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:912 errors:0 dropped:0 overruns:0 frame:0
TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:143444 TX bytes:5459
apalis_8qm:/ # ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:14:2d:77:d5:03 Driver fec
inet6 addr: fe80::214:2dff:fe77:d503/64 Scope: Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:107 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16389 TX bytes:746
apalis_8qm:/ # ping -I eth0 8.8.8.8
PING 8.8.8.8 (8.8.8.8) from 192.168.0.92 eth0: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=60 time=49.1 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=60 time=48.8 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=60 time=49.0 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=60 time=48.7 ms
apalis_8qm:/ # ping -I eth1 8.8.8.8
ping: Warning: source address might be selected on device other than eth1.
PING 8.8.8.8 (8.8.8.8) from 0.0.0.0 eth1: 56(84) bytes of data.
From 127.0.0.1: icmp_seq=1 Destination Host Unreachable
From 127.0.0.1: icmp_seq=2 Destination Host Unreachable
From 127.0.0.1: icmp_seq=3 Destination Host Unreachable
From 127.0.0.1: icmp_seq=4 Destination Host Unreachable
From 127.0.0.1: icmp_seq=5 Destination Host Unreachable
I am using this dhcpcd set up in init.rc -
service dhcpcd_eth0 /system/bin/dhcpcd -ABKL eth0 eth1
class main
disabled
oneshot
service iprenew_eth0 /system/bin/dhcpcd -n eth0 eth1
class main
disabled
oneshot
Has anyone used both eth0 and eth1 with i.mx8 and Android 10?
Is the second ip address the issue?
Thank you.