Upgrading Mener-convert from (using docker; Version: 2.1.0b1-dirty) to latest for migrating my platform from RPI3B+ to RPI4B

Hi Mender Team and All:

I have been using mender-convert Version: 2.1.0b1-dirty with docker and I have been mender-converting RPI3B+(stretch)-based system and doing OTA update for some time using my hosted mender account. It has been long since it did the setup with lots of help from Drew and Mirza I believe.
I don’t want to mess it up.

Now I am porting my system to RPI4B+bullseye-lite.

How do I upgrade my mender-convert to the more recent one? Which version? So that I can use it for both RPI 3B+ and 4B.

Greatly appreciate your help/guidance.

Thanks,
Raj

Hmm, I’m not sure I follow?

Are you afraid of losing the custom setup you have, or that the new setup won’t work?

For 1. Trying out the newer convert version you could try and download the newer mender-convert by following the instructions here, and do a conversion for RPi{3|4}. Then try adding on your custom setup afterwards, all the while not touching your old setup.

Or am I missing the mark here completely?

oleorhagen: Thanks for the mender-convert link. My current setup is under docker.
Which version of mender-convert should I clone for RPI3B+ & 4B?
I have Ubuntu 20.04.4 LTS on my laptop.
Thanks,
raj

Thanks oleorhagen,
I clean installed mender-convert using github and followed the instruction for the hosted mender to mender-convert but I get:

2022-08-28 11:24:54 [FATAL] [mender-convert-package] You can try adjusting the MENDER_STORAGE_TOTAL_SIZE_MB variable to increase available space, or modify one of the variables IMAGE_ROOTFS_SIZE, IMAGE_ROOTFS_EXTRA_SPACE or IMAGE_OVERHEAD_FACTOR to reduce the size of the root filesystem.

In configs/mender_convert_config, I have:
MENDER_STORAGE_TOTAL_SIZE_MB=“60129”
IMAGE_ROOTFS_SIZE=“0”
IMAGE_ROOTFS_EXTRA_SPACE=“0”
IMAGE_OVERHEAD_FACTOR=“1.5”
MENDER_DATA_PART_SIZE_MB=“256”
MENDER_BOOT_PART_SIZE_MB=“512”

