cancel
Showing results for 
Search instead for 
Did you mean: 

uInitrd not found openstlinux

FPini.1
Associate II

hi, I have been working on compiling an openstlinux image with yocto, when compiling the image with bitbake it does not show me any error, but when mounting the image on the SD card it shows me the error that it cannot find "uInitrd", check in the bootfs partition and indeed the file cannot be found, however, if I first mount the partitions using the started package and then mount the generated image ignoring the bootfs partition, the operating system boots.

I have not found a reason why the uInitrd file is not generated, I would greatly appreciate the help.

1 REPLY 1
FPini.1
Associate II

this is what my bblayers file looks like:

# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf

# changes incompatibly

LCONF_VERSION = "7"

BBPATH = "${TOPDIR}"

BBFILES ?= ""

OEROOT := "${@os.path.abspath(os.path.dirname(d.getVar('FILE')) + '/../..')}"

#--------------------------

# Layers var definition for buildsystem

#

OPENEMBEDDED = "${OPENEMBEDDED_NON_REMOVABLE}"

OPENEMBEDDED_NON_REMOVABLE = "${OEROOT}/layers/openembedded-core/meta"

POKY = "${POKY_NON_REMOVABLE}"

POKY += "${OEROOT}/layers/poky/meta-yocto-bsp"

POKY_NON_REMOVABLE = "${OEROOT}/layers/poky/meta"

POKY_NON_REMOVABLE += "${OEROOT}/layers/poky/meta-poky"

#--------------------------

#

BASELAYERS ?= " \   

   ${OEROOT}/layers/meta-openembedded/meta-gnome \

   ${OEROOT}/layers/meta-openembedded/meta-initramfs \

   ${OEROOT}/layers/meta-openembedded/meta-multimedia \

   ${OEROOT}/layers/meta-openembedded/meta-networking \

   ${OEROOT}/layers/meta-openembedded/meta-webserver \

   ${OEROOT}/layers/meta-openembedded/meta-filesystems \

   ${OEROOT}/layers/meta-openembedded/meta-perl \

   ${OEROOT}/layers/meta-sidacam \

   ${OEROOT}/layers/meta-scipy \   

   ${OEROOT}/layers/meta-st/meta-st-py3-ext \

"

BBLAYERS_NON_REMOVABLE ?= " \

   ${@'${OPENEMBEDDED_NON_REMOVABLE}' if os.path.isfile('${OEROOT}/layers/openembedded-core/meta/conf/layer.conf') else '${POKY_NON_REMOVABLE}'} \

 "

BSPLAYER ?= " \

   ${@'${OEROOT}/layers/meta-st/meta-st-cannes2' if os.path.isfile('${OEROOT}/layers/meta-st/meta-st-cannes2/conf/layer.conf') else ''} \

   ${@'${OEROOT}/layers/meta-st/meta-st-stm32mp' if os.path.isfile('${OEROOT}/layers/meta-st/meta-st-stm32mp/conf/layer.conf') else ''} \

   "

ADDONSLAYERS = ""

# linaro

ADDONSLAYERS += "${@'${OEROOT}/layers/meta-linaro/meta-linaro' if os.path.isfile('${OEROOT}/layers/meta-linaro/meta-linaro/conf/layer.conf') else ''}"

ADDONSLAYERS += "${@'${OEROOT}/layers/meta-linaro/meta-linaro-toolchain' if os.path.isfile('${OEROOT}/layers/meta-linaro/meta-linaro-toolchain/conf/layer.conf') else ''}"

ADDONSLAYERS += "${@'${OEROOT}/layers/meta-openembedded/meta-networking' if os.path.isfile('${OEROOT}/layers/meta-linaro/meta-linaro/conf/layer.conf') else ''}"

# Qt5

ADDONSLAYERS += "${@'${OEROOT}/layers/meta-qt5' if os.path.isfile('${OEROOT}/layers/meta-qt5/conf/layer.conf') else ''}"

# Security layer

ADDONSLAYERS += " \

   ${@'${OEROOT}/layers/meta-security \

   ${OEROOT}/layers/meta-security/meta-tpm' \

   if os.path.isfile('${OEROOT}/layers/meta-security/conf/layer.conf') else ''} \

   "

# specific to framework

FRAMEWORKLAYERS += "${@'${OEROOT}/layers/meta-st/meta-st-openstlinux' if os.path.isfile('${OEROOT}/layers/meta-st/meta-st-openstlinux/conf/layer.conf') else ''}"

# add BSP layer

BBLAYERS += " \  

   ${@'${OPENEMBEDDED}' if os.path.isfile('${OEROOT}/layers/openembedded-core/meta/conf/layer.conf') else '${POKY}'} \ 

   ${OEROOT}/layers/meta-openembedded/meta-oe \    

   ${BSPLAYER} \

   ${ADDONSLAYERS} \

   ${FRAMEWORKLAYERS} \ 

   ${BASELAYERS} \ 

   ${OEROOT}/layers/meta-openembedded/meta-python \

   "

# BSP dependencies"