Using ethernet from user space

Roadrunner & Berta D2

On Berta D2 board the Ethernet section normally is turned-off

To turn it on wire the line EN ETHN to GND on J6 pin or wire the ENABLE ETHN to a GPIO line and control the power-on by software.

Linux configuration

Set a static IP address

By default the Linux images available on this site gets the IP address from the local DHCP server.

This is the default configuration of eth0 lan interface saved in /etc/network/interfaces :

allow-hotplug eth0
iface eth0 inet dhcp

To set a static IP address change this section in:

allow-hotplug eth0
iface eth0 inet static
    address 192.168.1.90
    netmask 255.255.255.0
    gateway 192.168.1.1

RoadRunner

To have a native ethernet port the RoadRunner SOM needs an external phy chip like a LAN8720 as explained on this guide.

Two different DTS configurations can be used. The first one is fully compatible with Microchip sama5d2 evaluation kit and is the same used on Acme Systems Berta D2 board. The second one is used on Acme Systems XTERM-02 terminal. The main differences is that in the XTERM-02 dts we'll assign to the display cell all the pin requested to have 24 lines for RGB colors.

This binding under apb section is the same for both configurations:

macb0: ethernet@f8008000 {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_macb0_default &pinctrl_macb0_phy_irq>;
    phy-mode = "rmii";
    status = "okay";

    ethernet-phy@1 {
        reg = <0x1>;
        interrupt-parent = <&pioA>;
        interrupts = <73 IRQ_TYPE_LEVEL_LOW>;
    };
};

If you are using a Berta D2 board leave this section as is:

pinctrl_macb0_default: macb0_default {
    pinmux = <PIN_PB14__GTXCK>,
         <PIN_PB15__GTXEN>,
         <PIN_PB16__GRXDV>,
         <PIN_PB17__GRXER>,
         <PIN_PB18__GRX0>,
         <PIN_PB19__GRX1>,
         <PIN_PB20__GTX0>,
         <PIN_PB21__GTX1>,
         <PIN_PB22__GMDC>,
         <PIN_PB23__GMDIO>;
    bias-disable;
};

If you are using a XTERM-02 board use this alternative configuration:

pinctrl_macb0_default: macb0_default {
    pinmux = <PIN_PB14__GTXCK>,
         <PIN_PB15__GTXEN>,
         <PIN_PB16__GRXDV>,
         <PIN_PB17__GRXER>,
         <PIN_PB18__GRX0>,
         <PIN_PD14__GRX1>,
         <PIN_PD15__GTX0>,
         <PIN_PB21__GTX1>,
         <PIN_PB22__GMDC>,
         <PIN_PB23__GMDIO>;
    bias-disable;
};

Sergio Tanzilli
Systems designer, webmaster of www.acmesystems.it and founder of Acme Systems srl

Personal email: tanzilli@acmesystems.it
Web pages: https://www.acmesystems.it --- https://www.acmestudio.it
Github repositories: https://github.com/tanzilli --- https://github.com/acmesystems
Telegram group dedicated to the Acme Systems boards: https://t.me/acmesystemssrl