Here’s the log:
Sun 28 Aug 2022 06:23:39 AM CDT
using log file at: /home/rajendra/Downloads/mender-convert/logs/convert.log.1661685820-180934
Running mender-convert --disk-image input/2022-04-04-raspios-bullseye-armhf.img --config configs/raspberrypi4_config --config input/config/custom_config
Running mender-convert-extract: --config ./work/override_compression_config --disk-image input/2022-04-04-raspios-bullseye-armhf.img --config configs/raspberrypi4_config --config input/config/custom_config
2022-08-28 11:23:43 [INFO] [mender-convert-extract] Using configuration file: configs/mender_convert_config
2022-08-28 11:23:43 [INFO] [mender-convert-extract] Using configuration file: ./work/override_compression_config
2022-08-28 11:23:43 [INFO] [mender-convert-extract] Using configuration file: configs/raspberrypi4_config
2022-08-28 11:23:43 [INFO] [mender-convert-extract] Using configuration file: input/config/custom_config
2022-08-28 11:23:43 [INFO] [mender-convert-extract] Validating disk image
2022-08-28 11:23:43 [INFO] [mender-convert-extract] Disk parsed successfully
2022-08-28 11:23:44 [INFO] [mender-convert-extract] NUMBER OF PARTS: 2 TYPE: dos
2022-08-28 11:23:44 [INFO] [mender-convert-extract] PART 1: SIZE: 256M TYPE: 0xc
2022-08-28 11:23:44 [INFO] [mender-convert-extract] PART 1: extracting to work/part-1.fs
2022-08-28 11:23:44 [INFO] [mender-convert-extract] PART 2: SIZE: 3.8G TYPE: 0x83
2022-08-28 11:23:45 [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/2022-04-04-raspios-bullseye-armhf.img --config configs/raspberrypi4_config --config input/config/custom_config
2022-08-28 11:24:14 [INFO] [mender-convert-modify] Using configuration file: configs/mender_convert_config
2022-08-28 11:24:14 [INFO] [mender-convert-modify] Using configuration file: ./work/override_compression_config
2022-08-28 11:24:15 [INFO] [mender-convert-modify] Using configuration file: configs/raspberrypi4_config
2022-08-28 11:24:15 [INFO] [mender-convert-modify] Using configuration file: input/config/custom_config
2022-08-28 11:24:45 [INFO] [mender-convert-modify] Installing Mender client and related files
2022-08-28 11:24:45 [INFO] [mender-convert-modify] Installing Mender client version latest
2022-08-28 11:24:46 [INFO] [mender-convert-modify] Successfully downloaded mender-client_3.3.0-1+debian+bullseye_armhf.deb
2022-08-28 11:24:47 [INFO] [mender-convert-modify] Successfully installed mender-client_3.3.0-1+debian+bullseye_armhf.deb into /mender-convert/work/rootfs/
2022-08-28 11:24:47 [INFO] [mender-convert-modify] Creating state folder in the data partition for Mender add-ons
2022-08-28 11:24:47 [INFO] [mender-convert-modify] Using root device A in mender.conf: /dev/mmcblk0p2
2022-08-28 11:24:47 [INFO] [mender-convert-modify] Using root device B in mender.conf: /dev/mmcblk0p3
2022-08-28 11:24:47 [INFO] [mender-convert-modify] Installing the local mender.conf file
2022-08-28 11:24:47 [INFO] [mender-convert-modify] Creating state scripts version file.
2022-08-28 11:24:47 [INFO] [mender-convert-modify] Installing a custom /etc/fstab (see /mender-convert/logs/convert.log.1661685820-180934 for more info)
2022-08-28 11:24:47 [INFO] [mender-convert-modify] Using boot partition device in fstab: /dev/mmcblk0p1
2022-08-28 11:24:47 [INFO] [mender-convert-modify] Using data partition device in fstab: /dev/mmcblk0p4
2022-08-28 11:24:48 [INFO] [mender-convert-modify] Performing platform specific modifications (if any)
2022-08-28 11:24:48 [INFO] [mender-convert-modify] Running hook: platform_modify
2022-08-28 11:24:51 [INFO] [mender-convert-modify] Certain service files have been changed to align with our /uboot boot partition mount point. See convert.log for more information
2022-08-28 11:24:51 [INFO] [mender-convert-modify] Enabling UART in U-Boot configuration
2022-08-28 11:24:51 [INFO] [mender-convert-modify] Performing user/local specific modifications (if any)
2022-08-28 11:24:51 [INFO] [mender-convert-modify] Running hook: user_local_modify
2022-08-28 11:24:51 [INFO] [mender-convert-modify] Performing overlay specific modifications (if any)
2022-08-28 11:24:51 [INFO] [mender-convert-modify] Running hook: overlay_modify
mender-convert-modify has finished. Cleaning up…
Running mender-convert-package: --config ./work/override_compression_config --disk-image input/2022-04-04-raspios-bullseye-armhf.img --config configs/raspberrypi4_config --config input/config/custom_config
2022-08-28 11:24:52 [INFO] [mender-convert-package] Using configuration file: configs/mender_convert_config
2022-08-28 11:24:52 [INFO] [mender-convert-package] Using configuration file: ./work/override_compression_config
2022-08-28 11:24:52 [INFO] [mender-convert-package] Using configuration file: configs/raspberrypi4_config
2022-08-28 11:24:52 [INFO] [mender-convert-package] Using configuration file: input/config/custom_config
2022-08-28 11:24:53 [WARN] [mender-convert-package] The allocated boot part size 40 MiB is too small.
2022-08-28 11:24:53 [WARN] [mender-convert-package] The actual boot part size is 256 MiB
2022-08-28 11:24:53 [WARN] [mender-convert-package] Will adjust MENDER_BOOT_PART_SIZE_MB automatically
2022-08-28 11:24:53 [WARN] [mender-convert-package] Consider adjusting the configuration file to avoid this message
2022-08-28 11:24:54 [WARN] [mender-convert-package] The calculated rootfs partition size 3892 MiB is too small.
2022-08-28 11:24:54 [WARN] [mender-convert-package] The actual rootfs image size is 4702 MiB
mender-convert-package has finished. Cleaning up…
2022-08-28 11:24:54 [FATAL] [mender-convert-package] You can try adjusting the MENDER_STORAGE_TOTAL_SIZE_MB variable to increase available space, or modify one of the variables IMAGE_ROOTFS_SIZE, IMAGE_ROOTFS_EXTRA_SPACE or IMAGE_OVERHEAD_FACTOR to reduce the size of the root filesystem.
Log file available at: /home/rajendra/Downloads/mender-convert/logs/convert.log.1661685820-180934