Hello,
I am trying to bringup mender client on yocto poky-tiny based distro. Mender compiled OK, but update is not working. According to debug printouts it is not able to get active rootfs. It look like mender takes active root fs from mount command but in my case it show /dev/root. I think that mender expect name /dev/mmcblk0p2 but not /dev/root. Do you have ideas what could be wrong here ?
root@pynq-z1:/run/media/sda1# mender -debug --rootfs test-image-pynq-z1.mender·
DEBU[0000] Reading Mender configuration from file /etc/mender/mender.conf module=config
DEBU[0000] Read data from device manifest file: device_type=pynq-z1 module=mender
DEBU[0000] Found needed line: device_type=pynq-z1 module=mender
DEBU[0000] Current manifest data: pynq-z1 module=mender
DEBU[0000] Starting device update. module=rootfs
INFO[0000] Start updating from local image file: [test-image-pynq-z1.mender] module=rootfs
Jan 1 00:17:26 (none) kern.info mender[869]: level=info msg="Start updating from local image file: [test-image-pynq-z1.mender]" module=rootfs·
DEBU[0000] Fetching update from file results: [&{0x10760840}], 23140864, <nil> module=rootfs
Installing update from the artifact of size 23140864
DEBU[0000] checking if device [pynq-z1] is on compatibile device list: [pynq-z1]
module=installer
DEBU[0000] installing update test-image-pynq-z1.ext4 of size 973078528 module=installer
DEBU[0000] Trying to install update of size: 973078528 module=device
DEBU[0000] Have U-Boot variable: mender_boot_part=2 module=bootenv
DEBU[0000] List of U-Boot variables:map[mender_boot_part:2] module=bootenv
DEBU[0000] Setting active partition from mount candidate: /dev/root module=partitions
ERRO[0000] update image installation failed: Active root partition matches neither RootfsPartA nor RootfsPartB. module=installer
Jan 1 00:17:26 (none) kern.err mender[869]: level=error msg="update image installation failed: Active root partition matches neither RootfsPartA nor RootfsPartB." module=installer·
Jan 1 00:17:26 (none) kern.err mender[869]: level=error msg="Installation failed: installer: failed to read and install update: update: can not install update: &{test-image-pynq-z1.ext4 420 1000 1000 973078528 2019-04-04 18:02:18 +0:
ERRO[0000] Installation failed: installer: failed to read and install update: update: can not install update: &{test-image-pynq-z1.ext4 420 1000 1000 973078528 2019-04-04 18:02:18 +0000 UTC 48 0 0 0001-01-01 00:00:00 +0000 UTC 000s
ERRO[0000] installer: failed to read and install update: update: can not install update: &{test-image-pynq-z1.ext4 420 1000 1000 973078528 2019-04-04 18:02:18 +0000 UTC 48 0 0 0001-01-01 00:00:00 +0000 UTC 0001-01-01 00:00:00 +000n
root@pynq-z1:/run/media/sda1#·
root@pynq-z1:/run/media/sda1#·
root@pynq-z1:/run/media/sda1# mount
/dev/root on / type ext4 (rw,relatime,data=ordered)
/dev/root on / type ext4 (rw,relatime,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=246532k,nr_inodes=61633,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /var/volatile type tmpfs (rw,relatime)
/dev/mmcblk0p1 on /uboot type vfat (rw,sync,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/mmcblk0p4 on /data type ext4 (rw,relatime,data=ordered)
/dev/sda1 on /run/media/sda1 type vfat (rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)