element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development No option to create PetaLinux BSP on XSDK
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 12 replies
  • Subscribers 314 subscribers
  • Views 1634 views
  • Users 0 members are here
Related

No option to create PetaLinux BSP on XSDK

y_okada
y_okada over 10 years ago

I am trying to create custom PetaLinux BSP on XSDK.

I made .hdf file using Vivado. Then, on XSDK, I selected to create BSP importing the hdf file. However, on the windows with title "New Board Support Package Project", on "Board Support Package OS" selection, I only see "standalone" not "PetaLinux".

Is this because I am using XSDK installed on Windows?

If I install the XSDK on Linux, can I select "PetaLinux" on the "Board Support Package OS"?

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 10 years ago

    You will need to add the PetaLinux SDK repository as described in Xilinx Users Guide UG980 'Petalinux SDK Users Guide - Board Bringup Guide':

    http://www.xilinx.com/support/documentation/sw_manuals/petalinux2013_10/ug980-petalinux-board-bringup.pdf

     

    You can follow the steps in Sven Andersson's blog as well: http://svenand.blogdrive.com/archive/202.html#.VG92fvnF840

     

    -Gary

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • y_okada
    0 y_okada over 10 years ago

    Thank you very much for your reply, Gary.

    I will try following the User Guide and Sven's blog.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • y_okada
    0 y_okada over 10 years ago

    I tried by following the advice by Gary reading pdf and Sven's blog.

    But I could not find "petalinux" on the list of BSP OS. Instead, what is added was "device_tree".

    I confirmed this behavior on XSDK working both of Windows and linux.

    As the "Local Repositories", I selected "/opt/pkg/petalinux-v2014.2-final/components/edk_user_repository". The /opt/pkg/petalinux-v2014.2-final is obtained from this site (microzed.org).

    I am using V2014.2 XSDK tool.

    Because of this problem, I cannot create PetaLinux BSP.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • y_okada
    0 y_okada over 10 years ago

    I see only two following folders under /opt/pkg/petalinux-v2014.2-final/components/edk_user_repository
    - device-tree-generator
    - sw_apps

    On the other hand,
    http://blog.idv-tech.com/2014/02/26/zedboard-linux-freertos-amp-board-bringup-guide/
    shows folders such as
    - FreeRTOS

    I think this difference causes current problem.


    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • y_okada
    0 y_okada over 10 years ago

    I found that petalinux tool v2013.10 and v2014.2 have difference in folder structure.

    <V2013.10> under components there are following folders
    - FreeRTOS
    - PetaLinux
    - sw_appws

    <V2014.02> on the other hand, there are following files
    - device-tree-generator
    - sw_apps

    Because of this difference, I cannot select PetaLinux as BSP OS for V2014.2.

    User guide is based on V2013.10.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago

    I'm also trying to configure xsdk with the linux bsp, but 2014.4 has the same edk_user_repository structure as described by y_okada. Namely that the only two folders under edk_user_repository in Petalinux 2014.2 are:
      device-tree-generator
      sw_apps

    Note that there is no petalinux entry in the edk repo.

    Xilinx: Is this repo available in Petalinux 2014.4 to allow creation of a project with a linux BSP in XSDK? If so, where can it be found?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago

    Guys,

      The file structure for PetaLinux changed between 2013.10 and 2014.2 in order to make PetaLinux a standalone system for supported boards without the need to use the Xilinx SDK at all.  The new flow uses an existing BSP for the target, which is imported into a new PetaLinux project using the information in UG977 for 2014.2 and above:

    petalinux-create -t project -s <path to BSP>

    This works fine for all supported boards, once the new BSPs are available.  We will be updating Zedboard.org for 2014.4 BSPs (PetaLinux releases are synched to even Vivado releases) early in the new year.

    If you still need to create a BSP from scratch, then you still use the SDK, but only to create a standalone FSBL project for booting.  Everything else is done in the PetaLinux project, which is customized by importing the .hdf file from Vivado (or the SDK HW project).  This process is described in UG980, Board Bring-up Guide, for 2014.2 and above.

    The process is briefly encapsulated as follows:

    1. Create a project:  petalinux-create --type project --template zynq --name <project name>   (note two hyphens - - )

    2. Import hdf archive from the folder with the .hdf file:  petalinux-config --get-hw-description -p <path to project_name from above >

    3. This automatically launches menuconfig, which you then configure to specify the NV memory for both boot image and kernel image.  By default both are set to QSPI, but you might want to change them to SD card for easy development.

    4. Optionally configure the kernel and root file system.  Normally when you are first generating a BSP, you can omit these steps, and customize it later once you have the basic system booting to command line.

    5. Customize the device tree.  You might need to do this for external board-specific components, like a specific Ethernet PHY.  Again, at first, don't worry about it, but the device tree can be modified by making changes to subsystems/linux/configs/device-tree/system-top.dts. 

    6. Build the project:  petalinux-build

    7. Create the boot image:  petalinux-package --boot --fsbl <path to your zynq_fsbl.elf from the SDK> --fpga <path to your bitstream from the SDK or Vivado> --uboot

     

    That gives you the BOOT.BIN and uimage.ub which you can test on HW. 

    To package up everything as a BSP:

    petalinux-package --bsp -p <path to PetaLinux project> --hwsource <Vivado project path (optional)> --output <file name for BSP archive>

    A complete BSP includes the Vivado hw project and a pre-built directory with files extracted from the PetaLinux linux\images directory, plus boot.bin.   You can use a utility like 7-zip to open the archive and add these files (and anything else you like) to a completed BSP.   Once you have everything, follow UG977 to test that you can create a new project from the BSP, and that it boots in QEMU correctly.

    Ron

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • y_okada
    0 y_okada over 10 years ago

    Dear hockeyman1972

    I appreciate your detailed reply. It helps a lot.

    I am reading User Guide. But sometimes I cannot recognize the change made from one version to another without knowing this kind of background information.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago

    ...and the other side with xsdk 2015.1 and petalinux 2014.4 tools, can we generate AMP projects? like;
    BareMetal on CPU0 + BareMetal on CPU1
    Linux on CPU0 + BareMetal on CPU1
    Linux on CPU0 + RTOS on CPU1

    thanks a lot

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago

    The AMP designs are currently undergoing a retargeting by Xilinx to the OpenAMP project:  https://github.com/OpenAMP/open-amp. 

    Reference designs will be available beginning sometime in the next few months, but you can download the repository now and it does include support for the Zynq AP-SoCs.

    Ron

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube