To build single image requirement

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

To build single image requirement

2,008 Views
stevenyu
Contributor III

Hi Support,

We want to build a single image including kernel and file system, however, we cannot proceed by following steps. Would you please advise what we miss?

1. cd sources/

2. git clone https://github.com/sbabic/meta-swupdate.git

3. vim ./base/conf/bblayers.conf

--------------------------------------------

BBLAYERS = " \
${BSPDIR}/sources/poky/meta \
${BSPDIR}/sources/poky/meta-yocto \
\
${BSPDIR}/sources/meta-openembedded/meta-oe \
${BSPDIR}/sources/meta-openembedded/meta-multimedia \
\
${BSPDIR}/sources/meta-fsl-arm \
${BSPDIR}/sources/meta-fsl-arm-extra \
${BSPDIR}/sources/meta-fsl-demos \
${BSPDIR}/sources/meta-swupdate \ ===========>add this line
"

4. cd .. & cd build-fb/

5. bitbake swupdate
WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |################################################################################################| ETA: 00:00:00
Loaded 2796 entries from dependency cache.
ERROR: Nothing PROVIDES 'swupdate'

Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

6. The content in source/meta-swupdate

classes

conf

COPYING.MIT

README

recipes-bsp

recipes-core

recipes-devtools

recipes-extended

recipes-support

Regards,

Steven Yu

Labels (1)
0 Kudos
Reply
2 Replies

1,613 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Steven Yu,

Are you using the FSL Community BSP or did you added the fsl layers from another BSP?

The error refers to bitbake not being able to find swupdate as a recipe. You added the meta-swupdate layer on the bblayers file, but I would recommend making sure it’ being seen by bitbake.

You can list the available layers using:

$ bitbake-layers show-layers

If it’s being seen then the next step would be making sure that the swupdate recipe is available inside of one of the recipes-XXXX folders of the layer and that there is a swupdate.bb file.

I hope this helps!

Regards,

0 Kudos
Reply

1,613 Views
stevenyu
Contributor III

Hi gusarambula,

We use the codebase FSL Community BSP (download from NXP website), and the git clone the meta-swupdate GitHub - sbabic/meta-swupdate: Yocto receipes to generate a swupdate rootfilesystem as initrd . We use bitbake-layers show-layers and it seems not include to our source tree. Do you know what happen ? 

Below we show our steps to git clone and bitbake-layers show-layers, and we have already add meta-swupdate into bblayers.conf. It is strange. 

stephen@server:~/try/sources$ git clone https://github.com/sbabic/meta-swupdate.git
Cloning into 'meta-swupdate'...
remote: Counting objects: 651, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 651 (delta 6), reused 5 (delta 0), pack-reused 637
Receiving objects: 100% (651/651), 101.83 KiB | 0 bytes/s, done.
Resolving deltas: 100% (263/263), done.
Checking connectivity... done.
stephen@server:~/try/sources$ vim ./base/conf/bblayers.conf
stephen@server:~/try/sources$ cd ..
stephen@server:~/try/$ cd build-fb/
stephen@server:~/try/build-fb$ bitbake-layers show-layers
layer path priority
==========================================================================
meta /home/stephen/try/sources/poky/meta 5
meta-poky /home/stephen/try/sources/poky/meta-poky 5
meta-oe /home/stephen/try/sources/meta-openembedded/meta-oe 6
meta-multimedia /home/stephen/try/sources/meta-openembedded/meta-multimedia 6
meta-fsl-arm /home/stephen/try/sources/meta-fsl-arm 5
meta-fsl-arm-extra /home/stephen/try/sources/meta-fsl-arm-extra 4
meta-fsl-demos /home/stephen/try/sources/meta-fsl-demos 4
meta-bsp /home/stephen/try/sources/meta-fsl-bsp-release/imx/meta-bsp 8
meta-sdk /home/stephen/try/sources/meta-fsl-bsp-release/imx/meta-sdk 8
meta-browser /home/stephen/try/sources/meta-browser 7
meta-gnome /home/stephen/try/sources/meta-openembedded/meta-gnome 7
meta-networking /home/stephen/try/sources/meta-openembedded/meta-networking 5
meta-python /home/stephen/try/sources/meta-openembedded/meta-python 7
meta-filesystems /home/stephen/try/sources/meta-openembedded/meta-filesystems 6
meta-qt5 /home/stephen/try/sources/meta-qt5 7
stephen@server:~/try/build-fb$

stephen@server:~/try/build-fb$ cat ../sources/./base/conf/bblayers.conf
LCONF_VERSION = "6"

BBPATH = "${TOPDIR}"
BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"

BBFILES ?= ""
BBLAYERS = " \
${BSPDIR}/sources/poky/meta \
${BSPDIR}/sources/poky/meta-yocto \
\
${BSPDIR}/sources/meta-openembedded/meta-oe \
${BSPDIR}/sources/meta-openembedded/meta-multimedia \
\
${BSPDIR}/sources/meta-fsl-arm \
${BSPDIR}/sources/meta-fsl-arm-extra \
${BSPDIR}/sources/meta-fsl-demos \
${BSPDIR}/sources/meta-swupdate \
"

Regards,

Steven Yu

0 Kudos
Reply