Hello
On my AM335x based custom board i have 2 ethernet interfaces,
I programm static IP :
root@am335x-evm:~# ifconfig eth0 192.168.213.67
root@am335x-evm:~# ifconfig eth1 192.168.213.42
[55595.934204] net eth1: CPSW phy found : id is : 0x1410e20
root@am335x-evm:~# [55598.925537] PHY: 0:10 - Link is Up - 100/Full
ifconfig -a
can0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
-00
NOARP MTU:16 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:10
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:55
eth0 Link encap:Ethernet HWaddr 1C:BA:8C:B7:1E:22
inet addr:192.168.213.67 Bcast:192.168.213.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:674073 errors:0 dropped:593697 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:65124769 (62.1 MiB) TX bytes:656 (656.0 B)
eth1 Link encap:Ethernet HWaddr 1C:BA:8C:B7:1E:24
inet addr:192.168.213.42 Bcast:192.168.213.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:62 errors:0 dropped:57 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6234 (6.0 KiB) TX bytes:0 (0.0 B)
But i can't ping one interface if not both (the 2) ethernet cables are plugged physically on the board
If the 2 cables are connected both interfaces can be pingable, if i unplugged one cable i can't ping the interface that still have the cable
As anyone any explanation for this behaviour ?
Thanks
But be able to have 2 ethernet interfaces i validated in the kernel :
[*] Networking support --->
Device Drivers --->
[*] Network device support --->
[*] Ethernet driver support --->
[*] TI CPSW Switch as Dual EMAC
regards