# Unable to convert images using Mender-Convert

**URL:** <https://hub.mender.io/t/unable-to-convert-images-using-mender-convert/1544>\
**Category:** General Discussions\
**Tags:** mender-convert, amd64\
**Created:** [February 14, 2020, 10:29am UTC](https://hub.mender.io/t/unable-to-convert-images-using-mender-convert/1544 "2020-02-14T10:29:06Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![Sash](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@Sash](https://hub.mender.io/u/Sash)\
**Post date:** [June 4, 2020, 8:24am UTC](https://hub.mender.io/t/unable-to-convert-images-using-mender-convert/1544/21 "2020-06-04T08:24:40Z")

</div>

Thank You, Marek 🙂

Here is the complete cmd, which helped me to generate the image using mkosi

mkosi -d debian -r buster -b -t gpt\_ext4 --checksum --password password -f --package=vim --package=nano --package=linux-image-amd64 --package=libpam-systemd -o image.raw

Here is the generated image, Google Drive [Link](https://drive.google.com/drive/folders/1yD3M8UVeh41XiMjQhWWU84RoZAK9ek1r?usp=sharing) Please check whether you can access it?

The image is untouched when given to mender-convert as input. Some modifications which I made in config files, here is the details

MENDER\_STORAGE\_DEVICE\_BASE="/dev/mmcblk1"

MENDER\_BOOT\_PART="/dev/mmcblk1p1"  
MENDER\_ROOTFS\_PART\_A="/dev/mmcblk1p2"  
MENDER\_ROOTFS\_PART\_B="/dev/mmcblk1p3"

Let me know, what did I miss if image is appropriate, what changes I should perform so that it doesn’t fail from GRUB 2.04 window.

Regards,  
Sashank

---

<div class="post-metadata">

**Author:** ![MarekBelisko](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/marekbelisko/32/33_2.png) [@MarekBelisko](https://hub.mender.io/u/MarekBelisko)\
**Post date:** [June 4, 2020, 8:37am UTC](https://hub.mender.io/t/unable-to-convert-images-using-mender-convert/1544/22 "2020-06-04T08:37:08Z")

</div>

Yes I fetched it thanks. I’ll try to install it first and then convert and play with it. I cannot promise today or tomorrow but during weekend should be feasible. 😉

---

<div class="post-metadata">

**Author:** ![MarekBelisko](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/marekbelisko/32/33_2.png) [@MarekBelisko](https://hub.mender.io/u/MarekBelisko)\
**Post date:** [June 8, 2020, 6:44pm UTC](https://hub.mender.io/t/unable-to-convert-images-using-mender-convert/1544/23 "2020-06-08T18:44:04Z")

</div>

@Sash sorry had busy weekend and cannot test it but today at least try to flash original image to my device to verify it boots (at it was booting 😉 ). I converted image using mender-convert and tomorrow I’ll try to verify what can be cause of issue and get back to you. Thank you for patience 👍

---

<div class="post-metadata">

**Author:** ![MarekBelisko](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/marekbelisko/32/33_2.png) [@MarekBelisko](https://hub.mender.io/u/MarekBelisko)\
**Post date:** [June 9, 2020, 5:55am UTC](https://hub.mender.io/t/unable-to-convert-images-using-mender-convert/1544/24 "2020-06-09T05:55:18Z")

</div>

@Sash I flashed mender-convert image to my x86 device and it boots perfectly fine (+ adding [patch](https://github.com/nandra/mender-conversion-tools/commit/0f500f215a9c944c85df731b2e499c6e111a5cc8) on top of actual tree). My config is following:

```auto
MENDER_STORAGE_DEVICE_BASE=/dev/mmcblk0p
MENDER_DEVICE_TYPE="x86_64"

MENDER_STORAGE_TOTAL_SIZE_MB=3000

# Nothing to copy
MENDER_COPY_BOOT_GAP="n"

```

so maybe try to use it and it will work also on your setup. Thanks.

---

<div class="post-metadata">

**Author:** ![Sash](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@Sash](https://hub.mender.io/u/Sash)\
**Post date:** [June 10, 2020, 4:08pm UTC](https://hub.mender.io/t/unable-to-convert-images-using-mender-convert/1544/25 "2020-06-10T16:08:31Z")

</div>

@MarekBelisko Thanks for the inspection and validating on the generated mkosi image.

I did consider the config file change and the patch as well, which you have pointed. Unfortunately ended again Dracut error.

 ![20200610_142235](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/1ebd6c660848586bd833285b4d8b12124e1bdfbe.jpeg)

After this error, Considering as per my HW device name has **mmcblk1** and its partition table as  
mmcblk1p1 EFI  
mmcblk1p2 Linux Based System  
mmcblk1p3 Linux-Swap

So I made changes in config file MENDER\_STORAGE\_DEVICE\_BASE=/dev/mmcblk1p  
Here is the image which ends up **Kernel Panic** issue. Not sure again! ☹

 ![Kernel-Panic](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/434d059de47fea4600cabfdc5711d8dfe0e8a379.jpeg)

Since it was successful worked for your x86 device. Whether _ **any pre-requisites required** _ before flashing mender-convert images i.e. xyz.img.gz? Crurious to know about your device partition table as well?

---

<div class="post-metadata">

**Author:** ![Sash](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@Sash](https://hub.mender.io/u/Sash)\
**Post date:** [June 11, 2020, 10:14am UTC](https://hub.mender.io/t/unable-to-convert-images-using-mender-convert/1544/26 "2020-06-11T10:14:42Z")

</div>

Thank You @MarekBelisko & others who supported me. I could successfully flash images and boot in my Hardware. 😊

Regards,  
Sashank

---

<div class="post-metadata">

**Author:** ![MarekBelisko](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/marekbelisko/32/33_2.png) [@MarekBelisko](https://hub.mender.io/u/MarekBelisko)\
**Post date:** [June 11, 2020, 10:26am UTC](https://hub.mender.io/t/unable-to-convert-images-using-mender-convert/1544/27 "2020-06-11T10:26:28Z")

</div>

@Sash what was the issue? Can you please share? Thanks.

---

<div class="post-metadata">

**Author:** ![Sash](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@Sash](https://hub.mender.io/u/Sash)\
**Post date:** [June 12, 2020, 11:47am UTC](https://hub.mender.io/t/unable-to-convert-images-using-mender-convert/1544/28 "2020-06-12T11:47:59Z")

</div>

Here I have included the changes which you pointed as well as included changes [Pull-211](https://github.com/mendersoftware/mender-convert/pull/211). This I had considered after cloning the master branch. 🤗

And consider an equal amount of device partitions. 🙂

[Previous page](https://hub.mender.io/t/unable-to-convert-images-using-mender-convert/1544.md?page=1)
