element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
General Minized: INITRAMFS as root filesystem
  • Forums
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Avnet Boards Forums requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 3 replies
  • Subscribers 45 subscribers
  • Views 851 views
  • Users 0 members are here
  • minized_petalinux
  • getopicszedboard_forum
Related

Minized: INITRAMFS as root filesystem

niborz
niborz 8 months ago

Hello,

 

I want to build Petalinux 2020.2 for the minized with an INITRAMFS as rootfs (ideally it should be stored into the u-boot fitImage which i believe is called image.ub by petalinux).

I downloaded the 2020.2 bsp from Avnet website and started a new project.

After changing the "Root filesystem type" to INITRAMFS in "Image Packaging Confiugration" using the petalinux-configure command, i get the following dependency loops when building:

 

$ petalinux-build -c avnet-image-minimal

INFO: Sourcing build tools

[INFO] Building avnet-image-minimal

[INFO] Sourcing build environment

[INFO] Generating workspace directory

INFO: bitbake avnet-image-minimal

Loading cache: 100% |############################################| Time: 0:00:00

Loaded 4296 entries from dependency cache.

Parsing recipes: 100% |##########################################| Time: 0:00:03

Parsing of 3027 .bb files complete (3026 cached, 1 parsed). 4297 targets, 214 skipped, 0 masked, 0 errors.

NOTE: Resolving any missing task queue dependencies

ERROR: 2803 unbuildable tasks were found.#                       | ETA:  0:00:01

These are usually caused by circular dependencies and any circular dependency chains found will be printed below. Increase the debug level to see a list of unbuildable tasks.

 

Identifying dependency loops (this may take a short while)...

 

 

ERROR:

