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 User app not packaged in SD card boot image
  • 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 4 replies
  • Subscribers 329 subscribers
  • Views 1250 views
  • Users 0 members are here
Related

User app not packaged in SD card boot image

vishal.bh30
vishal.bh30 over 7 years ago

Hello,

 

I am following UG1144 and 1157 documentation on petalinux from Xilinx for ultrazed board. i have Vivado 2017.3 and petalinux 2017.3 installed in Unbuntu 16.04 64 bit machine.

 

the issue is 

when i create the package and load the - BOOT.bin and image.ub  file on the SD card and load it on the board, i am not able to see myapp inside /usr/bin folder .. but if i look into the rootfs.tar.gz file  ?(which is a tarball or the filesystem, i can see the myapp in /usr/bin path ) ? not sure what is wrong here .. is board getting booted correctly ?

 i have tried to explain my issue in detail here:

https://forums.xilinx.com/t5/Embedded-Linux/How-to-include-a-user-app-in-petalinux-SD-Card-package/td-p/824969

 

I hope someone from Avnet would be able to look into this.. need to resolve this issue 

  • Sign in to reply
  • Cancel

Top Replies

  • zedhed
    zedhed over 7 years ago +1
    Hi vishal.bh30, I see from the Xilinx forum that you have verified that you are loading BOOT.BIN from the SD card so that is a good first step for troubleshooting. I suspect that you may be booting the…
  • zedhed
    0 zedhed over 7 years ago

    Hi vishal.bh30,

    I see from the Xilinx forum that you have verified that you are loading BOOT.BIN from the SD card so that is a good first step for troubleshooting.

    I suspect that you may be booting the BOOT.BIN file from the SD card but somehow your U-Boot is configured to load image.ub from the eMMC device rather than the SD card.  This happens to me occasionally during PetaLinux development and can be rather frustrating.  Is this something that you can check to rule out this condition?

    One way that you can check is to leave BOOT.BIN on the SD card but remove image.ub and if the system still boots all the way up to Linux that would tell you that an image.ub file is being loaded from somewhere else (likely the eMMC which still happens to me when I do not pay attention to the U-Boot settings).

    Best Regards,

    -Kevin

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • vishal.bh30
    0 vishal.bh30 over 7 years ago

    Yes, this is the issue...i was able to boot without image.ub all the way through :(

    Could you please guide me with the u-boot settings ? last time i tried it on my own , the build started to fail and i kept getting some warning mesasages about app file tainted.. ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • vishal.bh30
    0 vishal.bh30 over 7 years ago

    Hello,

    So i was able to find that this is a kown issue with Xilinx : https://www.xilinx.com/support/answers/69780.html

    But when i applied this fix .. i am now getting a different error :

    PLL: shutdown

    Found that this was another issue : https://www.xilinx.com/support/answers/69764.html

    and applied its given fix in Vivado and regenerated the bitstream and imported it the project but then got this error:

    VFS: cannot open root device "mmcblk0p2" or unknown-block(179,2) : error -6

    Kernel panic  VFS : Unable to mount root fs on unknown-block(179,2)

    following what was discussed here : https://forums.xilinx.com/t5/Embedded-Development-Tools/Beginners-problems-with-Ultrazed-eg/td-p/800802

    I tried updating the system-user.dtsi file under : petalinux_prj/proj-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi,

    but now i keep getting error :

    * Unable to read file system.dtb *

    Also i was able to generate the project from avnet scripts on github... li tried to copy the same system-user.dtsi file in my folder and yocto started to give build errors....

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • vishal.bh30
    0 vishal.bh30 over 7 years ago in reply to vishal.bh30
    having the following when i execute petalinux-config command :
     
    Go to Subsystem AUTO Hardware Settings -> Advanced bootable images storage Settings -> boot image settings and set ‘image storage media’ option to ‘primary sd’
    Go to Subsystem AUTO Hardware Settings -> Advanced bootable images storage Settings -> kernel image settings and set ‘image storage media’ option to ‘primary sd’
    Go to Subsystem AUTO Hardware Settings -> Advanced bootable images storage Settings -> dtb image settings and set ‘image storage media’ option to ‘primary sd’
    Go to Image Packaging Configurations and set ‘Root filesystem type’ option to ‘SD card’
     
    source : https://medium.com/developments-and-implementations-on-zynq-7000-ap/install-ubuntu-16-04-lts-on-zynq-zc702-using-petalinux-2016-4-e1da902eaff7
    • 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