5 Replies Latest reply on Oct 17, 2020 6:36 PM by apadana1984

    No Bitstream File in Petalinux Build

    apadana1984

      Hi,

       

      I am building a Petlinux 2020 project for my Minized board using Avnet BSPs. I get the following Warning:

       

      iman@DESKTOP-6SCK4QO:~/SPEEDER$ petalinux-build -c avnet-image-full

      INFO: sourcing build tools

      [INFO] building avnet-image-full

      [INFO] sourcing build environment

      [INFO] generating user layers

      [INFO] generating workspace directory

      INFO: bitbake avnet-image-full

      Parsing recipes: 100% |################################################################################################| Time: 0:01:27Parsing of 2991 .bb files complete (0 cached, 2991 parsed). 4260 targets, 198 skipped, 0 masked, 0 errors.

      NOTE: Resolving any missing task queue dependencies

      Initialising tasks: 100% |#############################################################################################| Time: 0:00:07Checking sstate mirror object availability: 100% |#####################################################################| Time: 0:00:35Sstate summary: Wanted 1749 Found 1311 Missed 438 Current 40 (74% match, 75% complete)

      NOTE: Executing Tasks

      NOTE: Setscene tasks completed

      NOTE: linux-xlnx: compiling from external source tree /home/iman/SPEEDER/components/yocto/workspace/sources/linux-xlnx

      WARNING: bitstream-extraction-git-r0 do_package: bitstream-extraction: NOT adding alternative provide /boot/bitstream-extraction.bit: /boot/download-r0.bit does not exist

      WARNING: xilinx-bootbin-1.0-r0 do_configure: Empty file /home/iman/SPEEDER/build/tmp/deploy/images/minized/download-minized.bit, excluding from bif file

      NOTE: Tasks Summary: Attempted 5829 tasks of which 4129 didn't need to be rerun and all succeeded.

       

       

      Summary: There were 2 WARNING messages shown.

      INFO: Failed to copy built images to tftp dir: /tftpboot

      [INFO] successfully built avnet-image-full

       

      And I see there is no system.bit file in my images/linux folder:

       

      iman@DESKTOP-6SCK4QO:~/SPEEDER$ ls images/linux

      avnet-boot  image.ub      rootfs.manifest  rootfs.wic  u-boot.bin  uImage   zImage

      boot.scr    pxelinux.cfg  rootfs.tar.gz    system.dtb  u-boot.elf  vmlinux  zynq_fsbl.elf

       

      However, when I am not using Avnet BSP, the bitstream file is in this folder. What am I missing?

       

      Is there a simple "LED blinker linux"  example project for the Minized board using Vivado/Petalinux 2020.1? I am having difficulties with the old training files.

       

      Thank you

        • Re: No Bitstream File in Petalinux Build
          bartokon

          petalinux-build -c image-avnet-minimal should generate basic elements like system.bit. Did you try that?

            • Re: No Bitstream File in Petalinux Build
              apadana1984

              Thank you. I did try it and it says command not found. It doesn't recognize "image-avnet-minimal" while it recognizes "image-avnet-full"!!!

              I finally installed Linux on my machine. I am following your post "https://www.hackster.io/bartosz-rycko/minized-2020-1-getting-started-pynq-b39925 ". When I run ./make_minized.sh, it gives me the following error:

               

              me@my_machine:~/Avnet20201/petalinux/scripts$ ./make_minized.sh

               

              Verifying repositories ...

               

               

              Checking Environment (Xilinx tools sourced) ...

               

               

              Checking 'minized_petalinux/MINIZED_2020_1' Vivado Project ...

               

               

              No built Vivado HW project minized_petalinux/MINIZED_2020_1 found.

              Will build the hardware platform now.

               

               

              ****** Vivado v2020.1 (64-bit)

                **** SW Build 2902540 on Wed May 27 19:54:35 MDT 2020

                **** IP Build 2902112 on Wed May 27 22:43:36 MDT 2020

                  ** Copyright 1986-2020 Xilinx, Inc. All Rights Reserved.

               

              source make_minized_petalinux.tcl

              # set argv [list board=MINIZED project=minized_petalinux sdk=no close_project=yes version_override=yes]

              # set argc [llength $argv]

              # source ./make.tcl -notrace

               

              *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

              *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

              *-                                                     -*

              *-        Welcome to the Avnet Project Builder         -*

              *-                                                     -*

              *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

              *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

               

              BDF path set to /home/me/Avnet20201/bdf

               

               

               

              +------------------+------------------------------------+

              | Setting          |     Configuration                  |

              +------------------+------------------------------------+

              | Board            |     MINIZED                        |

              +------------------+------------------------------------+

              | Project          |     minized_petalinux              |

              +------------------+------------------------------------+

              | SDK              |     no                             |

              +------------------+------------------------------------+

              | No Close Project |     yes                            |

              +------------------+------------------------------------+

              | Version override |     yes                            |

              +------------------+------------------------------------+

               

               

               

              Overriding Version Check, Please Check the Design for Validity!

               

               

              *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

              Selected Board and Project as:

              MINIZED and minized_petalinux

              *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

               

               

              Not Requesting Tag

              Setting Up Project minized_petalinux...

               

              ***** Creating Vivado Project...

              ERROR: [Common 17-539] Failed to load tclapp initializer can't find package ::tclapp::support::appinit 1.2 from '/home/me/.Xilinx/Vivado/2020.1/XilinxTclStore'

              ERROR: [Common 17-69] Command failed: ERROR: [Common 17-539] Failed to load tclapp initializer can't find package ::tclapp::support::appinit 1.2 from '/home/me/.Xilinx/Vivado/2020.1/XilinxTclStore'

               

               

                  while executing

              "source ./ProjectScripts/$project.tcl -notrace"

                  ("MINIZED" arm line 2)

                  invoked from within

              "switch -nocase $board {

                 PZ7015_FMCCC               -

                 PZ7030_FMCCC               -

                 PZ7010_FMC2                -

                 PZ7020_FMC2                ..."

                  (file "./make.tcl" line 358)

               

                  while executing

              "source ./make.tcl -notrace"

                  (file "make_minized_petalinux.tcl" line 56)

              INFO: [Common 17-206] Exiting Vivado at Fri Oct 16 12:58:03 2020...

               

               

              I followed exactly what they say in UG1144 and your post. I am giving up on Avnet!

               

              Thank you

                • Re: No Bitstream File in Petalinux Build
                  narrucmot

                  Hello Iman,

                   

                  I am sorry you are having trouble building the 2020.1 MiniZed BSP.  Thank you for including the log of the error message.

                   

                  In addition to building the PetaLinux OS image, the make_minized.sh build script will first check to see if the required underlying Zynq hw platform for the MiniZed exists.  This needs to be done before the OS image build can begin, and if it doesn't exist the script will call the Vivado tools to build it.  That is what is happening here.  Vivado is trying to build the hw platform and has failed. This error message indicates something has gone with the Vivado build.  This Xilinx forum article references an older version of the Vivado tools, but might still be relevant.  It indicates the issue might be with a environment variable for TCLLIBPATH that conflicts with Vivado:

                  https://forums.xilinx.com/t5/Installation-and-Licensing/quot-Common-17-539-quot-error-when-starting-up-Vivado-2015-2-or/td-p/726525

                   

                  Could this be your issue?  Do you have this TCLLIBPATH environment variable set?

                   

                  --Tom

                  • Re: No Bitstream File in Petalinux Build
                    bartokon

                    Hmm, If Avnet script doesn't work you could use clean Minized 2020.1 bsp generated by Avnet's script, and use that for building system and PYNQ for Minized. BSP should be at the bottom of hackster project.

                     

                    Also, you could download PYNQ image from Xilinx github and run setup_host.sh script, it should download some libraries for Vivado, and try to re-run one more time make_minized.sh.

                    By the way I was using Ubuntu 18.04.5 LTS for all these projects and used setup guide for Vivado/Petalinux and ran all necessary commands.

                • Re: No Bitstream File in Petalinux Build
                  apadana1984

                  narrucmot

                  @bartosz

                   

                  Thank you Tom and Bartosz. I noticed I had removed some packages during my Vivado installation due to lack of enough space. I allotted more memory to my dual boot Ubuntu and re-installed everything and ran the Avnet scripts today. It worked perfect and generated the BSP files. Now, it is time to build my own hardware and Linux application.

                  1 of 1 people found this helpful