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.

cpsw config



I need cpsw working as a simple switch. I enabled "802.1Q VLAN Support" and "GVRP (GARP VLAN Registration Protocol) support" at kernel's menuconfig as describe in user guide, but phy 0:02 is not working. I changed my phy addrs to 0:01 and 0:02 in device.c. Below is the change:

static struct emac_platform_data ti816x_emac1_pdata = {
.rmii_en = 0,
.phy_id = "0:01",
.gigabit_en = 1,
};

static struct emac_platform_data ti816x_emac2_pdata = {
.rmii_en = 0,
.phy_id = "0:02",
.gigabit_en = 1,
};

I receive the follow message in boot:

CPSW phy found : id is : 0x221611

CPSW phy found : id is : 0x221611

8021q: adding VLAN 0 to HW filter on device eth0
Adding vlanid 0 to vlan filter
Sending DHCP requests .
PHY: 0:01 - Link is Up - 100/Full
PHY: 0:02 - Link is Up - 0/Half
PHY: 0:02 - Link is Down
., OK
IP-Config: Got DHCP answer from 0.0.0.0, my address is 192.168.0.130
IP-Config: Complete:
device=eth0, addr=192.168.0.130, mask=255.255.255.0, gw=192.168.0.1,
host=192.168.0.130, domain=, nis-domain=(none),
bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath=

Did I forget anything? Any suggestions?