cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
12,734 Views
Registered: ‎02-18-2014

Boot Image from Jtag

Jump to solution

SDK 2014.1

Petalinux 2013.10

zc702 board

 

I want to verify that the xmd console can be used for booting a full image through Jtag?

 

The steps that i've come accross so far in my searching to do this is as follows:

 

1) connect arm hw

2) fpga -f top.bit

3) source ps7_init.tcl

4) ps7_init

5) ps7_post_config

6) dow u-boot.elf

7) target 64

8) con

9) dow -data zImage 0x8000

10) dow -data devicetree 0x1000000

 

Unfortunatly when i get to step 9 it fails and returns the following error:

------------------------------------------

RUNNING> XMD% dow -data zImage 0x8000
ERROR: Cannot read from target

    AP transaction timeout: ACK = 0x01, expected=0x02)

XMD%
------------------------------------------

 

Could someone help me understand what steps are necessary to load a full image. I tried to execute my image.elf file that is created, and that also fails. Generally when i load the same image through a sd card i just include the boot.bin and image.ub files to load everything. Is there a way to just load those 2 files here to do the same thing?

 

Thanks!

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Explorer
Explorer
15,481 Views
Registered: ‎02-18-2014

Re: Boot Image from Jtag

Jump to solution

With the help of Xilinx Support i was able to figure out the steps that are needed to boot a full linux image via Jtag, these xmd console commands are:

 

1) connect arm hw

2) source ps7_init.tcl

3) ps7_post_config

4) ps7_init

5) source stub.tcl

6) fpga -f top.bit (in my case it was top.bit but your's may be named different)

7) target 64

8) mcr p15 0 c1 c0 0 0x08c5187a

9) dow "u-boot.elf"

10) con; sleep 1; stop

11) target 64

12) mcr p15 0 c1 c0 0 0x08c5187a

13) dow -data "zImage" 0x00008000

14) target 64

15) mcr p15 0 c1 c0 0 0x08c5187a

16) dow -data "system.dtb" 0x02408000

17) rwr r2 0x02408000

18) rwr pc 0x00008000

19) con

 

These commands are the exact commands that petalinux-boot uses when attempting to load a image via jtag.

 

View solution in original post

0 Kudos
3 Replies
Highlighted
Scholar
Scholar
12,713 Views
Registered: ‎09-05-2011

Re: Boot Image from Jtag

Jump to solution
Can you follow the steps mentioned on pages 44 and 45 of Zynq CTT. Let me know if you still get the error:
http://www.xilinx.com/support/documentation/sw_manuals/xilinx14_7/ug873-zynq-ctt.pdf
0 Kudos
Highlighted
Explorer
Explorer
12,712 Views
Registered: ‎02-18-2014

Re: Boot Image from Jtag

Jump to solution

Thanks for the reply,

 

I also found that pdf after posting my question, i have been successfully able to load a image through jtag by following that guide. My last remaining question is though, when i use petalinux it does not provide a uImage or uramdiskimage.gz but rather provides a zImage and rootfs.cpio. Is there a way to convert the data files that petalinux gives me to the format that the guide asks for?

 

Thanks for the help!

0 Kudos
Highlighted
Explorer
Explorer
15,482 Views
Registered: ‎02-18-2014

Re: Boot Image from Jtag

Jump to solution

With the help of Xilinx Support i was able to figure out the steps that are needed to boot a full linux image via Jtag, these xmd console commands are:

 

1) connect arm hw

2) source ps7_init.tcl

3) ps7_post_config

4) ps7_init

5) source stub.tcl

6) fpga -f top.bit (in my case it was top.bit but your's may be named different)

7) target 64

8) mcr p15 0 c1 c0 0 0x08c5187a

9) dow "u-boot.elf"

10) con; sleep 1; stop

11) target 64

12) mcr p15 0 c1 c0 0 0x08c5187a

13) dow -data "zImage" 0x00008000

14) target 64

15) mcr p15 0 c1 c0 0 0x08c5187a

16) dow -data "system.dtb" 0x02408000

17) rwr r2 0x02408000

18) rwr pc 0x00008000

19) con

 

These commands are the exact commands that petalinux-boot uses when attempting to load a image via jtag.

 

View solution in original post

0 Kudos