Skip to content

patches to allow DTB to be appended to the ARM zImage

David Brown 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

Review

Quoted 6 lines · Nicolas Pitre
(quoted diff) +6 -0
+		} else if (atag->hdr.tag == ATAG_MEM) {
+			uint32_t mem_reg_property[2];
+			mem_reg_property[0] = cpu_to_fdt32(atag->u.mem.start);
+			mem_reg_property[1] = cpu_to_fdt32(atag->u.mem.size);
+			setprop(dt, "/memory", "reg", mem_reg_property,
+			           sizeof(mem_reg_property));

Hopefully, I'll be able to get zImages working on MSM8x60 today, and I can test this. I think the above might need some work to handle multiple ATAG_MEM attributes (our memory isn't contiguous). I can look at this once I get it working.

Does this mean that merging appended DTB and atags requires using a compressed kernel? It seems that several years ago, someone tested the decompressor on a slow MSM and decided to boot from the uncompressed image, and nobody has bothered with the compressed image. I don't think it is a problem to require zImage for this case, though.

David

Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.