cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
lvaudoit
Newbie
Newbie
1,903 Views
Registered: ‎06-11-2020

petalinux2020: plnx-zynqmp machine is invalid

Hi,

we have a project building perfectly on petalinux 2019.1 and 2019.2.

 

now we have installed Vitis/Vivado/Petalinux 2020.1

Oour project does not build anymore.

We have the error plnx-zynqmp MACHINE is invalid

 

Indeed, we do not have the meta-plnx-generated  and so the machine does not exist (like on 2019)

 

Is there something we must change in our project? to be compliant with 2020.1?

 

Thanks in advance

Regards

Laurent

15 Replies
jeremy.gerdes
Visitor
Visitor
1,875 Views
Registered: ‎10-29-2019

We are seeing the same error now with 2020.1

apacker
Observer
Observer
1,803 Views
Registered: ‎01-19-2018

I have the same problem but for a zynq7 project, so the machine plnx-zynq7 is now undefined.

0 Kudos
jrhtech
Voyager
Voyager
1,719 Views
Registered: ‎10-04-2017

  I'm seeing the same thing.   I just tried changing the machine name to zynqmp-generic which is what is in build/conf/local.conf and it is building now so waiting to see if it will finish.  I don't have my dev board yet to see if image will boot.

  The other odd thing I see is the DTG name is "template" but the project built in 2019.2 so it must work but I'm not sure how.  This is for a Trenz SOM and they don't provide a BSP for the boards like other vendors so I'm trying to understand their whole process..

 

thanks,

jeff

 

0 Kudos
evross
Observer
Observer
1,507 Views
Registered: ‎10-17-2019

Any solution to this please?
I have just started to look at PetaLinux and have had success with 2019.2 version, but have this same issue with 2020.1.
Seems odd that I use the same process as with 2019.2, and simply do...

$ petalinux-create -t project -s ../zynq/mz7010_fmccc_2019_1/mz7010_fmccc_2019_1.bsp
$ cd mz7010_fmccc_2019_1/
$ touch project-spec/meta-user/conf/user-rootfsconfig
$ vi project-spec/meta-user/conf/layer.conf # changed "thud" to "zeus"
$ cp /windows-share/design_1_wrapper.xsa . # Use XSA from Vivado 2020.1
$ petalinux-config -c rootfs
$ petalinux-config --get-hw-description=.
$ petalinux-build

INFO: sourcing build tools
[INFO] building project
[INFO] sourcing build environment
[INFO] generating user layers
[INFO] generating workspace directory
INFO: bitbake petalinux-image-minimal
ERROR: OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:

MACHINE=plnx-zynq7 is invalid. Please set a valid MACHINE in your local.conf, environment or other configuration file.

Hoping for some help please?

Thanks,
Dave

0 Kudos
sandeepg
Moderator
Moderator
1,485 Views
Registered: ‎04-24-2017

Hi All,

Yes plnx-zynqmp no more available you need to use https://github.com/Xilinx/meta-xilinx/blob/rel-v2020.1/meta-xilinx-bsp/conf/machine/zynqmp-generic.conf 

CONFIG_YOCTO_MACHINE_NAME="zynqmp-generic"

 

For Zynq-7000 devices is https://github.com/Xilinx/meta-xilinx/blob/rel-v2020.1/meta-xilinx-bsp/conf/machine/zynq-generic.conf

CONFIG_YOCTO_MACHINE_NAME="zynq-generic"

 

 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
evross
Observer
Observer
1,466 Views
Registered: ‎10-17-2019

Thank you Sandeep,

The build now happens, however another error occurs:

| make -f /home/stanley/projects/mz7010_fmccc_2019_1/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/scripts/Makefile.build obj=scripts/kconfig zynq_zc702_config
| scripts/kconfig/conf --defconfig=arch/../configs/zynq_zc702_defconfig Kconfig
| ***
| *** Can't find default configuration "arch/../configs/zynq_zc702_defconfig"!
| ***

I think this is the uBoot config, in 2019.2 build the config is the same, but this setting is not ignored anymore?
I think I need this for my microZed board:

https://github.com/buildroot/buildroot/blob/master/configs/zynq_microzed_defconfig

