TQMLS10xxA - YOCTO Linux BSP documentation


Ethernet TQMLS1043A

The STKLS1043A provides one 10 Gigabit Ethernet Interfaces and eight 10/100/1000 Ethernet Interfaces.

U-Boot

In U-Boot FM1@DTSEC3 is configured as default interface. The IP configuration can be done statically or by a DHCP server in the network. IP configuration via DHCP

For a configuration via a DHCP server, use the dhcp command in U-Boot.

Static IP configuration For a static IP configuration the following, U-Boot environment variables must be set:

setenv ipaddr <ipaddr> 
(e.g.: setenv ipaddr 192.168.100.111)
setenv netmask <netmask> 
(e.g.: setenv netmask 255.255.255.0)

Linux

All Ethernet interfaces are deactivated by default. To activate the interfaces use the following command.

For a temporary static configuration the ip command can be used, below some useful ip commands are listed:

Activate a specific interface
e.g. fm1-mac2

ip link set fm1-mac2 up


Disable a specific interace
e.g. fm1-mac2

ip link set fm1-mac2 down


Show ip address for a specific interface
e.g. fm1-mac2

ip addr show fm1-mac2


Show statistic for a specific interface
e.g. fm1-mac2

 
ip -s link show fm1-mac2


Set ip address for a specific interface
e.g. fm1-mac2

ip addr add 192.168.1.100/24 dev fm1-mac2


Show statistic of all interfaces

ip -s link


Set default gateway for a specific interfaces
e.g. set gateway ip 192.168.1.1 for fm1-mac2

ip route add default via 192.168.1.1 dev fm1-mac2

If a DHCP server is available in the network environment the ip configuration can be received from it. To do so execute the udhcpc command, by default eth0 is used.
To configure another interface via dhcp the parameter -i followed by the interface name e.g. fm1-mac2 must be given.
e.g. fm1-mac2

udhcpc -i fm1-mac2 

Ethernet TQMLS1046A

The STKLS1046A provides two 10 Gigabit Ethernet Interfaces and eight 10/100/1000 Ethernet Interfaces.

Ethernet Interface Assignment

For the ethernet interface assignment see here.

How to use 10Gbit ethernet on STKLS1046

In order to use the two 10 Gbit ethernet interfaces on the STKLS1046, the U-Boot bootloader has to be rebuilt with a new RCW configuration.
By default RCW 3333 (SerDes1) and 5559 (SerDes2) are configured in the TQMLS1046 U-Boot. This RCW configuration does not support 10Gbit ethernet.

RCW Configuration 1133_5559

As an example the RCW configuration 1133(SerDes1) and 5559(SerDes2) has been chosen for this how to.
See the tables below for further information about the RCW configuration.

SerDes1 - RCW 1133
Lane D Lane C Lane B Lane A PCIe GEN1/2
PLL Mapping
PCIe GEN3
PLL Mapping
XFI.9 XFI.10 SGMII.5 SGMII.6 2211 N/A
SerDes2 - RCW 5559
Lane D Lane C Lane B Lane A PCIe GEN1/2
PLL Mapping
PCIe GEN3
PLL Mapping
Unused PCIe.2 x1 PCIe.3 x1 SATA 2221 N/A
Rebuild U-Boot with RCW configuration 1133_5559
  1. After building the Yocto Image, following line has to be added to configuration file local.conf
     RCWSD = "default/rcw_1800_1133_5559_sd"
     RCWQSPI = "default/rcw_1800_3333_5559_qspi"
     
  1. Create a new Image with the following command:
    bitbake core-image-minimal
STKLS1046 DIP Switch Configuration

According to the RCW 1133_5559 the DIP switches on STKLS1046 DIP must be set as follows:

SD card RCW 1133_5559
S7 S8 S6 S5 S10
DIP 4 3 2 1 4 3 2 1 4 3 2 1 4 3 2 1 2 1
OFF
ON
Ethernet interface assigment RCW 1133_5559

1 2 3 4 5 6 7 8 9 10 11 12
RGMII.3 RGMII.4 SGMII.5 SGMII.6 XFI.10 XFI.9

U-Boot

