All of lore.kernel.org
 help / color / mirror / Atom feed
From: dirk.brandewie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	sodaville-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org
Cc: arjan-VuQAYsv1563Yd54FQh9/CA@public.gmane.org
Subject: [RFC] [PATCH V3 0/2] Adding DTB to architecture independent vmlinux
Date: Wed, 10 Nov 2010 10:52:36 -0800	[thread overview]
Message-ID: <cover.1289411770.git.dirk.brandewie@gmail.com> (raw)

From: Dirk Brandewie <dirk.brandewie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

These patches add support for linking device tree blob(s) into
vmlinux.

The changes since V2:
patch has been split into architecture independent and x86 specific
parts.

The DTB's have been moved into the .init.data section.

The DTB's linked into vmlinux is controlled by kernel config
variables. Specifying the DTB on the make command line is gone.

Linking multiple DTB's into image is supported. (suggested by David
VomLehn and refined with the help of HPA and Grant Likely)

Specific issues I would like feed back on:
Is the padding added on the dtc invocation needed since the paltform
code will have to copy the tree out of the init section?

Setting $(dtstree) in the arch specific makefile is required is there
a better write the cmd_dtc in Makefile.lib?

Things on the TODO list:
[generic]
Pass DTB name/compatible string on the kernel command line.
Add funciton to find "compatible" root node in the set of DTB's linked
in.
[x86]
Add function to relocate DTB whose address is passed in via setup_data
ala init_rd.

Comments/Suggestions?

Dirk Brandewie (2):
  of: Add support for linking device tree blobs into vmlinux
  x86/of:  Support building device tree blob(s) into image.

 arch/x86/Kconfig                  |    6 +++++-
 arch/x86/boot/dts/Kconfig         |    8 ++++++++
 arch/x86/kernel/Makefile          |   11 +++++++++++
 include/asm-generic/vmlinux.lds.h |   12 ++++++++++++
 init/Kconfig                      |    7 +++++++
 scripts/Makefile.lib              |   14 ++++++++++++++
 6 files changed, 57 insertions(+), 1 deletions(-)
 create mode 100644 arch/x86/boot/dts/Kconfig

-- 
1.7.2.3

             reply	other threads:[~2010-11-10 18:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-10 18:52 dirk.brandewie-Re5JQEeQqe8AvxtiuMwx3w [this message]
     [not found] ` <cover.1289411770.git.dirk.brandewie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-11-10 18:46   ` [sodaville] [RFC] [PATCH V3 0/2] Adding DTB to architecture independent vmlinux H. Peter Anvin
     [not found]     ` <4CDAE874.1000707-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2010-11-10 19:06       ` Dirk Brandewie
     [not found]         ` <4CDAED3C.6010304-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-11-10 18:53           ` H. Peter Anvin
     [not found]             ` <4CDAEA26.6040206-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2010-11-10 18:55               ` Grant Likely
     [not found]                 ` <AANLkTimgLO0vAQiF4uwHkHnz7SHxiq+KD2iUYV_Y8-Fk-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-11-10 21:33                   ` Dirk Brandewie
2010-11-10 18:52   ` [PATCH 1/3] of: Add support for linking device tree blobs into vmlinux dirk.brandewie-Re5JQEeQqe8AvxtiuMwx3w
2010-11-10 18:52   ` [PATCH 2/3] x86/of: Support building device tree blob(s) into image dirk.brandewie-Re5JQEeQqe8AvxtiuMwx3w

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=cover.1289411770.git.dirk.brandewie@gmail.com \
    --to=dirk.brandewie-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=arjan-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    --cc=sodaville-hfZtesqFncYOwBW4kG4KsQ@public.gmane.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.