Can't compile custom Kernel without patch or bbapend

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't compile custom Kernel without patch or bbapend

225 Views
lucaschettini
Contributor II

Hi,

we have a custom board based on iMX6Sx.
We pulled from official git and crate our branch (on our git server) of 4.9.11-1.0.0 kernel and crate a meta-custom meta layer.
We added to the ./fsl-release-bsp/source/ folder:

meta-custom/

meta-custom/conf/
meta-custom/conf/layer.conf
meta-custom/conf/machine
meta-custom/conf/machine/ourmachine.conf

meta-custom/recipes-bsp/
meta-custom/recipes-bsp/u-boot/
meta-custom/recipes-bsp/u-boot/u-boot-ourmachine_2017.03.bb

meta-custom/recipes-kernel/
meta-custom/recipes-kernel/linux/
meta-custom/recipes-kernel/linux/linux-ourmachine_4.9.11.bb
meta-custom/recipes-kernel/linux/linux-ourmachine-4.9.11/
meta-custom/recipes-kernel/linux/linux-ourmachine-4.9.11/defconfig

meta-custom/recipes-custom/
meta-custom/recipes-custom/images/
meta-custom/recipes-custom/images/ourmachine-image-develop.bb
meta-custom/recipes-custom/images/ourmachine-image-minimal.bb‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

We configure the build folder with:

DISTRO=fsl-imx-x11 MACHINE=ourmachine source fsl-setup-release.sh -b ./build

I've attached the ourmachine.conf / uboot bb / kernel bb / images

Now I want to bitabke the image and the kernel. I've start with bitbake linux-ourmachine but this fetch and compile the linux-imx recipes, and during do_compile, linux-imx obviously broke with:
ERROR: Task (/home/user/fsl-release-bsp/source/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.9.11.bb:do_compile) failed with exit code '1'
make[3]: *** No rule to make target 'arch/arm/boot/dts/ourmachine.dtb'. Stop.

In the imx-kernel our dts do not exist, but exist in our kernel!
Whatever I run bitbake, the linux-imx recipe is always executed, even when is not expected, and it crashes with the same error.

What I forgot to do? How can I compile my image and my kernel?

Thank you in advance and have a nice day

L.

BB_Version 1.32.0
Yocto Morty
Build System Ubuntu 14.04 x64

Labels (3)
0 Kudos
1 Reply

60 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello L.

The error is related to bitbake not being able to fund your .dtb.

It could be that your layer is not on the conf/bblayers.conf file inside the build directory and this it’s not considering these folders.

However, you mentions that the dts does exists in your kernel but not on imx-kernel, so it looks like your layer is being reachable. It is possible that since your kernel is requiring linux-imx-inc and linux-dtb.inc it is adding tasks from these includes. If you are not needing some of these tasks you could change this requirement.

I hope this helps,

Regards,

0 Kudos