Mender-convert for Raspberry Pi 3 - 64bit?

i tried the current raspberry os bullseye lite arm64 image 2022-09-22. did not work.
spent some time on that.

2022-11-18 10:10:02 [INFO] [mender-convert-extract] Using configuration file: configs/mender_convert_config
2022-11-18 10:10:02 [INFO] [mender-convert-extract] Using configuration file: ./work/override_compression_config
2022-11-18 10:10:02 [INFO] [mender-convert-extract] Using configuration file: ./configs/raspberrypi3_config
2022-11-18 10:10:02 [INFO] [mender-convert-extract] Validating disk image
2022-11-18 10:10:03 [INFO] [mender-convert-extract] Disk parsed successfully
2022-11-18 10:10:03 [INFO] [mender-convert-extract] NUMBER OF PARTS: 2 TYPE: dos
2022-11-18 10:10:03 [INFO] [mender-convert-extract] PART 1: SIZE: 256M TYPE: 0xc
2022-11-18 10:10:03 [INFO] [mender-convert-extract] PART 1: extracting to work/part-1.fs
2022-11-18 10:10:04 [INFO] [mender-convert-extract] PART 2: SIZE: 7.2G TYPE: 0x83
2022-11-18 10:10:04 [INFO] [mender-convert-extract] PART 2: extracting to work/part-2.fs
mender-convert-extract has finished. Cleaning up...
Running mender-convert-modify: --config ./work/override_compression_config --disk-image ./input/arm6420220922.img --config ./configs/raspberrypi3_config --overlay ./output
2022-11-18 10:10:51 [INFO] [mender-convert-modify] Using configuration file: configs/mender_convert_config
2022-11-18 10:10:51 [INFO] [mender-convert-modify] Using configuration file: ./work/override_compression_config
2022-11-18 10:10:51 [INFO] [mender-convert-modify] Using configuration file: ./configs/raspberrypi3_config
2022-11-18 10:10:52 [INFO] [mender-convert-modify] Installing Mender client and related files
2022-11-18 10:10:52 [INFO] [mender-convert-modify] Installing Mender client version latest
2022-11-18 10:10:54 [INFO] [mender-convert-modify] Successfully downloaded mender-client_3.3.0-1+debian+bullseye_arm64.deb
2022-11-18 10:10:55 [INFO] [mender-convert-modify] Successfully installed mender-client_3.3.0-1+debian+bullseye_arm64.deb into /mender-convert/work/rootfs/
2022-11-18 10:10:55 [INFO] [mender-convert-modify] Creating state folder in the data partition for Mender add-ons
2022-11-18 10:10:55 [INFO] [mender-convert-modify] Using root device A in mender.conf: /dev/mmcblk0p2
2022-11-18 10:10:55 [INFO] [mender-convert-modify] Using root device B in mender.conf: /dev/mmcblk0p3
2022-11-18 10:10:55 [INFO] [mender-convert-modify] Installing the local mender.conf file
2022-11-18 10:10:55 [INFO] [mender-convert-modify] Creating state scripts version file.
2022-11-18 10:10:55 [INFO] [mender-convert-modify] Installing a custom /etc/fstab (see /mender-convert/logs/convert.log.1668766202-16789 for more info)
2022-11-18 10:10:55 [INFO] [mender-convert-modify] Using boot partition device in fstab: /dev/mmcblk0p1
2022-11-18 10:10:55 [INFO] [mender-convert-modify] Using data partition device in fstab: /dev/mmcblk0p4
2022-11-18 10:10:55 [INFO] [mender-convert-modify] Performing platform specific modifications (if any)
2022-11-18 10:10:55 [INFO] [mender-convert-modify] Running hook: platform_modify
mender-convert-modify has finished. Cleaning up...
2022-11-18 10:10:56 [ERROR] [mender-convert] mender-convert failed
2022-11-18 10:10:56 [DEBUG] [mender-convert-modify] When running: (configs/raspberrypi_config:78): run_and_log_cmd():

        sudo cp work/boot/kernel7.img work/rootfs/boot/zImage
        cp: cannot stat 'work/boot/kernel7.img': No such file or directory

2022-11-18 10:10:56 [ERROR] [mender-convert] mender-convert failed
2022-11-18 10:10:56 [ERROR] [mender-convert] mender-convert exit code: 1

i then tried the current raspberry os bullseye lite armhf image 2022-09-22. did work.

btw. it would be great if the scripts could work with podman.

ps.
i see that in Prepare a Raspberry Pi device | Mender documentation only hf images are prepared/linked.

copied:

having arm64 images working would be great

Hi @_richard,

Currently we do not offer support for 64bit versions through mender-convert. We are looking into it and plan to add it, but there is no defined timeline at the moment, sorry.

Concerning the podman remark, is there any technical rationale behind it?

Greetz,
Josef

Hi @TheYoctoJester,
thanks for the fast response.
I prefer podman a bit for license reasons and not having one more repo to add. The alias docker=podman approach for me did not work in the scripts but it should be possible to provide a param to the scripts that selects docker or podman.

Hi @_richard,

If you think that an optional podman operation mode would bring value to other users, then feel free to share a patch. :+1:

At least from the feedback we get, the license situation of the tooling is not an issue at the moment. My personal experience with compliance problems is way more caused by badly managed golden images and their creation processes.

Greetz,
Josef

thought about that. for now have to focus on other issues.

it’s less a blocking compliance issue then a podman becomes more standard issue.

i understand the “badly managed golden images and their creation processes” issue. For as small test deployment in a somehow controlled context the mender-convert approach looks OK to me.

1 Like