# Mender for imx8qxpc0-mek

**URL:** <https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888>\
**Category:** Yocto Project\
**Created:** [July 16, 2021, 8:08am UTC](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888 "2021-07-16T08:08:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahdi](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mahdi](https://hub.mender.io/u/Mahdi)\
**Post date:** [July 16, 2021, 8:08am UTC](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888/1 "2021-07-16T08:08:48Z")

</div>

Hi,  
I want to integrate mender on imx8qxpc0-mek board with Yocto.  
Is there a tutorial that describes the integration of mender on this platform.  
Thank you!

---

<div class="post-metadata">

**Author:** ![Alan](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@Alan](https://hub.mender.io/u/Alan)\
**Post date:** [July 16, 2021, 11:01am UTC](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888/2 "2021-07-16T11:01:01Z")

</div>

Hi Mahdi,  
you can take a look at [this page](https://hub.mender.io/c/board-integrations/6) for existing board integrations.

---

<div class="post-metadata">

**Author:** ![Mahdi](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mahdi](https://hub.mender.io/u/Mahdi)\
**Post date:** [July 16, 2021, 1:46pm UTC](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888/3 "2021-07-16T13:46:30Z")

</div>

Hi Alan,  
Thank you for your reply,  
But I don’t see an integration process defined for the imx8qxpc0mek board in this page.

---

<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:** [July 16, 2021, 8:04pm UTC](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888/4 "2021-07-16T20:04:59Z")

</div>

If there is not an already existing integration then you will need to do a custom one. [Docs are here](https://docs.mender.io/system-updates-yocto-project/board-integration).

Also, we do offer services to do custom integrations. More details [are here](https://mender.io/support-and-services/board-integration).

Drew

---

<div class="post-metadata">

**Author:** ![Mahdi](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mahdi](https://hub.mender.io/u/Mahdi)\
**Post date:** [July 20, 2021, 12:48pm UTC](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888/5 "2021-07-20T12:48:52Z")

</div>

Hi Drew,  
Thank you for your reply,  
I was inspired by this patch to integrate mender for imx8qxpc0mek :  
[commit](https://github.com/mendersoftware/meta-mender-community/commit/71fdc24a71194fd69d50ed9ba48bda27d79e9a8d#diff-54562d56891478f08c1ab65d3c3545466d9f1affddfd841b5ffd4597e583136f)

I built the image for the imx8qxpc0mek knowing that I started from manifest imx-4.14.98-2.3.0.xml (sumo branch) with the addition of meta-mender and meta-mender-community.  
The build is OK.  
I got the 4 partitions after flashing the .sdimg on the sdcard.  
But the board does not boot and enters a loop!

Please, help me !

Here are the logs :

U-Boot 2018.03-4.14.98-2.3.3+gc20c444 (Jul 20 2021 - 11:33:12 +0000)

CPU: Freescale i.MX8QXP revC A35 at 1200 MHz at 30C  
Model: Freescale i.MX8QXP MEK  
Board: iMX8QXP MEK  
Boot: SD1  
DRAM: 2.8 GiB  
VService: Connection is ok on MU mu@5d230000  
TCPC: Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x50]  
MMC: FSL\_SDHC: 0, FSL\_SDHC: 1  
Loading Environment from MMC… Run CMD11 1.8V switch  
OK  
[pcie\_ctrlb\_sata\_phy\_init\_rc] LNK DOWN 8600000  
In: serial  
Out: serial  
Err: serial

BuildInfo:

- SCFW c2c1675e, SECO-FW 268f2c02, IMX-MKIMAGE d7f9440d, ATF bb209a0
- U-Boot 2018.03-4.14.98-2.3.3+gc20c444

Run CMD11 1.8V switch  
switch to partitions #0, OK  
mmc1 is current device  
flash target is MMC:1  
Run CMD11 1.8V switch  
Net:  
Warning: ethernet@5b040000 using MAC address from ROM  
eth0: ethernet@5b040000 [PRIME]  
Warning: ethernet@5b050000 (eth1) using random MAC address - fe:94:f5:f8:3a:34  
, eth1: ethernet@5b050000  
Fastboot: Normal  
Normal Boot  
Hit any key to stop autoboot: 0  
syntax error  
“Synchronous Abort” handler, esr 0x96000007  
elr: 00000000800383dc lr : 0000000080038858 (reloc)  
elr: 0000000087e833dc lr : 0000000087e83858  
x0 : 0000000000000000 x1 : 0000000087e81b9c  
x2 : 0000000087eed2b8 x3 : 0000000000000008  
x4 : 00000000856754b0 x5 : 0000000085675520  
x6 : 0000000000000021 x7 : 0000000087eed1d8  
x8 : 00000000856af000 x9 : 0000000000000008  
x10: 00000000ffffffd0 x11: 0000000000000006  
x12: 000000000001869f x13: 000000000000a434  
x14: 000000008565d0ec x15: 0000000000000002  
x16: 00000000000040e0 x17: 0000000000000000  
x18: 0000000085668da8 x19: 000000008565d130  
x20: 0000000000000001 x21: 000000000000000a  
x22: 0000000000000001 x23: 0000000000000062  
x24: 0000000000000002 x25: 0000000000000001  
x26: 0000000087f09000 x27: 0000000087ed3000  
x28: 0000000000000020 x29: 000000008565d020

Resetting CPU …

resetting …

---

<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:** [July 20, 2021, 1:02pm UTC](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888/6 "2021-07-20T13:02:04Z")

</div>

No idea, sorry.

As a first troubleshooting step I would recommend you take a look at the BOOTCMD environment variable and then run each of the steps individually to see if anything obviously wrong happens. That’s kind of a tedious activity, especially if you are using distro\_bootcmd, but it’s the only thing I can suggest.

This looks like the kernel may be built incorrectly but that’s just a guess.

Drew

---

<div class="post-metadata">

**Author:** ![Mahdi](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mahdi](https://hub.mender.io/u/Mahdi)\
**Post date:** [July 23, 2021, 10:11am UTC](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888/7 "2021-07-23T10:11:15Z")

</div>

Hi Drew,  
Thank you for your reply,  
Now, the board is booting.  
The mender client is started, however, I have errors (Failed to read the current active partition: No match between boot and root partitions) as shown in journalctl logs.  
root@imx8qxpc0mek:~# journalctl -u mender -f  
– Logs begin at Thu 1970-01-01 02:24:41 UTC. –  
Jan 01 02:24:44 imx8qxpc0mek systemd[1]: Started Mender OTA update service.  
Jan 01 02:24:50 imx8qxpc0mek mender[3717]: time=“1970-01-01T02:24:50Z” level=info msg=“Configuration file does not exist: /var/lib/mender/mender.conf” module=config  
Jan 01 02:24:50 imx8qxpc0mek mender[3717]: time=“1970-01-01T02:24:50Z” level=info msg=“Loaded configuration file: /etc/mender/mender.conf” module=config  
Jan 01 02:24:50 imx8qxpc0mek mender[3717]: time=“1970-01-01T02:24:50Z” level=error msg="Failed to read the current active partition: No match between boot and root partitions.: Failed mender\_saveenv\_n  
Jan 01 02:24:50 imx8qxpc0mek mender[3717]: time=“1970-01-01T02:24:50Z” level=info msg="API Gateway certificate (in PEM format): \n-----BEGIN CERTIFICATE-----\nMIIBfTCCASOgAwIBAgIJAJOS76a0qWuZMAoGCCqGt  
Jan 01 02:24:50 imx8qxpc0mek mender[3717]: time=“1970-01-01T02:24:50Z” level=info msg=“Issuer: [], Valid from: 2016-12-14 19:52:46 +0000 UTC, Valid to: 2026-12-12 19:52:46 +0000 UTC” module=client  
Jan 01 02:24:50 imx8qxpc0mek mender[3717]: time=“1970-01-01T02:24:50Z” level=info msg=“State transition: init [none] → init [none]” module=mender  
Jan 01 02:24:50 imx8qxpc0mek mender[3717]: time=“1970-01-01T02:24:50Z” level=info msg=“State transition: init [none] → idle [Idle]” module=mender  
Jan 01 02:24:50 imx8qxpc0mek mender[3717]: time=“1970-01-01T02:24:50Z” level=info msg=“State transition: idle [Idle] → authorize-wait [Idle]” module=mender  
Jan 01 02:24:50 imx8qxpc0mek mender[3717]: time=“1970-01-01T02:24:50Z” level=info msg=“State transition: authorize-wait [Idle] → authorize [Sync]” module=mender

the content of the bootenv :  
altbootcmd=run mender\_altbootcmd; run bootcmd  
bootlimit=1  
bootcount=0  
upgrade\_available=0  
mender\_uboot\_boot=mmc 1:1  
mender\_uboot\_if=mmc  
mender\_uboot\_dev=1  
mender\_boot\_kernel\_type=booti  
mender\_kernel\_name=Image  
mender\_dtb\_name=fsl-imx8qxp-mek-root.dtb  
mender\_pre\_setup\_commands=  
mender\_post\_setup\_commands=  
mender\_check\_saveenv\_canary=1  
mender\_setup=if test “${mender\_saveenv\_canary}” != “1”; then setenv mender\_saveenv\_canary 1; saveenv; fi; if test “${mender\_pre\_setup\_commands}” != “”; then run mender\_pre\_setup\_commands; fi; if test “${mender\_systemd\_machine\_id}” != “”; then setenv bootargs systemd.machine\_id=${mender\_systemd\_machine\_id} ${bootargs}; fi; setenv mender\_kernel\_root /dev/mmcblk1p${mender\_boot\_part}; if test ${mender\_boot\_part} = 2; then setenv mender\_boot\_part\_name /dev/mmcblk1p2; else setenv mender\_boot\_part\_name /dev/mmcblk1p3; fi; setenv mender\_kernel\_root\_name ${mender\_boot\_part\_name}; setenv mender\_uboot\_root mmc 1:${mender\_boot\_part\_hex}; setenv mender\_uboot\_root\_name ${mender\_boot\_part\_name}; setenv expand\_bootargs “setenv bootargs \”${bootargs}\""; run expand\_bootargs; setenv expand\_bootargs; if test “${mender\_post\_setup\_commands}” != “”; then run mender\_post\_setup\_commands; fi  
mender\_altbootcmd=if test ${mender\_boot\_part} = 2; then setenv mender\_boot\_part 3; setenv mender\_boot\_part\_hex 3; else setenv mender\_boot\_part 2; setenv mender\_boot\_part\_hex 2; fi; setenv upgrade\_available 0; saveenv; run mender\_setup  
mender\_try\_to\_recover=if test ${upgrade\_available} = 1; then reset; fi  
bootcmd=mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; else if test ${sec\_boot} = yes; then if run loadcntr; then run mmcboot; else run netboot; fi; else if run loadimage; then run mmcboot; else run netboot; fi; fi; fi; else booti ${loadaddr} - ${fdt\_addr}; fi  
bootdelay=3  
baudrate=115200  
ethprime=eth0  
loadaddr=0x80280000  
mfgtool\_args=setenv bootargs console=${console},${baudrate} rdinit=/linuxrc clk\_ignore\_unused  
kboot=booti  
bootcmd\_mfg=run mfgtool\_args;if iminfo ${initrd\_addr}; then if test ${tee} = yes; then bootm ${tee\_addr} ${initrd\_addr} ${fdt\_addr}; else booti ${loadaddr} ${initrd\_addr} ${fdt\_addr}; fi; else echo “Run fastboot …”; fastboot 0; fi;  
initrd\_addr=0x83100000  
initrd\_high=0xffffffffffffffff  
emmc\_dev=0  
sd\_dev=1  
m4\_0\_image=m4\_0.bin  
loadm4image\_0=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${m4\_0\_image}  
m4boot\_0=run loadm4image\_0; dcache flush; bootaux ${loadaddr} 0  
xenhyper\_bootargs=console=dtuart dtuart=/serial@5a060000 dom0\_mem=2048M dom0\_max\_vcpus=2 dom0\_vcpus\_pin=true  
xenlinux\_bootargs=  
xenlinux\_console=hvc0 earlycon=xen  
xenlinux\_addr=0x92000000  
dom0fdt\_file=fsl-imx8qxp-mek-dom0.dtb  
xenboot\_common=${get\_cmd} ${loadaddr} xen;${get\_cmd} ${fdt\_addr} ${dom0fdt\_file};${get\_cmd} ${xenlinux\_addr} ${image};fdt addr ${fdt\_addr};fdt resize 256;fdt set /chosen/module@0 reg \<0x00000000 ${xenlinux\_addr} 0x00000000 0x${filesize}\>; fdt set /chosen/module@0 bootargs “${bootargs} ${xenlinux\_bootargs}”; setenv bootargs ${xenhyper\_bootargs};booti ${loadaddr} - ${fdt\_addr};  
xennetboot=setenv get\_cmd dhcp;setenv console ${xenlinux\_console};run netargs;run xenboot\_common;  
xenmmcboot=setenv get\_cmd “fatload mmc ${mmcdev}:${mmcpart}”;setenv console ${xenlinux\_console};run mmcargs;run xenboot\_common;  
jh\_mmcboot=setenv fdt\_file fsl-imx8qxp-mek-root.dtb;setenv boot\_os ‘scu\_rm dtb ${fdt\_addr}; booti ${loadaddr} - ${fdt\_addr};’; run mmcboot;  
jh\_netboot=setenv fdt\_file fsl-imx8qxp-mek-root.dtb;setenv boot\_os ‘scu\_rm dtb ${fdt\_addr}; booti ${loadaddr} - ${fdt\_addr};’; run netboot;  
sec\_boot=no  
script=boot.scr  
image=Image  
panel=NULL  
console=ttyLP0  
fdt\_addr=0x83000000  
fdt\_high=0xffffffffffffffff  
cntr\_addr=0x98000000  
cntr\_file=os\_cntr\_signed.bin  
boot\_fdt=try  
fdt\_file=undefined  
mmcdev=1  
mmcpart=1  
mmcautodetect=yes  
mmcargs=setenv bootargs console=${console},${baudrate} earlycon root=${mmcroot}  
loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};  
bootscript=echo Running bootscript from mmc …; source  
loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}  
loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt\_addr} ${fdt\_file}  
loadcntr=fatload mmc ${mmcdev}:${mmcpart} ${cntr\_addr} ${cntr\_file}  
auth\_os=auth\_cntr ${cntr\_addr}  
boot\_os=booti ${loadaddr} - ${fdt\_addr};  
mmcboot=echo Booting from mmc …; run mmcargs; if test ${sec\_boot} = yes; then if run auth\_os; then run boot\_os; else echo ERR: failed to authenticate; fi; else if test ${boot\_fdt} = yes || test ${boot\_fdt} = try; then if run loadfdt; then run boot\_os; else echo WARN: Cannot load the DT; fi; else echo wait for boot; fi;fi;  
netargs=setenv bootargs console=${console},${baudrate} earlycon root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp  
netboot=echo Booting from net …; run netargs; if test ${ip\_dyn} = yes; then setenv get\_cmd dhcp; else setenv get\_cmd tftp; fi; if test ${sec\_boot} = yes; then ${get\_cmd} ${cntr\_addr} ${cntr\_file}; if run auth\_os; then run boot\_os; else echo ERR: failed to authenticate; fi; else ${get\_cmd} ${loadaddr} ${image}; if test ${boot\_fdt} = yes || test ${boot\_fdt} = try; then if ${get\_cmd} ${fdt\_addr} ${fdt\_file}; then run boot\_os; else echo WARN: Cannot load the DT; fi; else booti; fi;fi;  
mender\_boot\_part=2  
mender\_boot\_part\_hex=2  
mmcroot=/dev/mmcblk1p3 rootwait rw

---

<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:** [July 23, 2021, 1:57pm UTC](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888/8 "2021-07-23T13:57:50Z")

</div>

OK, glad to hear you are making some progress. I suspect this issue is that the u-boot fw-utils installed inside Linux are not configured properly. The mender-client uses them to read and write the u-boot environment. From the Linux shell prompt, what does the following show?

`# fw_printenv | grep mender`

Drew

---

<div class="post-metadata">

**Author:** ![Mahdi](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mahdi](https://hub.mender.io/u/Mahdi)\
**Post date:** [July 26, 2021, 6:44am UTC](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888/9 "2021-07-26T06:44:17Z")

</div>

Thank you for your reply,  
the fw\_printenv | grep mender shows :  
altbootcmd=run mender\_altbootcmd; run bootcmd  
mender\_boot\_part=2  
mender\_boot\_part\_hex=2  
mender\_uboot\_boot=mmc 1:1  
mender\_uboot\_if=mmc  
mender\_uboot\_dev=1  
mender\_boot\_kernel\_type=booti  
mender\_kernel\_name=Image  
mender\_dtb\_name=fsl-imx8qxp-mek-root.dtb  
mender\_pre\_setup\_commands=  
mender\_post\_setup\_commands=  
mender\_check\_saveenv\_canary=1  
mender\_setup=if test “${mender\_saveenv\_canary}” != “1”; then setenv mender\_saveenv\_canary 1; saveenv; fi; if test “${mender\_pre\_setup\_commands}” != “”; then run mender\_pre\_setup\_commands; fi; if test “${mender\_systemd\_machine\_id}” != “”; then setenv bootargs systemd.machine\_id=${mender\_systemd\_machine\_id} ${bootargs}; fi; setenv mender\_kernel\_root /dev/mmcblk1p${mender\_boot\_part}; if test ${mender\_boot\_part} = 2; then setenv mender\_boot\_part\_name /dev/mmcblk1p2; else setenv mender\_boot\_part\_name /dev/mmcblk1p3; fi; setenv mender\_kernel\_root\_name ${mender\_boot\_part\_name}; setenv mender\_uboot\_root mmc 1:${mender\_boot\_part\_hex}; setenv mender\_uboot\_root\_name ${mender\_boot\_part\_name}; setenv expand\_bootargs “setenv bootargs \”${bootargs}\""; run expand\_bootargs; setenv expand\_bootargs; if test “${mender\_post\_setup\_commands}” != “”; then run mender\_post\_setup\_commands; fi  
mender\_altbootcmd=if test ${mender\_boot\_part} = 2; then setenv mender\_boot\_part 3; setenv mender\_boot\_part\_hex 3; else setenv mender\_boot\_part 2; setenv mender\_boot\_part\_hex 2; fi; setenv upgrade\_available 0; saveenv; run mender\_setup  
mender\_try\_to\_recover=if test ${upgrade\_available} = 1; then reset; fi

---

<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:** [July 26, 2021, 2:34pm UTC](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888/10 "2021-07-26T14:34:26Z")

</div>

Hmm. That looks correct to me. What do the following show?

From your target board:

> lsblk  
> fdisk -l

and from your build machine

> bitbake -e core-image-minimal | grep ^MENDER\_

Drew

---

<div class="post-metadata">

**Author:** ![Mahdi](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mahdi](https://hub.mender.io/u/Mahdi)\
**Post date:** [July 26, 2021, 2:47pm UTC](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888/11 "2021-07-26T14:47:27Z")

</div>

Knowing that the board boots on the sdcard : mmcblk1p1

root@imx8qxpc0mek:~# lsblk  
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT  
mmcblk0 179:0 0 29.1G 0 disk  
|-mmcblk0p1 179:1 0 128M 0 part  
|-mmcblk0p2 179:2 0 152M 0 part  
|-mmcblk0p3 179:3 0 152M 0 part  
`-mmcblk0p4 179:4 0 128M 0 part mmcblk0boot0 179:32 0 8M 1 disk mmcblk0boot1 179:64 0 8M 1 disk mmcblk0rpmb 179:96 0 4M 0 disk mmcblk1 179:128 0 59.5G 0 disk |-mmcblk1p1 179:129 0 128M 0 part /uboot |-mmcblk1p2 179:130 0 152M 0 part / |-mmcblk1p3 179:131 0 152M 0 part `-mmcblk1p4 179:132 0 128M 0 part /data

root@imx8qxpc0mek:~# fdisk -l  
Disk /dev/mmcblk0: 29.1 GiB, 31272730624 bytes, 61079552 sectors  
Units: sectors of 1 \* 512 = 512 bytes  
Sector size (logical/physical): 512 bytes / 512 bytes  
I/O size (minimum/optimal): 512 bytes / 512 bytes  
Disklabel type: dos  
Disk identifier: 0xc37e87b1

Device Boot Start End Sectors Size Id Type  
/dev/mmcblk0p1 \* 49152 311295 262144 128M c W95 FAT32 (LBA)  
/dev/mmcblk0p2 311296 622591 311296 152M 83 Linux  
/dev/mmcblk0p3 622592 933887 311296 152M 83 Linux  
/dev/mmcblk0p4 933888 1196031 262144 128M 83 Linux

[141.468728] mmcblk0rpmb: error -110 transferring data, sector 0, nr 8, cmd response 0x900, card status 0xb00  
[141.478588] mmcblk0rpmb: retrying using single block read  
[147.928072] mmcblk0rpmb: error -110 transferring data, sector 8, nr 8, cmd response 0x900, card status 0xb00  
[147.937959] mmcblk0rpmb: retrying using single block read  
Disk /dev/mmcblk0rpmb: 4 MiB, 4194304 bytes, 8192 sectors  
Units: sectors of 1 \* 512 = 512 bytes  
Sector size (logical/physical): 512 bytes / 512 bytes  
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mmcblk0boot1: 8 MiB, 8388608 bytes, 16384 sectors  
Units: sectors of 1 \* 512 = 512 bytes  
Sector size (logical/physical): 512 bytes / 512 bytes  
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mmcblk0boot0: 8 MiB, 8388608 bytes, 16384 sectors  
Units: sectors of 1 \* 512 = 512 bytes  
Sector size (logical/physical): 512 bytes / 512 bytes  
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mmcblk1: 59.5 GiB, 63864569856 bytes, 124735488 sectors  
Units: sectors of 1 \* 512 = 512 bytes  
Sector size (logical/physical): 512 bytes / 512 bytes  
I/O size (minimum/optimal): 512 bytes / 512 bytes  
Disklabel type: dos  
Disk identifier: 0xbee39f1d

Device Boot Start End Sectors Size Id Type  
/dev/mmcblk1p1 \* 49152 311295 262144 128M c W95 FAT32 (LBA)  
/dev/mmcblk1p2 311296 622591 311296 152M 83 Linux  
/dev/mmcblk1p3 622592 933887 311296 152M 83 Linux  
/dev/mmcblk1p4 933888 1196031 262144 128M 83 Linux

---

<div class="post-metadata">

**Author:** ![Mahdi](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mahdi](https://hub.mender.io/u/Mahdi)\
**Post date:** [July 26, 2021, 2:50pm UTC](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888/12 "2021-07-26T14:50:33Z")

</div>

jenkins@8e82833bfd17:~/imx8/build$ bitbake core-image-base | grep ^MENDER\_  
jenkins@8e82833bfd17:~/imx8/build$

I have nothing for the bitbake as you see it  
Mahdi

---

<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:** [July 26, 2021, 3:13pm UTC](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888/13 "2021-07-26T15:13:29Z")

</div>

You missed the “-e” option to bitbake.

Drew

---

<div class="post-metadata">

**Author:** ![Mahdi](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mahdi](https://hub.mender.io/u/Mahdi)\
**Post date:** [July 26, 2021, 3:20pm UTC](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888/14 "2021-07-26T15:20:01Z")

</div>

I’m sorry !

jenkins@8e82833bfd17:~/imx8/build$ bitbake -e core-image-base | grep ^MENDER\_  
MENDER\_ARTIFACT\_EXTRA\_ARGS=""  
MENDER\_ARTIFACT\_NAME=“release-1”  
MENDER\_ARTIFACT\_SIGNING\_KEY=""  
MENDER\_BOOT\_PART="/dev/mmcblk1p1"  
MENDER\_BOOT\_PART\_DEFAULT="/dev/mmcblk1p1"  
MENDER\_BOOT\_PART\_DEFAULT\_mender-ubi=""  
MENDER\_BOOT\_PART\_FSTYPE=“auto”  
MENDER\_BOOT\_PART\_FSTYPE\_DEFAULT=“auto”  
MENDER\_BOOT\_PART\_MOUNT\_LOCATION="/uboot"  
MENDER\_BOOT\_PART\_MOUNT\_LOCATION\_mender-grub\_mender-bios="/boot/grub"  
MENDER\_BOOT\_PART\_MOUNT\_LOCATION\_mender-uboot="/uboot"  
MENDER\_BOOT\_PART\_SIZE\_MB=“128”  
MENDER\_BOOT\_PART\_SIZE\_MB\_DEFAULT=“16”  
MENDER\_BOOT\_PART\_SIZE\_MB\_DEFAULT\_mender-ubi=“0”  
MENDER\_CALC\_ROOTFS\_SIZE=“155648”  
MENDER\_DATA\_PART="/dev/mmcblk1p4"  
MENDER\_DATA\_PART\_DEFAULT="/dev/mmcblk1p4"  
MENDER\_DATA\_PART\_DEFAULT\_mender-ubi="/dev/mmcblk1p2"  
MENDER\_DATA\_PART\_FSTYPE=“auto”  
MENDER\_DATA\_PART\_FSTYPE\_DEFAULT=“auto”  
MENDER\_DATA\_PART\_FSTYPE\_DEFAULT\_mender-ubi=“ubifs”  
MENDER\_DATA\_PART\_SIZE\_MB=“128”  
MENDER\_DATA\_PART\_SIZE\_MB\_DEFAULT=“128”  
MENDER\_DEVICE\_TYPE=“imx8qxpc0mek”  
MENDER\_DEVICE\_TYPES\_COMPATIBLE=“imx8qxpc0mek”  
MENDER\_DEVICE\_TYPES\_COMPATIBLE\_DEFAULT=“imx8qxpc0mek”  
MENDER\_DEVICE\_TYPE\_DEFAULT=“imx8qxpc0mek”  
MENDER\_DEVICE\_TYPE\_DEFAULT\_beaglebone-yocto\_mender-grub=“imx8qxpc0mek-grub”  
MENDER\_FEATURES\_DISABLE=" mender-grub mender-image-uefi"  
MENDER\_FEATURES\_ENABLE=" mender-image mender-install mender-systemd mender-image-sd mender-uboot"  
MENDER\_FLASH\_MINIMUM\_IO\_UNIT=“512”  
MENDER\_GRUB\_STORAGE\_DEVICE=""  
MENDER\_GRUB\_STORAGE\_DEVICE\_DEFAULT=""  
MENDER\_IMAGE\_BOOTLOADER\_BOOTSECTOR\_OFFSET=“64”  
MENDER\_IMAGE\_BOOTLOADER\_BOOTSECTOR\_OFFSET\_DEFAULT=“2”  
MENDER\_IMAGE\_BOOTLOADER\_BOOTSECTOR\_OFFSET\_DEFAULT\_mender-grub\_mender-bios=“1”  
MENDER\_IMAGE\_BOOTLOADER\_BOOTSECTOR\_OFFSET\_DEFAULT\_mender-ubi=“0”  
MENDER\_IMAGE\_BOOTLOADER\_FILE=“imx-boot-imx8qxpc0mek-sd.bin”  
MENDER\_IMAGE\_BOOTLOADER\_FILE\_DEFAULT=""  
MENDER\_IMAGE\_BOOTLOADER\_FILE\_DEFAULT\_mender-grub\_mender-bios=“grub-core.img”  
MENDER\_IMAGE\_BOOTLOADER\_FILE\_DEFAULT\_mender-ubi=“u-boot.bin”  
MENDER\_IMAGE\_ROOTFS\_MAXSIZE\_DEFAULT=“155648”  
MENDER\_IMAGE\_ROOTFS\_MAXSIZE\_DEFAULT\_mender-ubi=""  
MENDER\_IMAGE\_ROOTFS\_SIZE\_DEFAULT=“155648”  
MENDER\_IS\_ON\_MTDID=""  
MENDER\_MAXIMUM\_LEB\_COUNT=“1024”  
MENDER\_MBR\_BOOTLOADER\_FILE=""  
MENDER\_MBR\_BOOTLOADER\_FILE\_DEFAULT=""  
MENDER\_MBR\_BOOTLOADER\_FILE\_DEFAULT\_mender-grub\_mender-bios=“boot.img”  
MENDER\_MBR\_BOOTLOADER\_LENGTH=“446”  
MENDER\_MTDIDS=""  
MENDER\_MTDPARTS=""  
MENDER\_MTD\_UBI\_DEVICE\_NAME=""  
MENDER\_MTD\_UBI\_DEVICE\_NAME\_DEFAULT=""  
MENDER\_MTD\_UBI\_DEVICE\_NAME\_DEFAULT\_mender-ubi=“ubi”  
MENDER\_NAND\_FLASH\_PAGE\_SIZE=“2048”  
MENDER\_PARTITIONING\_OVERHEAD\_KB=“32768”  
MENDER\_PARTITIONING\_OVERHEAD\_KB\_DEFAULT=“32768”  
MENDER\_PARTITIONING\_OVERHEAD\_KB\_DEFAULT\_mender-ubi=“655360”  
MENDER\_PARTITION\_ALIGNMENT=“8388608”  
MENDER\_PARTITION\_ALIGNMENT\_DEFAULT=“8388608”  
MENDER\_PARTITION\_ALIGNMENT\_DEFAULT\_mender-ubi=“8388608”  
MENDER\_RESERVED\_SPACE\_BOOTLOADER\_DATA=“16777216”  
MENDER\_RESERVED\_SPACE\_BOOTLOADER\_DATA\_DEFAULT=“16777216”  
MENDER\_RESERVED\_SPACE\_BOOTLOADER\_DATA\_DEFAULT\_mender-uboot=“16777216”  
MENDER\_ROOTFS\_PART\_A="/dev/mmcblk1p2"  
MENDER\_ROOTFS\_PART\_A\_DEFAULT="/dev/mmcblk1p2"  
MENDER\_ROOTFS\_PART\_A\_DEFAULT\_mender-ubi="/dev/mmcblk1p0"  
MENDER\_ROOTFS\_PART\_A\_NAME="/dev/mmcblk1p2"  
MENDER\_ROOTFS\_PART\_A\_NAME\_DEFAULT="/dev/mmcblk1p2"  
MENDER\_ROOTFS\_PART\_A\_NAME\_DEFAULT\_mender-ubi="/dev/mmcblk1:rootfsa"  
MENDER\_ROOTFS\_PART\_B="/dev/mmcblk1p3"  
MENDER\_ROOTFS\_PART\_B\_DEFAULT="/dev/mmcblk1p3"  
MENDER\_ROOTFS\_PART\_B\_DEFAULT\_mender-ubi="/dev/mmcblk1p1"  
MENDER\_ROOTFS\_PART\_B\_NAME="/dev/mmcblk1p3"  
MENDER\_ROOTFS\_PART\_B\_NAME\_DEFAULT="/dev/mmcblk1p3"  
MENDER\_ROOTFS\_PART\_B\_NAME\_DEFAULT\_mender-ubi="/dev/mmcblk1:rootfsb"  
MENDER\_STATE\_SCRIPTS\_VERSION=“2”  
MENDER\_STORAGE\_DEVICE="/dev/mmcblk1"  
MENDER\_STORAGE\_DEVICE\_BASE="/dev/mmcblk1p"  
MENDER\_STORAGE\_DEVICE\_BASE\_DEFAULT="/dev/mmcblk1p"  
MENDER\_STORAGE\_DEVICE\_BASE\_DEFAULT\_mender-ubi="/dev/mmcblk1\_"  
MENDER\_STORAGE\_DEVICE\_DEFAULT="/dev/mmcblk0"  
MENDER\_STORAGE\_DEVICE\_DEFAULT\_mender-ubi=“ubi0”  
MENDER\_STORAGE\_DEVICE\_DEFAULT\_x86="/dev/hda"  
MENDER\_STORAGE\_DEVICE\_DEFAULT\_x86-64="/dev/hda"  
MENDER\_STORAGE\_DEVICE\_imx8mmevk="/dev/mmcblk1"  
MENDER\_STORAGE\_DEVICE\_imx8mqevk="/dev/mmcblk1"  
MENDER\_STORAGE\_DEVICE\_imx8qxpc0mek="/dev/mmcblk1"  
MENDER\_STORAGE\_PEB\_SIZE=“8388608”  
MENDER\_STORAGE\_TOTAL\_SIZE\_MB=“608”  
MENDER\_STORAGE\_TOTAL\_SIZE\_MB\_DEFAULT=“608”  
MENDER\_UBI\_LEB\_PEB\_BLOCK\_OVERHEAD=“0”  
MENDER\_UBI\_LEB\_SIZE=“8388608”  
MENDER\_UBI\_TOTAL\_BAD\_PEB\_OVERHEAD=“0”  
MENDER\_UBI\_TOTAL\_FIXED\_OVERHEAD=“33554432”  
MENDER\_UBI\_TOTAL\_LEB\_PEB\_OVERHEAD=“0”  
MENDER\_UBOOT\_ENV\_STORAGE\_DEVICE\_OFFSET=“8388608”  
MENDER\_UBOOT\_ENV\_UBIVOL\_NUMBER\_1=“3”  
MENDER\_UBOOT\_ENV\_UBIVOL\_NUMBER\_2=“4”  
MENDER\_UBOOT\_POST\_SETUP\_COMMANDS=""  
MENDER\_UBOOT\_POST\_SETUP\_COMMANDS\_DEFAULT=""  
MENDER\_UBOOT\_PRE\_SETUP\_COMMANDS=""  
MENDER\_UBOOT\_PRE\_SETUP\_COMMANDS\_DEFAULT=""  
MENDER\_UBOOT\_STORAGE\_DEVICE=""  
MENDER\_UBOOT\_STORAGE\_DEVICE\_DEFAULT=""  
MENDER\_UBOOT\_STORAGE\_DEVICE\_DEFAULT\_mender-ubi=“dummy”  
MENDER\_UBOOT\_STORAGE\_INTERFACE=""  
MENDER\_UBOOT\_STORAGE\_INTERFACE\_DEFAULT=""  
MENDER\_UBOOT\_STORAGE\_INTERFACE\_DEFAULT\_mender-ubi=“dummy”  
jenkins@8e82833bfd17:~/imx8/build$

---

<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:** [July 26, 2021, 3:28pm UTC](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888/15 "2021-07-26T15:28:08Z")

</div>

@kacf any ideas on this one?

> Failed to read the current active partition: No match between boot and root partitions

The u-boot environment seems to match up on the partition numbering and is read the same in both Linux and U-Boot.

Drew

---

<div class="post-metadata">

**Author:** ![Mahdi](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mahdi](https://hub.mender.io/u/Mahdi)\
**Post date:** [July 27, 2021, 8:44am UTC](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888/16 "2021-07-27T08:44:01Z")

</div>

Hi Drew,  
I think the problem is with mender\_setup which is not running.  
I updated the value of mender\_saveenv\_canary in u-boot

> setenv mender\_saveenv\_canary 1  
> saveenv  
> boot

After booting, I check the mender client, now the partition is seen by mender

root@imx8qxpc0mek:~# journalctl -u mender -f  
– Logs begin at Thu 1970-01-01 01:44:14 UTC. –  
Jan 01 01:44:17 imx8qxpc0mek systemd[1]: Started Mender OTA update service.  
Jan 01 01:44:22 imx8qxpc0mek mender[3726]: time=“1970-01-01T01:44:22Z” level=info msg=“Configuration file does not exist: /var/lib/mender/mender.conf” module=config  
Jan 01 01:44:22 imx8qxpc0mek mender[3726]: time=“1970-01-01T01:44:22Z” level=info msg=“Loaded configuration file: /etc/mender/mender.conf” module=config  
Jan 01 01:44:23 imx8qxpc0mek mender[3726]: time=“1970-01-01T01:44:23Z” level=info msg=“Mender running on partition: /dev/mmcblk1p2” module=main  
Jan 01 01:44:23 imx8qxpc0mek mender[3726]: time=“1970-01-01T01:44:23Z” level=info msg="API Gateway certificate (in PEM format): \n-----BEGIN CERTIFICATE-----\nMIIBfTCCASOgt  
Jan 01 01:44:23 imx8qxpc0mek mender[3726]: time=“1970-01-01T01:44:23Z” level=info msg="Issuer: , Valid from: 2016-12-14 19:52:46 +0000 UTC, Valid to: 2026-12-12 19:52:46t  
Jan 01 01:44:23 imx8qxpc0mek mender[3726]: time=“1970-01-01T01:44:23Z” level=info msg=“State transition: init [none] → init [none]” module=mender  
Jan 01 01:44:23 imx8qxpc0mek mender[3726]: time=“1970-01-01T01:44:23Z” level=info msg=“State transition: init [none] → idle [Idle]” module=mender  
Jan 01 01:44:23 imx8qxpc0mek mender[3726]: time=“1970-01-01T01:44:23Z” level=info msg=“State transition: idle [Idle] → authorize-wait [Idle]” module=mender  
Jan 01 01:44:23 imx8qxpc0mek mender[3726]: time=“1970-01-01T01:44:23Z” level=info msg=“State transition: authorize-wait [Idle] → authorize [Sync]” module=mender

I will test the switch between the partitions.

---

<div class="post-metadata">

**Author:** ![Mahdi](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mahdi](https://hub.mender.io/u/Mahdi)\
**Post date:** [July 27, 2021, 12:37pm UTC](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888/17 "2021-07-27T12:37:01Z")

</div>

@drewmoseley

I wanted to switch between active / inactive partitions (mmcblk1p2 / mmcblk1p3)

root@imx8qxpc0mek:~#fw\_setenv mender\_boot\_part=3  
root@imx8qxpc0mek:~#fw\_setenv mender\_boot\_part\_hex=3  
root@imx8qxpc0mek:~#reboot

After reboot, I checked mender\_boot\_part an mender\_boot\_part\_hex values :

root@imx8qxpc0mek:~# fw\_printenv mender\_boot\_part  
mender\_boot\_part=3  
root@imx8qxpc0mek:~# fw\_printenv mender\_boot\_part\_hex  
mender\_boot\_part\_hex=3  
root@imx8qxpc0mek:~#

But the current partition is /dev/mmcblk1p2 as it was before the reboot

root@imx8qxpc0mek:~# journalctl -u mender -f  
– Logs begin at Mon 2021-03-01 02:22:43 UTC. –  
Mar 01 02:22:52 imx8qxpc0mek mender[3721]: time=“2021-03-01T02:22:52Z” level=info msg="Configuration file does not exist: /var/lib/mender/mender.cog  
Mar 01 02:22:52 imx8qxpc0mek mender[3721]: time=“2021-03-01T02:22:52Z” level=info msg=“Loaded configuration file: /etc/mender/mender.conf” module=cg  
Mar 01 02:22:52 imx8qxpc0mek mender[3721]: time=“2021-03-01T02:22:52Z” level=info msg=“Mender running on partition: /dev/mmcblk1p2” module=main

Do you have any idea !

Thanks,

Mahdi

---

<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:** [July 27, 2021, 1:08pm UTC](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888/18 "2021-07-27T13:08:42Z")

</div>

Not off the top of my head. You’ll need to break out to the u-boot command line and troubleshoot a bit. Print the BOOTCMD environment variable and manually step through it to see where it differs from the expected boot sequence.

Drew

---

<div class="post-metadata">

**Author:** ![Mahdi](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mahdi](https://hub.mender.io/u/Mahdi)\
**Post date:** [July 30, 2021, 12:33pm UTC](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888/19 "2021-07-30T12:33:35Z")

</div>

Hi @drewmoseley ,  
Thank you very much for all your help and useful information !

The problem is with the mmcargs in uboot env.  
I updated the mmcargs  
=\> setenv mmcargs “setenv bootargs console=${console},${baudrate} earlycon root=${mender\_kernel\_root}”  
Now I can switch between partitions.  
\*I tested the inventory it’s Ok  
\*I tested the partial\_update it’s OK  
The current image is flashed in the sdcard.

Now I wanted to generate a build that I will flash it on the emmc.  
Here are the changes I made:

In the local.conf  
I changed :  
MENDER\_STORAGE\_DEVICE\_imx8qxpc0mek = “/dev/mmcblk0”  
MENDER\_UBOOT\_STORAGE\_DEVICE\_imx8qxpc0mek = “0”

In imx8qxp\_mek.h :  
I removed this line:  
#define CONFIG\_SYS\_MMC\_ENV\_DEV 1 /_USDHC2_/

I compiled u-boot, I generated a new image  
I flashed the image in the emmc with uuu.  
The problem is that the mender environment variables are not taken into account in u-boot.

=\> printenv  
auth\_os=auth\_cntr ${cntr\_addr}  
baudrate=115200  
board\_name=MEK  
board\_rev=iMX8QXP  
boot\_fdt=try  
boot\_os=booti ${loadaddr} - ${fdt\_addr};  
bootargs=console=ttyLP0,115200 earlycon root=/dev/mmcblk0p2 rootwait rw  
bootcmd=mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; else if test ${sec\_boot} = yes; then if run loadcntr; then run mmcboot; else run netboot; fi; else if run loadii  
bootcmd\_mfg=run mfgtool\_args;if iminfo ${initrd\_addr}; then if test ${tee} = yes; then bootm ${tee\_addr} ${initrd\_addr} ${fdt\_addr}; else booti ${loadaddr} ${initrd\_addr} ${fdt\_addr}; fi; else echo "Run;  
bootdelay=3  
bootscript=echo Running bootscript from mmc …; source  
cntr\_addr=0x98000000  
cntr\_file=os\_cntr\_signed.bin  
commit\_atf=c949a88  
commit\_mkimage=8da5cd23  
commit\_scfw=56682d58  
commit\_secofw=4f5b6919  
console=ttyLP0  
dom0fdt\_file=imx8qxp-mek-dom0.dtb  
emmc\_dev=0  
ethact=ethernet@5b040000  
ethaddr=00:04:9f:06:a5:ff  
ethprime=eth0  
fastboot\_dev=mmc0  
fdt\_addr=0x83000000  
fdt\_file=fsl-imx8qxp-mek.dtb  
fdt\_high=0xffffffffffffffff  
fdtcontroladdr=fce0c010  
fileaddr=80280000  
filesize=164b200  
image=Image  
initrd\_addr=0x83100000  
initrd\_high=0xffffffffffffffff  
jh\_mmcboot=setenv fdt\_file imx8qxp-mek-root.dtb;setenv boot\_os ‘scu\_rm dtb ${fdt\_addr}; booti ${loadaddr} - ${fdt\_addr};’; run mmcboot;  
jh\_netboot=setenv fdt\_file imx8qxp-mek-root.dtb;setenv boot\_os ‘scu\_rm dtb ${fdt\_addr}; booti ${loadaddr} - ${fdt\_addr};’; run netboot;  
kboot=booti  
loadaddr=0x80280000  
loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};  
loadcntr=fatload mmc ${mmcdev}:${mmcpart} ${cntr\_addr} ${cntr\_file}  
loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt\_addr} ${fdt\_file}  
loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}  
loadm4image\_0=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${m4\_0\_image}  
m4\_0\_image=m4\_0.bin  
m4boot\_0=run loadm4image\_0; dcache flush; bootaux ${loadaddr} 0  
mfgtool\_args=setenv bootargs console=${console},${baudrate} rdinit=/linuxrc clk\_ignore\_unused  
mmcargs=setenv bootargs console=${console},${baudrate} earlycon root=${mmcroot}  
mmcautodetect=yes  
mmcboot=echo Booting from mmc …; run mmcargs; if test ${sec\_boot} = yes; then if run auth\_os; then run boot\_os; else echo ERR: failed to authenticate; fi; else if test ${boot\_fdt} = yes || test ${boot;  
mmcdev=0  
mmcpart=1  
mmcroot=/dev/mmcblk0p2 rootwait rw  
nandfit\_part=yes  
netargs=setenv bootargs console=${console},${baudrate} earlycon root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp  
netboot=echo Booting from net …; run netargs; if test ${ip\_dyn} = yes; then setenv get\_cmd dhcp; else setenv get\_cmd tftp; fi; if test ${sec\_boot} = yes; then ${get\_cmd} ${cntr\_addr} ${cntr\_file}; if;  
script=boot.scr  
sd\_dev=1  
sec\_boot=no  
serial#=170d300e829666c2  
soc\_type=imx8qxp  
splashimage=0x9e000000  
xenboot\_common=${get\_cmd} ${loadaddr} xen;${get\_cmd} ${fdt\_addr} ${dom0fdt\_file};${get\_cmd} ${xenlinux\_addr} ${image};fdt addr ${fdt\_addr};fdt resize 256;fdt set /chosen/module@0 reg \<0x00000000 ${xenli;  
xenhyper\_bootargs=console=dtuart dtuart=/serial@5a060000 dom0\_mem=1024M dom0\_max\_vcpus=2 dom0\_vcpus\_pin=true  
xenlinux\_addr=0x9e000000  
xenlinux\_bootargs=  
xenlinux\_console=hvc0 earlycon=xen  
xenmmcboot=setenv get\_cmd “fatload mmc ${mmcdev}:${mmcpart}”;setenv console ${xenlinux\_console};run mmcargs;run xenboot\_common;  
xennetboot=setenv get\_cmd dhcp;setenv console ${xenlinux\_console};run netargs;run xenboot\_common;

Do you have any idea !  
Are the modifications I made for an image for the emmc are good or not?

Thanks,

Mahdi

---

<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:** [July 30, 2021, 1:47pm UTC](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888/20 "2021-07-30T13:47:53Z")

</div>

Did you rebuild u-boot through Yocto? You will need to make your modification into a patch that is applied by the Yocto recipe to ensure that all the Mender patches are applied as well.

Drew

[Next page](https://hub.mender.io/t/mender-for-imx8qxpc0-mek/3888.md?page=2)
