[meta-xilinx] ZynqMP causes tons of recipes to fail to parse because of PMU build

Mike Looijmans mike.looijmans at topic.nl
Thu Aug 17 22:27:34 PDT 2017


On 17-08-17 23:57, Nathan Rossi wrote:
> On 17 August 2017 at 23:12, Mike Looijmans <mike.looijmans at topic.nl> wrote:
>> I'm attempting to revive my build for the MPSOC machines. If one does
>> something like this:
>>
>> MACHINE=zcu102-zynqmp bitbake my-image
>>
>> I get parsing errors like:
>>
>> ERROR: ExpansionError during parsing /home/mike/projects/@@@.bb
>> Traceback (most recent call last):
>>    File "/home/mike/projects/zynq-platform/bitbake/lib/bb/data_smart.py",
>> line 412, in DataSmart.expandWithRefs(s='0.${SRCPV}', varname='PV'):
>>                   try:
>>      >                s = __expand_var_regexp__.sub(varparse.var_sub, s)
>>                       try:
>>    File "/home/mike/projects/zynq-platform/bitbake/lib/bb/data_smart.py",
>> line 111, in VariableParse.var_sub(match=<_sre.SRE_Match object; span=(2,
>> 10), match='${SRCPV}'>):
>>                   else:
>>      >                var = self.d.getVarFlag(key, "_content")
>>                   self.references.add(key)
>>    File "/home/mike/projects/zynq-platform/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/mike/projects/zynq-platform/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/mike/projects/zynq-platform/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.
> 
> Looks like a very odd failure, unfortunately I cannot reproduce with
> pyro or master on recipes that use version control or dynamic SRCREV
> features. Could you provide some build config info and if possible the
> recipe that is generating the error?

It's a parsing error, so it fails on one recipe, and when I remove the recipe, 
some other fails, and so on. After a dozen or so, I gave up.

There's nothing special about the config. Mainly recipes that inherit gitpkgv 
seem affected. I cannot say what triggers it exactly.


>> The cause is this line in zcu102-zynqmp.conf:
>>
>> include conf/machine/include/zynqmp-pmu-config.inc
>>
>> This breaks almost all recipes that use some kind of version control. Adding
>> this line to any machine's config yields the same error. Removing it results
>> in:
>> ERROR: Nothing PROVIDES 'zynqmp-pmu-pmu-firmware'
> 
> If you don't need the pmu-firmware built via the meta-xilinx layer
> (e.g. you source it externally or via meta-xilinx-tools), you can
> remove the include and that dependency.

Actually, at the moment I don't know how to boot the ZynqMP any more, and the 
Xilinx website isn't helpful either. I can build all the components (FSBL or 
SPL, u-boot, ATF, PMU, kernel, ...) but I have no idea as to how to fit them 
together on a card on in the QSPI flash. The README in meta-xilinx doesn't 
even mention the ZynqMP.


Kind regards,

Mike Looijmans
System Expert

TOPIC Products
Materiaalweg 4, NL-5681 RJ Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: mike.looijmans at topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail






More information about the meta-xilinx mailing list