Re: [RFC] bootwrapper: prevent fdt from being overwritten by kernel
From: Mark A. Greer <hidden>
Date: 2006-10-31 23:02:01
From: Mark A. Greer <hidden>
Date: 2006-10-31 23:02:01
On Mon, Oct 30, 2006 at 03:16:57PM +1100, Paul Mackerras wrote:
Mark A. Greer writes:quoted
In addition, I moved the vmlinux elf header decompress code from prep_kernel() to its own routine and called it before platform_init. I then pass the elf header ptr into platform_init. That way, platform_init can figure out where the end of the kernel will be and put the dtb beyond it. The OF code can now change claim_base in platform_init instead of needing the platform_ops.image_hdr hook.Hmmm. What if platform_init needs to e.g. turn on caches or do other things that need to be done before decompressing? I think it's important to provide some way for the platform code to do things really early on.
Good point. I'll make a separate hook so it'll be platform_init, then get_elfheader, then call new hook, then open console & do the rest. Mark