Booting a PetaLinux Image on Hardware with JTAG - 2024.2 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2024-11-13
Version
2024.2 English
  1. Power off the board.
  2. Connect the JTAG port on the board with the JTAG cable to your workstation.
  3. Connect the serial port on the board to your workstation.
  4. If your system has Ethernet, also connect the Ethernet port on the board to your local network.
  5. Ensure that the mode switches are set to JTAG mode. For details, refer to the board documentation.
  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 serial line configured for 115200/8/N/1.
  8. Run the petalinux-boot command as follows on your workstation:

    petalinux-boot jtag --prebuilt 3 --hw_server-url <hostname:3121>

    Note: If you wish not to use prebuilt capability for JTAG boot, refer to Additional Options for Booting with JTAG.

    The jtag option tells petalinux-boot to boot on hardware via JTAG, and the --prebuilt 3 option boots the Linux kernel. Wait for the shell prompt to appear on the command console to indicate completion of the command.

    Note: To know more about different boot levels for prebuilt option, see Booting PetaLinux Prebuilt Images.

    Network settings for PetaLinux reference designs are configured using DHCP by default. Depending on the PetaLinux reference design being tested, the output you see can be slightly different from the previous example.

  9. Determine the IP address of the PetaLinux system by running ifconfig on the system console.