Mender-Convert Failing on Raspberry Pi Zero 2 - [ERROR] [mender-convert] mender-convert failed

Hello everyone,
I’m trying to use Mender-Convert to prepare a Raspberry Pi OS Lite image for deployment on a Raspberry Pi Zero 2, but I’m encountering an error during the process. Here are the details: Device:** Raspberry Pi Zero 2,OS Image:** raspios_lite_armhf-2024-11-19.img (based on Debian 12 Bookworm),Mender Version:mender-convert latest`.
an error occurs when i use :
MENDER_ARTIFACT_NAME=release-1 ./mender-convert
–disk-image path/to/raspios_lite_armhf.img
–config configs/raspberrypi0-2w_config

Hi @Hamzaamri,

looking at the error message, where have you created the rootfs_overlay_demo directory? My guess is that it is actually in the input directory, so the parameter should be

--overlay input/rootfs_overlay_demo

Greetz,
Josef

yes thanks theyoctojester… i built it successfully and this the output, Why is my Raspberry Pi not appearing on the Mender server, and why is /etc/mender/mender.conf missing from the root filesystem, i detect that mender is not installed on raspberry despite the fact that the output on the image say that mender client is installed successfully!!? How can I debug and fix this issue?


Hi @Hamzaamri,

So did you write the .img file to the SD card and boot it? Can you post a ls -alh /etc from the running system?

Greetz,
Josef

yes i flashed .img file to the sdcard using rpi-imager… i read in documentation that they used .sdimg but it is not exist on deployment section.How can I debug and fix this issue?
Screenshot from 2025-02-14 10-07-31

Hi @Hamzaamri,

You do not need to fix anything, the .img is fine. So after flashing it, can you log into it and show its ls -alh /etc please?

Please note that using the settings magic from the Raspberry Pi images will probably break the booting process. An alternative is to use Etcher, or plan dd.

Greetz,
Josef

hi yoctojester,
there is a problem that i can’t log to raspberrypi.In fact, I flashed my Raspberry Pi OS image using dd, but when I power up the Raspberry Pi, nothing appears on the screen (black screen). The Pi doesn’t seem to boot.

I created an image backup of my working SD card using the following command:
“sudo dd if=/dev/sdd of=golden-image-1-raspberrypi0w-mender.img bs=1M conv=fdatasync status=progress”
this is the partition of my sdcard:


maybe does an error exist on my custom-config!( i used it to reduce the size)

How can I debug and fix this issue? i didn’t know the problem despite i followed correctly the instructions on Convert a Mender Debian image | Mender documentation

Hi @Hamzaamri,

I don’t have a Raspberry Pi 0 around so I can’t cross-check. Plus, it’s unclear what image you are basing the conversion on, and that might also cause problems.
So two things I would recommend trying:

  • repeat with an unmodified Raspberry Pi OS image. I would recommend the 2024-07-04 - armhf one.
  • connect a UART adapter to the serial port, and look at the boot log. I would guess that it tells us what is going on.

Greetz,
Josef