Dear TI,
I am working with my TDA2SX custom board. The vision sdk version is 3.6. And the related uboot and kernel tags.
I have my emac0 port connected to on-board MCU without phy chip and emac1 port connected to a realtec phy chip to the outside.
This is my kernel dts snippet decompiled from my dtb file:
ethernet@48484000 {
compatible = "ti,dra7-cpsw", "ti,cpsw";
ti,hwmods = "gmac";
clocks = <0x11b 0x11c>;
clock-names = "fck", "cpts";
cpdma_channels = <0x8>;
ale_entries = <0x400>;
bd_ram_size = <0x2000>;
mac_control = <0x20>;
slaves = <0x2>;
active_slave = <0x0>;
cpts_clock_mult = <0x784cfe14>;
cpts_clock_shift = <0x1d>;
reg = <0x48484000 0x1000 0x48485200 0x2e00>;
#address-cells = <0x1>;
#size-cells = <0x1>;
ti,no-idle;
interrupts = <0x0 0x14e 0x4 0x0 0x14f 0x4 0x0 0x150 0x4 0x0 0x151 0x4>;
ranges;
syscon = <0x8>;
status = "okay";
dual_emac;
mdio@48485000 {
compatible = "ti,cpsw-mdio";
#address-cells = <0x1>;
#size-cells = <0x0>;
ti,hwmods = "davinci_mdio";
bus_freq = <0xf4240>;
reg = <0x48485000 0x100>;
linux,phandle = <0x11d>;
phandle = <0x11d>;
};
slave@48480200 {
mac-address = [00 00 00 00 00 00];
phy-mode = "rmii";
dual_emac_res_vlan = <0x1>;
fixed-link {
speed = <0x64>;
full-duplex;
};
};
slave@48480300 {
mac-address = [00 00 00 00 00 00];
phy_id = <0x11d 0x1>;
phy-mode = "mii";
dual_emac_res_vlan = <0x2>;
};
cpsw-phy-sel@4a002554 {
compatible = "ti,dra7xx-cpsw-phy-sel";
reg = <0x4a002554 0x4>;
reg-names = "gmii-sel";
};
Then i can only get one eth port returned by issue ifconfig.
root@dra7xx-evm:~# ifconfig
eth0 Link encap:Ethernet HWaddr A8:E2:C1:D9:29:2A
inet6 addr: fe80::aae2:c1ff:fed9:292a%763612/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17828 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1435901 (1.3 MiB) TX bytes:1332 (1.3 KiB)
Interrupt:92
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1%763612/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 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:1
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
As i have enabled the "dual_emac" property. Why can not i get both eth0 and eth1 ports, which just same as the evm board.
What should i do to make the eth1 interface working normally? Are there any files from the rootfs need to be checked?
Regardss
Liu Gan


