Ping does not work from my iMX6-ULL EVK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ping does not work from my iMX6-ULL EVK

2,426 Views
capecom
Contributor I

I am unable to ping to or ping from my iMX6ULL-EVK board after booting Linux. I could, however, ping from u-boot. I turned off auto ip in the Linux kernel and configured static IP address to my EVK board [EVK-192.168.1.40, My PC-192.168.1.60, netmask 255.255.255.0]. 

I also applied the PHY driver patch per the information in the link https://community.nxp.com/docs/DOC333163 and the problem still persists.

Below is the log from my EVK console:

U-Boot 2016.03-imx_v2016.03_4.1.15_2.0.0_ga+g0ec2a01 (Sep 16 2016 - 17:58:13 -0500)

 

CPU:   Freescale i.MX6ULL rev1.0 at 396MHz

CPU:   Commercial temperature grade (0C to 95C) at 42C

Reset cause: POR

Board: MX6ULL 14x14 EVK

I2C:   ready

DRAM:  512 MiB

MMC:   FSL_SDHC: 0, FSL_SDHC: 1

Display: TFT43AB (480x272)

Video: 480x272x24

In:    serial

Out:   serial

Err:   serial

switch to partitions #0, OK

mmc1 is current device

Net:   FEC1

Normal Boot

Hit any key to stop autoboot:  0

=> print ipaddr

ipaddr=192.168.1.41

=> print netmask

netmask=255.255.255.0

=> ping 192.168.1.60

Using FEC1 device

host 192.168.1.60 is alive

=>

root@imx6ull14x14evk:~# ifconfig eth1 up 192.168.1.40

root@imx6ull14x14evk:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:9f:04:b6:fd
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)

eth1 Link encap:Ethernet HWaddr 00:04:9f:04:b6:fd
inet addr:192.168.1.40 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST DYNAMIC 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/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:140 (140.0 B) TX bytes:140 (140.0 B)

root@imx6ull14x14evk:~# ping 192.168.1.60
PING 192.168.1.60 (192.168.1.60) 56(84) bytes of data.
From 192.168.1.40 icmp_seq=1 Destination Host Unreachable
From 192.168.1.40 icmp_seq=2 Destination Host Unreachable
From 192.168.1.40 icmp_seq=3 Destination Host Unreachable
From 192.168.1.40 icmp_seq=4 Destination Host Unreachable
From 192.168.1.40 icmp_seq=5 Destination Host Unreachable
From 192.168.1.40 icmp_seq=6 Destination Host Unreachable
^C
--- 192.168.1.60 ping statistics ---
7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6007ms

Labels (3)
0 Kudos
4 Replies

1,681 Views
Carlos_Musich
NXP Employee
NXP Employee

You may enable the desired port in /etc/network/interfaces file. You may try first with static IP by adding the information below in such file.

For a DHCP client:

auto eth1

iface eth1 inet dhcp

For a Static IP (of course this is an example, your numbers will be different):

auto eth1

iface eth1 inet static

address 192.168.0.100

network 192.168.0.0

netmask 255.255.255.0

broadcast 192.168.0.255

gateway 192.168.0.1


Best regards,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,681 Views
capecom
Contributor I

Hello Carlos,

Thanks for your quick reply.

I tried configuring my network interface as you have suggested. The problem remains. Here is my /etc/network/interfaces file:

root@imx6ull14x14evk:~# cat /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# Wired or wireless interfaces
auto eth1
iface eth1 inet static
address 192.168.1.40
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.60

root@imx6ull14x14evk:~# ifdown eth1
root@imx6ull14x14evk:~# ifup eth1
fec 2188000.ethernet eth1: Freescale FEC PHY driver [Micrel KSZ8081 or KSZ8091] (mii_bus:phy_addr=20b4000.ethernet:02, irq=-1)
IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
root@imx6ull14x14evk:~#

root@imx6ull14x14evk:~# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:04:9f:04:b6:fd
inet addr:192.168.1.40 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST DYNAMIC 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)

root@imx6ull14x14evk:~# ping 192.168.1.60
PING 192.168.1.60 (192.168.1.60) 56(84) bytes of data.
From 192.168.1.40 icmp_seq=1 Destination Host Unreachable
From 192.168.1.40 icmp_seq=2 Destination Host Unreachable
From 192.168.1.40 icmp_seq=3 Destination Host Unreachable
^C
--- 192.168.1.60 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3001ms
pipe 3

0 Kudos

1,681 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi capecom,

are you using defualt device tree and all other settings?

Does ping work using eth0 port?

Carlos

0 Kudos

1,681 Views
capecom
Contributor I

Hello Carlos,

I have another iMX6ULL EVK and I am able to ping to and from the second iMX6ULL EVK board from both EMAC ports. I am not sure what is going on with the first board I was using. I will check into it and post the information once I fix this issue. Thank you for your responses!

0 Kudos