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 Missing /dev/mpt
  • 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 6 replies
  • Subscribers 329 subscribers
  • Views 529 views
  • Users 0 members are here
Related

Missing /dev/mpt

Former Member
Former Member over 9 years ago

I have a target system that has a BOOT.BIN already loaded into its QSPI flash, but when I boot PetaLinux, there is no /dev/mtd.  Doing "cat /proc/mtd" returns no results.  Can I re-create the mtd partitioning from within PetaLinux?  Or is the only solution to load a new BOOT.BIN that was built with the proper MTD settings via Xilinx tools?  And how big does mtd0 need to be for a 7z045?

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

    Hi,

     

    This was an issue in the 2015.2 release that the factory test resident in the QSPI of some of our boards used (and did not have the fix applied). You can download the BSP for your board from the ZedBoard.org site and you should see the MTD partitions. You don't mention the board you are working with but assuming a Mini-ITX due to the 7z045 question you can find it here:

     

    http://zedboard.org/support/design/2056/17

     

    As for the size of the MTD partitions, it depends on what is going into them. For the boot partition, if the bitstream is included, it has to be big enough to accommodate the 13 MB + size for the 7045. Instructions for changing the partition sizes are in the Boot App note referenced in your other forum thread:

     

    http://zedboard.org/content/split-boot-u-boot-qspi-linux-sd

     

    -Gary

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

    Hi skibumgm,

    Gary's approach listed above is the best course of action.

    The fix mentioned involves adding an entry for the QSPI to the device tree in the system-top.dts file.

    &qspi {
       flash0: flash@0 {
          compatible = "micron,n25q128a13";
       };
    };

    Regards,

    -Kevin

    • 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 zedhed

    I've tried Kevin's suggestion with no change in results.  Unfortunately, I'm working with custom hardware that could most closely be described as a PicoZed SOM with a 7045 in place of the 7030, so the BSP's available here don't fit (I assume).  I'm working with a .hdf file exported from Vivado 2016.1, but the PetaLinux environment version I'm running is 2014.4, so versionitis might also be an issue.  Any other ideas you might have will be much appreciated.

    Thanks,
    Gerald

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

    Hi skibumgm,

    Mixing an matching Vivado and PetaLinux tool versions like that is definitely not recommended since there is no way to test all of the combinations and guarantee compatibility between the pairs.

    Regards,

    -Kevin

    • 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 zedhed

    I updated my PetaLinux environment to 2016.1, re-built everything, including re-exporting the .hdf file from Vivado, with no change.

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

    The problem turned out to be an inconsistency in the hardware description.  If I used an HDF from the full design, an AXI DMA controller was included n the HDF, which caused PetaLinux to attempt to load the DMA driver, and poll one of its registers.  But the bitstream hadn't been loaded, so there was no response.  To fix that, I used an HDF from a dummy design that only included the Zynq PS, but it missed some clocking information that prevented the BOOT.BIN created with it from operating.  So I mixed the BOOT.BIN from the full system with the image.ub from the PS-only system.  It would boot to a linux command prompt, but was not correct.  The missing /dev/mtd was just the most obvious symptom of the inconsistency.

    • 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 © 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