cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jnosewor
Visitor
Visitor
854 Views
Registered: ‎11-15-2019

Error while booting over JTAG using the petalinux utilities

Jump to solution

I am working with a HTG-Z922. I am able to boot the MpSoc from the SD card using a petalinux project that I was given.

I would like the satisfaction of being able to know how to create a new petalinux project. And then configure, build, and boot the device over JTAG using the petalinux utilities.

Using a known working HDF and BIT file I perform the following steps:

1. petalinux-create --type project --template zynqMP --name cus_project

  1. cd cus_project
  2. petalinux-config --get-hw-description=<PATH TO HDF>
  3. petalinux-build
  4.  petalinux-boot --jtag --pmufw images/linux/pmufw.elf --fpga --bitstream path_to_bit_file/top.bit --u-boot --hw_server-url <ip address>

     

    I see the following output:

    INFO: sourcing build tools

    ERROR: No load address provided for non-ELF file "./images/linux/pmufw.elf"!

     

    Any suggestions would be appreciated?  Thanks!

0 Kudos
1 Solution

Accepted Solutions
stephenm
Moderator
Moderator
714 Views
Registered: ‎09-12-2007

I dont think there is a way to give the petalinux-boot command a xsct tcl script. However, you can just create this manually and place this in the images/linux folder and call it from XSCT

connect
 
# Add the Microblaze PMU to target
targets -set -nocase -filter {name =~ "PSU"}
mwr 0xFFCA0038 0x1FF
# Download PMUFW to PMU
target -set -filter {name =~ "MicroBlaze PMU"}
dow zynqmp_pmufw.elf
con
 
# write bootloop and release A53-0 reset
targets -set -nocase -filter {name =~ "PSU"}
mwr 0xffff0000 0x14000000
mwr 0xFD1A0104 0x380E
 
# Download FSBL to A53 #0
targets -set -filter {name =~ "Cortex-A53 #0"}
dow zynqmp_fsbl.elf
con
after 500
stop
# Download AFT/U-boot to A53 #0
targets -set -filter {name =~ "Cortex-A53 #0"}
dow bl31.elf
dow u-boot.elf
con

View solution in original post

5 Replies
stephenm
Moderator
Moderator
817 Views
Registered: ‎09-12-2007

Do you really want to boot linux over jtag? this would take a long time unless you where just booting the uboot over jtag and doing a netboot.

 

Does the same image work on SD card:

cd images/linux

petalinux-package --boot --u-boot

 

Can you share the jtag script that the tools are generating and using here?

An example script is shown here:

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/84444479/TCL+script+to+auto-generate+a+jtag+boot+script+based+on+HDF+file+for+Zynq+Ultrascale

 

This just boots to an app, but gives you an idea of what the jtag script is doing

0 Kudos
jnosewor
Visitor
Visitor
763 Views
Registered: ‎11-15-2019

Thanks for the reply.

I work on a team that is physically located elsewhere so my updating the SD card isn't practical. My goal is to load the bitstream and bootloader over jtag and then use tftboot.

Point taken. I don't know if the actual image I am generating works on the board. Also I am familiar with using xsct to boot embedded subsystems so I should give that a try. Given a workd xsct.tcl file, is their a way to update the project such that the custom tcl file gets executed when I use petalinux-boot? 

Thanks!

0 Kudos
stephenm
Moderator
Moderator
715 Views
Registered: ‎09-12-2007

I dont think there is a way to give the petalinux-boot command a xsct tcl script. However, you can just create this manually and place this in the images/linux folder and call it from XSCT

connect
 
# Add the Microblaze PMU to target
targets -set -nocase -filter {name =~ "PSU"}
mwr 0xFFCA0038 0x1FF
# Download PMUFW to PMU
target -set -filter {name =~ "MicroBlaze PMU"}
dow zynqmp_pmufw.elf
con
 
# write bootloop and release A53-0 reset
targets -set -nocase -filter {name =~ "PSU"}
mwr 0xffff0000 0x14000000
mwr 0xFD1A0104 0x380E
 
# Download FSBL to A53 #0
targets -set -filter {name =~ "Cortex-A53 #0"}
dow zynqmp_fsbl.elf
con
after 500
stop
# Download AFT/U-boot to A53 #0
targets -set -filter {name =~ "Cortex-A53 #0"}
dow bl31.elf
dow u-boot.elf
con

View solution in original post

jnosewor
Visitor
Visitor
690 Views
Registered: ‎11-15-2019

Thanks

0 Kudos
stephenm
Moderator
Moderator
678 Views
Registered: ‎09-12-2007

You're welcome

0 Kudos