[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1400888507-11637-1-git-send-email-khilman@linaro.org>
Date: Fri, 23 May 2014 16:41:47 -0700
From: Kevin Hilman <khilman@...aro.org>
To: linux-arm-kernel@...ts.infradead.org, devicetree@...r.kernel.org
Cc: Arnd Bergmann <arnd@...db.de>, Olof Johansson <olof@...om.net>,
linaro-kernel@...ts.linaro.org, Nicolas Pitre <nico@...aro.org>,
Stephen Warren <swarren@...dotorg.org>,
Thomas Petazzoni <thomas.petazzoni@...e-electrons.com>,
Michal Marek <mmarek@...e.cz>,
linux-kbuild@...r.kernel.org (open list:KERNEL BUILD + fi...),
linux-kernel@...r.kernel.org (open list)
Subject: [PATCH] scripts/dtc: pad DTBs to facilitate later modification
By default, add some padding to the DT blobs to facilitate later
patching.
An example need for DTB patching is the need to modifiy the command
line on platforms where ATAGS are not (or cannot) be used to pass the
commandline. For example, we do not support a big-endian kernel
reading ATAGS from a little-endian u-boot, so the only way to pass a
command line in the DT.
Also, without ATAG support (or if u-boot was built without
CONFIG_INITRD_TAG) the only way to pass an initrd is by adding an
initrd= option to command line (in the DT).
Therefore, to facilitate adding to the DT command line directly in the
DTB, add some padding.
Cc: Nicolas Pitre <nico@...aro.org>
Cc: Stephen Warren <swarren@...dotorg.org>
Cc: Thomas Petazzoni <thomas.petazzoni@...e-electrons.com>
Signed-off-by: Kevin Hilman <khilman@...aro.org>
---
I kinda pulled 64 bytes out of the air here since it's enough to add
some common things to the commandline like debug, earlyprink
initrd=<addr>,<size>, etc., but I'm certainlly not opposed to more
padding.
scripts/Makefile.lib | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 6a5b0decb797..d7a57c2620f3 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -264,7 +264,7 @@ $(obj)/%.dtb.S: $(obj)/%.dtb
quiet_cmd_dtc = DTC $@
cmd_dtc = $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
- $(objtree)/scripts/dtc/dtc -O dtb -o $@ -b 0 \
+ $(objtree)/scripts/dtc/dtc -O dtb -o $@ -b 0 -p 64 \
-i $(dir $<) $(DTC_FLAGS) \
-d $(depfile).dtc.tmp $(dtc-tmp) ; \
cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)
--
1.9.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists