Booting a PetaLinux Image on Hardware with TFTP - 2024.1 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2024-06-21
Version
2024.1 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 AMD Zynq™ 7000 devices and Zynq UltraScale+ MPSoC and AMD 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 the 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. An 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. Run DHCP to enumerate dynamic IP:
    ZynqMP> dhcp
  12. If you want static IP, set the server IP address to the host IP address using the following command:
    ZynqMP> setenv serverip <HOST IP ADDRESS>
  13. If you want static IP, set the board IP address using the following command:
    ZynqMP> setenv ipaddr <BOARD IP ADDRESS>
  14. Get the pxe boot file using the following command:
    ZynqMP> pxe get
  15. Boot the kernel using the following command:
    ZynqMP> pxe boot