T2080QDS : Network issue

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

T2080QDS : Network issue

1,320 Views
abhijit_thorat
Contributor III

Hi,

I am using T2080QDS for development project. I want to transfer data to another machine.

I build deployment images using Yocto and deployed images using tftp server.

In boot mode I am able to ping 8.8.8.8

But in kernel mode no interface is up automatically. Also I checked file /etc/network/interfaces

There is no interface in that file.

What are the steps to make network working? Do I need to configure interface manually?   

Is there any documentation for that? 

I refer document QorIQ SDK 2.0 Documentation but not find anything.

Following are the environment variables. Boot logs are also attached.

=> printenv
baudrate=115200
bdev=sda3
bootargs=root=/dev/ram rw console=ttyS0,115200 ramdisk_size=10000000 log_buf_len=128K
bootcmd=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate;bootm e8020000 e9300000 e8800000
bootdelay=10
bootfile=uImage
consoledev=ttyS0
eth10addr=00:04:9F:06:8D:12
eth11addr=00:04:9F:06:8D:13
eth12addr=00:04:9F:06:8D:14
eth13addr=00:04:9F:06:8D:15
eth14addr=00:04:9F:06:8D:16
eth15addr=00:04:9F:06:8D:17
eth1addr=00:04:9F:06:8D:09
eth2addr=00:04:9F:06:8D:0A
eth3addr=00:04:9F:06:8D:0B
eth4addr=00:04:9F:06:8D:0C
eth5addr=00:04:9F:06:8D:0D
eth6addr=00:04:9F:06:8D:0E
eth7addr=00:04:9F:06:8D:0F
eth8addr=00:04:9F:06:8D:10
eth9addr=00:04:9F:06:8D:11
ethact=FM1@DTSEC3
ethaddr=00:04:9F:06:8D:08
ethprime=FM1@DTSEC3
fdtaddr=c00000
fdtfile=t2080qds/t2080qds.dtb
fileaddr=1000000
filesize=4df2e0
fman_ucode=eff00000
hwconfig=fsl_ddr:ctlr_intlv=cacheline,bank_intlv=auto;usb1:dr_mode=host,phy_type=utmi
ipaddr=131.101.198.134
loadaddr=1000000
netdev=eth0
netmask=255.255.255.0
nfsboot=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off console=$consoledev,$baudrate $othbo
otargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr
ramboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;tftp $ramdiskaddr $ramdiskfile;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm
$loadaddr $ramdiskaddr $fdtaddr
ramdiskaddr=2000000
ramdiskfile=t2080qds/ramdisk.uboot
rootpath=/opt/nfsroot
sataboot=setenv bootargs root=/dev/sda1 rootdelay=5 rw console=$consoledev,$baudrate $othbootargs;bootm e8020000 - e8800000
serverip=131.101.198.244
stderr=serial
stdin=serial
stdout=serial
tftpflash=tftpboot $loadaddr $uboot && protect off $ubootaddr +$filesize && erase $ubootaddr +$filesize && cp.b $loadaddr $ubootaddr $filesize && protect on $ubootaddr
+$filesize && cmp.b $loadaddr $ubootaddr $filesize
uboot="u-boot.bin"
ubootaddr=0xeff40000

Environment size: 2069/8188 bytes

=> mdio list
FSL_MDIO0:
FM_TGEC_MDIO:
T2080QDS_MDIO_RGMII1:
1 - RealTek RTL8211E <--> FM1@DTSEC3
T2080QDS_MDIO_RGMII2:
2 - RealTek RTL8211E <--> FM1@DTSEC4
T2080QDS_MDIO_SLOT1:
T2080QDS_MDIO_SLOT2:
T2080QDS_MDIO_SLOT3:
T2080QDS_MDIO_SLOT4:
T2080QDS_MDIO_SLOT5:
T2080QDS_MDIO_10GC:
=> mdio read FM1@DTSEC3 1
Reading from bus T2080QDS_MDIO_RGMII1
PHY at address 1:
1 - 0x7969
=> mdio read FM1@DTSEC4 1
Reading from bus T2080QDS_MDIO_RGMII2
PHY at address 2:
1 - 0x7949
=> mii info
PHY 0x00: OUI = 0x0732, Model = 0x11, Rev = 0x05, 10baseT, HDX
PHY 0x02: OUI = 0x0732, Model = 0x11, Rev = 0x05, 10baseT, HDX
=> ping 8.8.8.8
Using FM1@DTSEC3 device
host 8.8.8.8 is alive

Labels (1)
0 Kudos
Reply
3 Replies

1,252 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Abhijit Thorat,


You need to configure the Ethernet interfaces manually.

For example:

root@t2080qds:~# ifconfig fm1-mac3 
8.8.8.8

root@t2080qds:~# ifconfig


Please refer to the following

FM1@DTSEC3(MAC3)

FM1@DTSEC4(MAC4)
FM1@TGEC1(MAC9)
FM1@TGEC2(MAC10)
FM1@TGEC3(MAC1)
FM1@TGEC4(MAC2)


Thanks,

Yiping

0 Kudos
Reply

1,252 Views
abhijit_thorat
Contributor III

Hi Yiping,

I am able to connect to the network on interface fm1-mac3 after adding interface in file /etc/network/interfaces manually.

root@t2080qds:~# ifconfig
fm1-mac3  Link encap:Ethernet  HWaddr 00:04:9f:06:8d:0a
          inet addr:131.101.198.193  Bcast:131.101.198.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4154 errors:0 dropped:536 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:459182 (448.4 KiB)  TX bytes:1860 (1.8 KiB)
          Memory:ffe4e4000-ffe4e4fff
 
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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
 
root@t2080qds:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=112 time=44.2 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=112 time=42.0 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=112 time=42.6 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=112 time=39.2 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=112 time=35.7 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=112 time=19.4 ms
64 bytes from 8.8.8.8: icmp_seq=7 ttl=112 time=19.6 ms
64 bytes from 8.8.8.8: icmp_seq=8 ttl=112 time=37.5 ms
^C
--- 8.8.8.8 ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7010ms
rtt min/avg/max/mdev = 19.429/35.079/44.236/9.325 ms
root@t2080qds:~#

root@t2080qds:~# cat /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
 
# The loopback interface
auto lo
iface lo inet loopback
 
auto fm1-mac3
iface fm1-mac3 inet dhcp
root@t2080qds:~#
root@t2080qds:~#

root@t2080qds:~# ethtool fm1-mac3
Settings for fm1-mac3:
        Supported ports: [ 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
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: Symmetric
        Link partner advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 1
        Transceiver: external
        Auto-negotiation: on
        Current message level: 0xffffffff (-1)
                               drv probe link timer ifdown ifup rx_err tx_err tx_queued intr tx_done rx_status pktdata hw wol 0xffff8000
        Link detected: yes
root@t2080qds:~#
 

  

Is there any way to do this automatically. So that when board boots, interface will be UP directly and no need to configure interface manually?

Thanks,

Abhijit

0 Kudos
Reply

1,252 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Abhijit,

You could modify /etc/network/interfaces and make this file into the rootfs filesystem.

In Yocto build environment

1. $ bitbake init-ifupdown -c cleansstate

2. Please modify sources/meta-freescale/recipes-core/init-ifupdown/init-ifupdown/qoriq/interfaces to add the Ethernet interface information as the following.

auto fm1-mac3
iface fm1-mac3 inet dhcp

 

3. Rebuild rootfs filesystem

$ bitbake fsl-image-core

You could refer to https://community.nxp.com/message/1006471?commentID=1006471#comment-1006471 .

Thanks,

Yiping

0 Kudos
Reply