PetaLinux Build - 2024.1 English

Vitis Tutorials: Embedded Software (XD260)

Document ID
XD260
Release Date
2024-06-19
Version
2024.1 English

It is required to configure the PetaLinux project to support Linux application debug. Run the following commands for each step listed below. You can use the BSP for their board. However, the steps below uses ZynqMP template, and the MACHINE_NAME is updated. This would be a more generic flow

  1. Create the PetaLinux project:

    petalinux-create project --template zynqMP -n ./xilinx-zcu102-v2024.1 --tmpdir /tmp/${USER}/zcu102/petalinux
    
  2. Configure the hardware description:

    cd xilinx-zcu102-2024.1
    petalinux-config --get-hw-description <path to XSA>
    
  3. Configure the DTG Options

    • Select DTG Options:

      (zcu102-rev1.0) MACHINE_NAME
      
  4. Configure the root file system to enable TCF agent:

    petalinux-config -c rootfs
    
    • Select Filesystem Packages:

      Filesystem Packages ---> 
      
    • Scroll down to select misc.

      misc --->
      
    • Scroll down to select tcf-agent. Ensure that the tcf-agent is enabled.

      [*] tcf-agent 
      [ ] tcf-agent-dev 
      [ ] tcf-agent-dbg
      
  5. Go back to the Filesystem Packages menu and click console.

    console --->
    
  6. Navigate to network.

    network --->
    
  7. Click into the dropbear submenu and make sure that dropbear is enabled:

    [*] dropbear
    
  8. Go back to the previous menu to select OpenSSH and ensure that openssh-sftp-server is enabled.

    [ ] openssh 
    [ ] openssh-ssh 
    [ ] openssh-sftp 
    [*] openssh-sftp-server 
    [ ] openssh-keygen 
    [ ] openssh-dbg 
    [ ] openssh-dev 
    [ ] openssh-misc 
    [ ] openssh-sshd 
    [ ] openssh-scp
    
  9. Save the configuration and exit.

  10. Build:

    petalinux-build
    
  11. Sysroot:

    petalinux-package --boot --u-boot
    petalinux-build --sdk
    petalinux-package --sysroot
    

Note: You can skip all the above steps by using the make sysroots script to build the Linux images.

Copyright © 2020–2024 Advanced Micro Devices, Inc

Terms and Conditions