Compile fmc (Frame Manager Configuration tool) into windriver linux image

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

Compile fmc (Frame Manager Configuration tool) into windriver linux image

Jump to solution
2,963 Views
Tao2022
Contributor III

Hi,

   I am trying to add fmc (Frame Manager Configuration tool) into my Windriver Linux image built for ls1043a. The recipe file already exists at QorIQ layer (WindRiver/layers/meta-freescale/dynamic-layers/openembedded-layer/recipes-dpaa/fmc/fmc_git.bb). I add following line to my image bbappend file: 
PACKAGE_INSTALL:append = " fmc"

Then I am getting following compile error:
---------------------------------------

NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'lib32-fmc' (but virtual:multilib:lib32: bitbake_build/../src/meta/meta-core/recipes-image/images/image-rescue.bb RDEPENDS on or otherwise requires it)
lib32-fmc was skipped: You are about to enable third-party components, there is additional third-part licensing involved, and you might need to consult with your legal department.

NOTE: Runtime target 'lib32-fmc' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['lib32-fmc']
ERROR: Required build target 'csrp' has no buildable providers.
Missing or unbuildable dependency chain was: ['csrp', 'lib32-image-rescue', 'lib32-fmc']

Summary: There were 2 ERROR messages, returning a non-zero exit code.
-----------------------------------------------------------------------

My question would be:
1) is this caused by improper bb file or bbapend file? or is it caused by not enabling the 3rd-party component (fmc)?

2) How do I fix it in either way?

I have spent couple of days on this, tried lot of things, but none works. Any hint of pointing of direction will be deeply appreciated.

Tags (3)
0 Kudos
Reply
1 Solution
2,849 Views
Tao2022
Contributor III

I found the solution, post it here in case someone has similar issue like I did.

To add fmc into your image, add following lines to you yocto/local.conf:

CUSTOMER_RECIPES:freescale-layer += 'fmc'

CUSTOMER_RECIPES:freescale-layer += 'fmlib'

CUSTOMER_RECIPES:freescale-layer += 'tclap'

 

View solution in original post

0 Kudos
Reply
7 Replies
2,850 Views
Tao2022
Contributor III

I found the solution, post it here in case someone has similar issue like I did.

To add fmc into your image, add following lines to you yocto/local.conf:

CUSTOMER_RECIPES:freescale-layer += 'fmc'

CUSTOMER_RECIPES:freescale-layer += 'fmlib'

CUSTOMER_RECIPES:freescale-layer += 'tclap'

 

0 Kudos
Reply
2,946 Views
yipingwang
NXP TechSupport
NXP TechSupport

LS1043A is ARM64 architecture, in your build it is searching for 32 bit libs. It seems that there is problem with your recipes.

Is your Yocto SDK provided by Windriver? If yes, please contact Windriver to fix this problem.

0 Kudos
Reply
2,935 Views
Tao2022
Contributor III
Right, I thought it's the recipe issue as well. But if I copied the fmc recipes (include its support library fmlib) to higher layer (my meta layer), the build will pass and add fmc to /usr/bin. So it seems the recipes are fine.
0 Kudos
Reply
2,916 Views
yipingwang
NXP TechSupport
NXP TechSupport

It seems the error is caused by recipe image-rescue.bb which comes from WindRiver, please ask them to fix this problem.

0 Kudos
Reply
2,909 Views
Tao2022
Contributor III

No, image-rescue.bb is my own recipe file to add fmc into my kernel image. I should have nothing to do with fmc.
To make it simple, I just run "./bitbake fmc", then I get following error

ERROR: Nothing PROVIDES 'fmc'
fmc was skipped: You are about to enable third-party compnents, this is additional third-part licensing involved....

0 Kudos
Reply
2,862 Views
yipingwang
NXP TechSupport
NXP TechSupport

The problem is caused by your build option "virtual:multilib:lib32:", which makes fmc building as a 32bit lib. It should be built as a ARM 64bit binary.

