From: bones@secretlab.ca (John Bonesio)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC 0/2] Appended Device Tree
Date: Wed, 26 Jan 2011 13:22:51 -0800 [thread overview]
Message-ID: <20110126212220.6723.28773.stgit@riker> (raw)
This not intended to be merged. This is a request for comments on the approach
being taken.
The following series implements a prototype/proof of concept for allowing a
device-tree binary (dtb) to be appended to the end of zImage. The dtb can be
appended with a command like:
cat zImage myboard.dtb > zImage_w_dtb.
The purpose is to allow a single kernel to be built for multiple boards/systems
and allow a simple process to apply the right device tree right before the
kernel image is written into flash. This way the system that applies the
device tree doesn't have to have the full gnu compiler set installed.
The old behavior has not changed. If a dtb is not appended, the kernel will
still boot as expected.
The frst patch detects if a dtb is present at the end of the zImage and uses
it, if present. The second patch merges in a couple of key atags, if present,
into the appended device-tree, if found.
With the new kernel config option enabled, this patch adds 11400 bytes to
zImage. The kernel code itself doesn't change size.
The first patch in this series adds 96 bytes to zImage.
The second patch in this series adds 11304 bytes to zImage.
These numbers vary depending on the kernel version, probably due to alignment requirements.
---
John Bonesio (2):
ARM:boot:device tree: Allow the device tree binary to be appended to zImage
ARM:boot:device tree: Merge specific atags into the device tree
arch/arm/Kconfig | 7 ++++
arch/arm/boot/compressed/Makefile | 31 ++++++++++++++++---
arch/arm/boot/compressed/atags.c | 50 +++++++++++++++++++++++++++++++
arch/arm/boot/compressed/head.S | 59 ++++++++++++++++++++++++++++++++++++-
arch/arm/boot/compressed/misc.c | 58 +++++++++++++++++++++++++++++++++++-
5 files changed, 196 insertions(+), 9 deletions(-)
create mode 100644 arch/arm/boot/compressed/atags.c
--
Signature
next reply other threads:[~2011-01-26 21:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-26 21:22 John Bonesio [this message]
2011-01-26 21:23 ` [RFC 1/2] ARM:boot:device tree: Allow the device tree binary to be appended to zImage John Bonesio
2011-02-04 4:41 ` Nicolas Pitre
2011-01-26 21:23 ` [RFC 2/2] ARM:boot:device tree: Merge specific atags into the device tree John Bonesio
2011-02-04 4:44 ` Nicolas Pitre
2011-02-04 4: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=20110126212220.6723.28773.stgit@riker \
--to=bones@secretlab.ca \
--cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).