Hi, All
I build the board s32g274ardb2, it can make the image. Now I want to add new layer to project, so I setup the new layaer meta-mylayer, I create the .bb .c and makefile.
Then I add the meta-mylayer path to bblayers.conf.
Then I build fsl-image-auto, I test it , the code about the layer does not work.
I search the question, I need to add the layer to the image. I do not find hello.ko ,so I think it needs some steps, what should I do to add the layer to image?
I upload the meta-mylayer and build configuration.
解決済! 解決策の投稿を見る。
Hi,
I add my-mod into the fsl-image-auto.bb ,it works.
And it has IMAGE_INSTALL += "openssl-misc in it.
Hi Ada Ma
Hope you are doing well.
I think this is yocto related. You can use external Linux Kernel Module for same. Please refer this link
Hope this will help you
Thanks & Regards
Tushar
Hi Ada Ma
I think in newer versions for yocto, syntax may be changed. You can try
IMAGE_INSTALL:append instead of IMAGE_INSTALL_append
for more information for syntax please see your yocto version. i mean Honister , Hardknott , Gatesgarth , Dunfell , Zeus or else
if you dont know how to see, use below
vim $POKY-DIR/meta-poky/conf/distro/poky.conf
You will get info like:
DISTRO = "poky"
DISTRO_NAME = "Poky (Yocto Project Reference Distro)"
DISTRO_VERSION = "2.7.2"
DISTRO_CODENAME = "warrior"
SDK_VENDOR = "-pokysdk"
SDK_VERSION = "${@d.getVar('DISTRO_VERSION').replace('snapshot-${DATE}', 'snapshot')}"
.....
.....
and then search in yocto project reference manual of that version. you can find proper syntax
Regards ,
Tushar
Hi,Tushar
I IMAGE_INSTALL:append instead of IMAGE_INSTALL_append , it also has errors.
Hi Ada
Now you are getting error is different issue, it may not depend on I IMAGE_INSTALL:append.I am again saying this is yocto related issue. we recommends you to go with yocto community.
I have followed same link which i have shared with you. and i getting success to yocto build.and hello.ko is also built. below is my steps which i have followed
bitbake-layers create-layer ../sources/meta-mylayer
bitbake-layers add-layer ../sources/meta-mylayer
cd ../sources/meta-mylayer/
rm -rf recipes-example/
mkdir recipes-pmu
cd recipes-pmu/
cp -fvR ../../../sources/poky/meta-skeleton/recipes-kernel/hello-mod .
cd hello-mod/
mv hello-mod/ my-mod/
cd my-mod/
mv hello-mod_0.1.bb my-mod_0.1.bb
vi ../../../build_s32g274ardb2/conf/local.conf ( Added IMAGE_INSTALL_append = " my-mod")
bitbake fsl-image-auto
yocto build sucess without any error
hello.ko
I think you may be missed some steps from links. you can rebuild again with proper caution.
I have attached mylayer zip file . you can also compare it with yours.
Thanks & Regards,
Tushar
Hi,Tushar
I copy your files and put in to ./source but it still has errors.
I compare the files , layer.conf is different, others are same. Then I set up the new layer referencing your steps, it reports the same error.
I put the location in the picture, I do not know what it is wrong,please help me check it.
Hi Ada
One things may be with you.i am not sure . Did you made any change in any file or any .bb file ?
The erro you are getting
Missing or unbuildable dependency chain was: ['fsl-image-auto', 'openssl-miscmy-mod']
means your image fsl-image-auto is depending/appending on openssl-miscmy-mod named package or .bb file. do you have any recipe file named as openssl-miscmy-mod ? i think there are no any like named file. did you made any mistake in file at /bsp-auto/sources/meta-alb/recipes-fsl/images/fsl-image-auto.bb ? i open that file and i am seen there package as named openssl-misc
# Supporting complex evaluation scenarios
IMAGE_INSTALL += "openssl-misc"
did you change this ?
if you not finding then please search for openssl-miscmy-mod as
~/bsp-auto/sources/meta-alb$ grep -nr openssl-miscmy-mod
you will find . open this and correct
Hope this will helps you
Thanks & Regards
Tushar
Hi,
I add my-mod into the fsl-image-auto.bb ,it works.
And it has IMAGE_INSTALL += "openssl-misc in it.
Hi Ada
that's good problem has been solved. did you find root cause of issue for the error you was getting "Missing or unbuildable dependency chain was: ['fsl-image-auto', 'openssl-miscmy-mod']" ? tell us the steps to regenerate that issue
i had tried to regenerate the issue as you was getting . but i was not getting issue like you have. commonly such type of issue is generated as i explain in my previous post . so that to regenerate issue i have replaced manually "openssl-miscmy-mod" instead of "openssl-misc" in fsl-image-auto.bb as below
and i got gendered as same error as you was getting.
Thanks & regards ,
Tushar