This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to config Dual Standalone EMAC mode?

Hello all:

 
   How to config Dual Standalone EMAC mode with the latest packages(DEV_TI81XXPSP_04.04.00.01 release) on EVM8148?
According to the document"TI81XX PSP Ethernet Switch User Guide",the PSPP_04.04.00.01 release support Dual Standalone EMAC mode ,
but I encountered the following questions when I try to use Dual EMAC mode:
 
1.Config the kernel to support dual EMAC model:
[*] TI CPSW Switch as Dual EMAC
 
2.Boot the new uImage.and config the eth0 and eth1 ip address :
(1)Show the exist network infor:
root@dm814x-evm:~# ifconfig 
eth0 Link encap:Ethernet HWaddr 40:5F:C2:26:23:80
          inet addr:192.168.0.98 Bcast:192.168.0.255 Mask:255.255.255.0
          inet6 addr: fe80::425f:c2ff:fe26:2380/64 Scope:Link
          UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
          RX packets:39131 errors:0 dropped:0 overruns:0 frame:0
          TX packets:23759 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:50510839 (48.1 MiB) TX bytes:2351196 (2.2 MiB)
          Interrupt:40
 
(2)config eth1
root@dm814x-evm:~# ifconfig eth1 192.168.0.104 netmask 255.255.255.0 up
CPSW phy found : id is : 0x4dd074
ADDRCONF(NETDEV_UP): eth1: link is not ready
 
(3)Show the eth1 infor:
root@dm814x-evm:~# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 8E:ED:E2:87:B1:FF
          inet addr:192.168.0.104 Bcast:192.168.0.255 Mask:255.255.255.0
          UP BROADCAST MULTICAST MTU:1500 Metric:1
          RX packets:268 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28604 (27.9 KiB) TX bytes:468 (468.0 B)
 
(4)Now I test the dual EMAC by the followings steps:
     Test 1:
           PC A(IP was 192.168.0.99) was only connected to slave port0(eth0)
     Result:
         PC A not only can ping eth0(192.168.0.98) but also can ping eth1(192.168.0.104).
 
 
     Test 2:
            PC A(IP was 192.168.0.99) was only connected to slave port1(eth1)
     Result:None of eth0 or eth1 can ping by PC A.
 
 
So, My doubt is :
1. Why I can't ping eth0/eth1 when I only connected to eth1 port,but can ping eth0/eth1 when I only connected to eth0 port?
 
2. I also found the eth1 MAC address is changed when I reboot the board:
   Sometimes is "eth1 Link encap:Ethernet HWaddr 8E:ED:E2:87:B1:FF " and sometimes is "eth1 Link encap:Ethernet HWaddr DA:7C:07:C7:01:45" and so on.
   And is this a problem ? Wheather I need to set the MAC address again ?
 
3.Now my aim is to use the EVM8148 Double EMAC interface to analyse the netwok packages,So I hope the netwok packages data 
  can be received by slave port 0 and can be sent by slave port1,at the same time the host port 0 can 
  inspect all the packages data infor(eg:use tcpdump command to see all packages data infor) 
  not only multicast and broadcast frames but also unicast frames,How can I achieve it?
  May be:
  (1)The first methord is configure the CPSW work in Promiscuous mode ,but the driver is not support now .Am I right?
  (2)The second methord is to make a "soft bridge" between eth0 and eth1 port,for EVM8148,How can I do it?
 

Thanks very much!