Yes, I have already added /usr/share/mender/modules/v3/web-file and made it executable as mentioned in mender steps.
Regarding the mender client version, I found that i.MX8M Mini has a mender_version.bb
recipe file for a mender client. So, I added PREFERRED_VERSION_pn-mender = “2.1.2”.
Similarly, for mender-artifact the I added 3.1.1 version, as it is the latest available, I added PREFERRED_VERSION_pn-mender-artifact = “3.1.1”.
But while compiling there is an error. I don’t understand why there is a difference of names in mender and mender client and why the compilation is showing error. Below are the error logs that might be helpful.
"
ERROR: ExpansionError during parsing /home/ota/mender-imx/sources/meta-mender/meta-mender-core/recipes-mender/mender-artifact/mender-artifact_git.bb
Traceback (most recent call last):
File “/home/ota/mender-imx/sources/poky/bitbake/lib/bb/data_smart.py”, line 412, in DataSmart.expandWithRefs(s="{@mender_version_from_preferred_version(d, '{SRCPV}’)}", varname=‘PV’):
try:
> s = expand_var_regexp.sub(varparse.var_sub, s)
try:
File “/home/ota/mender-imx/sources/poky/bitbake/lib/bb/data_smart.py”, line 111, in VariableParse.var_sub(match=<_sre.SRE_Match object; span=(45, 53), match=’${SRCPV}’>):
else:
> var = self.d.getVarFlag(key, “_content”)
self.references.add(key)
File “/home/ota/mender-imx/sources/poky/bitbake/lib/bb/data_smart.py”, line 794, in DataSmart.getVarFlag(var=‘SRCPV’, flag=’_content’, expand=True, noweakdefault=False, parsing=False):
cachename = var + “[” + flag + “]”
> value = self.expand(value, cachename)
File “/home/ota/mender-imx/sources/poky/bitbake/lib/bb/data_smart.py”, line 436, in DataSmart.expand(s=’${@bb.fetch2.get_srcrev(d)}’, varname=‘SRCPV’):
def expand(self, s, varname = None):
> return self.expandWithRefs(s, varname).value
File “/home/ota/mender-imx/sources/poky/bitbake/lib/bb/data_smart.py”, line 426, in DataSmart.expandWithRefs(s=’${@bb.fetch2.get_srcrev(d)}’, varname=‘SRCPV’):
except Exception as exc:
> raise ExpansionError(varname, s, exc) from exc
bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: The SRCREV_FORMAT variable must be set when multiple SCMs are used.
"
Regards,
Kunal