From: Denys Dmytriyenko <denys@ti.com>
To: Rudolf Streif <rstreif@linuxfoundation.org>
Cc: meta-ti@yoctoproject.org
Subject: Re: Buidling for am335x_evm
Date: Fri, 4 Oct 2013 17:50:47 -0400 [thread overview]
Message-ID: <20131004215047.GD3672@edge> (raw)
In-Reply-To: <CA+gsK-ofzwiKXqVCQ-=_kcvZJu+aaWqa07-DgVYTh91VB70OvQ@mail.gmail.com>
On Fri, Oct 04, 2013 at 02:00:44PM -0700, Rudolf Streif wrote:
> Thanks, Denys. I appreciate your help.
You are very welcome.
> > FAT boot partition is no longer preferred place for kernel images and DTB
> > files - U-boot now wants to see them in /boot directory of the rootfs.
> >
> That is actually a good thing. But I assume one will still need the FAT
> partition for MLO and u-boot itself.
Correct, you still need FAT boot partition for MLO and u-boot.
> Unfortunately, the do_rootfs task does not put dtb or kernel into /boot yet.
You are just using the wrong image :)
core-image-minimal is not installing any kernel modules, hence no kernel
image and no kernel device trees.
Kernel image being pulled by default into /boot was there for long time. And I
pushed the patch earlier today for pulling device trees into /boot. But that
only happens when your image installs anything from the kernel, which
core-image-minimal doesn't do. Try core-image-base instead.
> > Ok, let's debug why you are not getting any DTB files produced. There
> > should
> > be at least 3 of them for the case of am335x-evm, as it covers EVM, EVM-SK
> > and
> > BeagleBone.
> >
> They are not created. I changed the machine to beaglebone to test. No
> dtb's created although the build process finishes without errors.
The machine is not the problem - the problem is the layer setup, as I
suspected... See below.
If you build for beaglebone, you'll only get DTB for beaglebone. If you build
for am335x-evm, you'll get 3 DTBs for EVM, EVM-SK and beaglebone, as I
mentioned before.
> > Can you show me your bblayers.conf file, please?
> >
>
> Of course:
>
> # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
> # changes incompatibly
> LCONF_VERSION = "6"
>
> BBPATH = "${TOPDIR}"
> BBFILES ?= ""
>
> BBLAYERS ?= " \
> /run/media/rudi/WDPassport-1T/develop/yocto/yocto-dylan/poky/meta \
> /run/media/rudi/WDPassport-1T/develop/yocto/yocto-dylan/poky/meta-yocto \
>
> /run/media/rudi/WDPassport-1T/develop/yocto/yocto-dylan/poky/meta-yocto-bsp \
> /run/media/rudi/WDPassport-1T/develop/yocto/yocto-dylan/bsp/meta-ti \
> "
So, I see the problem here - you placed meta-ti layer at the very bottom,
which prevents it from overriding any files in other layers. Specifically,
meta-ti has a newer linux-dtb.inc to handle in-tree compilation of DTBs and
the new syntax, which happened recently around 3.10-3.12 timeframe...
The way you set it up, you are not using linux-dtb.inc from meta-ti, but
instead using an old one from oe-core (poky/meta in your case). This
particular file has been updated in the master branch of OE-Core and Poky, but
not in Dylan, because Poky/Dylan was frozen on 3.8, like you said before.
We needed the newer one in Dylan, because we have 3.12 in there as well as in
the master.
So, the solution is to have meta-ti before meta. I'm also wondering why you
have meta-yocto and meta-yocto-bsp after meta, but I will leave that to Poky
maintainers... Also, if you have meta-yocto-bsp before meta-ti, you will have
issues with beagleboard machine and recipes in meta-ti, as both those BSP
layers define beagleboard machine. But you don't seem to use beagleboard now.
BTW, meta-yocto-bsp is a reference BSP, you don't need it if you have real BSP
So, I usually compose layer stack as follows:
* Distro
* Apps
* BSP
* Core
This way you have the most flexibility overriding different things in higher
layers from their originals in lower core layers.
In your case, Distro = meta-yocto, Apps is empty, BSP is meta-ti _and_
meta-yocto-bsp, and Core is meta. Try switching them around.
--
Denys
next prev parent reply other threads:[~2013-10-04 21:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-04 4:41 Buidling for am335x_evm Rudolf Streif
2013-10-04 5:33 ` Denys Dmytriyenko
2013-10-04 5:41 ` Denys Dmytriyenko
2013-10-04 17:29 ` Rudolf Streif
2013-10-04 18:23 ` Denys Dmytriyenko
2013-10-04 21:00 ` Rudolf Streif
2013-10-04 21:50 ` Denys Dmytriyenko [this message]
2013-10-05 0:32 ` Rudolf Streif
2013-10-05 16:46 ` Rudolf Streif
2013-10-05 18:05 ` Denys Dmytriyenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131004215047.GD3672@edge \
--to=denys@ti.com \
--cc=meta-ti@yoctoproject.org \
--cc=rstreif@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.