On Tue, Jun 14 2011, Nicolas Pitre wrote:
+ } 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
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.