Skip to content

patches to allow DTB to be appended to the ARM zImage

Russell King - ARM Linux linux-arm-kernel linux-arm-msm linux-devicetree 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 3 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] patches to allow DTB to be appended to the ARM zImage
Quoted 24 lines · Shawn Guo
Quoted 16 lines · Russell King - ARM Linux
Quoted 11 lines · Nicolas Pitre

This is a resend of those patches with fixups after the latest changes in mainline.

[PATCH 1/3] ARM: zImage: ensure it is always a multiple of 64 bits in size This one is new and trivial.

[PATCH 2/3] ARM: zImage: Allow the appending of a device tree binary Mostly John Bonesio's version with some adjustments and cleanups.

[PATCH 3/3] ARM: zImage: make sure appended DTB doesn't get overwritten by kernel .bss New, simpler alternative to Tony Lindgren's version.

One thing which has been bugging me for some time is that the DT stuff completely overrides the ATAGs. This is wrong with solutions like this.

Quoted 7 lines

We have a set of perfectly good boot loaders which provide correct information to the kernel via ATAGs. If we start moving everything over to DT, then we run into a problem because the ATAGs are ignored - stuff such as the RAM size and command line passed from the boot loader will be entirely ignored, instead these having to be encoded into the kernel at build time.

Quoted 3 lines

What u-boot does right now is replacing the parameters in dtb with its for those it's interested in, for example command line is one, before it passes dtb to kernel.

What if your platform doesn't use uboot?