Skip to contentSkip to conversation

soc: zynqmp: Update required API version to 1.0

PATCH New Michal Simek 4 participants 13 messages May 14, 2018 – May 23, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soc: zynqmp: Update required API version to 1.0

From: Rajan Vaja <[email protected]>

Existing EEMI version is to as 1.0 (available from xilinx v2018.1 version). Update required API version to match with EEMI API version.

New PMUFW version is required for operations with programmable logic.

---

 arch/arm/cpu/armv8/zynqmp/cpu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/cpu/armv8/zynqmp/cpu.c +2 -2
index 792a3e1b655f..e122be59c747 100644
@@ -173,8 +173,8 @@ int __maybe_unused invoke_smc(u32 pm_api_id, u32 arg0, u32 arg1, u32 arg2,
 
 #define ZYNQMP_SIP_SVC_GET_API_VERSION		0xC2000001
 
-#define ZYNQMP_PM_VERSION_MAJOR		0
-#define ZYNQMP_PM_VERSION_MINOR		3
+#define ZYNQMP_PM_VERSION_MAJOR		1
+#define ZYNQMP_PM_VERSION_MINOR		0
 #define ZYNQMP_PM_VERSION_MAJOR_SHIFT	16
 #define ZYNQMP_PM_VERSION_MINOR_MASK	0xFFFF
 
Signature · 1 line
2.17.0
#1 lore raw

PATCH 1/1 soc: zynqmp: Update required API version to 1.0

Quoted 4 lines · Michal Simek

From: Rajan Vaja <[email protected]>

Existing EEMI version is to as 1.0 (available from xilinx v2018.1 version). Update required API version to match with EEMI API version.

Not sure I understand this sentence.

Quoted 1 line

New PMUFW version is required for operations with programmable logic.

Seems the meta-xilinx 2018.1 comes with PMUFW 2017.3
https://github.com/Xilinx/meta-xilinx/tree/rel-v2018.1/meta-xilinx-bsp/recipes-bsp/pmu-firmware

Is this out of date ?

Quoted 23 lines

---

 arch/arm/cpu/armv8/zynqmp/cpu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/cpu/armv8/zynqmp/cpu.c +2 -2
index 792a3e1b655f..e122be59c747 100644
@@ -173,8 +173,8 @@ int __maybe_unused invoke_smc(u32 pm_api_id, u32 arg0, u32 arg1, u32 arg2,
 
 #define ZYNQMP_SIP_SVC_GET_API_VERSION		0xC2000001
 
-#define ZYNQMP_PM_VERSION_MAJOR		0
-#define ZYNQMP_PM_VERSION_MINOR		3
+#define ZYNQMP_PM_VERSION_MAJOR		1
+#define ZYNQMP_PM_VERSION_MINOR		0
 #define ZYNQMP_PM_VERSION_MAJOR_SHIFT	16
 #define ZYNQMP_PM_VERSION_MINOR_MASK	0xFFFF
 
Signature · 2 lines
Best regards,
Marek Vasut
#2 lore raw

PATCH 1/1 soc: zynqmp: Update required API version to 1.0

Quoted 7 lines · Marek Vasut
Quoted 4 lines · Michal Simek

From: Rajan Vaja <[email protected]>

Existing EEMI version is to as 1.0 (available from xilinx v2018.1 version). Update required API version to match with EEMI API version.

Not sure I understand this sentence.

PMUFW contains EEMI api which has also changed and the biggest reason for bumping up PMUFW version were changes in EEMI api. And these versions are also aligned.

Thanks,
Michal

#3 lore raw

PATCH 1/1 soc: zynqmp: Update required API version to 1.0

Quoted 4 lines · Michal Simek
Quoted 3 lines · Marek Vasut
Quoted 2 lines · Michal Simek

From: Rajan Vaja <[email protected]>

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Existing EEMI version is to as 1.0 (available from xilinx v2018.1 version). Update required API version to match with EEMI API version.

Not sure I understand this sentence.

PMUFW contains EEMI api which has also changed and the biggest reason for bumping up PMUFW version were changes in EEMI api. And these versions are also aligned.

So uh, the meta-xilinx 2018.1 release which contains pmufw 2017.3 uses the new API 1.0 , while meta-xilinx 2018.1 release which contains pmufw 2017.3 as well does not use the API 1.0 ? I think the versioning is a complete CF then ...

Signature · 2 lines
Best regards,
Marek Vasut
#4 lore raw

PATCH 1/1 soc: zynqmp: Update required API version to 1.0

In reply to Marek Vasut

Hi Marek,

Quoted 16 lines

-----Original Message-----
From: Marek Vasut [mailto:marex at denx.de]
Sent: 15 May 2018 02:26 AM
To: Michal Simek <[email protected]>; u-boot at lists.denx.de
Cc: Rajan Vaja <[email protected]>; monstr at monstr.eu; Albert Aribaud <[email protected]>
Subject: Re: [PATCH] soc: zynqmp: Update required API version to 1.0

Quoted 4 lines · Michal Simek

From: Rajan Vaja <[email protected]>

Existing EEMI version is to as 1.0 (available from xilinx v2018.1 version). Update required API version to match with EEMI API version.

Not sure I understand this sentence.

Quoted 7 lines
Quoted 1 line

New PMUFW version is required for operations with programmable logic.

Seems the meta-xilinx 2018.1 comes with PMUFW 2017.3
https://github.com/Xilinx/meta-xilinx/tree/rel-v2018.1/meta-xilinx-
bsp/recipes-bsp/pmu-firmware

Is this out of date ?

[Rajan] PMU firmware is built using meta-xilinx-tools layer and not meta-xilinx-bsp.
The recipe in meta-xilinx-bsp is to build OSL flow (using multilib) this is not recommended nor supported from Xilinx.

Quoted 31 lines

Review

Quoted 9 lines

---

 arch/arm/cpu/armv8/zynqmp/cpu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/arch/arm/cpu/armv8/zynqmp/cpu.c

arch/arm/cpu/armv8/zynqmp/cpu.c int __maybe_unused invoke_smc(u32 pm_api_id,

Quoted 4 lines

index 792a3e1b655f..e122be59c747 100644

arch/arm/cpu/armv8/zynqmp/cpu.c +0 -0
@@ -173,8 +173,8 @@ int __maybe_unused invoke_smc(u32 pm_api_id,

u32 arg0, u32 arg1, u32 arg2,

arch/arm/cpu/armv8/zynqmp/cpu.c int __maybe_unused invoke_smc(u32 pm_api_id, u32 arg0, u32 arg1, u32 arg2,

Quoted 11 lines
arch/arm/cpu/armv8/zynqmp/cpu.c +2 -2
 #define ZYNQMP_SIP_SVC_GET_API_VERSION		0xC2000001
 
-#define ZYNQMP_PM_VERSION_MAJOR		0
-#define ZYNQMP_PM_VERSION_MINOR		3
+#define ZYNQMP_PM_VERSION_MAJOR		1
+#define ZYNQMP_PM_VERSION_MINOR		0
 #define ZYNQMP_PM_VERSION_MAJOR_SHIFT	16
 #define ZYNQMP_PM_VERSION_MINOR_MASK	0xFFFF
 
 

--
Best regards,
Marek Vasut

#5 lore raw

PATCH 1/1 soc: zynqmp: Update required API version to 1.0

Quoted 20 lines · Rajan Vaja

Hi Marek,

Quoted 18 lines

-----Original Message-----
From: Marek Vasut [mailto:marex at denx.de]
Sent: 15 May 2018 02:26 AM
To: Michal Simek <[email protected]>; u-boot at lists.denx.de
Cc: Rajan Vaja <[email protected]>; monstr at monstr.eu; Albert Aribaud <[email protected]>
Subject: Re: [PATCH] soc: zynqmp: Update required API version to 1.0

Quoted 4 lines · Michal Simek

From: Rajan Vaja <[email protected]>

Existing EEMI version is to as 1.0 (available from xilinx v2018.1 version). Update required API version to match with EEMI API version.

Not sure I understand this sentence.

Quoted 1 line

New PMUFW version is required for operations with programmable logic.

Quoted 7 lines
Quoted 5 lines

Seems the meta-xilinx 2018.1 comes with PMUFW 2017.3
https://github.com/Xilinx/meta-xilinx/tree/rel-v2018.1/meta-xilinx-
bsp/recipes-bsp/pmu-firmware

Is this out of date ?

[Rajan] PMU firmware is built using meta-xilinx-tools layer and not meta-xilinx-bsp.
The recipe in meta-xilinx-bsp is to build OSL flow (using multilib) this is not recommended nor supported from Xilinx.

Ah, I see, so there are three versions of pmu-firmware in a single release, but the one which is actually needed for the system to boot correctly is not in the meta-xilinx repo as one would expect, but in some other repo. That ... doesn't make any sense, but so be it.

So it's this pmu-firmware_git recipe which provides different ABI in different versions of meta-xilinx-bsp, yet this is not in any way indicated by the package version, right ?

Also, do I understand it correctly that Xilinx doesn't support arm64 with multilib?

Signature · 2 lines
Best regards,
Marek Vasut
#6 lore raw

PATCH 1/1 soc: zynqmp: Update required API version to 1.0

Hi Marek,

Quoted 37 lines

-----Original Message-----
From: Marek Vasut [mailto:marex at denx.de]
Sent: Monday, May 21, 2018 2:45 AM
To: Rajan Vaja <[email protected]>
Cc: monstr at monstr.eu; Albert Aribaud <[email protected]>; Manjukumar Harthikote Matha <[email protected]>; Jolly Shah <[email protected]>; Michal Simek <[email protected]>; u- boot at lists.denx.de
Subject: Re: [PATCH] soc: zynqmp: Update required API version to 1.0

Quoted 18 lines · Rajan Vaja

Hi Marek,

Quoted 16 lines

-----Original Message-----
From: Marek Vasut [mailto:marex at denx.de]
Sent: 15 May 2018 02:26 AM
To: Michal Simek <[email protected]>; u-boot at lists.denx.de
Cc: Rajan Vaja <[email protected]>; monstr at monstr.eu; Albert Aribaud <[email protected]>
Subject: Re: [PATCH] soc: zynqmp: Update required API version to 1.0

Quoted 4 lines · Michal Simek

From: Rajan Vaja <[email protected]>

Existing EEMI version is to as 1.0 (available from xilinx v2018.1 version). Update required API version to match with EEMI API version.

Not sure I understand this sentence.

Quoted 8 lines
Quoted 7 lines
Quoted 1 line

New PMUFW version is required for operations with programmable logic.

Seems the meta-xilinx 2018.1 comes with PMUFW 2017.3
https://github.com/Xilinx/meta-xilinx/tree/rel-v2018.1/meta-xilinx-
bsp/recipes-bsp/pmu-firmware

Is this out of date ?

[Rajan] PMU firmware is built using meta-xilinx-tools layer and not meta-xilinx-

Quoted 9 lines

bsp.

Quoted 1 line

The recipe in meta-xilinx-bsp is to build OSL flow (using multilib) this is not

recommended nor supported from Xilinx.

Ah, I see, so there are three versions of pmu-firmware in a single release, but the one which is actually needed for the system to boot correctly is not in the meta-xilinx repo as one would expect, but in some other repo. That ... doesn't make any sense, but so be it.

If you are planning to use rel-v2018.x Xilinx tools release branches, stick with all the layers provided by Xilinx. The same is documented in wiki as well

http://www.wiki.xilinx.com/How%20to%20build%20images%20through%20yocto

If you want to use Yocto open-source release stick with branches likes rocko, morty etc. These branches will not have dependencies on Xilinx tools.

Quoted 3 lines

So it's this pmu-firmware_git recipe which provides different ABI in different versions of meta-xilinx-bsp, yet this is not in any way indicated by the package version, right ?

Didn’t get what you mean here? Package version is set according to the release under use
https://github.com/Xilinx/meta-xilinx-tools/blob/master/classes/xsctapp.bbclass#L9

This should indicate, release version with a part of commit id of git being used.

Quoted 4 lines

Also, do I understand it correctly that Xilinx doesn't support arm64 with multilib?

Yes Xilinx does not support multilib way of building PMUFW. The official support is in meta-xilinx-tools layer with a dependency on xsct tool

Thanks,
Manju

#7 lore raw

PATCH 1/1 soc: zynqmp: Update required API version to 1.0

On 05/21/2018 06:27 PM, Manjukumar Harthikote Matha wrote:

[...]

Quoted 11 lines
Quoted 5 lines

Ah, I see, so there are three versions of pmu-firmware in a single release, but the one which is actually needed for the system to boot correctly is not in the meta-xilinx repo as one would expect, but in some other repo. That ... doesn't make any sense, but so be it.

If you are planning to use rel-v2018.x Xilinx tools release branches, stick with all the layers provided by Xilinx. The same is documented in wiki as well

http://www.wiki.xilinx.com/How%20to%20build%20images%20through%20yocto

If you want to use Yocto open-source release stick with branches likes rocko, morty etc. These branches will not have dependencies on Xilinx tools.

I think you missed my point, there are three different PMUFW recipes in those metalayers. The only one that matters is not in the BSP layer, which makes no sense to me, but so be it.

btw I presume you do mean OpenEmbedded.

Quoted 6 lines
Quoted 3 lines

So it's this pmu-firmware_git recipe which provides different ABI in different versions of meta-xilinx-bsp, yet this is not in any way indicated by the package version, right ?

Didn’t get what you mean here? Package version is set according to the release under use
https://github.com/Xilinx/meta-xilinx-tools/blob/master/classes/xsctapp.bbclass#L9

Ah, I see, so unlike any other regular recipe which encodes the version in the recipe file name, Xilinx stuff has custom class which is inherited into version-less recipe and sets the version. This is horrid.

Quoted 1 line

This should indicate, release version with a part of commit id of git being used.

Right ...

Quoted 5 lines
Quoted 3 lines

Also, do I understand it correctly that Xilinx doesn't support arm64 with multilib?

Yes Xilinx does not support multilib way of building PMUFW

What are you talking about ? PMUFW is microblaze, which doesn't do multilib in the first place.

Quoted 1 line

. The official support is in meta-xilinx-tools layer with a dependency on xsct tool

Which btw is violating OE assumption that no host tools are pulled into the build, so this whole thing is broken.

Signature · 2 lines
Best regards,
Marek Vasut
#8 lore raw

PATCH 1/1 soc: zynqmp: Update required API version to 1.0

Quoted 30 lines

-----Original Message-----
From: Marek Vasut [mailto:marex at denx.de]
Sent: Monday, May 21, 2018 9:47 AM
To: Manjukumar Harthikote Matha <[email protected]>; Rajan Vaja <[email protected]>
Cc: monstr at monstr.eu; Albert Aribaud <[email protected]>; Jolly Shah <[email protected]>; Michal Simek <[email protected]>; u- boot at lists.denx.de
Subject: Re: [PATCH] soc: zynqmp: Update required API version to 1.0

On 05/21/2018 06:27 PM, Manjukumar Harthikote Matha wrote:

[...]

Quoted 11 lines
Quoted 5 lines

Ah, I see, so there are three versions of pmu-firmware in a single release, but the one which is actually needed for the system to boot correctly is not in the meta-xilinx repo as one would expect, but in some other repo. That ... doesn't make any sense, but so be it.

If you are planning to use rel-v2018.x Xilinx tools release branches, stick with all the layers provided by Xilinx. The same is documented in wiki as well

http://www.wiki.xilinx.com/How%20to%20build%20images%20through%20yoct
o

Quoted 1 line
Quoted 6 lines
Quoted 1 line

If you want to use Yocto open-source release stick with branches likes rocko,

morty etc. These branches will not have dependencies on Xilinx tools.

I think you missed my point, there are three different PMUFW recipes in those metalayers. The only one that matters is not in the BSP layer, which makes no sense to me, but so be it.

AFAIK, there are two. One in meta-xilinx-bsp and other in meta-xilinx-tools. You can use PREFERRED_PROVIDER to switch between the two in your distro.

I still don’t think you get the difference between Xilinx tools releases from Github and upstream Yocto project repository. See http://git.yoctoproject.org/cgit.cgi/meta-xilinx/

Also note that none of the Xilinx tool release branches are present at http://git.yoctoproject.org/cgit.cgi/meta-xilinx/

The thing that matters to you is pmu-firmware recipe in meta-xilinx-bsp. The recipe is present and based on 2017.3 in master and Rocko. Stick with Rocko branch till the next release,Sumo branch is cut, which will get 2018.1 version.

Quoted 3 lines

btw I presume you do mean OpenEmbedded.

http://git.yoctoproject.org/cgit.cgi/meta-xilinx/

Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

So it's this pmu-firmware_git recipe which provides different ABI in different versions of meta-xilinx-bsp, yet this is not in any way indicated by the package version, right ?

Quoted 9 lines
Quoted 4 lines

Didn’t get what you mean here? Package version is set according to the release under use
https://github.com/Xilinx/meta-xilinx-tools/blob/master/classes/xsctap
p.bbclass#L9

Ah, I see, so unlike any other regular recipe which encodes the version in the recipe file name, Xilinx stuff has custom class which is inherited into version-less recipe and sets the version. This is horrid.

Not true, any recipe which includes version can be in an include file or in a class or in a conf file. There is no strict guidelines on where this version should be set (recipe, include, conf or class). Just because you are familiar with one way of doing things, does not mean everything else is horrid.

Quoted 4 lines
Quoted 1 line

This should indicate, release version with a part of commit id of git being used.

Right ...

Quoted 9 lines
Quoted 5 lines
Quoted 3 lines

Also, do I understand it correctly that Xilinx doesn't support arm64 with multilib?

Yes Xilinx does not support multilib way of building PMUFW

What are you talking about ? PMUFW is microblaze, which doesn't do multilib in the first place.

Exactly, when you are building for zynqmp (zcu102 board), it is aarch64. Yocto build system needs to understand mixed architectures when building in the same project, hence the use of multilib to be build PMUFW.

Quoted 6 lines
Quoted 2 lines

. The official support is in meta-xilinx-tools layer with a dependency on xsct tool

Which btw is violating OE assumption that no host tools are pulled into the build, so this whole thing is broken.

It is part of Xilinx tool release, if you don’t need it, don’t use it.

Thanks,
Manju

#9 lore raw

PATCH 1/1 soc: zynqmp: Update required API version to 1.0

On 05/21/2018 11:26 PM, Manjukumar Harthikote Matha wrote:
[...]

Quoted 17 lines
Quoted 17 lines
Quoted 11 lines
Quoted 5 lines

Ah, I see, so there are three versions of pmu-firmware in a single release, but the one which is actually needed for the system to boot correctly is not in the meta-xilinx repo as one would expect, but in some other repo. That ... doesn't make any sense, but so be it.

If you are planning to use rel-v2018.x Xilinx tools release branches, stick with all the layers provided by Xilinx. The same is documented in wiki as well

http://www.wiki.xilinx.com/How%20to%20build%20images%20through%20yoct
o

Quoted 2 lines

If you want to use Yocto open-source release stick with branches likes rocko,

morty etc. These branches will not have dependencies on Xilinx tools.

Quoted 8 lines
Quoted 3 lines

I think you missed my point, there are three different PMUFW recipes in those metalayers. The only one that matters is not in the BSP layer, which makes no sense to me, but so be it.

AFAIK, there are two. One in meta-xilinx-bsp and other in meta-xilinx-tools. You can use PREFERRED_PROVIDER to switch between the two in your distro.

I still don’t think you get the difference between Xilinx tools releases from Github and upstream Yocto project repository. See http://git.yoctoproject.org/cgit.cgi/meta-xilinx/

Do I understand it correctly that you have two repositories with the same name, but with different content ? Talk about confusing. Assume I use the meta-xilinx stuff from github/xilinx.

Quoted 3 lines

Also note that none of the Xilinx tool release branches are present at http://git.yoctoproject.org/cgit.cgi/meta-xilinx/

The thing that matters to you is pmu-firmware recipe in meta-xilinx-bsp. The recipe is present and based on 2017.3 in master and Rocko. Stick with Rocko branch till the next release,Sumo branch is cut, which will get 2018.1 version.

Ah, I see.

So I should use this pmu-firmware from meta-xilinx-bsp rel-v2018.1 (the one on github, not the one on git.yoctoproject) without version which provides the ABI 1.0 rather than the v2017.03 one from meta-xilinx rel-v2018.1. And then the new release of meta-xilinx rel-v2018.2 will get PMUFW v2018.1 .

But why is such vital component as the working PMUFW recipe stashed in some other repo than meta-xilinx , while meta-xilinx contains a non working one is not clear to me. Anyway.

It is also becoming less and less clear to me which PMUFW provides which ABI based on the recipe versions, since they do not reflect the ABI in any way. And, back to my original question-ish, there is an ABI break between PMUFW v0.3 and PMUFW v1.0 which may render systems unbootable if everything is not updated in tandem, right ?

Quoted 16 lines
Quoted 2 lines

btw I presume you do mean OpenEmbedded.

http://git.yoctoproject.org/cgit.cgi/meta-xilinx/

Quoted 9 lines
Quoted 8 lines
Quoted 3 lines

So it's this pmu-firmware_git recipe which provides different ABI in different versions of meta-xilinx-bsp, yet this is not in any way indicated by the package version, right ?

Didn’t get what you mean here? Package version is set according to the release under use
https://github.com/Xilinx/meta-xilinx-tools/blob/master/classes/xsctap
p.bbclass#L9

Quoted 8 lines
Quoted 4 lines

Ah, I see, so unlike any other regular recipe which encodes the version in the recipe file name, Xilinx stuff has custom class which is inherited into version-less recipe and sets the version. This is horrid.

Not true, any recipe which includes version can be in an include file or in a class or in a conf file. There is no strict guidelines on where this version should be set (recipe, include, conf or class). Just because you are familiar with one way of doing things, does not mean everything else is horrid.

Well, I think I've seen my share of recipes over the years, both good and bad. OE gives the user a lot of freedom to do all kinds of hacks, which still doesn't mean it's a good idea to do them.

Writing your own bbclass as a sort-of header file to be included by a recipe is one of the bad ideas. With the ABI break at hand, there is also no migration strategy for this PMUFW recipe, the platform just breaks during the update and stops booting or misbehaves, which is grueling.

Quoted 8 lines
Quoted 8 lines
Quoted 1 line

This should indicate, release version with a part of commit id of git being used.

Right ...

Quoted 4 lines
Quoted 3 lines

Also, do I understand it correctly that Xilinx doesn't support arm64 with multilib?

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Yes Xilinx does not support multilib way of building PMUFW

What are you talking about ? PMUFW is microblaze, which doesn't do multilib in the first place.

Exactly, when you are building for zynqmp (zcu102 board)

No, I am not building for zcu102.

Quoted 1 line

, it is aarch64. Yocto build system needs to understand mixed architectures when building in the same project, hence the use of multilib to be build PMUFW.

But you never build the microblaze toolchain, so how do you use multilib here at all ? From what I see, the pmu-firmware is compiled with toolchain referenced from outside of the OE build, in fact from vivado, see my comment below from using external tools like that.

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

. The official support is in meta-xilinx-tools layer with a dependency on xsct tool

Which btw is violating OE assumption that no host tools are pulled into the build, so this whole thing is broken.

It is part of Xilinx tool release, if you don’t need it, don’t use it.

The meta-xilinx-tools bbclasses are calling those tools, thus violating that assumption, so if I want to get a working result, I effectively cannot.

Signature · 2 lines
Best regards,
Marek Vasut
#10 lore raw

PATCH 1/1 soc: zynqmp: Update required API version to 1.0

Hi Marek,

Quoted 60 lines

-----Original Message-----
From: Marek Vasut [mailto:marex at denx.de]
Sent: Tuesday, May 22, 2018 4:28 AM
To: Manjukumar Harthikote Matha <[email protected]>; Rajan Vaja <[email protected]>
Cc: monstr at monstr.eu; Albert Aribaud <[email protected]>; Jolly Shah <[email protected]>; Michal Simek <[email protected]>; u- boot at lists.denx.de; Moritz Fischer <[email protected]>
Subject: Re: [PATCH] soc: zynqmp: Update required API version to 1.0

On 05/21/2018 11:26 PM, Manjukumar Harthikote Matha wrote:
[...]

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

Ah, I see, so there are three versions of pmu-firmware in a single release, but the one which is actually needed for the system to boot correctly is not in the meta-xilinx repo as one would expect, but in some other repo. That ... doesn't make any sense, but so be it.

Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

If you are planning to use rel-v2018.x Xilinx tools release branches, stick with all the layers provided by Xilinx. The same is documented in wiki as well

http://www.wiki.xilinx.com/How%20to%20build%20images%20through%20yoct

Quoted 10 lines
Quoted 8 lines

o

Quoted 2 lines

If you want to use Yocto open-source release stick with branches likes rocko,

morty etc. These branches will not have dependencies on Xilinx tools.

I think you missed my point, there are three different PMUFW recipes in those metalayers. The only one that matters is not in the BSP layer, which makes no sense to me, but so be it.

AFAIK, there are two. One in meta-xilinx-bsp and other in meta-xilinx-tools. You

can use PREFERRED_PROVIDER to switch between the two in your distro.

Quoted 2 lines

I still don’t think you get the difference between Xilinx tools releases from

Github and upstream Yocto project repository.

Quoted 1 line

See http://git.yoctoproject.org/cgit.cgi/meta-xilinx/

Do I understand it correctly that you have two repositories with the same name, but with different content ? Talk about confusing. Assume I use the meta-xilinx stuff from github/xilinx.

Quoted 1 line

Also note that none of the Xilinx tool release branches are present at

http://git.yoctoproject.org/cgit.cgi/meta-xilinx/

Quoted 2 lines

The thing that matters to you is pmu-firmware recipe in meta-xilinx-bsp. The

recipe is present and based on 2017.3 in master and Rocko. Stick with Rocko branch till the next release,Sumo branch is cut, which will get 2018.1 version.

Ah, I see.

So I should use this pmu-firmware from meta-xilinx-bsp rel-v2018.1 (the one on github, not the one on git.yoctoproject) without version which provides the ABI 1.0 rather than the v2017.03 one from meta-xilinx rel-v2018.1. And then the new release of meta-xilinx rel-v2018.2 will get PMUFW v2018.1 .

Quoted 4 lines

But why is such vital component as the working PMUFW recipe stashed in some other repo than meta-xilinx , while meta-xilinx contains a non working one is not clear to me. Anyway.

Release branches in github are related to Xilinx tools release to support PetaLinux, xsct etc The flow using github release uses a layer stack and how to use is documented here
http://www.wiki.xilinx.com/How%20to%20build%20images%20through%20yocto
and manifest is here
https://github.com/Xilinx/yocto-manifests/tree/rel-v2018.1

We don’t support a flow where you use only one layer instead of the entire stack.

Quoted 6 lines

It is also becoming less and less clear to me which PMUFW provides which ABI based on the recipe versions, since they do not reflect the ABI in any way. And, back to my original question-ish, there is an ABI break between PMUFW v0.3 and PMUFW v1.0 which may render systems unbootable if everything is not updated in tandem, right ?

I was not aware of the breakage, I will have to check.

If you use our entire layer stack for rel-v2018.1 (manifest) then you shouldn’t see the issue.

As far as master branch is considred, we are in process of updating it for sumo release. If you are on mailing list, you will see the patches sent for review and is on 4th version. We hope to get it merged if there are no hiccups by end of week.
See : https://lists.yoctoproject.org/pipermail/meta-xilinx/2018-May/003838.html
See: https://lists.yoctoproject.org/pipermail/meta-xilinx/2018-May/003841.html

Quoted 29 lines
Quoted 4 lines
Quoted 2 lines

btw I presume you do mean OpenEmbedded.

Quoted 14 lines

http://git.yoctoproject.org/cgit.cgi/meta-xilinx/

Quoted 11 lines
Quoted 8 lines
Quoted 3 lines

So it's this pmu-firmware_git recipe which provides different ABI in different versions of meta-xilinx-bsp, yet this is not in any way indicated by the package version, right ?

Didn’t get what you mean here? Package version is set according to the release under use
https://github.com/Xilinx/meta-xilinx-tools/blob/master/classes/xsctap
p.bbclass#L9

Ah, I see, so unlike any other regular recipe which encodes the version in the recipe file name, Xilinx stuff has custom class which is inherited into version-

less

Quoted 4 lines
Quoted 2 lines

recipe and sets the version. This is horrid.

Not true, any recipe which includes version can be in an include file or in a class

or in a conf file.

Quoted 1 line

There is no strict guidelines on where this version should be set (recipe, include,

conf or class).

Quoted 1 line

Just because you are familiar with one way of doing things, does not mean

everything else is horrid.

Quoted 9 lines

Well, I think I've seen my share of recipes over the years, both good and bad. OE gives the user a lot of freedom to do all kinds of hacks, which still doesn't mean it's a good idea to do them.

Writing your own bbclass as a sort-of header file to be included by a recipe is one of the bad ideas. With the ABI break at hand, there is also no migration strategy for this PMUFW recipe, the platform just breaks during the update and stops booting or misbehaves, which is grueling.

The same class is shared for multiple components, FSBL, DTG etc hence the reasoning to use a class However, this something for us to consider and work in future releases.

Quoted 20 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

This should indicate, release version with a part of commit id of git being

used.

Quoted 10 lines
Quoted 10 lines

Right ...

Quoted 5 lines
Quoted 3 lines

Also, do I understand it correctly that Xilinx doesn't support arm64 with multilib?

Yes Xilinx does not support multilib way of building PMUFW

What are you talking about ? PMUFW is microblaze, which doesn't do multilib

in

Quoted 4 lines
Quoted 2 lines

the first place.

Exactly, when you are building for zynqmp (zcu102 board)

No, I am not building for zcu102.

Quoted 8 lines
Quoted 1 line

, it is aarch64. Yocto build system needs to understand mixed architectures when

building in the same project, hence the use of multilib to be build PMUFW.

But you never build the microblaze toolchain, so how do you use multilib here at all ? From what I see, the pmu-firmware is compiled with toolchain referenced from outside of the OE build, in fact from vivado, see my comment below from using external tools like that.

I am not sure how your dependencies are wired in:
We have a dependency like this for zcu102
http://git.yoctoproject.org/cgit.cgi/meta-xilinx/tree/meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf#n34

If you are using meta-xilinx-bsp rocko/master branch, it uses multilib builds the MB toolchain using newlib and libgloss to build pmufw
http://git.yoctoproject.org/cgit.cgi/meta-xilinx/tree/meta-xilinx-bsp/classes/zynqmp-pmu.bbclass
http://git.yoctoproject.org/cgit.cgi/meta-xilinx/tree/meta-xilinx-bsp/recipes-core/newlib

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

. The official support is in meta-xilinx-tools layer with a dependency on xsct tool

Which btw is violating OE assumption that no host tools are pulled into the

Quoted 9 lines

build,

Quoted 4 lines
Quoted 2 lines

so this whole thing is broken.

It is part of Xilinx tool release, if you don’t need it, don’t use it.

The meta-xilinx-tools bbclasses are calling those tools, thus violating that assumption, so if I want to get a working result, I effectively cannot.

To summarize:

There are two workflows
1) Using Xilinx tool releases from github (branches like: rel-v2018.1, rel-v2017.4 etc)
2) Using upstream only layer http://git.yoctoproject.org/cgit.cgi/meta-xilinx/ (branches like: rocko, morty etc)

If you are using (1) :
-----------------------------------
Use the manifest
https://github.com/Xilinx/yocto-manifests/tree/rel-v2018.1

See some documentation here
http://www.wiki.xilinx.com/How%20to%20build%20images%20through%20yocto

We also need xsct to be installed for this method.

If you just use meta-xilinx rel-v2018.1 branch alone without meta-xilinx-tools and meta-petalinux, this is not supported. We support the layer stack we publish at this point of time.

If you are using (2) :
-----------------------------------
You will not have dependency on Xilinx tools.
Bootloader is from u-boot SPL and PMUFW built using multilib.
There might be gaps on certain boot methods. There are community based solutions available. Latest release branch is rocko, sumo release will be mid-June.

You pick your workflow and use them according to your needs.

One more thing, I am not sure how your layer stack is or was used earlier, because rel-v2017.x branch never supported building pmu-fw. If you did not use rel-v2017.x branches earlier then you should have used morty/rocko branch from upstream (it's my guess).

Thanks,
Manju

#11 lore raw

PATCH 1/1 soc: zynqmp: Update required API version to 1.0

On 05/22/2018 06:44 PM, Manjukumar Harthikote Matha wrote:
[...]

Quoted 11 lines
Quoted 10 lines

So I should use this pmu-firmware from meta-xilinx-bsp rel-v2018.1 (the one on github, not the one on git.yoctoproject) without version which provides the ABI 1.0 rather than the v2017.03 one from meta-xilinx rel-v2018.1. And then the new release of meta-xilinx rel-v2018.2 will get PMUFW v2018.1 .

But why is such vital component as the working PMUFW recipe stashed in some other repo than meta-xilinx , while meta-xilinx contains a non working one is not clear to me. Anyway.

Quoted 7 lines

Release branches in github are related to Xilinx tools release to support PetaLinux, xsct etc The flow using github release uses a layer stack and how to use is documented here
http://www.wiki.xilinx.com/How%20to%20build%20images%20through%20yocto
and manifest is here
https://github.com/Xilinx/yocto-manifests/tree/rel-v2018.1

We don’t support a flow where you use only one layer instead of the entire stack.

Then the obvious question is, why is it not a single metalayer ...

Quoted 8 lines
Quoted 6 lines

It is also becoming less and less clear to me which PMUFW provides which ABI based on the recipe versions, since they do not reflect the ABI in any way. And, back to my original question-ish, there is an ABI break between PMUFW v0.3 and PMUFW v1.0 which may render systems unbootable if everything is not updated in tandem, right ?

I was not aware of the breakage, I will have to check.

Try using mainline U-Boot 2018.05 with PMUFW v0.3 and load FPGA image from U-Boot, it'll fail.

Quoted 7 lines

If you use our entire layer stack for rel-v2018.1 (manifest) then you shouldn’t see the issue.

As far as master branch is considred, we are in process of updating it for sumo release. If you are on mailing list, you will see the patches sent for review and is on 4th version. We hope to get it merged if there are no hiccups by end of week.
See : https://lists.yoctoproject.org/pipermail/meta-xilinx/2018-May/003838.html
See: https://lists.yoctoproject.org/pipermail/meta-xilinx/2018-May/003841.html

Great

Quoted 33 lines
Quoted 33 lines
Quoted 4 lines
Quoted 2 lines

btw I presume you do mean OpenEmbedded.

Quoted 14 lines

http://git.yoctoproject.org/cgit.cgi/meta-xilinx/

Quoted 11 lines
Quoted 8 lines
Quoted 3 lines

So it's this pmu-firmware_git recipe which provides different ABI in different versions of meta-xilinx-bsp, yet this is not in any way indicated by the package version, right ?

Didn’t get what you mean here? Package version is set according to the release under use
https://github.com/Xilinx/meta-xilinx-tools/blob/master/classes/xsctap
p.bbclass#L9

Ah, I see, so unlike any other regular recipe which encodes the version in the recipe file name, Xilinx stuff has custom class which is inherited into version-

less

Quoted 4 lines
Quoted 2 lines

recipe and sets the version. This is horrid.

Not true, any recipe which includes version can be in an include file or in a class

or in a conf file.

Quoted 1 line

There is no strict guidelines on where this version should be set (recipe, include,

conf or class).

Quoted 1 line

Just because you are familiar with one way of doing things, does not mean

everything else is horrid.

Well, I think I've seen my share of recipes over the years, both good and bad. OE gives the user a lot of freedom to do all kinds of hacks, which still doesn't mean it's a good idea to do them.

Quoted 8 lines
Quoted 5 lines

Writing your own bbclass as a sort-of header file to be included by a recipe is one of the bad ideas. With the ABI break at hand, there is also no migration strategy for this PMUFW recipe, the platform just breaks during the update and stops booting or misbehaves, which is grueling.

The same class is shared for multiple components, FSBL, DTG etc hence the reasoning to use a class However, this something for us to consider and work in future releases.

This seems to be long overdue

Quoted 29 lines
Quoted 20 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

This should indicate, release version with a part of commit id of git being

used.

Quoted 10 lines
Quoted 10 lines

Right ...

Quoted 5 lines
Quoted 3 lines

Also, do I understand it correctly that Xilinx doesn't support arm64 with multilib?

Yes Xilinx does not support multilib way of building PMUFW

What are you talking about ? PMUFW is microblaze, which doesn't do multilib

in

Quoted 4 lines
Quoted 2 lines

the first place.

Exactly, when you are building for zynqmp (zcu102 board)

No, I am not building for zcu102.

Quoted 8 lines
Quoted 1 line

, it is aarch64. Yocto build system needs to understand mixed architectures when

building in the same project, hence the use of multilib to be build PMUFW.

But you never build the microblaze toolchain, so how do you use multilib here at all ? From what I see, the pmu-firmware is compiled with toolchain referenced from outside of the OE build, in fact from vivado, see my comment below from using external tools like that.

Quoted 7 lines

I am not sure how your dependencies are wired in:
We have a dependency like this for zcu102
http://git.yoctoproject.org/cgit.cgi/meta-xilinx/tree/meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf#n34

If you are using meta-xilinx-bsp rocko/master branch, it uses multilib builds the MB toolchain using newlib and libgloss to build pmufw
http://git.yoctoproject.org/cgit.cgi/meta-xilinx/tree/meta-xilinx-bsp/classes/zynqmp-pmu.bbclass
http://git.yoctoproject.org/cgit.cgi/meta-xilinx/tree/meta-xilinx-bsp/recipes-core/newlib

I think I mentioned it before, but I am using the repo from github. That one does NOT build microblaze toolchain to compile pmufw.

[...]

Signature · 2 lines
Best regards,
Marek Vasut
#12 lore raw

PATCH 1/1 soc: zynqmp: Update required API version to 1.0

Quoted 31 lines

-----Original Message-----
From: Marek Vasut [mailto:marex at denx.de]
Sent: Wednesday, May 23, 2018 2:49 AM
To: Manjukumar Harthikote Matha <[email protected]>; Rajan Vaja <[email protected]>
Cc: monstr at monstr.eu; Albert Aribaud <[email protected]>; Jolly Shah <[email protected]>; Michal Simek <[email protected]>; u- boot at lists.denx.de; Moritz Fischer <[email protected]>
Subject: Re: [PATCH] soc: zynqmp: Update required API version to 1.0

On 05/22/2018 06:44 PM, Manjukumar Harthikote Matha wrote:
[...]

Quoted 6 lines
Quoted 6 lines

So I should use this pmu-firmware from meta-xilinx-bsp rel-v2018.1 (the one on github, not the one on git.yoctoproject) without version which provides the ABI 1.0 rather than the v2017.03 one from meta-xilinx rel-v2018.1. And then the new release of meta-xilinx rel-v2018.2 will get PMUFW v2018.1 .

Quoted 9 lines
Quoted 4 lines

But why is such vital component as the working PMUFW recipe stashed in some other repo than meta-xilinx , while meta-xilinx contains a non working one is not clear to me. Anyway.

Release branches in github are related to Xilinx tools release to support PetaLinux, xsct etc The flow using github release uses a layer stack and how to use is documented here

http://www.wiki.xilinx.com/How%20to%20build%20images%20through%20yoct
o

Quoted 8 lines
Quoted 4 lines

and manifest is here
https://github.com/Xilinx/yocto-manifests/tree/rel-v2018.1

We don’t support a flow where you use only one layer instead of the entire

stack.

Then the obvious question is, why is it not a single metalayer ...

The proposal was sent out, there are dependencies on why the merge has not happened
https://lists.yoctoproject.org/pipermail/meta-xilinx/2017-November/003309.html

We plan to resolve in the next release (Thud)

Quoted 73 lines
Quoted 8 lines
Quoted 6 lines

It is also becoming less and less clear to me which PMUFW provides which ABI based on the recipe versions, since they do not reflect the ABI in any way. And, back to my original question-ish, there is an ABI break between PMUFW v0.3 and PMUFW v1.0 which may render systems unbootable if everything is not updated in tandem, right ?

I was not aware of the breakage, I will have to check.

Try using mainline U-Boot 2018.05 with PMUFW v0.3 and load FPGA image from U-Boot, it'll fail.

Quoted 1 line

If you use our entire layer stack for rel-v2018.1 (manifest) then you shouldn’t

see the issue.

Quoted 2 lines

As far as master branch is considred, we are in process of updating it for sumo

release.

Quoted 1 line

If you are on mailing list, you will see the patches sent for review and is on 4th

version.

Quoted 7 lines

We hope to get it merged if there are no hiccups by end of week. See :
https://lists.yoctoproject.org/pipermail/meta-xilinx/2018-May/003838.h
tml
See:
https://lists.yoctoproject.org/pipermail/meta-xilinx/2018-May/003841.h
tml

Great

Quoted 44 lines
Quoted 43 lines
Quoted 4 lines
Quoted 2 lines

btw I presume you do mean OpenEmbedded.

Quoted 16 lines

http://git.yoctoproject.org/cgit.cgi/meta-xilinx/

Quoted 13 lines
Quoted 9 lines
Quoted 3 lines

So it's this pmu-firmware_git recipe which provides different ABI in different versions of meta-xilinx-bsp, yet this is not in any way indicated by the package version, right ?

Didn’t get what you mean here? Package version is set according to the release under use
https://github.com/Xilinx/meta-xilinx-tools/blob/master/classes/xs
ctap
p.bbclass#L9

Ah, I see, so unlike any other regular recipe which encodes the version in the recipe file name, Xilinx stuff has custom class which is inherited into version-

less

Quoted 5 lines
Quoted 2 lines

recipe and sets the version. This is horrid.

Not true, any recipe which includes version can be in an include file or in a class

or in a conf file.

Quoted 2 lines

There is no strict guidelines on where this version should be set (recipe, include,

conf or class).

Quoted 2 lines

Just because you are familiar with one way of doing things, does not mean

everything else is horrid.

Well, I think I've seen my share of recipes over the years, both good and bad. OE gives the user a lot of freedom to do all kinds of hacks, which still doesn't mean it's a good idea to do them.

Writing your own bbclass as a sort-of header file to be included by a recipe is one of the bad ideas. With the ABI break at hand, there is also no migration strategy for this PMUFW recipe, the platform just breaks during the update and stops booting or misbehaves, which is grueling.

Quoted 6 lines
Quoted 2 lines

The same class is shared for multiple components, FSBL, DTG etc hence the reasoning to use a class However, this something for us to consider and

work in future releases.

This seems to be long overdue

Debatable according to me.

Quoted 44 lines
Quoted 37 lines
Quoted 22 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

This should indicate, release version with a part of commit id of git being

used.

Quoted 11 lines
Quoted 11 lines

Right ...

Quoted 5 lines
Quoted 3 lines

Also, do I understand it correctly that Xilinx doesn't support arm64 with multilib?

Yes Xilinx does not support multilib way of building PMUFW

What are you talking about ? PMUFW is microblaze, which doesn't do multilib

in

Quoted 4 lines
Quoted 2 lines

the first place.

Exactly, when you are building for zynqmp (zcu102 board)

No, I am not building for zcu102.

Quoted 9 lines
Quoted 2 lines

, it is aarch64. Yocto build system needs to understand mixed architectures when

building in the same project, hence the use of multilib to be build PMUFW.

But you never build the microblaze toolchain, so how do you use multilib here at all ? From what I see, the pmu-firmware is compiled with toolchain referenced from outside of the OE build, in fact from vivado, see my comment below from using external tools like that.

I am not sure how your dependencies are wired in:
We have a dependency like this for zcu102
http://git.yoctoproject.org/cgit.cgi/meta-xilinx/tree/meta-xilinx-bsp/
conf/machine/zcu102-zynqmp.conf#n34

Quoted 6 lines

If you are using meta-xilinx-bsp rocko/master branch, it uses multilib builds the MB toolchain using newlib and libgloss to build pmufw
http://git.yoctoproject.org/cgit.cgi/meta-xilinx/tree/meta-xilinx-bsp/
classes/zynqmp-pmu.bbclass
http://git.yoctoproject.org/cgit.cgi/meta-xilinx/tree/meta-xilinx-bsp/
recipes-core/newlib

Quoted 3 lines

I think I mentioned it before, but I am using the repo from github. That one does NOT build microblaze toolchain to compile pmufw.

I am really lost here, PMUFW needs a MB baremetal toolchain to build as far as I know.

There are only two possible ways to build it
1) Use XSCT with MB baremetal toolchain binaries (AKA meta-xilinx-tools layer) or
2) Use multilib, newlib/libgloss to build MB baremetal toolchain from source

I don’t see any other possibility of making it work

Thanks,
Manju