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

**URL:** <https://hub.mender.io/t/upgrading-mener-convert-from-using-docker-version-2-1-0b1-dirty-to-latest-for-migrating-my-platform-from-rpi3b-to-rpi4b/5211>\
**Category:** General Discussions\
**Tags:** raspberry-pi-4\
**Created:** [August 25, 2022, 6:04pm UTC](https://hub.mender.io/t/upgrading-mener-convert-from-using-docker-version-2-1-0b1-dirty-to-latest-for-migrating-my-platform-from-rpi3b-to-rpi4b/5211 "2022-08-25T18:04:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![raj.panchal](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@raj.panchal](https://hub.mender.io/u/raj.panchal)\
**Post date:** [August 25, 2022, 6:04pm UTC](https://hub.mender.io/t/upgrading-mener-convert-from-using-docker-version-2-1-0b1-dirty-to-latest-for-migrating-my-platform-from-rpi3b-to-rpi4b/5211/1 "2022-08-25T18:04:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)\
**Post date:** [August 26, 2022, 7:43am UTC](https://hub.mender.io/t/upgrading-mener-convert-from-using-docker-version-2-1-0b1-dirty-to-latest-for-migrating-my-platform-from-rpi3b-to-rpi4b/5211/2 "2022-08-26T07:43:05Z")

</div>

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](https://github.com/mendersoftware/mender-convert), 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?

---

<div class="post-metadata">

**Author:** ![raj.panchal](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@raj.panchal](https://hub.mender.io/u/raj.panchal)\
**Post date:** [August 26, 2022, 10:15pm UTC](https://hub.mender.io/t/upgrading-mener-convert-from-using-docker-version-2-1-0b1-dirty-to-latest-for-migrating-my-platform-from-rpi3b-to-rpi4b/5211/3 "2022-08-26T22:15:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![raj.panchal](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@raj.panchal](https://hub.mender.io/u/raj.panchal)\
**Post date:** [August 28, 2022, 11:50am UTC](https://hub.mender.io/t/upgrading-mener-convert-from-using-docker-version-2-1-0b1-dirty-to-latest-for-migrating-my-platform-from-rpi3b-to-rpi4b/5211/4 "2022-08-28T11:50:07Z")

</div>

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

```auto
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
