Re: [Fastboot] [CFT] ELF Relocatable x86 and x86_64 bzImages



On Mon, Jul 31, 2006 at 04:25:20PM -0400, Vivek Goyal wrote:
On Mon, Jul 31, 2006 at 10:19:04AM -0600, Eric W. Biederman wrote:

I have spent some time and have gotten my relocatable kernel patches
working against the latest kernels. I intend to push this upstream
shortly.

Could all of the people who care take a look and test this out
to make certain that it doesn't just work on my test box?

Hi Eric,

Currently I am testing your patches on i386. With CONFIG_RELOCATABLE=y
kernel boots fine and kexec also works.

But my kernel hangs on kexec on panic case. It hangs early in
decompress_kernel(). Kernel hangs at following condition.

+ if (((u32)output - CONFIG_PHYSICAL_START) & 0x3fffff)
+ error("Destination address not 4M aligned");


Ok. I am decompressing the kernel to 16MB and after reducing 1MB of
CONFIG_PHYSICAL_START I am left with 15MB which is not 4M aligned
hence I seems to be running into it.

I changed it to

if ((u32)output) & 0x3fffff)

and kdump kernel booted fine. But this will run into issues if I load
kernel at 1MB.

I got a dump question. Why do I have to load the kernel at 4MB alignment?
Existing kernel boots loads at 1MB, which is non 4MB aligned and it works
fine?

Thanks
Vivek
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [CFT] ELF Relocatable x86 and x86_64 bzImages
    ... I have spent some time and have gotten my relocatable kernel patches ... But my kernel hangs on kexec on panic case. ...
    (Linux-Kernel)
  • Re: [Fastboot] [CFT] ELF Relocatable x86 and x86_64 bzImages
    ... I have spent some time and have gotten my relocatable kernel patches ... Why do I have to load the kernel at 4MB alignment? ...
    (Linux-Kernel)
  • Re: Very high load on P4 machines with 2.4.28
    ... the machine with the highest load average is the ... a load of 0.75, pushing out 14Mbit/s. ... > increases your wait I/O time in this particular application. ... nothing that would suggest such change, but then I'm not a kernel hacker, I ...
    (Linux-Kernel)
  • Re: Dynamically loading binaries in Kernel mode.
    ... Right now only the kernel will load ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ...
    (microsoft.public.development.device.drivers)
  • Xorg xserver blank using one kernel, but ok using another
    ... because xorg.conf is the same whether it's runinng under Xen or a normal kernel. ... The main difference beteween the blank screen and the ok screen is that when the display works, I get "VESA VBE DDC supported" but when it goes blank I get "VESA VBE DDC not supported". ... # This file was generated by dexconf, the Debian X Configuration tool, using ... Load "bitmap" ...
    (Debian-User)