I cannot see a corresponding defconfig in the 2020.1 source.  Maybe I don't need a defconfig?

Thank you for you help, should I open a new ticket?

 

 

 

0 Kudos
evross
Observer
Observer
1,423 Views
Registered: ‎10-17-2019

Hi, 

If I do :

petalinux-config --get-hw-description=. --defconfig=~/git/buildroot/configs/zynq_microzed_defconfig

I still get :

| scripts/kconfig/conf --defconfig=arch/../configs/zynq_zc702_defconfig Kconfig
| ***
| *** Can't find default configuration "arch/../configs/zynq_zc702_defconfig"!
| ***

Any ideas please?

Thank you

0 Kudos
patocarr
Teacher
Teacher
1,402 Views
Registered: ‎01-28-2008

Hi @evross 

  Try using "xilinx_zynq_virt_defconfig" on U-Boot defconfig, and "zc702" on the machine name. See ug1144 page 118 & 134 for more details.

 

Thanks,

-Pat

 

Give kudos if helpful. Accept as solution if it solves your problem.
https://tuxengineering.com/blog

0 Kudos
evross
Observer
Observer
1,366 Views
Registered: ‎10-17-2019

Thank you for replying @patocarr ,

I have been working with UG1144 for 2020.1.  On page 118 it states "For custom boards it is template. For Xilinx ® evaluation boards...", I am using an AVnet microzed, which is not included.

Also, even for zc702 there is no defconfig for this in the source (not even in the 2019.2 source I have) that I can see, but 2019.2 allows me to build and run on the microzed.

I am using 2020.1 because it supports XSA (only) and I have Vitis not SDK.

So I'm stuck at the moment,

Thanks,

Dave

0 Kudos
patocarr
Teacher
Teacher
1,318 Views
Registered: ‎01-28-2008

Hi @evross 

  Given this is an Avnet board, you may want to start the Petalinux project with the board's BSP. You can usually find it in Avnet's site.

 

Thanks,

-Pat

 

Give kudos if helpful. Accept as solution if it solves your problem.
https://tuxengineering.com/blog

0 Kudos
evross
Observer
Observer
1,278 Views
Registered: ‎10-17-2019

Hi @patocarr 

Referring to my first message in this thread, I am using the AVNet BSP:

$ petalinux-create -t project -s ../zynq/mz7010_fmccc_2019_1/mz7010_fmccc_2019_1.bsp

Thank you,

Dave

0 Kudos
patocarr
Teacher
Teacher
1,268 Views
Registered: ‎01-28-2008

Hi @evross 

  The version of the BSP is important. The 2019.x version is not compatible with 2020.x. You will need to re-create the project with the new version.

 

Thanks,

-Pat

 

Give kudos if helpful. Accept as solution if it solves your problem.
https://tuxengineering.com/blog

apacker
Observer
Observer
1,262 Views
Registered: ‎01-19-2018

On http://zedboard.org/support/design/1519/10 there is no 2020.1 BSP yet unfortunately.  There is a thread about this in the MicroZed forum: https://www.element14.com/community/message/294215/l/petalinux-20201-bsp-for-microzed#294215

It looks like there have been significant delays getting the BSP posted, not clear why.

apacker
Observer
Observer
1,261 Views
Registered: ‎01-19-2018

If you're feeling brave, it looks like there is 2020.1 work going on in https://github.com/Avnet/petalinux/tree/2020.1

I can't tell how close it is to release but maybe there are clues in there how we could tweak our settings to get things to build on 2020.1.  Unfortunately I don't have the time to dig into this any more right now.

evross
Observer
Observer
1,130 Views
Registered: ‎10-17-2019

@apacker 

Thanks for the info.  I pulled the tag "2020p1_mz_petalinux_MZ7010_FMCCC_20201104_065342" and managed to get it to build and boot the microzed board from the image produced, or at least I am assuming that doing "petalinux-boot --jtag --prebuilt 3" boots an image built by running "./make_mz7010_fmccc.sh".  In order to get the build to work I had to 1) remove the "check_git_tag" in the build script, and 2) add "ulimit -s 16384" to the vivado launch script.

Cheers.