linux jtag,BOOT Petalinux with JTAG

Package Prebuilt Image

1. Change into the root directory of your project.

$ cd

2. Use petalinux-package --prebuilt to package the prebuilt images:

$ petalinux-package --prebuilt --fpga

root@localhost pre-built]# petalinux-boot --prebuilt 3  --jtag --fpga --bitstream lan_top.bit

WARNING: You have specify --prebuilt and  --bitstream. --prebuilt will override all settings.

INFO: Append dtb - /home/xuwenliang/peta_2014.4/1/2/3/lan/pre-built/linux/images/system.dtb and other options to boot zImage

INFO: Configuring the FPGA...

INFO: XMD commands is shown as follows.

fpga -f  "lan_top.bit"

after 2

INFO: Downloading bitstream to the target.

INFO: FPGA configuration completed.

INFO: Launching XMD for file download and boot.

INFO: This may take a few minutes, depending on the size of your image.

INFO: SOC Silicon version is 3.1.

注意 :1把bitstream拷到pre-built目录下,否则打印的信息可不是上面那样,而是这样

WARNING: You have specify --prebuilt and  --bitstream. --prebuilt will override all settings. INFO: Append dtb - /home/christine/peta_2014.4/1/2/3/lan/pre-built/linux/images/system.dtb and other options to boot zImage INFO: Configuring the FPGA... ERROR: Image file lan_top.bit doesn't exist. Download and boot image on the board with JTAG: Usage:   petalinux-jtag-boot -i|--image Required:   -i, --image          image to boot Options:   --arch                architecture   --boot-addr      boot address   --load-addr       address to load the image   --regdata          register data   --before-connect "XMD_CMD" extra XMD command to run before connecting to                                target, can be repeated   --after-connect "XMD_CMD"  extra XMD command to run after connecting to                                target, can be repeated                                E.g. --after-connect "debugconfig -reset_on_run disable"   --after-load "XMD_CMD"     extra XMD command to run after loading image                                can be repeated.   --after-boot "XMD_CMD"     extra XMD command to run after booting                                can be repeated.   --xmd-conn "XMD_CMD"       customised XMD connect command, can be repeated                                E.g. --xmd-connect "connect mb mdm"   --targetcpu     specify target CPUID (0 to N-1)   --bitstream                  It is bitstream                                bitstream.   --before-fpga "XMD_CMD"    extra XMD command to run before programming fpga,                                can be repeated.   --after-fpga "XMD_CMD"     extra XMD command to run after programming fpga,                                can be repeated.   --dryrun                     dry run   --tcl           dump XMD commands to the specified file   --verbose                    verbose mode   -h, --help                   show usage INFO: Downloading bitstream to the target. INFO: FPGA configuration completed. INFO: Launching XMD for file download and boot. INFO: This may take a few minutes, depending on the size of your image. ****** Xilinx Microprocessor Debugger (XMD) EngineExecuting user script : /tmp/tmp.kY1Ru3l9N0 JTAG chain configuration -------------------------------------------------- Device   ID Code        IR Length    Part Name  1       4ba00477           4        arm_dap  2       13722093           6        xc7z010 -------------------------------------------------- Enabling extended memory access checks for Zynq. Writes to reserved memory are not permitted and reads return 0. To disable this feature, run "debugconfig -memory_access_check disable". -------------------------------------------------- CortexA9 Processor Configuration ------------------------------------- Version.............................0x00000003 User ID.............................0x00000000 No of PC Breakpoints................6 No of Addr/Data Watchpoints.........4 Connected to "arm" target. id = 64 Starting GDB server for "arm" target (id = 64) at TCP port no 1234 Note:: init_user command is Deprecated. Use ps7_post_config from ps7_init.tcl Processor stopped mctrlval=30800100 ****** XMD v2014.2   **** SW Build 932637 on Wed Jun 11 13:12:10 MDT 2014     ** Copyright 1986-2014 Xilinx, Inc. All Rights Reserved. Processor Reset .... DONE Downloading Program -- /home/christine/peta_2014.4/1/2/3/lan/pre-built/linux/images/zynq_fsbl.elf section, .text: 0x00000000-0x0000ccb3 section, .handoff: 0x0000ccb4-0x0000ccff section, .init: 0x0000cd00-0x0000cd17 section, .fini: 0x0000cd18-0x0000cd2f section, .rodata: 0x0000cd30-0x0000d08b section, .data: 0x0000d090-0x0000ffbb section, .mmu_tbl: 0x00010000-0x00013fff section, .init_array: 0x00014000-0x00014007 section, .fini_array: 0x00014008-0x0001400b section, .rsa_ac: 0x0001400c-0x0001503f section, .bss: 0x00015040-0x000168a3 section, .heap: 0x000168a4-0x000188af section, .stack: 0xffff0000-0xffffd3ff Download Progress.10.20.30.40.50.60.70.80.90.Done Setting PC with Program Start Address 0x00000000 RUNNING> Processor stopped Processor started. Type "stop" to stop processor Processor Reset .... DONE Downloading Program -- /home/christine/peta_2014.4/1/2/3lan/pre-built/linux/images/u-boot.elf section, .text: 0x3fc00000-0x3fc2f10f section, .rodata: 0x3fc2f110-0x3fc3a30f section, .hash: 0x3fc3a310-0x3fc3a33b section, .data: 0x3fc3a33c-0x3fc3be4d section, .got.plt: 0x3fc3be50-0x3fc3be5b section, .u_boot_list: 0x3fc3be5c-0x3fc3c45b section, .rel.dyn: 0x3fc3c45c-0x3fc432b3 section, .bss: 0x3fc3c45c-0x3fc7b9d3 Download Progress..10.20.30.40.50.60.70.80.90.Done Setting PC with Program Start Address 0x3fc00000 RUNNING> Error Executing User Script : /tmp/tmp.kY1Ru3l9N0 Error :: ERROR: Unable to Stop Processor. System could be in unknown state. Please reset the system Unknown Error Occured Processor started. Type "stop" to stop processor ERROR: Unable to download the image You have new mail in /var/spool/mail/root

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值