element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development problem running u-boot.elf
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 2 replies
  • Subscribers 328 subscribers
  • Views 1013 views
  • Users 0 members are here
Related

problem running u-boot.elf

100padudle
100padudle over 12 years ago

Hello,

Recently something happened that prevents me from downloading and running .elf files from XMD on my ZedBoard.  This is important to me because I use u-boot.elf to burn my image files into the QSPI ROM. I did this several times before but now u-boot does not run.

Any ideas are greatly appreciated.

Here are the commands that I run.  When I run the continue command at the end nothing comes out on the serial port. 
**************************
connect arm hw -cable type xilinx_tcf
cd C:/Users/pedro/Xilinx/zedproj8/zedproj8.sdk/SDK/SDK_Export/petes_system_hw_platform/
source ps7_init.tcl
ps7_init
init_user
cd C:/Users/pedro/Xilinx/zedproj8/zedproj8.sdk/SDK/SDK_Export/fsbl_2/Debug/
dow u-boot.elf
dow -data u-boot.bin      0x08000000
con

Here is what I see on the XMD console.
*********************************************

Xilinx Microprocessor Debugger (XMD) Engine
Xilinx EDK 14.5 Build EDK_P.58f
Copyright (c) 1995-2012 Xilinx, Inc.  All rights reserved.

XMD%
XMD%
Accepted a new TCLSock connection from 127.0.0.1 on port 53336
connect arm hw -cable type xilinx_tcf

JTAG chain configuration
--------------------------------------------------
Device   ID Code        IR Length    Part Name
1       4ba00477           4        Cortex-A9
2       03727093           6        XC7Z020

--------------------------------------------------
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
XMD% cd C:/Users/pedro/Xilinx/zedproj8/zedproj8.sdk/SDK/SDK_Export/petes_system_hw_platform/
XMD% source ps7_init.tcl
XMD% ps7_init
XMD% init_user
Info:  Enabling level shifters and clearing fabric port resets
XMD% cd C:/Users/pedro/Xilinx/zedproj8/zedproj8.sdk/SDK/SDK_Export/fsbl_2/Debug/
XMD% dow u-boot.elf
warning: Data caches are enabled in the system control register.
This could reduce the download speed and if the processor is in
unknown state, it could lead to interrupt failures, etc. Please
run "rst [-processor]" command before dow, to overcome this issue
Downloading Program -- u-boot.elf
tsection, .text: 0x04000000-0x0402aadb
tsection, .rodata: 0x0402aadc-0x04035ad6
tsection, .hash: 0x04035ad8-0x04035b1f
tsection, .data: 0x04035b20-0x040365e7
tsection, .got.plt: 0x040365e8-0x040365f3
tsection, .u_boot_cmd: 0x040365f4-0x04036c13
tsection, .rel.dyn: 0x04036c14-0x0403c93b
tsection, .dynsym: 0x0403c93c-0x0403ca0b
tsection, .bss: 0x04036c14-0x04079b2b
Download Progress.10.20.30.40.50.60.70.80.90.Done
Setting PC with Program Start Address 0x04000000
XMD% con

RUNNING> XMD%

  • Sign in to reply
  • Cancel
Parents
  • 100padudle
    0 100padudle over 12 years ago

    I was able to get back to a point where I can load and run u-boot.elf from the XMD prompt.

    I used "Xilinx Tools -> Program Flash" to burn a copy of u-boot.bin into the qspi flash.  Then I ran u-boot from flash by resetting the processor.  Then I used u-boot to erase the qspi flash memory.

    With the erased boot memory I was able to get control of the processor, load u-boot.elf and run it.

    I guess I could have accomplished the same thing by setting the jumpers to configure from JTAG.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • 100padudle
    0 100padudle over 12 years ago

    I was able to get back to a point where I can load and run u-boot.elf from the XMD prompt.

    I used "Xilinx Tools -> Program Flash" to burn a copy of u-boot.bin into the qspi flash.  Then I ran u-boot from flash by resetting the processor.  Then I used u-boot to erase the qspi flash memory.

    With the erased boot memory I was able to get control of the processor, load u-boot.elf and run it.

    I guess I could have accomplished the same thing by setting the jumpers to configure from JTAG.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube