CL-SOM-iMX8Plus NXP iMX8M-Plus Mender Setup Issues

ianhgenesys
Fri, 20 Dec 2024 12:37:46 +0000
General Discussions

Hi all,

I’m facing some issues running the demo mender setup command on the CL-SOM-iMX8Plus NXP iMX8M-Plus. So firstly, I am following this guide to install Mender on the CL-SOM-iMX8Plus NXP iMX8M-Plus. In summary, these are the steps:

wget --directory-prefix .repo/local_manifests https://raw.githubusercontent.com/compulab-yokneam/meta-mender-compulab/kirkstone-nxp/scripts/mender-compulab-kirkstone.xml
repo sync
export MACHINE=som-imx8m-plus
source mender-setup-environment build-mender-${MACHINE}
# Build for production (remove demo layer)
bitbake-layers remove-layer meta-mender-demo
bitbake-layers show-layers
bitbake -k fsl-image-network-full-cmdline

After putting the image onto an SD card and booting up the CL-SOM-iMX8Plus NXP iMX8M-Plus, it boots up normally. When running mender setup and configuring it for Hosted Mender, everything works fine. However, when configuring it for a demo server, the device does not show up on the localhost Mender UI. These are the steps I did:

root@som-imx8m-plus:~# mender setup
Mender Client Setup
===================
Setting up the Mender client: The client will regularly poll the server to check for updates and report its inventory data.
Get started by first configuring the device type and settings for communicating with the server.
The device type property is used to determine which Mender Artifact are compatible with this device.
Enter a name for the device type (e.g. raspberrypi3): [som-imx8m-plus]
Are you connecting this device to hosted.mender.io? [Y/n] n
Demo server uses a self-signed certifcate for “docker.mender.io” and modifies device’s /etc/hosts with the server’s IP address (Required if using Mender demo server.)
Do you want to configure the client for a demo server? [Y/n] Y
Set the IP of the Mender Server: [127.0.0.1]
Demo intervals uses short poll and retry intervals (Recommended for testing.)
Do you want to run the client in demo mode? [Y/n] Y
WARN[0035] Unable to install Mender demo cert in local trust: Cannot open file “/usr/share/doc/mender-client/examples/demo.crt”: open /usr/share/doc/mender-client/examples/demo.crt: no such file or directory
Mender setup successfully.

Unlike the Hosted Mender, there seems to be some issues with the demo cert which I cannot seem to solve. I found some server.cert files somewhere and tried adding them but the device was insistent on looking for demo.cert.

These are the steps I did to get the demo server up and running, taken from this guide:

git clone -b v4.0.0-rc.2 https://github.com/mendersoftware/mender-server.git mender-server-docker
cd mender-server-docker
docker compose up -d
export MENDER_USERNAME=admin@docker.mender.io
export MENDER_PASSWORD=Password1
docker compose run --name create-user useradm create-user --username "$MENDER_USERNAME" --password "$MENDER_PASSWORD"

Would anyone have any ideas about why the devices won’t show up on the localhost Mender UI? Your help is greatly appreciated!

10 posts - 2 participants