In the U-Boot log, the names of the Ethernet interfaces are printed in the format <name>@<interface type>, for example, DPMAC2@xgmii. DPMAC is a DPAA2 object that identifies the physical interface.
For Linux, in TinyDistro as well as in Ubuntu distribution, by default, only one MAC is enabled as a standard Kernel Ethernet Interface. This interface is named eth0 by default (or eth1 if PCI Express network interface card is discovered first).
For details regarding creation of a DPAA2 network interface (DPNI) in Linux, see "LSDK Quick Start Guide for LS2088ARDB -> Bringing up DPAA2 network interfaces" in Layerscape Software Development Kit User Guide.
The table below shows the mapping of Ethernet port names appearing on the chassis front panel with the port names in U-Boot and Linux for LS2088ARDB.
In Linux, the mapping of Ethernet port names is not strict. The port names are mapped based on the order in which the Ethernet interfaces are created. As an example, consider a DPL file which defines only one DPMAC object, DPMAC3. When Linux starts, if a net device is created using DPMAC3, it will be labeled eth1 (assuming PCIe interface is eth0).
Port name on chassis | Port name in U-Boot | Port name in Linux (tinyDistro and Ubuntu userland) | Description |
---|---|---|---|
ETH0 | DPMAC5@xgmii | eth0 by default | XFI copper interface |
ETH1 | DPMAC6@xgmii | not enabled by default | XFI copper interface |
ETH2 | DPMAC7@xgmii | not enabled by default | XFI copper interface |
ETH3 | DPMAC8@xgmii | not enabled by default | XFI copper interface |
ETH4 | DPMAC1@xgmii | not enabled by default | XFI copper interface |
ETH5 | DPMAC2@xgmii | not enabled by default | XFI copper interface |
ETH6 | DPMAC3@xgmii | not enabled by default | XFI copper interface |
ETH7 | DPMAC4@xgmii | not enabled by default | XFI copper interface |