1 Reply Latest reply on Jan 19, 2021 8:57 AM by narrucmot

    Petalinux BSP and Vitis - Vivado 2020.1

    prateek.mohan1

      Hello, I am new to using the Zynq platform and I currently have all 2020.1 versions of the tools (Vivado, Vitis, Petalinux)

       

      I got the 2020.1 BSP for the Minized from this link:

      https://avtinc.sharepoint.com/teams/ET-Downloads/Shared%20Documents/Forms/AllItems.aspx?originalPath=aHR0cHM6Ly9hdnRpbmMuc2hhcmVwb2ludC5jb20vOmY6L3QvRVQtRG93bmxvYWRzL0VpYUJ6ZkRrRHI5Sm8yT1FONTJ6b1FzQkQxUkdEcUJIdDVtYTEwSjFzVWloVXc%5FcnRpbWU9TUQ2dGNZYTYyRWc&viewid=dba68156%2Dce4b%2D4ebb%2Db7a7%2Dec03b27b013d&id=%2Fteams%2FET%2DDownloads%2FShared%20Documents%2Fprojects%2Fpublic%5Frelease

       

      From going to 2020.1BSPminized_2020_1.tar.gz.

       

      I was curious what the actual block diagram was for this, so I extracted the BSP and found the xpr (Vivado project) and opened it up and saw this:

       

      I had a couple of questions from this point:

       

      1. So I wanted to start small, and try controlling the PL_LED_G and PS_LED_R from the Linux operating system (just to get my feet wet) by writing some C code.

       

      So, from the root of the petalinux BSP package (the directory where I see the folders components, project-spec, pre-built, etc.) I tried doing:

       

      petalinux-boot --jtag --prebuilt 3

       

      Because I wanted to boot into the linux OS through JTAG. I was able to boot up successfully but I don't think I have any of the gcc tools on my environment. Do I need to run petalinux-build and change some settings?

       

      2. I also see videos where I can make a platform package in Vitis and I can test run C code (perhaps to do my controlling of PL_LED_G and PS_LED_R) from that but I'm not too sure how to make a platform package in Vitis by using the BSP I downloaded.

       

      Thanks for the help!

       

      Prateek