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

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2022-10-19
Version
2022.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>
  9. When autoboot starts, hit any key to stop it. The example of a workstation console output for successful U-Boot download is:
    Hit any key to stop autoboot:  4
  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