Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

two tlk110 phy problem

$
0
0

I am using am3359 with 2 tlk110, 

I have tested that two phys work fine alone when using it download kernel using tftp .

But in linux  the second tlk110 which is eth1 in my system can not send data out   here is my dump

[ 0.996761] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[ 1.003285] davinci_mdio davinci_mdio.0: detected phy mask fffffff9
[ 1.011260] davinci_mdio.0: probed
[ 1.014848] phy[1]: device 0:01, driver unknown
[ 1.019656] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
[ 1.027100] phy[2]: device 0:02, driver unknown
[ 1.031873] davinci_mdio davinci_mdio.0: phy[2]: device 0:02, driver unknown

[    1.418661] Detected MACID=0:18:31:e3:10:6

[    1.430667] cpsw: Detected MACID = 00:18:31:e3:10:07

[    1.445155] net eth0: CPSW phy found : id is : 0x2000a211

[    3.437416] PHY: 0:01 - Link is Up - 100/Full

[    3.466756] IP-Config: Guessing netmask 255.255.255.0

[    3.472276] IP-Config: Complete:

[    3.475675]      device=eth0, addr=192.168.1.170, mask=255.255.255.0, gw=255.255.255.255,

[    3.484069]      host=192.168.1.170, domain=, nis-domain=(none)

[    3.490417]      bootserver=255.255.255.255, rootserver=192.168.1.244, rootpath=

[    3.508469] VFS: Mounted root (nfs filesystem) on device 0:14.

[    3.515099] Freeing init memory: 244K

I run ifconfig eth1 192.168.2.112 then the kernel dump these

[   40.715176] net eth1: CPSW phy found : id is : 0x2000a211

[   42.707436] PHY: 0:02 - Link is Up - 100/Full

root@am335x-evm:/etc/network# ifconfig
eth0 Link encap:Ethernet HWaddr 00:18:31:E3:10:06
inet addr:192.168.1.170 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:15867 errors:0 dropped:1470 overruns:0 frame:0
TX packets:8403 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8068850 (7.6 MiB) TX bytes:1294242 (1.2 MiB)

eth1 Link encap:Ethernet HWaddr 00:18:31:E3:10:07
inet addr:192.168.2.112 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:191 errors:0 dropped:26 overruns:0 frame:0
TX packets:99 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:29457 (28.7 KiB) TX bytes:5940 (5.8 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:104 errors:0 dropped:0 overruns:0 frame:0
TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10120 (9.8 KiB) TX bytes:10120 (9.8 KiB)

Then I ping  another router 192.168.2.1 , it do not show anything 

root@am335x-evm:/etc/network# ping 192.168.2.1

PING 192.168.2.1 (192.168.2.1): 56 data bytes

My linux bsp version is linux-3.2.0-psp05.06.00.00.

I have add the pinmux in the board file

static struct pinmux_config mii2_pin_mux[] = {
{"gpmc_wpn.mii2_rxerr",OMAP_MUX_MODE1 |AM33XX_PIN_INPUT_PULLDOWN},
{"gpmc_a0.mii2_txen", OMAP_MUX_MODE1 | AM33XX_PIN_OUTPUT},
{"gpmc_a1.mii2_rxdv", OMAP_MUX_MODE1| AM33XX_PIN_INPUT_PULLDOWN},
{"gpmc_a2.mii2_txd3", OMAP_MUX_MODE1 | AM33XX_PIN_OUTPUT},
{"gpmc_a3.mii2_txd2", OMAP_MUX_MODE1| AM33XX_PIN_OUTPUT},
{"gpmc_a4.mii2_txd1", OMAP_MUX_MODE1 | AM33XX_PIN_OUTPUT},
{"gpmc_a5.mii2_txd0", OMAP_MUX_MODE1 | AM33XX_PIN_OUTPUT},
{"gpmc_a6.mii2_txclk", OMAP_MUX_MODE1 | AM33XX_PIN_OUTPUT},
{"gpmc_a7.mii2_rxclk", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLDOWN},
{"gpmc_a8.mii2_rxd3", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLDOWN},
{"gpmc_a9.mii2_rxd2", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLDOWN},
{"gpmc_a10.mii2_rxd1", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLDOWN},
{"gpmc_a11.mii2_rxd0", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLDOWN},
{NULL, 0},
};

Can any one help me ?


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>