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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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 & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Avnet Boards General Minized: INITRAMFS as root filesystem
  • 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 3 replies
  • Subscribers 347 subscribers
  • Views 3553 views
  • Users 0 members are here
  • minized_petalinux
  • getopicszedboard_forum
Related

Minized: INITRAMFS as root filesystem

niborz
niborz over 4 years 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

  • Sign in to reply
  • Cancel
Parents
  • narrucmot
    0 narrucmot over 4 years ago

    Hi Robin,

     

    These dependency loop errors are because the last OS image to be built was for using an EXT4 based rootfs (when the BSP was created) and the change to a RAMdisk rootfs is either incorrect or incomplete.  There should be a 'rebuild_minized_sbc_base.sh', 'rebuild_common.sh', and 'config.boot_method.${BOOT_METHOD}.sh' bash shell scripts in the PetaLinux project folder.  You can simply run the 'rebuild_minized_sbc_base.sh' bash script to rebuild all of the OS image binaries for the PetaLinux project.  If you want to examine how the different OS image type (INITRD vs EXT4) is configured for build you can look in the configure_boot_method () section of the 'rebuild_common.sh' script and the 'config.boot_method.INITRD.sh' bash script to see PetaLinux project configuration changes needed to change from EXT4 to INITRD OS image for the image.ub file.

     

    --Tom

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
Reply
  • narrucmot
    0 narrucmot over 4 years ago

    Hi Robin,

     

    These dependency loop errors are because the last OS image to be built was for using an EXT4 based rootfs (when the BSP was created) and the change to a RAMdisk rootfs is either incorrect or incomplete.  There should be a 'rebuild_minized_sbc_base.sh', 'rebuild_common.sh', and 'config.boot_method.${BOOT_METHOD}.sh' bash shell scripts in the PetaLinux project folder.  You can simply run the 'rebuild_minized_sbc_base.sh' bash script to rebuild all of the OS image binaries for the PetaLinux project.  If you want to examine how the different OS image type (INITRD vs EXT4) is configured for build you can look in the configure_boot_method () section of the 'rebuild_common.sh' script and the 'config.boot_method.INITRD.sh' bash script to see PetaLinux project configuration changes needed to change from EXT4 to INITRD OS image for the image.ub file.

     

    --Tom

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
Children
  • niborz
    0 niborz over 4 years ago in reply to narrucmot

    Thank you very much for pointing these scripts out.

     

    Everything is now working as intended !

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • narrucmot
    0 narrucmot over 4 years ago in reply to niborz

    Great!  Glad this is working for you now.

     

    --Tom

    • 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