0 Kudos
Reply
2,833 Views
yipingwang
NXP TechSupport
NXP TechSupport

Thanks for your information.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1984145%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ECompile%20fmc%20(Frame%20Manager%20Configuration%20tool)%20into%20windriver%20linux%20image%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1984145%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3BI%20am%20trying%20to%20add%20fmc%20(Frame%20Manager%20Configuration%20tool)%20into%20my%20Windriver%20Linux%20image%20built%20for%20ls1043a.%20The%20recipe%20file%20already%20exists%20at%20QorIQ%20layer%20(WindRiver%2Flayers%2Fmeta-freescale%2Fdynamic-layers%2Fopenembedded-layer%2Frecipes-dpaa%2Ffmc%2Ffmc_git.bb).%20I%20add%20following%20line%20to%20my%20image%20bbappend%20file%3A%26nbsp%3B%3CBR%20%2F%3EPACKAGE_INSTALL%3Aappend%20%3D%20%22%20fmc%22%3CBR%20%2F%3E%3CBR%20%2F%3EThen%20I%20am%20getting%20following%20compile%20error%3A%3CBR%20%2F%3E---------------------------------------%3C%2FP%3E%3CP%3ENOTE%3A%20Resolving%20any%20missing%20task%20queue%20dependencies%3CBR%20%2F%3EERROR%3A%20%3CSTRONG%3E%3CFONT%20color%3D%22%23FF0000%22%3ENothing%20RPROVIDES%20'lib32-fmc'%3C%2FFONT%3E%3C%2FSTRONG%3E%20(but%20virtual%3Amultilib%3Alib32%3A%20bitbake_build%2F..%2Fsrc%2Fmeta%2Fmeta-core%2Frecipes-image%2Fimages%2Fimage-rescue.bb%20RDEPENDS%20on%20or%20otherwise%20requires%20it)%3CBR%20%2F%3E%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3Elib32-fmc%20was%20skipped%3A%20You%20are%20about%20to%20enable%20third-party%20components%2C%20there%20is%20additional%20third-part%20licensing%20involved%2C%20and%20you%20might%20need%20to%20consult%20with%20your%20legal%20department.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSTRONG%3E%3C%2FFONT%3E%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3ENOTE%3A%20Runtime%20target%20'lib32-fmc'%20is%20unbuildable%2C%20removing...%3C%2FSTRONG%3E%3C%2FFONT%3E%3CBR%20%2F%3EMissing%20or%20unbuildable%20dependency%20chain%20was%3A%20%5B'lib32-fmc'%5D%3CBR%20%2F%3EERROR%3A%20Required%20build%20target%20'csrp'%20has%20no%20buildable%20providers.%3CBR%20%2F%3EMissing%20or%20unbuildable%20dependency%20chain%20was%3A%20%5B'csrp'%2C%20'lib32-image-rescue'%2C%20'lib32-fmc'%5D%3C%2FP%3E%3CP%3ESummary%3A%20There%20were%202%20ERROR%20messages%2C%20returning%20a%20non-zero%20exit%20code.%3CBR%20%2F%3E-----------------------------------------------------------------------%3C%2FP%3E%3CP%3EMy%20question%20would%20be%3A%3CBR%20%2F%3E1)%20is%20this%20caused%20by%20improper%20bb%20file%20or%20bbapend%20file%3F%20or%20is%20it%20caused%20by%20not%20enabling%20the%203rd-party%20component%20(fmc)%3F%3CBR%20%2F%3E%3CBR%20%2F%3E2)%20How%20do%20I%20fix%20it%20in%20either%20way%3F%3C%2FP%3E%3CP%3EI%20have%20spent%20couple%20of%20days%20on%20this%2C%20tried%20lot%20of%20things%2C%20but%20none%20works.%20Any%20hint%20of%20pointing%20of%20direction%20will%20be%20deeply%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1988429%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Compile%20fmc%20(Frame%20Manager%20Configuration%20tool)%20into%20windriver%20linux%20image%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1988429%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThanks%20for%20your%20information.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1988181%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Compile%20fmc%20(Frame%20Manager%20Configuration%20tool)%20into%20windriver%20linux%20image%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1988181%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20found%20the%20solution%2C%20post%20it%20here%20in%20case%20someone%20has%20similar%20issue%20like%20I%20did.%3CBR%20%2F%3E%3CBR%20%2F%3ETo%20add%20fmc%20into%20your%20image%2C%20add%20following%20lines%20to%20you%20yocto%2Flocal.conf%3A%3C%2FP%3E%3CP%3ECUSTOMER_RECIPES%3Afreescale-layer%20%2B%3D%20'fmc'%3C%2FP%3E%3CP%3ECUSTOMER_RECIPES%3Afreescale-layer%20%2B%3D%20'fmlib'%3C%2FP%3E%3CP%3ECUSTOMER_RECIPES%3Afreescale-layer%20%2B%3D%20'tclap'%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1987602%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Compile%20fmc%20(Frame%20Manager%20Configuration%20tool)%20into%20windriver%20linux%20image%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1987602%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThe%20problem%20is%20caused%20by%20your%20build%20option%20%22%3CSPAN%3Evirtual%3Amultilib%3Alib32%3A%22%2C%20which%20makes%20fmc%20building%20as%20a%2032bit%20lib.%20It%20should%20be%20built%20as%20a%20ARM%2064bit%20binary.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1985559%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Compile%20fmc%20(Frame%20Manager%20Configuration%20tool)%20into%20windriver%20linux%20image%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1985559%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ENo%2C%20image-rescue.bb%20is%20my%20own%20recipe%20file%20to%20add%20fmc%20into%20my%20kernel%20image.%20I%20should%20have%20nothing%20to%20do%20with%20fmc.%3CBR%20%2F%3ETo%20make%20it%20simple%2C%20I%20just%20run%20%22.%2Fbitbake%20fmc%22%2C%20then%20I%20get%20following%20error%3CBR%20%2F%3E%3CBR%20%2F%3E%3CFONT%20color%3D%22%23FF0000%22%3EERROR%3A%20Nothing%20PROVIDES%20'fmc'%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20color%3D%22%23FF0000%22%3Efmc%20was%20skipped%3A%20You%20are%20about%20to%20enable%20third-party%20compnents%2C%20this%20is%20additional%20third-part%20licensing%20involved....%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1985401%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Compile%20fmc%20(Frame%20Manager%20Configuration%20tool)%20into%20windriver%20linux%20image%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1985401%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIt%20seems%20the%20error%20is%20caused%20by%20recipe%26nbsp%3B%3CSPAN%3Eimage-rescue.bb%20which%20comes%20from%20WindRiver%2C%20please%20ask%20them%20to%20fix%20this%20problem.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1984744%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Compile%20fmc%20(Frame%20Manager%20Configuration%20tool)%20into%20windriver%20linux%20image%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1984744%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERight%2C%20I%20thought%20it's%20the%20recipe%20issue%20as%20well.%20But%20if%20I%20copied%20the%20fmc%20recipes%20(include%20its%20support%20library%20fmlib)%20to%20higher%20layer%20(my%20meta%20layer)%2C%20the%20build%20will%20pass%20and%20add%20fmc%20to%20%2Fusr%2Fbin.%20So%20it%20seems%20the%20recipes%20are%20fine.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1984350%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Compile%20fmc%20(Frame%20Manager%20Configuration%20tool)%20into%20windriver%20linux%20image%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1984350%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ELS1043A%20is%20ARM64%20architecture%2C%20in%20your%20build%20it%20is%20searching%20for%2032%20bit%20libs.%20It%20seems%20that%20there%20is%20problem%20with%20your%20recipes.%3C%2FP%3E%0A%3CP%3EIs%20your%20Yocto%20SDK%20provided%20by%20Windriver%3F%20If%20yes%2C%20please%20contact%26nbsp%3BWindriver%20to%20fix%20this%20problem.%3C%2FP%3E%3C%2FLINGO-BODY%3E