# VAR-SOM-MX8M-MINI with B2Qt not booting

**URL:** <https://hub.mender.io/t/var-som-mx8m-mini-with-b2qt-not-booting/3446>\
**Category:** General Discussions\
**Tags:** sumo\
**Created:** [March 30, 2021, 3:18pm UTC](https://hub.mender.io/t/var-som-mx8m-mini-with-b2qt-not-booting/3446 "2021-03-30T15:18:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ABTP](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@ABTP](https://hub.mender.io/u/ABTP)\
**Post date:** [March 30, 2021, 3:18pm UTC](https://hub.mender.io/t/var-som-mx8m-mini-with-b2qt-not-booting/3446/1 "2021-03-30T15:18:46Z")

</div>

Hi,

I have been for a while trying to integrate Mender with a Variscite VAR-SOM-MX8M-MINI running B2Qt based on : Poky 2.5.3, BSP: NXP Sumo, Linux: NXP [imx\_4.14.98\_2.0.0\_ga].

Link:  
[https://variwiki.com/index.php?title=B2QT\_Build\_Release&release=RELEASE\_SUMO\_B2QT\_V1.2\_DART-MX8M-MINI](https://variwiki.com/index.php?title=B2QT_Build_Release&release=RELEASE_SUMO_B2QT_V1.2_DART-MX8M-MINI)

Before trying to integrate Mender, I was able to produce a bootable B2Qt image. Then, I added meta-mender-community and meta-mender layers both from the Sumo branches and followed the regular integration approach (updating local.conf and bblayers.conf for sdcard image).

Right now, the image compiles with 4 partitions; boot, primary, secondary and data. The boot partition is probably not needed, but it contains the kernel as an ‘Image’ type (also running bitbake -e u-boot | grep ‘^KERNEL\_IMAGETYPE=’ gives KERNEL\_IMAGETYPE=“Image”). However, the board doesn’t boot. Can you please kindly help me find a solution to this problem. Thank you.

local.conf: (mender section only)

INHERIT += “rm\_work”  
MENDER\_ARTIFACT\_NAME = “release-1”  
INHERIT += “mender-full”  
DISTRO\_FEATURES\_append = " systemd"  
VIRTUAL-RUNTIME\_init\_manager = “systemd”  
DISTRO\_FEATURES\_BACKFILL\_CONSIDERED = “sysvinit”  
VIRTUAL-RUNTIME\_initscripts = “”  
MENDER\_STORAGE\_TOTAL\_SIZE\_MB\_imx8mm-var-dart = “13312”  
MENDER\_IMAGE\_BOOTLOADER\_FILE\_imx8mm-var-dart = “imx-boot-imx8mm-var-dart-sd.bin”  
MENDER\_IMAGE\_BOOTLOADER\_BOOTSECTOR\_OFFSET\_imx8mm-var-dart = “66”  
MENDER\_BOOT\_PART\_SIZE\_MB\_imx8mm-var-dart = “16”  
IMAGE\_FSTYPES\_remove = “tar.gz wic.gz wic.bmap mender.bmap sdimg.bmap sdcard.gz”  
MENDER\_FEATURES\_ENABLE\_append = " mender-image-sd"  
MENDER\_FEATURES\_DISABLE\_append = " mender-grub mender-image-uefi"  
MENDER\_STORAGE\_DEVICE\_imx8mm-var-dart = “/dev/mmcblk1”  
MENDER\_UBOOT\_STORAGE\_DEVICE\_imx8mm-var-dart= “1”  
UBOOT\_CONFIG\_imx8mm-var-dart = “sd”  
MACHINE\_ESSENTIAL\_EXTRA\_RDEPENDS = “kernel-image kernel-devicetree”  
IMAGE\_POSTPROCESS\_COMMAND\_remove = “do\_qbsp\_image;”  
KERNEL\_IMAGETYPE\_mender-uboot = “Image”  
#MACHINE\_EXTRA\_RDEPENDS = “u-boot-fw-utils”  
#MENDER\_BOOT\_PART\_SIZE\_MB\_mender-uboot = “16”

u-boot-variscite.bbappend:

require recipes-bsp/u-boot/u-boot-variscite-mender-common.inc  
require recipes-bsp/u-boot/u-boot-mender.inc

DEPENDS\_append = " bc-native "  
KERNEL\_DEVICETREE = " freescale/imx8mm-var-dart.dtb"

make\_u\_boot\_spl\_image() {  
install -m 644 {B}/{config}/{SPL\_BINARY} {DEPLOYDIR}/u-boot-spl-{PV}-{PR}.img  
rm -f {DEPLOYDIR}/u-boot-spl.img ln -sf u-boot-spl-{PV}-{PR}.img {DEPLOYDIR}/u-boot-spl.img  
dd if={DEPLOYDIR}/u-boot.img of={DEPLOYDIR}/u-boot-spl-{PV}-{PR}.img bs=1K seek=68 conv=notrunc  
}

do\_deploy\_append\_var-som-mx6() {  
make\_u\_boot\_spl\_image  
}

do\_deploy\_append\_imx6ul-var-dart() {  
make\_u\_boot\_spl\_image  
}

bitbake u-boot -e | grep ^MENDER\_UBOOT\_STORAGE\_DEVICE gives:

MENDER\_UBOOT\_STORAGE\_DEVICE=“1”  
MENDER\_UBOOT\_STORAGE\_DEVICE\_DEFAULT=""  
MENDER\_UBOOT\_STORAGE\_DEVICE\_DEFAULT\_mender-ubi=“dummy”  
MENDER\_UBOOT\_STORAGE\_DEVICE\_imx8mm-var-dart=“1”

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [March 30, 2021, 3:49pm UTC](https://hub.mender.io/t/var-som-mx8m-mini-with-b2qt-not-booting/3446/2 "2021-03-30T15:49:14Z")

</div>

Can you clarify what you mean when you say the board doesn’t boot? Do you have any U-Boot output at all on the serial board?

Is there a reason you are using sumo? We never integrated this platform on that version. We are on warrior.

Drew

---

<div class="post-metadata">

**Author:** ![ABTP](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@ABTP](https://hub.mender.io/u/ABTP)\
**Post date:** [March 31, 2021, 11:48am UTC](https://hub.mender.io/t/var-som-mx8m-mini-with-b2qt-not-booting/3446/3 "2021-03-31T11:48:55Z")

</div>

Hi Drew

Sorry I was not clear. Yes I do see U-Boot output, but it hangs at “Starting kernel …” here is the serial output:

U-Boot SPL 2018.03-imx\_v2018.03\_4.14.98\_2.0.0\_ga\_var01+g42342c4846 (Mar 31 2021 - 07:53:57 +0000)  
Normal Boot  
Trying to boot from MMC1

U-Boot 2018.03-imx\_v2018.03\_4.14.98\_2.0.0\_ga\_var01+g42342c4846 (Mar 31 2021 - 07:53:57 +0000)

CPU: Freescale i.MX8MMQ rev1.0 1800 MHz (running at 1200 MHz)  
CPU: Commercial temperature grade (0C to 95C) at 49C  
Reset cause: POR  
Model: Variscite VAR-SOM-MX8MM board  
I2C: ready  
DRAM: 2 GiB  
MMC: FSL\_SDHC: 0, FSL\_SDHC: 1  
Loading Environment from MMC… OK  
In: serial  
Out: serial  
Err: serial

BuildInfo:

- ATF 1cb68fa
- U-Boot 2018.03-imx\_v2018.03\_4.14.98\_2.0.0\_ga\_var01+g42342c4846

Part number: VSM-MX8MM-101  
Assembly: AS2002150192  
Production date: 2020 Apr 06  
Serial Number: f8:dc:7a:3e:81:ba  
switch to partitions #0, OK  
mmc0 is current device  
flash target is MMC:0  
Net: eth0: ethernet@30be0000  
Fastboot: Normal  
Normal Boot  
Hit any key to stop autoboot: 0  
43401 bytes read in 128 ms (331.1 KiB/s)  
12541960 bytes read in 11164 ms (1.1 MiB/s)

## Flattened Device Tree blob at 43000000

Booting using the fdt blob at 0x43000000  
Using Device Tree in place at 0000000043000000, end 000000004300d988

Starting kernel …

I noticed though that after some “long time”, the boot image (customized one) appears and then B2Qt default GUI appears, then It gets stuck.

As for using sumo, its because Variscite is providing B2Qt only with sumo and they are maintaining it so the choice was made a while ago to initially go for this distribution to start with a working and tested distribution.

---

<div class="post-metadata">

**Author:** ![ABTP](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@ABTP](https://hub.mender.io/u/ABTP)\
**Post date:** [March 31, 2021, 12:25pm UTC](https://hub.mender.io/t/var-som-mx8m-mini-with-b2qt-not-booting/3446/4 "2021-03-31T12:25:28Z")

</div>

Hi Drew,

I managed to get it to work. The problem was in the u-boot-variscite.bbappend. I was using the wrong device tree. Thank you

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [March 31, 2021, 4:33pm UTC](https://hub.mender.io/t/var-som-mx8m-mini-with-b2qt-not-booting/3446/5 "2021-03-31T16:33:27Z")

</div>

That’s great to hear. Thanks for reporting back.
