SWUpdate with wrong mmc device address

237 Views Asked by At

I use this sw-description with device="/dev/mmcblk3p1", but swupdate will download files to "/dev/mmcblk3p2".

files: (
            {
                  filename = "zImage";
                  path = "/zImage";
                  device = "/dev/mmcblk3p1";
            },
            {
                  filename = "imx6dl-sabresd.dtb";
                  path = "/imx6dl-sabresd.dtb"
                  device = "/dev/mmcblk3p1";
            }
         );
1

There are 1 best solutions below

0
On

From the documentation for the files section:

Entries in files section are managed as single files. The attributes filename and path are mandatory. Attributes device and filesystem are optional; they tell SWUpdate to mount device (of the given filesystem type, e.g. ext4) before copying filename to path.

Without device and filesystem, the filename will be copied to path in the current rootfs.

You have specified device but not filesystem, therefore SWUpdate ignores the device attribute, and copies your files to whichever filesystem is already mounted at /.

You need to specify filesystem e.g. ext4.