[meta-freescale] How to add custom device tree files to yocto

Otavio Salvador otavio at ossystems.com.br
Tue Jul 2 05:16:23 PDT 2013


On Tue, Jul 2, 2013 at 2:59 AM, Mårten Wikman <marten.wikman at novia.fi> wrote:
> Hello,
>
> I'm using a custom board with  i.MX287 CPU and I have created my own custom
> BSP-layer (it's really just a copy of the meta-fsl-arm at the moment).
> However I'm having problems with getting Yocto to include my customized
> device tree file.
>
> I have created my own configurationfile under meta-myownbsp/conf/machine/
> and changed KERNEL_DEVICETREE =
> "${S}/git/arch/arm/boot/dts/myownbsp_mx28.dts"

Use ${WORKDIR}/myownbsp_mx28.dts, it should work.

> I have put myownbsp_mx28.dts under
> meta-myownbsp/recipes-kernel/linux/linux-fslc/git/arch/arm/boot/dts/. In
> linux-fslc/linux-fslc.inc I have put myownbsp_mx28.dts in SRC_URI like this:
>
> SRC_URI = "git://github.com/Freescale/linux-mainline.git \
>            file://defconfig \
>            file://git/arch/arm/boot/dts/myownbsp_mx28.dts"
>
> myownbsp_mx28.dts shows up in
> build/tmp/work/myownbsp_mx28-poky-linux-gnueabi/linux-fslc/3.9+gitAUTOINC+3a1e70d102-r0/git/arch/arm/boot/dts/.
>
> I have also changed MACHINE in conf/local.conf so it uses myownbsp instead
> of imx28_evk. When I run "bitbake core-image-minimal" the device tree file
> does not show up in build/tmp/deploy/images/ like it does when I'm running
> the original mx28_evk configuration.
>
> I'm sure it's just a small step somewhere that I'm missing but I haven't
> been able to find it yet, can anybody help me with this?

Check the comment above; I hope it does the trick.


--
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the meta-freescale mailing list