On 2012-12-29 02:58, Robert P. J. Day wrote:
On Fri, 28 Dec 2012, Gary Thomas wrote:

On 2012-12-27 23:40, Lai Eddy wrote:
Thanks Gary,

after download and extract the ti cortex A8 BSP . there's only binary image
inside, what MACHINE to use to build a beagleboard yocto image?

MACHINE="beagleboard"

Why does this matter?  You asked about how to set up *your* BSP to have
a tailored network interface file.  All you need to do is pattern your
setup after the beagleboard one, as quoted.

n.b. please don't top-post :-(


On 2012-12-25 16:31, Lai Eddy wrote:

     in the "Reference Manual "How do I make sure connected network
interfaces are brought up by default?" said 2 files need to be added to
enable network interfaces, where can I find
     template files?
     
------------------------------__------------------------------__------------------------------__-----------------
     The default interfaces file provided by the netbase recipe does not
automatically bring up network interfaces. Therefore, you will need to add a
BSP-specific netbase that includes
     an interfaces file.
     For example, add the following files to your layer:
            meta-MACHINE/recipes-bsp/__netbase/netbase/MACHINE/__interfaces
            meta-MACHINE/recipes-bsp/__netbase/netbase_5.0.bbappend
     
------------------------------__------------------------------__------------------------------__------------------


Look in meta-ti (git://git.yoctoproject.org/__meta-ti
<http://git.yoctoproject.org/meta-ti>):
$ find meta-ti/recipes-core/netbase/
meta-ti/recipes-core/netbase/
meta-ti/recipes-core/netbase/__netbase-5.0
meta-ti/recipes-core/netbase/__netbase-5.0/beagleboard
meta-ti/recipes-core/netbase/__netbase-5.0/beagleboard/__interfaces
meta-ti/recipes-core/netbase/__netbase_5.0.bbappend

   i'm not sure where your "__" prefixes are coming from, but i know
i've pointed out before that meta-ti's netbase_5.0.bbappend file seems
to be broken.  currently, on dev branch, it contains:

THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:"

   that value for FILESPATH is incorrect -- because the directory name
for the "interfaces" file in meta-ti is netbase-5.0 (not simply
netbase), it will *not* be picked up; rather, the default "interfaces"
file from oe-core will be pulled in.

   using bitbake-env, you can *see* the FILESPATH value that's used
when building for beagle using meta-ti:

$ bitbake-env -r netbase FILESPATH | tr : '\n'
Parsing recipes..WARNING: No recipes available for:

/home/rpjday/oe/dist/layers/meta-ti/recipes-graphics/mesa/mesa-dri_8.0.4.bbappend
done.
# FILESPATH="${@base_set_filespath(["${THISDIR}/${PN}"], d)}
${@base_set_filespath(["${FILE_DIRNAME}/${BP}",
"${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
FILESPATH="/home/rpjday/oe/dist/layers/meta-ti/recipes-core/netbase/netbase/arm
/home/rpjday/oe/dist/layers/meta-ti/recipes-core/netbase/netbase/beagleboard
/home/rpjday/oe/dist/layers/meta-ti/recipes-core/netbase/netbase/omap3
/home/rpjday/oe/dist/layers/meta-ti/recipes-core/netbase/netbase/armv7a
/home/rpjday/oe/dist/layers/meta-ti/recipes-core/netbase/netbase/
/home/rpjday/oe/dist/layers/meta-ti/recipes-core/netbase/netbase/
/home/rpjday/oe/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/arm
/home/rpjday/oe/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/beagleboard
/home/rpjday/oe/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/omap3
/home/rpjday/oe/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/armv7a
/home/rpjday/oe/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/
/home/rpjday/oe/dist/layers/oe-core/meta/recipes-core/netbase/netbase-5.0/
/home/rpjday/oe/dist/layers/oe-core/meta/recipes-core/netbase/netbase/arm
/home/rpjday/oe/dist/layers/oe-core/meta/recipes-core/netbase/netbase/beagleboard
/home/rpjday/oe/dist/layers/oe-core/meta/recipes-core/netbase/netbase/omap3
/home/rpjday/oe/dist/layers/oe-core/meta/recipes-core/netbase/netbase/armv7a
/home/rpjday/oe/dist/layers/oe-core/meta/recipes-core/netbase/netbase/
/home/rpjday/oe/dist/layers/oe-core/meta/recipes-core/netbase/netbase/
/home/rpjday/oe/dist/layers/oe-core/meta/recipes-core/netbase/files/arm
/home/rpjday/oe/dist/layers/oe-core/meta/recipes-core/netbase/files/beagleboard
/home/rpjday/oe/dist/layers/oe-core/meta/recipes-core/netbase/files/omap3
/home/rpjday/oe/dist/layers/oe-core/meta/recipes-core/netbase/files/armv7a
/home/rpjday/oe/dist/layers/oe-core/meta/recipes-core/netbase/files/
/home/rpjday/oe/dist/layers/oe-core/meta/recipes-core/netbase/files/"
$

   you can see that FILESPATH doesn't include the very directory in
meta-ti that contains the overriding beagleboard "interfaces" file.

   or am i horribly misunderstanding something here?

I agree that file is incorrect.  I simply quoted its use as it is the only
example in a commonly available layer.  I'll send a patch for the meta-ti
file and hopefully they'll fix it.

Here's what I use in my own layers [which are not public, sorry]
  $ cat meta-some-target/recipes-core/netbase/netbase_5.0.bbappend
  FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
  PACKAGE_ARCH = "${MACHINE_ARCH}"

This will pick up the interfaces file from 
".../meta-some-target/recipes-core/netbase/netbase-5.0/${MACHINE}/interfaces"

As for the "__" scattered in the email - those crept in with Eddy's reply.

--
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to