Hello Mender community,
Currently I’m test driving Mender as a possible update solution for our distribution.
We have a compute-module which includes the imx6ull with some onboard flash memory (NAND).
The system uses u-boot, which loads our fitImage that includes the device tree and kernel.
I took inspiration from the community meta layer which included somethings that where required
to get it to run. I’m quite impressed in how quickly I got everything up and running, so far, so good you
might think.
The real hurdle started today where I was testing the system with an initramfs implementation which
we need to support secure boot. I got the following message from the mender client:
mender[1165]: time="2024-03-14T15:33:30Z" level=error msg="Artifact install failed: Payload: can not install Payload: my-image.ubifs: Active root partition matches neither RootfsPartA nor RootfsPartB."
So I dove into the console and verified that all settings where correct, at-least that is what I think ;-).
cat /data/mender/mender.conf
{
"RootfsPartA": "ubi0_0",
"RootfsPartB": "ubi0_1"
}
cat /etc/mender/mender.conf
{
"InventoryPollIntervalSeconds": 300,
"RetryPollIntervalSeconds": 300,
"ServerURL": "perhaps-less-secret",
"TenantToken": "very-secret",
"UpdatePollIntervalSeconds": 180
}
When I remove the initramfs from the fitImage and adjust the ubiargs then everything boots fine and
the device can be updated by means of Mender. If reinsert the initramfs then I got the previously
mentioned error.
I believe it has something to do with the changes that are different between the initramfs enabled boot
process and the one without initramfs, but I can’t figure out why the mender-client fails. The mount
command seems OK to me (I only pasted what I think was needed).
/dev/ubi0_1 on / type ubifs (ro,relatime,assert=read-only,ubi=0,vol=1)
/dev/ubi0_2 on /data type ubifs (rw,relatime,assert=read-only,ubi=0,vol=2)
/data/overlay-etc/upper on /etc type overlay (rw,relatime,lowerdir=/etc,upperdir=/data/overlay-etc/upper,workdir=/data/overlay-etc/work)
I use the trial version of the Mender server, the mender-client is version 3.5.2 (runtime: go1.17.13). The
meta-mender repository is fixed to tag “kirkstone-v2023.12”.
Could anyone point me in the correct direction into solving this issue.
Thank you advance, with kind regards,
Jeffrey Simons
Software Engineer
- Royal Boon Edam International B.V.