3mdeb / meta-rte

Yocto meta layer for the RTE https://3mdeb.com/products/open-source-hardware/rte/ board
MIT License
7 stars 3 forks source link

meta-rte

Meta-RTE Yocto BSP documentation

Usage

Prerequisites

kas installed. The preferred way is to use it inside container, via the [kas-container] script.

docker installation

kas-container installation

wget -O ~/bin/kas-container https://raw.githubusercontent.com/siemens/kas/master/kas-container
chmod +x ~/bin/kas-container

Build

mkdir rte-sdk
cd rte-sdk
git clone https://github.com/3mdeb/meta-rte.git
KAS_IMAGE_VERSION="4.2" kas-container build meta-rte/kas.yml

Flash

There are two main ways to flash an image, etcher and bmaptool.

etcher

The easiest way to flash image on all system platforms is to use etcher. It is multi-platform application that is available for Linux, Windows or macOS.

bmaptool

If you prefer a command-line tool, then you should use bmaptool. To install it, depending on the package manager your system uses, use one of the following commands:

for Ubuntu:

sudo apt install bmap-tools

for Fedora:

sudo dnf install bmap-tools

you can then download the latest image from the releases page. You should download both the .wic.bmap and .wic.gz files.

Once you have chosen the version you want and downloaded it (both files), you can then flash it using bmaptool, like this:

bmaptool copy --bmap /path/to/example.wic.bmap /path/to/example.wic.gz /dev/sdX

in order to know what /dev/sdX you want to flash, its a good idea to use the lsblk command, before and after plugging in your SD card. You should be able to see the difference in the output of those two commands, and determine what your SD card is called.

Login to the system

Login: root
Password: meta-rte

Update

To perform update on platform we will use SWUpdate software already installed on OS.

OpenVPN

There is a possibility to use OpenVPN. The only thing you have to do is copy the config file to the openvpn folder on data partition of SD card with the name rte.conf.

Serial

You can access the DUT's serial connection from the RS232/UART port at /dev/ttyS1, for example, through Minicom:

# minicom -D /dev/ttyS1

All possible devices can be listed using following command:

# ls /dev/tty*

Telnet

It is also possible to use telnet communication via RTE. On RTE there is serial to network proxy service called ser2net. Its status can be seen by running a command:

# systemctl -all | grep ser2net
  ser2net.service           loaded     active     running

Service configuration is placed here:

# cat /etc/ser2net.conf
13542:telnet:16000:/dev/ttyS1:115200 8DATABITS NONE 1STOPBIT
13541:telnet:16000:/dev/ttyUSB0:115200 8DATABITS NONE 1STOPBIT

The first value indicates the port for telnet communication, the path /dev/tty* indicates the path to the device with which the connection is made.

Serial connection with the device can be established by command:

$ telnet <RTE_IP> <PORT>

for example:

$ telnet 192.168.4.170 13541

In this case, a serial connection will be made via RTE with IP 192.168.4.170 with device /dev/ttyUSB0 using above configuration.

Development workflow

Individual MR

Our change log mostly depends on the merge events and the merge request names are presented as introduced changes in this file. Be sure to use git add -p and add only your version, so as not to change previous release notes (incorrect links to previous pull requests).