In U-Boot FM1@DTSEC3 is configured as default interface. The IP configuration can be done statically or by a DHCP server in the network. IP configuration via DHCP

For a configuration via a DHCP server, use the dhcp command in U-Boot.

Static IP configuration For a static IP configuration the following, U-Boot environment variables must be set:

setenv ipaddr <ipaddr> 
(e.g.: setenv ipaddr 192.168.100.111)
setenv netmask <netmask> 
(e.g.: setenv netmask 255.255.255.0)

Linux

All Ethernet interfaces are deactivated by default. To activate the interfaces use the following command.

For a temporary static configuration the ip command can be used, below some useful ip commands are listed:

Activate a specific interface
e.g. fm1-mac3

ip link set fm1-mac3 up


Disable a specific interace
e.g. fm1-mac3

ip link set fm1-mac3 down


Show ip address for a specific interface
e.g. fm1-mac3

ip addr show fm1-mac3


Show statistic for a specific interface
e.g. fm1-mac3

 
ip -s link show fm1-mac3 


Set ip address for a specific interface
e.g. fm1-mac3

ip addr add 192.168.1.100/24 dev fm1-mac3


Show statistic of all interfaces

ip -s link


Set default gateway for a specific interfaces
e.g. set gateway ip 192.168.1.1 for fm1-mac3

ip route add default via 192.168.1.1 dev fm1-mac3

If a DHCP server is available in the network environment the ip configuration can be received from it. To do so execute the udhcpc command, by default eth0 is used.
To configure another interface via dhcp the parameter -i followed by the interface name e.g. fm1-mac3 must be given.
e.g. fm1-mac3

udhcpc -i fm1-mac3

Ethernet TQMLS1088A

The STKLS1088A provides two 10 Gigabit Ethernet Interfaces and eight 10/100/1000 Ethernet Interfaces.

Ethernet Interface Assignment

For the ethernet interface assignment see here.

Ethernet Interface Configuration

The Ethernet interfaces are managed via DPAA2 and not configured by default. The interfaces have to be configured in Linux:

ls-addni dpmac.X

Example configuration of DPMAC2:

ls-addni dpmac.2

Afterwards you can save the configuration to a dts file with:

restool dprc generate-dpl dprc.1 > <my_dpl>.dts

To generate a dtb file you have to use

dtc -I dts -O dtb <my_dpl>.dts -o <my_dpl>.dtb

Copy the generated dtb file to the boot partition (/dev/mmcblk0p1) and execute in U-Boot the following commands with your dtb file name

setenv dpl_file <my_dpl>.dtb
load mmc ${mmcdev}:1 $loadaddr ${dpl_file}
mmc write ${loadaddr} 0x6800 0x800

U-Boot

In U-Boot DPMAC4@rgmii-id is configured as default interface. The IP configuration can be done statically or by a DHCP server in the network. IP configuration via DHCP

For a configuration via a DHCP server, use the dhcp command in U-Boot.

Static IP configuration For a static IP configuration the following, U-Boot environment variables must be set:

setenv ipaddr <ipaddr> 
(e.g.: setenv ipaddr 192.168.100.111)
setenv netmask <netmask> 
(e.g.: setenv netmask 255.255.255.0)

Linux

With the right dtb configuration file all ethernet interfaces are activated.

For a temporary static configuration the ip command can be used, below some useful ip commands are listed:

Activate a specific interface
e.g. eth0

ip link set eth0 up


Disable a specific interace
e.g. eth0

ip link set eth0 down


Show ip address for a specific interface
e.g. eth0

ip addr show eth0


Show statistic for a specific interface
e.g. eth0

 
ip -s link show eth0 


Set ip address for a specific interface
e.g. eth0

ip addr add 192.168.1.100/24 dev eth0


Show statistic of all interfaces

ip -s link


Set default gateway for a specific interfaces
e.g. set gateway ip 192.168.1.1 for eth0

ip route add default via 192.168.1.1 dev eth0

If a DHCP server is available in the network environment the ip configuration can be received from it. To do so execute the udhcpc command, by default eth0 is used.
To configure another interface via dhcp the parameter -i followed by the interface name e.g. eth1 must be given.
e.g. eth1

udhcpc -i eth1