Dependency loop #1 found:

  Task /home/user/build/embedded/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_complete (dependent Tasks ['python3-cython_0.29.13.bb:do_populate_sysroot', 'fsbl_git.bb:do_populate_sysroot', 'python3-pyyaml_5.1.2.bb:do_populate_sysroot', 'libyaml_0.2.2.bb:do_populate_sysroot', 'avnet-boot-scr.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image', 'petalinux-image-minimal.bb:do_image_wic', 'petalinux-image-minimal.bb:do_image_ext4', 'petalinux-image-minimal.bb:do_image_cpio', 'petalinux-image-minimal.bb:do_image_jffs2', 'u-boot-zynq-scr.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image_tar', 'u-boot-xlnx_2020.2.bb:do_populate_sysroot'])

  Task /home/user/build/embedded/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2020.2.bb:do_assemble_fitimage_initramfs (dependent Tasks ['device-tree.bb:do_populate_sysroot', 'linux-xlnx_2020.2.bb:do_bundle_initramfs', 'petalinux-image-minimal.bb:do_image_complete'])

  Task /home/user/build/embedded/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2020.2.bb:do_deploy (dependent Tasks ['linux-xlnx_2020.2.bb:do_packagedata', 'depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'linux-xlnx_2020.2.bb:do_assemble_fitimage_initramfs', 'linux-xlnx_2020.2.bb:do_bundle_initramfs', 'linux-xlnx_2020.2.bb:do_populate_sysroot'])

  Task /home/user/build/embedded/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_wic (dependent Tasks ['external-hdf.bb:do_deploy', 'dosfstools_4.1.bb:do_populate_sysroot', 'parted_3.2.bb:do_populate_sysroot', 'device-tree.bb:do_deploy', 'fsbl_git.bb:do_deploy', 'mtools_4.0.23.bb:do_populate_sysroot', 'bitstream-extraction_git.bb:do_deploy', 'u-boot-xlnx_2020.2.bb:do_deploy', 'petalinux-image-minimal.bb:do_image', 'gptfdisk_1.0.4.bb:do_populate_sysroot', 'xilinx-bootbin_1.0.bb:do_deploy', 'linux-xlnx_2020.2.bb:do_deploy', 'petalinux-image-minimal.bb:do_rootfs_wicenv'])

 

 

Dependency loop #2 found:

  Task /home/user/build/embedded/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_complete (dependent Tasks ['python3-cython_0.29.13.bb:do_populate_sysroot', 'fsbl_git.bb:do_populate_sysroot', 'python3-pyyaml_5.1.2.bb:do_populate_sysroot', 'libyaml_0.2.2.bb:do_populate_sysroot', 'avnet-boot-scr.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image', 'petalinux-image-minimal.bb:do_image_wic', 'petalinux-image-minimal.bb:do_image_ext4', 'petalinux-image-minimal.bb:do_image_cpio', 'petalinux-image-minimal.bb:do_image_jffs2', 'u-boot-zynq-scr.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image_tar', 'u-boot-xlnx_2020.2.bb:do_populate_sysroot'])

  Task /home/user/build/embedded/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2020.2.bb:do_bundle_initramfs (dependent Tasks ['petalinux-image-minimal.bb:do_image_complete', 'linux-xlnx_2020.2.bb:do_install'])

  Task /home/user/build/embedded/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2020.2.bb:do_assemble_fitimage_initramfs (dependent Tasks ['device-tree.bb:do_populate_sysroot', 'linux-xlnx_2020.2.bb:do_bundle_initramfs', 'petalinux-image-minimal.bb:do_image_complete'])

  Task /home/user/build/embedded/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2020.2.bb:do_deploy (dependent Tasks ['linux-xlnx_2020.2.bb:do_packagedata', 'depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'linux-xlnx_2020.2.bb:do_assemble_fitimage_initramfs', 'linux-xlnx_2020.2.bb:do_bundle_initramfs', 'linux-xlnx_2020.2.bb:do_populate_sysroot'])

  Task /home/user/build/embedded/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_wic (dependent Tasks ['external-hdf.bb:do_deploy', 'dosfstools_4.1.bb:do_populate_sysroot', 'parted_3.2.bb:do_populate_sysroot', 'device-tree.bb:do_deploy', 'fsbl_git.bb:do_deploy', 'mtools_4.0.23.bb:do_populate_sysroot', 'bitstream-extraction_git.bb:do_deploy', 'u-boot-xlnx_2020.2.bb:do_deploy', 'petalinux-image-minimal.bb:do_image', 'gptfdisk_1.0.4.bb:do_populate_sysroot', 'xilinx-bootbin_1.0.bb:do_deploy', 'linux-xlnx_2020.2.bb:do_deploy', 'petalinux-image-minimal.bb:do_rootfs_wicenv'])

 

 

Dependency loop #3 found:

  Task /home/user/build/embedded/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_complete (dependent Tasks ['python3-cython_0.29.13.bb:do_populate_sysroot', 'fsbl_git.bb:do_populate_sysroot', 'python3-pyyaml_5.1.2.bb:do_populate_sysroot', 'libyaml_0.2.2.bb:do_populate_sysroot', 'avnet-boot-scr.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image', 'petalinux-image-minimal.bb:do_image_wic', 'petalinux-image-minimal.bb:do_image_ext4', 'petalinux-image-minimal.bb:do_image_cpio', 'petalinux-image-minimal.bb:do_image_jffs2', 'u-boot-zynq-scr.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image_tar', 'u-boot-xlnx_2020.2.bb:do_populate_sysroot'])

  Task /home/user/build/embedded/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2020.2.bb:do_bundle_initramfs (dependent Tasks ['petalinux-image-minimal.bb:do_image_complete', 'linux-xlnx_2020.2.bb:do_install'])

  Task /home/user/build/embedded/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2020.2.bb:do_deploy (dependent Tasks ['linux-xlnx_2020.2.bb:do_packagedata', 'depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'linux-xlnx_2020.2.bb:do_assemble_fitimage_initramfs', 'linux-xlnx_2020.2.bb:do_bundle_initramfs', 'linux-xlnx_2020.2.bb:do_populate_sysroot'])

  Task /home/user/build/embedded/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_wic (dependent Tasks ['external-hdf.bb:do_deploy', 'dosfstools_4.1.bb:do_populate_sysroot', 'parted_3.2.bb:do_populate_sysroot', 'device-tree.bb:do_deploy', 'fsbl_git.bb:do_deploy', 'mtools_4.0.23.bb:do_populate_sysroot', 'bitstream-extraction_git.bb:do_deploy', 'u-boot-xlnx_2020.2.bb:do_deploy', 'petalinux-image-minimal.bb:do_image', 'gptfdisk_1.0.4.bb:do_populate_sysroot', 'xilinx-bootbin_1.0.bb:do_deploy', 'linux-xlnx_2020.2.bb:do_deploy', 'petalinux-image-minimal.bb:do_rootfs_wicenv'])

 

 

ERROR: Command execution failed: 1

 

Summary: There were 3 ERROR messages shown, returning a non-zero exit code.

ERROR: Failed to build avnet-image-minimal

Building for an EXT4 rootfs yields no such error.

Is there something else to do for  the "Root filesystem type" option to work ? Maybe what i want to achieve must be configured somewhere else ?

 

Thank you

  • Reply
  • Cancel
  • Cancel
Element14

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

  • Facebook
  • Twitter
  • linkedin
  • YouTube