[meta-freescale] Questions on Yocto Linux Configuration

Otavio Salvador otavio.salvador at ossystems.com.br
Wed Sep 27 05:54:31 PDT 2017


Hello Phil,

On Fri, Sep 22, 2017 at 11:58 AM, Chapman, Phillip E (GE Healthcare)
<Philip.Chapman at med.ge.com> wrote:
> I am working with the Freescale DMS-BA16 BSP i.MX6 Q7 evaluation system and
> I would like to modify the Yocto kernel image, to include kernel header
> files, e.g.’kernel.h’, etc. I would like to do this so that I can write some
> simple kernel drivers, and the header files are of course, compiled with a
> ‘make’ command.
>
> The steps I followed are:
>
> Downloaded source code, from: repo init -u
> https://github.com/Freescale/fsl-community-bsp-platform -b krogoth
> Set up the build environment with: MACHINE=imx6q-dms-ba16 source
> ./setup-environment build-Q7
> Modifed the ‘local.conf’ configuration file and this is attached. I added in
> the facilty to include kernel headers, with ‘TOOCHAIN_TARGET_TASK_append = “
> kernel-devsrc”
> Build the kernel with ‘bitbake’: bitbake fsl-image-multimedia-full
>
>
>
> The kernel builds fine and boots on the hardware via an uSD card.
>
> The perplexing issue is that while there is a ‘kernel.h’ file in
> /usr/include, it appears to be a ‘stub’ containing 5 lines. The kernel.h
> file as observed on an Ubuntu machine is many times larger. Can you point me
> in the right direction

Please use Pyro for new developments. Krogoth is old ...

The addition of devsrc, in toolchain, does not goes for the image but
for the toolchain.

Do:

bitbake <image> -c populate_sdk

It should offer what you need.

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


More information about the meta-freescale mailing list