Personal tools

Debian 12 for SoMLabs IoT-Box with VisionSOM-6ULL and Mender support

From SomLabs Wiki

Jump to: navigation, search

Debian Bookworm for SoMLabs IoT-Box with VisionSOM-6ULL


System image

This image extends the basic Debian_12_for_SoMLabs_IoT-Box_with_VisionSOM-6ULL system with Mender OTA framework tools. It is configured for the Mender demo server and can be used to evaluate the OTA update features of SoMLabs_IoT-Box device including the rootfs upgrade using A/B partiotions.

The archive contains the basic system image file as well as files helpful for creating rootfs update.

  • image.wic - Debian system image with Mender tools installed
  • u-boot.imx - U-boot bootloader binary with Mender support
  • image-convert.img - Debian base image that can be used for creating rootfs updates using mender-convert
  • sl_iot_config - configuration file for mender-convert

Connecting to demo server

The Mender demo server installation procedure is described on Mender docs page. In order to connect the device to it a proper IP address should be set in /etc/hosts file:

192.168.1.1   docker.mender.io s3.docker.mender.io

The device is recognized by its MAC address. In order to avoid changing it randomly after each restart a chosen MAC address can be set in /etc/systemd/network/end.network file:

[Link]
MACAddress=aa:bb:cc:dd:ee:ff

After that the device should be visible in the Mender demo server dashboard. It can be updated using single file or rootfs-image modules as well as accessed through remote Mender terminal or configured using mender-configure module.

Creating system update artifact

In order to create a system image update, the mender-convert tool can be used. It requires a golden image (provided image-convert.img) and a configuration file (sl_iot_config). The artifact can be created using the example command:

MENDER_ARTIFACT_NAME=release-1 ./docker-mender-convert --disk-image input/image-convert.img --config configs/sl_iot_config --overlay input/rootfs_overlay_demo/