linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Building an uImage with appended DTB
@ 2015-11-25 16:16 Mason
  2015-11-25 16:38 ` Grant Likely
  0 siblings, 1 reply; 6+ messages in thread
From: Mason @ 2015-11-25 16:16 UTC (permalink / raw)
  To: linux-arm-kernel

Hello,

Per Russell's advice (IIRC) I have a script to generate a uImage
of a kernel with an appended DTB:

export LOADADDR=0x80008000
MAKE="make -j2 ARCH=arm"
$MAKE dtbs zImage && \
cat arch/arm/boot/zImage arch/arm/boot/dts/tango4-vantage-1172.dtb >zImage.tmp && \
mv zImage.tmp arch/arm/boot/zImage && \
$MAKE uImage

Russell's version uses an explicit mkimage instead of "MAKE uImage"
perhaps in part to get around the following limitation:

if there is nothing to be done, cat+mv will update arch/arm/boot/zImage
thus the uImage will be rebuilt even when it's not necessary.

Doesn't the top-level Makefile support a target to build a uImage
with appended DTB?

(I suppose someone has submitted a patch for that. Was it perhaps
never merged? Or did I just miss the feature?)

Something like this:
https://patchwork.kernel.org/patch/1133461/

Regards.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-11-27 17:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-25 16:16 Building an uImage with appended DTB Mason
2015-11-25 16:38 ` Grant Likely
2015-11-25 18:45   ` Russell King - ARM Linux
2015-11-25 22:41     ` Mason
2015-11-26  1:20       ` Russell King - ARM Linux
2015-11-27 17:23         ` Nicolas Pitre

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).