LSDK: Q on how to make eno0 works on LSDK19.09

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

LSDK: Q on how to make eno0 works on LSDK19.09

1,426 Views
mharada
Senior Contributor II

- Environment
  - Hardware
    - LS1028ARDB
  - SW
    - LSDK 19.09
  - eno0 is connected to the Host PC

- Description

  Hello expert. I'm just new to Layerscape SDK.

  After installing the after installing LSDK19.09 using flex-installer,
  eno0 can not work at all..
  I can not just make eno0 interface working on the environment above.
  Would you please someone please teach me how to enable it ?

- How to duplicate the problem.
  1. install pure LSDK19.09 using PC
  $ flex-installer -i auto -m ls1028ardb -d /dev/sdb
  2. Boot with the SD card
  3. enable eno0 interface
  $ ifconfig eno0 192.168.99.98 up
  4. send ping from the PC
  $ ifconfig eno0
  eno0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
  inet 192.168.99.98 netmask 255.255.255.0 broadcast 192.168.99.255
  ether f2:e7:70:50:93:18 txqueuelen 1000 (Ethernet)
  RX packets 197 bytes 64914 (64.9 KB)
  RX errors 0 dropped 0 overruns 0 frame 0
  TX packets 0 bytes 0 (0.0 B)
  TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

  $ ethtool eno0
  Settings for eno0:
  Supported ports: [ TP MII ]
  Supported link modes: 10baseT/Half 10baseT/Full
  100baseT/Half 100baseT/Full
  1000baseT/Full
  Supported pause frame use: Symmetric Receive-only
  Supports auto-negotiation: Yes
  Supported FEC modes: Not reported
  Advertised link modes: 10baseT/Half 10baseT/Full
  100baseT/Half 100baseT/Full
  1000baseT/Full
  Advertised pause frame use: No
  Advertised auto-negotiation: Yes
  Advertised FEC modes: Not reported
  Speed: Unknown!
  Duplex: Unknown! (255)
  Port: MII
  PHYAD: 2
  Transceiver: internal
  Auto-negotiation: on
  Link detected: no

  ( Why Speed and Duplex is unknown ?? It looks to me PHY is not attached to MAC ...)

- Other info
  eno0 works with other software using default SD card, and OpenIL code.
  So, I believe the hardware itself is OK.
  I just can not make it work using Layerscape SDK...

Makoto

0 Kudos
Reply
7 Replies

1,381 Views
mharada
Senior Contributor II

Thanks, Pavel

But I could not make it work..
Let me ask couple of questions.

1. Is your environment the same as below ?

- Environment
  - Hardware
    - LS1028ARDB
- SW
  - LSDK 19.09
 

2. Did you use the pure LSDK19.09 or have you modified the kernel ?
$ wget https://www.nxp.com/lgfiles/sdk/lsdk1909/flex-installer
$ flex-installer -i auto -m ls1028ardb -d /dev/sdb

Makoto

0 Kudos
Reply

1,364 Views
mharada
Senior Contributor II

Pavel,

May I have your answer on this ?

Thanks.

0 Kudos
Reply

1,385 Views
Pavel
NXP Employee
NXP Employee

See below message dump setting DNS server to 8.8.8.8 from Google and setting gateway to 192.168.3.64 for the eno0. See also result for "ping" and "ethtool eno0".

 

 

root@localhost:~# vi /etc/resolv.conf

 

# This file is managed by man:systemd-resolved(8). Do not edit.

#

# This is a dynamic resolv.conf file for connecting local clients to the

# internal DNS stub resolver of systemd-resolved. This file lists all

# configured search domains.

#

# Run "systemd-resolve --status" to see details about the uplink DNS servers

# currently in use.

#

# Third party programs must not access this file directly, but only through the

# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,

# replace this symlink by a static file or a different symlink.

#

# See man:systemd-resolved.service(8) for details about the supported modes of

# operation for /etc/resolv.conf.

 

nameserver 8.8.8.8

options edns0

 

"/etc/resolv.conf" 18L, 712C written

 

root@localhost:~# route add default gw 192.168.3.64 eno0

 

root@localhost:~# ping www.microsoft.com

PING e13678.dspb.akamaiedge.net (96.17.4.15) 56(84) bytes of data.

64 bytes from a96-17-4-15.deploy.static.akamaitechnologies.com (96.17.4.15): icmp_seq=1 ttl=57 time=61.2 ms

64 bytes from a96-17-4-15.deploy.static.akamaitechnologies.com (96.17.4.15): icmp_seq=2 ttl=57 time=60.9 ms

64 bytes from a96-17-4-15.deploy.static.akamaitechnologies.com (96.17.4.15): icmp_seq=3 ttl=57 time=60.9 ms

64 bytes from a96-17-4-15.deploy.static.akamaitechnologies.com (96.17.4.15): icmp_seq=4 ttl=57 time=60.9 ms

^C

--- e13678.dspb.akamaiedge.net ping statistics ---

4 packets transmitted, 4 received, 0% packet loss, time 3003ms

rtt min/avg/max/mdev = 60.914/61.043/61.290/0.286 ms

root@localhost:~#

 

root@localhost:~# ethtool eno0

Settings for eno0:

        Supported ports: [ TP MII ]

        Supported link modes:   10baseT/Half 10baseT/Full

                                100baseT/Half 100baseT/Full

                                1000baseT/Full

                                1000baseX/Full

        Supported pause frame use: Symmetric Receive-only

        Supports auto-negotiation: Yes

        Supported FEC modes: Not reported

        Advertised link modes:  10baseT/Half 10baseT/Full

                                100baseT/Half 100baseT/Full

                                1000baseT/Full

                                1000baseX/Full

        Advertised pause frame use: No

        Advertised auto-negotiation: Yes

        Advertised FEC modes: Not reported

        Link partner advertised link modes:  10baseT/Half 10baseT/Full

                                             100baseT/Half 100baseT/Full

        Link partner advertised pause frame use: Symmetric Receive-only

        Link partner advertised auto-negotiation: Yes

        Link partner advertised FEC modes: Not reported

        Speed: 100Mb/s

        Duplex: Full

        Port: MII

        PHYAD: 2

        Transceiver: internal

        Auto-negotiation: on

        Link detected: yes

root@localhost:~#

Have a great day,
Pavel Chubakov

0 Kudos
Reply

1,417 Views
mharada
Senior Contributor II

With LSDK20.04, it worked with the procedure above...
I'm very curious what's wrong with LSDK19.09.
Thanks.

0 Kudos
Reply

1,406 Views
Pavel
NXP Employee
NXP Employee

Check your default gateway. Similar command can be used for changing default gateway:

route add default gw 192.168.99.98 eno0

 

Have a great day,
Pavel Chubakov

 

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

0 Kudos
Reply

1,399 Views
mharada
Senior Contributor II

Pavel,

Thanks for your reply.
Have you successfully make it work on eno0 on LSDK19.09 on LS1028A RDB ?
If so would you please share the step ?

I think it is not likely the gateway setting...
The reason is because of this command results..
This mean the interface is not be attached to PHY driver ...

$ethtool eno0
Speed: Unknown!
Duplex: Unknown! (255)

Makoto

0 Kudos
Reply

1,247 Views
seven_tseng
Contributor I

Search QLINUX-12862 in LSDK user guide.
Workaround: Bring down and up again the ENETC Port0 ethernet interface.

enetc_port0.png

0 Kudos
Reply