Re: [PATCH 1/2] Fix kexec on powerpc32

2010-05-13 Thread Christian Kujau
On Thu, 13 May 2010 at 15:50, Maxim Uvarov wrote: > zImage should not work with kexec. Only vmlinux. "should"? PPC64 has something nice there: > kexec/arch/ppc64/kexec-zImage-ppc64.c: > fprintf(stderr, "zImage support is still broken\n"); but I could not figure out where this is called

Re: [PATCH 1/2] Fix kexec on powerpc32

2010-05-13 Thread Maxim Uvarov
2010/5/13 Christian Kujau > On Wed, 12 May 2010 at 00:22, Christian Kujau wrote: > > # kexec -e > > Starting new kernel > > Bye! > > > > but then the system just hung there, no more messages, I had to > > powercycle it. > > Are there any debug flags (or kernel options?) I can set, to find out

Re: [PATCH 1/2] Fix kexec on powerpc32

2010-05-13 Thread Michael Ellerman
On Thu, 2010-05-13 at 04:19 -0700, Christian Kujau wrote: > On Wed, 12 May 2010 at 00:22, Christian Kujau wrote: > > # kexec -e > > Starting new kernel > > Bye! > > > > but then the system just hung there, no more messages, I had to > > powercycle it. > > Are there any debug flags (or kernel

Re: [PATCH 1/2] Fix kexec on powerpc32

2010-05-13 Thread Christian Kujau
On Wed, 12 May 2010 at 00:22, Christian Kujau wrote: > # kexec -e > Starting new kernel > Bye! > > but then the system just hung there, no more messages, I had to > powercycle it. Are there any debug flags (or kernel options?) I can set, to find out why it hangs here? Or does kexec not under

Re: [PATCH 1/2] Fix kexec on powerpc32

2010-05-12 Thread Simon Horman
On Wed, May 12, 2010 at 10:31:26AM +0400, Maxim Uvarov wrote: > 2010/5/12 Christian Kujau > > > Maxim Uvarov wrote on 2010-05-11 10:47 : > > > This patch is required in case if you are using new toolchains. > > > > I'm on Debian/stable (binutils 2.18, gcc 4.3.2), so I applied your patches > > to

Re: [PATCH 1/2] Fix kexec on powerpc32

2010-05-12 Thread Maxim Uvarov
2010/5/12 Christian Kujau > On Tue, 11 May 2010 at 21:47, Maxim Uvarov wrote: > > This patch is required in case if you are using new toolchains. > > After kexec-tools compiled, I actually tried it: > > # kexec -l /boot/2.6/zImage --command-line="root=/dev/hda6 ro" > # echo $? > 0 > # kexec -e >

Re: [PATCH 1/2] Fix kexec on powerpc32

2010-05-12 Thread Christian Kujau
On Tue, 11 May 2010 at 21:47, Maxim Uvarov wrote: > This patch is required in case if you are using new toolchains. After kexec-tools compiled, I actually tried it: # kexec -l /boot/2.6/zImage --command-line="root=/dev/hda6 ro" # echo $? 0 # kexec -e Starting new kernel Bye! but then the sys

Re: [PATCH 1/2] Fix kexec on powerpc32

2010-05-11 Thread Christian Kujau
On Wed, 12 May 2010 at 10:31, Maxim Uvarov wrote: > Yes, that is expected result for old tool chains. New tool chains (from code > sourcery ) need this crt.S. > I think we can have --with-oldtoolchain option to configure to point to old > tool chains. (or even rename it to --with-crts, > I don't k

Re: [PATCH 1/2] Fix kexec on powerpc32

2010-05-11 Thread Maxim Uvarov
2010/5/12 Christian Kujau > Maxim Uvarov wrote on 2010-05-11 10:47 : > > This patch is required in case if you are using new toolchains. > > I'm on Debian/stable (binutils 2.18, gcc 4.3.2), so I applied your patches > to the latest -git checkout: > > First, compilation fails with: > > cc1: warnin

Re: [PATCH 1/2] Fix kexec on powerpc32

2010-05-11 Thread Christian Kujau
Maxim Uvarov wrote on 2010-05-11 10:47 : > This patch is required in case if you are using new toolchains. I'm on Debian/stable (binutils 2.18, gcc 4.3.2), so I applied your patches to the latest -git checkout: First, compilation fails with: cc1: warnings being treated as errors kexec/arch/ppc/

Re: [PATCH 1/2] Fix kexec on powerpc32

2010-05-11 Thread Christian Kujau
On Tue, 11 May 2010 at 21:47, Maxim Uvarov wrote: > This patch is required in case if you are using new toolchains. Ah, thanks I was missing (and looking for) crashdump-powerpc.h already :-) Christian -- make bzImage, not war ___ Linuxppc-dev mailing l

[PATCH 1/2] Fix kexec on powerpc32

2010-05-11 Thread Maxim Uvarov
This patch is required in case if you are using new toolchains. Best regards, Maxim Uvarov. From: Maxim Uvarov Signed-off-by: Maxim Uvarov --- kexec/arch/ppc/Makefile|2 kexec/arch/ppc/crashdump-powerpc.c | 439 ++ kexec/arch/ppc/crashdump-p