Other Parts Discussed in Thread: DP83640
Tool/software:
I'm using a w5500 (connected AM5728 with SPI bus) as a supplemental net port for AM5728 board(TL5728-idk), but the w5500 is eth0 after booting(Probably because the w5500 needs to be mounted on SPI bus). I want setting the w5500 as eth4, but I don't know how to set up the Linux kernel and dts to set the w5500 as eth4 after booting.
The other four PHY chips are KSZ9031RNXIA(eth1/eth2), DP83640(eth3/eth4).
When I insert "ifconfig" on AM5728 board, the serial port showed as below:
root@AM57xx-Tronlong:~# ifconfig
eth0 Link encap:Ethernet HWaddr BA:0B:39:98:C8:4E
inet6 addr: fe80::b80b:39ff:fe98:c84e%763852/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:1957 (1.9 KiB)
eth1 Link encap:Ethernet HWaddr 54:45:38:EF:D5:8E
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 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:101
eth2 Link encap:Ethernet HWaddr 54:45:38:EF:D5:8F
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 (0.0 B) TX bytes:0 (0.0 B)
eth3 Link encap:Ethernet HWaddr 5E:03:ED:66:D0:54
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 (0.0 B) TX bytes:0 (0.0 B)
eth4 Link encap:Ethernet HWaddr 22:31:49:C0:AB:A7
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 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1%763852/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:163 errors:0 dropped:0 overruns:0 frame:0
TX packets:163 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:12487 (12.1 KiB) TX bytes:12487 (12.1 KiB)