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 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
FPGA
  • Technologies
  • More
FPGA
Blog Recent Fixes to PetaLinux QEMU Boot for Avnet SOMs and SBCs
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join FPGA to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: narrucmot
  • Date Created: 26 Feb 2021 2:09 AM Date Created
  • Views 1466 views
  • Likes 2 likes
  • Comments 0 comments
  • devicetree
  • ultra96-v2
  • qemu
  • ultrazed
  • microzed
  • avnet
  • petalinux
  • xilinx
  • picozed
  • designed by avnet
  • minized
Related
Recommended

Recent Fixes to PetaLinux QEMU Boot for Avnet SOMs and SBCs

narrucmot
narrucmot
26 Feb 2021

It recently came to our attention at Avnet that PetaLinux QEMU boot was broken for our MicroZed SOMs, and possibly also broken for PicoZed, UltraZed, MiniZed, and Ultra96-V2.  After spending some time to dive in and debug this problem we discovered that QEMU was failing on the node in the device tree for the Ethernet PHY, specifically the “compatible =" string.  For example, the fix to get QEMU working for MicroZed was as simple as changing the lower case ‘88e1510’ to upper case ‘88E1510’ as in "compatible = "marvell,88E1510"".  Interesting that this setting is case-sensitive for QEMU boot, but never appeared to matter when booting this OS image on MicroZed hardware.  That explains why we never caught this oversight previously.  I must admit I rarely use QEMU since I am lucky enough to always (or nearly always) have actual hardware to boot and test on.  Lesson learned!  Add QEMU boot to the BSP release test plan from now on!  These devicetree fixes will be incorporated into the upcoming PetaLinux 2020.2 BSPs for the MicroZed, PicoZed, UltraZed, MiniZed, and Ultra96-V2.

 

Changing this devicetree setting to "compatible = "marvell,88E1510"" does produce a warning during boot, though, but this can be safely ignored:

[Firmware Warn]: /amba/ethernet@e000b000/phy@0: Whitelisted compatible string. Please remove Marvell 88E1149R e000b000.ethernet-ffffffff:00: attached PHY driver [Marvell 88E1149R] (mii_bus:phy_addr=e000b000.ethernet-ffffffff:00, irq=POLL)

 

Once the PetaLinux OS image is built (or BSP is installed), booting QEMU in PetaLinux for MicroZed is remarkably easy.  The following command will fetch the boot binaries from the prebuilt folder in the PetaLinux project and will boot the MicroZed Linux OS image in QEMU, with the host PC emulating the MicroZed's Zynq processing system:

$ petalinux-boot --qemu --prebuilt 3

image

Once the OS is booted you can interact with it just as if it were running on hardware (Login user=root, password=root).

 

Admittedly this MicroZed example of using QEMU is a simple one since it normally boots using a RAMdisk.  It is also possible to boot more sophisticated configurations with QEMU like persistent root file systems such as you would find on the EXT4 partition of an SD card used for hardware boot.  You can even setup advanced debug environments and networking so the emulated hardware can be connected to your local LAN.  That sounds like a good topic for a future blog, so stay tuned for that!

 

For more information on QEMU and how to use it in PetaLinux check out Xilinx UG1169 and Xilinx UG1144.

  • Sign in to reply
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