Steps to Boot a PetaLinux Image on Hardware with TFTP - 2021.2 English

PetaLinux Tools Documentation: Reference Guide

Document ID
UG1144
Release Date
2021-10-27
Version
2021.2 English
  1. Power off the board.
  2. Connect the JTAG port on the board to the workstation using a JTAG cable.
  3. Connect the serial port on the board to your workstation.
  4. Connect the Ethernet port on the board to the local network via a network switch.
  5. For Zynq®-7000 devices and Zynq UltraScale+ MPSoC and Versal® device boards, ensure that the mode switches are set to JTAG mode. Refer to the board documentation for details.
  6. Power on the board.
  7. Open a console on your workstation and start with preferred serial communication program (for example, kermit, minicom) with the baud rate set to 115200 on that console.
  8. Run the petalinux-boot command as follows on your workstation
    $ petalinux-boot --jtag --prebuilt 2 --hw_server-url <hostname:3121>

    The --jtag option tells petalinux-boot to boot on hardware via JTAG, and the --prebuilt 2 option downloads the prebuilt bitstream (FSBL for Zynq UltraScale+ MPSoCs and Zynq-7000 devices, and PLM and PSM for Versal ACAP) to target board, and then boot prebuilt U-Boot on target board.

  9. When autoboot starts, hit any key to stop it. The example of a workstation console output for successful U-Boot download is:
  10. Check whether the TFTP server IP address is set to the IP Address of the host where the image resides. This can be done using the following command:
    ZynqMP> print serverip
  11. Set the server IP address to the host IP address using the following command:
    ZynqMP> setenv serverip <HOST IP ADDRESS>
  12. Set the board IP address using the following command:
    ZynqMP> setenv ipaddr <BOARD IP ADDRESS>
  13. Get the pxe boot file using the following command:
    ZynqMP> pxe get
  14. Boot the kernel using the following command:
    ZynqMP> pxe boot