====== TQMa91xxCA - YOCTO Linux BSP documentation ====== ===== Starterkit Interfaces and Functions ===== This page is work in progress and therefore subject to change ==== Ethernet ==== The STKa91xxCA provides two Gigabit Ethernet interfaces. \\ {{:en:arm:tqma91xxca:yocto:mba91_ethernet.jpg?400 |}} \\ \\ \\ \\ \\ \\ In U-Boot eth0 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 (e.g.: setenv ipaddr 192.168.100.111) setenv netmask (e.g.: setenv netmask 255.255.255.0) Both Ethernet interfaces are activated and configured by systemd-networkd. The configuration files for the interfaces are located in /lib/systemd/network/ these configuration files can be altered to customize the default interface configuration. A documentation of the configuration files can be found [[https://www.freedesktop.org/software/systemd/man/systemd.network.html|here]]. 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 ==== GPIO Buttons ==== The MBa8MPxL has two GPIO buttons, they are bound to the gpio-keys driver. ^ Reference ^ Button ^ | TBD | S8 | | TBD | S9 | The buttons are available in the sysfs via the device /dev/input/event1 and can be tested with the evtest tool. evtest /dev/input/event1 {{ {{:en:arm:tqma91xxca:yocto:mba91_buttons.jpg?400 |}} The information provided on this wiki page is subject to change due to circumstances beyond our control. While we strive to keep all details as accurate and up-to-date as possible, it is possible that certain updates or changes may go unnoticed for some time. As a result, some sections of this page may contain outdated information. If you notice any mistakes in the documentation, we kindly ask you to inform the TQ Support through our ticket system.