element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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 & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Avnet Boards General Problem booting Linux from JTAG on PicoZed
  • 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 3 replies
  • Subscribers 358 subscribers
  • Views 496 views
  • Users 0 members are here
Related

Problem booting Linux from JTAG on PicoZed

Former Member
Former Member over 10 years ago

I'm trying to boot my PicoZed board to Linux from JTAG.  It's close, but I'm missing something.
I can successfully boot from SD Card with these same files, so it seems the problem lies elsewhere.

Here are the steps, I'm following:

* Set SW1 to JTAG boot mode.
* XMD Console commands
  - connect arm hw
  - dow zynq_fsbl.elf
  - run
  - fpga u2013f fpgabits.bit
  - dow u-boot.elf
  - run
*  Stop u-boot from auto-booting in terminal
* XMD Console command
  - stop
  - dow u2013data image.ub 0x1000000
  - con
* From u-boot type
  - bootm 0x1000000
* Linux boot hangs with last lines
  - [drm] Initialized drm 1.1.0 20060810
  - brd: module loaded
  - loop: module loaded

The next lines that Linux is supposed to print has to do with the QSPI, but I'm not sure what else to do.
When successfully booting from the SD Card, I'm using BOOT.BIN with the same FSBL, FPGA Bits and u-boot. 
I'm also using the same image.ub file.

--Jeff

  • Sign in to reply
  • Cancel
  • zedhed
    0 zedhed over 10 years ago

    Hi Jeff,

    I am not sure if anyone here has tried this recently but I remember trying something like this from PetaLinux about one year ago and saw similar results where I just could not get to the command prompt.

    Does your image.ub also come from PetaLinux?  Also are you loading this file via JTAG from a Windows PC or is this being done from a Linux machine?

    Regards,

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to zedhed

    Yes, this is all with my own FPGA design and my own Petalinux Build with a stock PicoZed board.  I've been following the standard PicoZed tutorials.  I'm doing JTAG from Windows 7, and I'm building Petalinux on RedHat 5.8. 

    Someone with a similar sounding issue indicated that maybe the MIO bits for the QSPI were not set correctly, but I can't figure out why it doesn't work through JTAG, but it works with the same files from SD Card.

    --Jeff

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to Former Member

    I finally found something that works.

    From XMD I first load/run zynq_fsbl.elf, then u-boot.elf.  Then I download the fpga bits into memory from JTAG.  In u-boot I load the FPGA bits from memory into the FPGA.  Then I can load/boot the Linux kernel successfully.

    If I load the FPGA bits from JTAG before u-boot, it seems that u-boot messes something up.  I can use the u-boot 'md' command to see if my FPGA bits are loaded or not by looking at some memory mapped registers.

    Does that sound familiar that running u-boot through JTAG will mess up something related to the FPGA?

    --Jeff

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
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 © 2026 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