# Issue with phytec phycore-imx7

**URL:** <https://hub.mender.io/t/issue-with-phytec-phycore-imx7/1738>\
**Category:** General Discussions\
**Created:** [April 2, 2020, 4:10pm UTC](https://hub.mender.io/t/issue-with-phytec-phycore-imx7/1738 "2020-04-02T16:10:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbman35](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jbman35](https://hub.mender.io/u/jbman35)\
**Post date:** [April 2, 2020, 4:10pm UTC](https://hub.mender.io/t/issue-with-phytec-phycore-imx7/1738/1 "2020-04-02T16:10:49Z")

</div>

Hello,

I would like to test Mender on a phycore-iMX7 SOM from Phytec.

Before integrating Mender into my Yocto build, everything works fine.

I followed properly the instructions on Mender website to perform automatic integration of Mender into the build and there is no error during Yocto build, the sdimg is properly generated. The build is based on Yocto Sumo. Using fdisk, I see the 4 partitions generated into the sdimg.

When I try to boot on the .sdimg generated (flashed on SD card), I do not get any traces from the boot process, it seems like it does not boot at all, and I have no idea what can be the cause of that.

I looked the modification done into uboot by mender (by generating the patch) and nothing can explain a start failure.

I noticed the uboot.env generated is full of zeros, is that normal?  
Any idea of where to look at firstly?

Regards,

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [April 3, 2020, 1:37pm UTC](https://hub.mender.io/t/issue-with-phytec-phycore-imx7/1738/2 "2020-04-03T13:37:01Z")

</div>

Hi,

This is highly board specific, but you might need to use [MENDER\_IMAGE\_BOOTLOADER\_FILE](https://docs.mender.io/2.3/artifacts/yocto-project/variables#mender_image_bootloader_file) and [MENDER\_IMAGE\_BOOTLOADER\_BOOTSECTOR\_OFFSET](https://docs.mender.io/2.3/artifacts/yocto-project/variables#mender_image_bootloader_bootsector_offset) to instruct the mender-part-images.bbclass to embedded your boot loader files in the resulting `sdimg`.

> I noticed the uboot.env generated is full of zeros, is that normal?

This is normal, this file is only used to calculate size and does not actually contain the U-Boot environment

---

<div class="post-metadata">

**Author:** ![jbman35](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jbman35](https://hub.mender.io/u/jbman35)\
**Post date:** [April 3, 2020, 2:50pm UTC](https://hub.mender.io/t/issue-with-phytec-phycore-imx7/1738/3 "2020-04-03T14:50:14Z")

</div>

Hello Mirza,

Thanks for your answer.

I also figured out that MENDER\_IMAGE\_BOOTLOADER\_FILE was missing so I added it to my conf and the bootloader binary is now available in the sdimg. For information the variable needs to be set at “u-boot.imx” for this particular board. Now U-Boot boots properly and the Mender environment is properly set.

MENDER\_IMAGE\_BOOTLOADER\_BOOTSECTOR\_OFFSET does need to be set for the phycore-imx7 as the default value of 2 is convenient.

After doing that, the kernel boots properly but the rootfs is broken:

/sbin/init: error while loading shared libraries: libkmod.so.2: cannot open shared object file: No such file or directory

What can explain that in the mender UBoot configuration?

Regards,

---

<div class="post-metadata">

**Author:** ![jbman35](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jbman35](https://hub.mender.io/u/jbman35)\
**Post date:** [April 3, 2020, 4:03pm UTC](https://hub.mender.io/t/issue-with-phytec-phycore-imx7/1738/4 "2020-04-03T16:03:04Z")

</div>

Problem solved. Troubles with rootfs in read-only.  
Thanks for the support
