Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Starting network...
Date: Tue, 1 Sep 2015 21:14:12 +0200	[thread overview]
Message-ID: <20150901211412.5a71ae8e@free-electrons.com> (raw)
In-Reply-To: <944894A3EB1D044A9003B2F944389BB20474C3459F@svr-wa-exch1.atg.lc>

Hello,

On Tue, 1 Sep 2015 11:33:41 -0700, Lee, Tommy wrote:

> My system's dhcpcd command only enables the unexpected eth2 for networking with no problems. What I am expecting is that Eth0 and eth1 are initially enabled by my system boot process - one for corporate networking; other for local segment engineering work.
> 
> Reading your "Device Tree for Dummies" PDF, I rebuilt my zImage and armada-385-db-ap.dtb with the .config DTS settings as:
> 
> BR2_LINUX_KERNEL_DTS_SUPPORT=y
> # BR2_LINUX_KERNEL_USE_INTREE_DTS is not set
> BR2_LINUX_KERNEL_USE_CUSTOM_DTS=y
> BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="./output/build/linux-4.0.4/arch/arm/boot/dts/armada-385-db-ap.dts"
> 
> The make process ends up with an erratic message saying:
> 
> cp: './output/build/linux-4.0.4/arch/arm/boot/dts/armada-385-db-ap.dts' and '/home/tclee/Downloads/aug10mon15/buildroot-2015.05/output/build/linux-4.0.4/arch/arm/boot/dts/armada-385-db-ap.dts' are the same file
> make: *** [/home/tclee/Downloads/aug10mon15/buildroot-2015.05/output/build/linux-4.0.4/.stamp_built] Error 1

Yes, it does not make sense to use BR2_LINUX_KERNEL_USE_CUSTOM_DTS for
a Device Tree file that is inside the tree. You should be using
BR2_LINUX_KERNEL_USE_INTREE_DTS instead.

Basically, Buildroot supports two cases:

 * The Device Tree for your platform is part of the Linux kernel
   sources, i.e it is in arch/arm/boot/dts/ in your kernel tree. In
   this case, you should use BR2_LINUX_KERNEL_USE_INTREE_DTS=y, and
   then give only the name of that Device Tree (armada-385-gp). This is
   what you should be using.

 * The Device Tree for your platform is *not* part of the Linux kernel
   sources. It is available separately. In this case, you should use
   BR2_LINUX_KERNEL_USE_CUSTOM_DTS=y, and specify the full path to your
   Device Tree file.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2015-09-01 19:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-24 23:36 [Buildroot] Starting network Lee, Tommy
2015-08-25 17:54 ` Thomas Petazzoni
2015-09-01 18:33   ` Lee, Tommy
2015-09-01 19:14     ` Thomas Petazzoni [this message]
2015-09-01 22:03       ` Lee, Tommy
2015-09-01 22:12         ` Thomas Petazzoni
2015-09-01 22:36           ` Lee, Tommy
  -- strict thread matches above, loose matches on Subject: below --
2015-08-24 23:38 Lee, Tommy

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=20150901211412.5a71ae8e@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox