Post Go back to editing

PETALINUX IMAGE OFFLINE BUILD FAILED

Category: Software
Product Number: AD-JUPITER-EBZ
Software Version: 2025_R1

Hi,

I am using AD-JUPITER-EBZ board. I am using VIVADO 2025_R1  and Petalinux 2025_R1.I have downloaded https://github.com/analogdevicesinc/hdl and created project.

I have created petalinux image by following the steps https://github.com/analogdevicesinc/meta-adi/blob/main/meta-adi-xilinx/README.md . Image is working but now I need to create Image without internet.

I have tried the procedure https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/60129817/Xilinx+Yocto+Builds+without+an+Internet+Connection but I am getting error


$ bitbake -c fetchall petalinux-image-minimal
ERROR: The following layer directories do not exist:
ERROR: /home/digital_c2r/karthik/ad_jupiter_ebz/components/yocto/layers/poky/meta-yocto-bsp
ERROR: Please check BBLAYERS in /home/digital_c2r/karthik/ad_jupiter_ebz/components/yocto/layers/poky/build/conf/bblayers.conf

I am attaching a file contains sequence of steps I have followed.

I need the complete procedure to create petalinux image without internet.

 

digital_c2r@DIGITALC2R:~/karthik$ source /tools/peta/settings.sh
*************************************************************************************************************************************************
The PetaLinux source code and images provided/generated are for demonstration purposes only.
Please refer to https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/2741928025/Moving+from+PetaLinux+to+Production+Deployment
 for more details
*************************************************************************************************************************************************
PetaLinux environment set to '/tools/peta'
[INFO] Checking free disk space
[INFO] Checking installed tools
[INFO] Checking installed development libraries
[INFO] Checking network and other services
[WARNING] No tftp server found - please refer to "UG1144 2025.1 PetaLinux Tools Documentation Reference Guide" for its impact and solution
digital_c2r@DIGITALC2R:~/karthik$ petalinux-create project --template zynqMP -n ad_jupiter_ebz
[INFO] Create project: ad_jupiter_ebz
[INFO] New project successfully created in /home/digital_c2r/karthik/ad_jupiter_ebz
digital_c2r@DIGITALC2R:~/karthik$ cd ad_jupiter_ebz
digital_c2r@DIGITALC2R:~/karthik/ad_jupiter_ebz$ petalinux-config --get-hw-description=/home/digital_c2r/karthik/ad_jupiter_ebz
[INFO] Getting hardware description
[INFO] Renaming system_top.xsa to system.xsa
[INFO] Extracting yocto SDK to components/yocto. This may take time!
[INFO] Bitbake is not available, some functionality may be reduced.
[INFO] Using HW file: /home/digital_c2r/karthik/ad_jupiter_ebz/project-spec/hw-description/system.xsa
[INFO] Getting Platform info from HW file
[INFO] Generating Kconfig for project
[INFO] Menuconfig project
[INFO] Generating kconfig for rootfs
[INFO] Silentconfig rootfs
[INFO] Generating configuration files
[INFO] Adding user layers
[INFO] Generating machine conf file
[INFO] Generating plnxtool conf file
[INFO] Generating workspace directory
NOTE: Starting bitbake server...
NOTE: Started PRServer with DBfile: /home/digital_c2r/karthik/ad_jupiter_ebz/build/cache/prserv.sqlite3, Address: 127.0.0.1:36127, PID: 2347651
INFO: Specified workspace already set up, leaving as-is
INFO: Enabling workspace layer in bblayers.conf
[INFO] Successfully configured project
digital_c2r@DIGITALC2R:~/karthik/ad_jupiter_ebz$ cd components/yocto/layers/poky/
digital_c2r@DIGITALC2R:~/karthik/ad_jupiter_ebz/components/yocto/layers/poky$ source oe-init-build-env
You had no conf/local.conf file. This configuration file has therefore been
created for you from /home/digital_c2r/karthik/ad_jupiter_ebz/components/yocto/layers/poky/meta-poky/conf/templates/default/local.conf.sample
You may wish to edit it to, for example, select a different MACHINE (target
hardware).

You had no conf/bblayers.conf file. This configuration file has therefore been
created for you from /home/digital_c2r/karthik/ad_jupiter_ebz/components/yocto/layers/poky/meta-poky/conf/templates/default/bblayers.conf.sample
To add additional metadata layers into your configuration please add entries
to conf/bblayers.conf.

The Yocto Project has extensive documentation about OE including a reference
manual which can be found at:
    https://docs.yoctoproject.org

For more information about OpenEmbedded see the website:
    https://www.openembedded.org/

This is the default build configuration for the Poky reference distribution.

### Shell environment set up for builds. ###

You can now run 'bitbake <target>'

Common targets are:
    core-image-minimal
    core-image-full-cmdline
    core-image-sato
    core-image-weston
    meta-toolchain
    meta-ide-support

You can also run generated qemu images with a command like 'runqemu qemux86-64'.

Other commonly useful commands are:
 - 'devtool' and 'recipetool' handle common recipe tasks
 - 'bitbake-layers' handles common layer tasks
 - 'oe-pkgdata-util' handles common target package tasks
digital_c2r@DIGITALC2R:~/karthik/ad_jupiter_ebz/components/yocto/layers/poky/build$ cd ../../../
digital_c2r@DIGITALC2R:~/karthik/ad_jupiter_ebz/components/yocto$ cd ../../
digital_c2r@DIGITALC2R:~/karthik/ad_jupiter_ebz$ bitbake -c fetchall petalinux-image-minimal
ERROR: The following layer directories do not exist:
ERROR:    /home/digital_c2r/karthik/ad_jupiter_ebz/components/yocto/layers/poky/meta-yocto-bsp
ERROR: Please check BBLAYERS in /home/digital_c2r/karthik/ad_jupiter_ebz/components/yocto/layers/poky/build/conf/bblayers.conf
digital_c2r@DIGITALC2R:~/karthik/ad_jupiter_ebz$

Thread Notes

  • Hi,


    $ bitbake -c fetchall petalinux-image-minimal
    ERROR: The following layer directories do not exist:
    ERROR: /home/digital_c2r/karthik/ad_jupiter_ebz/components/yocto/layers/poky/meta-yocto-bsp
    ERROR: Please check BBLAYERS in /home/digital_c2r/karthik/ad_jupiter_ebz/components/yocto/layers/poky/build/conf/bblayers.conf

    The above does look related to meta-adi.

    Image is working but now I need to create Image without internet.

    If you built once, you should just be able to build it again with petalinux-build. Why the below command?

    bitbake -c fetchall petalinux-image-minimal

    - Nuno Sá

  • Hi  ,

    Thank you for the clarification regarding the meta-yocto-bsp error.

    my requirement is to create a complete offline build environment so that the PetaLinux image can be built on a machine without internet access.

    Could you please share the recommended procedure for creating a PetaLinux 2025_R1 offline build environment for the AD-JUPITER-EBZ platform?

    Could you please provide the complete sequence of steps to a document that describes the supported offline build flow?

    Thank you for your support.

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.