Binaries not found in rootfs even after adding recipe

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

Binaries not found in rootfs even after adding recipe

Jump to solution
1,358 Views
pvsnsubhash
Contributor II

Hi,

I am working on LX2160ARDB and trying to install some specific packages on it. I am using LLDP 6.1.22 SDK currently. To install u-boot-tools, i2c-tools and lksctp-tools, I tried these 2 ways.

1. Adding in the local.conf file
IMAGE_INSTALL:append = " lksctp-tools u-boot-tools i2c-tools"

2. Adding in the ls-image-main.bb file

IMAGE_INSTALL:append = " lksctp-tools u-boot-tools i2c-tools"

When I build the image ls-image-main in both cases, image is getting built and generating the rootfs tar file. But the binaries related to these packages are nowhere present in the rootfs. Like i2c-tools should have i2cset, i2cget etc and u-boot-tools will have fw_printenv, fw_setenv and lksctp-tools will have checksctp. But none of these can be found anywhere in rootfs.
I can find these recipes in the pn-buildlist when i use bitbake -g ls-image-main

Kindly help me with this issue.

Thanks in Advance

Thanks and Regards
PVSN Subhash
0 Kudos
Reply
1 Solution
1,320 Views
yipingwang
NXP TechSupport
NXP TechSupport
  1. Please remove i2c-tools in YOCTO-DEPENDS-LIST in sources/meta-nxp-desktop/recipes-extended/ubuntu/ubuntu-base-image.inc

 

  1. Please edit sources/meta-nxp-desktop/recipes-fsl/images/ls-image-main.bb as the following.

IMAGE_INSTALL:append = " \

        ${LAYERSCAPE_NETWORK_TOOLS} \

        iperf2 \

        makedevs lmsensors-sensors \

        lksctp-tools lksctp-tools-utils u-boot-tools i2c-tools u-boot-fw-utils \

        ${LAYERSCAPE_DEMO_SAMPLES} \

"

  1. $ bitbake ls-image-main

View solution in original post

0 Kudos
Reply
3 Replies
1,321 Views
yipingwang
NXP TechSupport
NXP TechSupport
  1. Please remove i2c-tools in YOCTO-DEPENDS-LIST in sources/meta-nxp-desktop/recipes-extended/ubuntu/ubuntu-base-image.inc

 

  1. Please edit sources/meta-nxp-desktop/recipes-fsl/images/ls-image-main.bb as the following.

IMAGE_INSTALL:append = " \

        ${LAYERSCAPE_NETWORK_TOOLS} \

        iperf2 \

        makedevs lmsensors-sensors \

        lksctp-tools lksctp-tools-utils u-boot-tools i2c-tools u-boot-fw-utils \

        ${LAYERSCAPE_DEMO_SAMPLES} \

"

  1. $ bitbake ls-image-main
0 Kudos
Reply
1,273 Views
pvsnsubhash
Contributor II

This worked but I also added the same in IMAGE_INSTALL:append previously, guess it should be placed before ${LAYERSCAPE_DEMO_SAMPLES}? @yipingwang 

Thanks and Regards
PVSN Subhash
0 Kudos
Reply
1,267 Views
yipingwang
NXP TechSupport
NXP TechSupport

Thanks for your information.

You need to add "lksctp-tools-utils" and "u-boot-fw-utils" in the list.

%3CLINGO-SUB%20id%3D%22lingo-sub-1981051%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EBinaries%20not%20found%20in%20rootfs%20even%20after%20adding%20recipe%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1981051%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20am%20working%20on%20LX2160ARDB%20and%20trying%20to%20install%20some%20specific%20packages%20on%20it.%20I%20am%20using%20LLDP%206.1.22%20SDK%20currently.%20To%20install%20u-boot-tools%2C%20i2c-tools%20and%20lksctp-tools%2C%20I%20tried%20these%202%20ways.%3C%2FP%3E%3CP%3E1.%20Adding%20in%20the%20local.conf%20file%3CBR%20%2F%3EIMAGE_INSTALL%3Aappend%20%3D%20%22%20lksctp-tools%20u-boot-tools%20i2c-tools%22%3C%2FP%3E%3CP%3E2.%20Adding%20in%20the%20ls-image-main.bb%20file%3C%2FP%3E%3CP%3EIMAGE_INSTALL%3Aappend%20%3D%20%22%20lksctp-tools%20u-boot-tools%20i2c-tools%22%3C%2FP%3E%3CP%3EWhen%20I%20build%20the%20image%20ls-image-main%20in%20both%20cases%2C%20image%20is%20getting%20built%20and%20generating%20the%20rootfs%20tar%20file.%20But%20the%20binaries%20related%20to%20these%20packages%20are%20nowhere%20present%20in%20the%20rootfs.%20Like%20i2c-tools%20should%20have%20i2cset%2C%20i2cget%20etc%20and%20u-boot-tools%20will%20have%20fw_printenv%2C%20fw_setenv%20and%20lksctp-tools%20will%20have%20checksctp.%20But%20none%20of%20these%20can%20be%20found%20anywhere%20in%20rootfs.%3CBR%20%2F%3EI%20can%20find%20these%20recipes%20in%20the%20pn-buildlist%20when%20i%20use%20bitbake%20-g%20ls-image-main%3C%2FP%3E%3CP%3EKindly%20help%20me%20with%20this%20issue.%3C%2FP%3E%3CP%3EThanks%20in%20Advance%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1987611%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Binaries%20not%20found%20in%20rootfs%20even%20after%20adding%20recipe%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1987611%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThanks%20for%20your%20information.%3C%2FP%3E%0A%3CP%3EYou%20need%20to%20add%20%22lksctp-tools-utils%22%20and%20%22u-boot-fw-utils%22%20in%20the%20list.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1987605%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Binaries%20not%20found%20in%20rootfs%20even%20after%20adding%20recipe%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1987605%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThis%20worked%20but%20I%20also%20added%20the%20same%20in%20IMAGE_INSTALL%3Aappend%20previously%2C%20guess%20it%20should%20be%20placed%20before%20%24%7BLAYERSCAPE_DEMO_SAMPLES%7D%3F%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F52411%22%20target%3D%22_blank%22%3E%40yipingwang%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1983450%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Binaries%20not%20found%20in%20rootfs%20even%20after%20adding%20recipe%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1983450%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3COL%3E%0A%3CLI%3EPlease%20remove%20i2c-tools%20in%20YOCTO-DEPENDS-LIST%20in%20sources%2Fmeta-nxp-desktop%2Frecipes-extended%2Fubuntu%2Fubuntu-base-image.inc%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CBR%20%2F%3E%0A%3COL%20start%3D%222%22%3E%0A%3CLI%3EPlease%20edit%20sources%2Fmeta-nxp-desktop%2Frecipes-fsl%2Fimages%2Fls-image-main.bb%20as%20the%20following.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EIMAGE_INSTALL%3Aappend%20%3D%20%22%20%5C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%24%7BLAYERSCAPE_NETWORK_TOOLS%7D%20%5C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20iperf2%20%5C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20makedevs%20lmsensors-sensors%20%5C%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20lksctp-tools%20lksctp-tools-utils%20u-boot-tools%20i2c-tools%20u-boot-fw-utils%20%5C%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%24%7BLAYERSCAPE_DEMO_SAMPLES%7D%20%5C%3C%2FP%3E%0A%3CP%3E%22%3C%2FP%3E%0A%3COL%20start%3D%223%22%3E%0A%3CLI%3E%24%20bitbake%20ls-image-main%3C%2FLI%3E%0A%3C%2FOL%3E%3C%2FLINGO-BODY%3E