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: [PATCH 0/2] Adding DTB's to architecture independent vmlinux
Date: Mon, 15 Nov 2010 20:01:19 -0800 [thread overview]
Message-ID: <cover.1289877715.git.dirk.brandewie@gmail.com> (raw)
From: Dirk Brandewie <dirk.brandewie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
This patch set adds support for linking an arbitrary number of device
tree blobs into the kernel image and allow passing the "compatible"
string for the platform on the kernel command line.
Patch 1/2:
modifies asm-generic/vmlinux.lds.h to add linking .dtb.init.rodata
sections into the .init.data section of the vmlinux image. modifies
scripts/Makefile.lib to add a kbuild command to compile DTS files to
device tree blobs and a rule to create objects to wrap the blobs for
linking into vmlinux.
A DTB is linked in by adding the DTB object to the list of objects to
be linked into vmlinux in the archtecture specific Makefile using
obj-y += dts/foo.dtb.o
$(obj)/%.dtb: $(src)/%.dts
$(call if_changed,dtc)
The location of the device tree DTS files is architecture specific.
Patch 2/2:
Adds a kernel command line option "dtb_compat=<string>" and functions
for architecture/platform specific code to retrieve the command line
string and locate the compatible DTB linked into the kernel
e.g.
compat_string = of_get_dtb_compatible_string();
compat_dtb = of_find_compatible_dtb(compat_string);
Changes from V4:
Patch to device tree compiler dropped, alignment done in DTB wrapper
object code.
Name of DTB section changed to .dtb.init.rodata from .dtb
Code cleanup in of_find_compatible_dtb() to remove redundant code and
improve readabiility.
Patch to arch/x86/kernel Makefile dropped from this set.
Dirk Brandewie (2):
of: Add support for linking device tree blobs into vmlinux
of/fdt: add kernel command line option for dtb_compat string
Documentation/kernel-parameters.txt | 7 ++++
drivers/of/fdt.c | 55 +++++++++++++++++++++++++++++++++++
include/asm-generic/vmlinux.lds.h | 19 +++++++++++-
include/linux/of_fdt.h | 5 +++
scripts/Makefile.lib | 17 +++++++++++
5 files changed, 101 insertions(+), 2 deletions(-)
--
1.7.2.3
next reply other threads:[~2010-11-16 4:01 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-16 4:01 dirk.brandewie-Re5JQEeQqe8AvxtiuMwx3w [this message]
[not found] ` <cover.1289877715.git.dirk.brandewie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-11-16 4:01 ` [PATCH 1/2] of: Add support for linking device tree blobs into vmlinux dirk.brandewie-Re5JQEeQqe8AvxtiuMwx3w
[not found] ` <ca5555dd665a668bf4e2b2256ccf4bb5d010cde1.1289877715.git.dirk.brandewie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-11-16 4:41 ` Grant Likely
[not found] ` <20101116044110.GA4074-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
2010-11-16 5:06 ` Dirk Brandewie
2010-11-16 5:17 ` Grant Likely
2010-11-16 5:17 ` Grant Likely
2010-11-16 5:28 ` Dirk Brandewie
2010-11-16 5:28 ` Dirk Brandewie
2010-11-16 6:10 ` Grant Likely
2010-11-16 6:10 ` Grant Likely
2010-11-16 4:01 ` [PATCH 2/2] of/fdt: add kernel command line option for dtb_compat string dirk.brandewie-Re5JQEeQqe8AvxtiuMwx3w
[not found] ` <bdb6f333aea69accf3ca3e74c1f01da0a8587aee.1289877715.git.dirk.brandewie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-11-16 6:32 ` Grant Likely
[not found] ` <20101116063253.GB4074-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
2010-11-16 13:50 ` Dirk Brandewie
[not found] ` <4CE28C32.3020807-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-11-17 0:12 ` Grant Likely
[not found] ` <AANLkTinwGh3HsLCfnfLLBHpu8UTy69JEYG17rkBn4nW4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-11-17 1:48 ` Dirk Brandewie
[not found] ` <4CE3346B.3000109-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-11-17 5:59 ` Grant Likely
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.1289877715.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.