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
Using Xilinx Tools Forum Cannot get simple app to load on MicroZed using PetaLinux
  • 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 Verified Answer
  • Replies 6 replies
  • Subscribers 335 subscribers
  • Views 596 views
  • Users 0 members are here
Related

Cannot get simple app to load on MicroZed using PetaLinux

Former Member
Former Member over 9 years ago

Vivado 2015.4
PetaLinux 2015.4
Windows 7 running VirtualBox & Ubuntu 14.04
MicroZed Rev F

I have followed the guide for the Mini-ITX and the guides provided from Xilinx to build PetaLinux on a MicroZed. I just want to see the UART output "Hello World" but the steps provided don't work for me.

The supplied SD image works fine.

Anybody on these forums remember any details that aren't included in the tutorial?

Thanks in advance.

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 9 years ago

    Hi Jeff, 

    From the title I'm not sure if you have helloWorld in the root file system and it runs but doesn't produce output, or if you can't get it to show at all in the final build.

      1. Are you placing the application code in the correct structure within the PetaLinux project (see example BSPs for 2015.2 on this website for examples - it's the same in 2015.4)?

    2. Have you selected your application for inclusion in the build in the rootfs configuration?

    3. Do you see the application being built during the build process (or check the build_log)?

    4. If helloWorld is present, does it execute and simply produce no output?  This would imply something else is going on, if you are seeing all the output from the boot correctly.

    Ron

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

    1. I run the following command to generate my first app
    $ petalinux-create -t apps --template c --name myapp

    2. I have selected to use this app in the config window after running:
    $ petalinux-config -c rootfs

    3. The build log includes "myapp" in the build.

    4. I am able to do generate a BOOT.BIN and image.ub successfully. I do see an error in the build log: [ALL  ] rsync error: error in file IO (code 11) at main.c(674) [Receiver=3.1.0]

    Thanks Ron. Any thoughts?

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

    Ron,

    I believe the rsync error is because I don't have tftpboot setup. This wouldn't cause a problem though, right? I don't want to use the Ethernet port for booting. I am trying to use the SD card to bott.

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

    Jeff,

      So it sounds like everything builds correctly and you get a boot.bin and image.ub that you can copy to uSD and boot the device.  What happens when you do that?  Any errors in the boot log?  You are able to locate the helloWorld binary ok?  And it runs without error but you see no output?

    Ron

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

    Ron,

    That is all correct except I cannot talk to my MicroZed to check for my app. I even fixed the tftpboot issue and now have zero errors. When I download the BOOT.bin & image.ub file to the SD card (used FAT32 to format) and plug the card in to the MicroZed nothing happens. I am expecting to see the board boot over the UART and get a basic Linux CLI but I don't get anything.

    I know it is not my USB/UART connection because I can load the Linux image that came with the MicroZed and access Linux through the UART.

    I will be honest, I am expecting to get a CLI without provided any code of my own using the PetaLinux build process. Is this the problem? Do I need to write the CLI? I don't know what to expect being new to embedded Linux.

    Thanks Ron

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

    I followed this AR to find my problem: http://www.xilinx.com/support/answers/59476.html

    Thanks Ron for your help!

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