Skip to contentSkip to conversation

Fix kexec on powerpc32

PATCH Superseded Maxim Uvarov 5 participants 16 messages May 11, 2010 – May 14, 2010

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Fix kexec on powerpc32

This patch is required in case if you are using new toolchains.

Best regards,
Maxim Uvarov.

From: Maxim Uvarov <[email protected]>

---

 kexec/arch/ppc/Makefile            |    2 
 kexec/arch/ppc/crashdump-powerpc.c |  439 ++++++++++++++++++++++++++++++++++
 kexec/arch/ppc/crashdump-powerpc.h |   38 +++
 kexec/arch/ppc/fs2dt.c             |  460 ++++++++++++++++++++++++++++++++++++
 kexec/arch/ppc/kexec-elf-ppc.c     |  186 +++++++++++++--
 kexec/arch/ppc/kexec-ppc.c         |  276 ++++++++++++++++++++--
 kexec/arch/ppc/kexec-ppc.h         |   32 +++
 purgatory/arch/ppc/Makefile        |    2 
 purgatory/arch/ppc/purgatory-ppc.c |   38 ++-
 purgatory/arch/ppc/purgatory-ppc.h |    4 
 purgatory/arch/ppc/v2wrap.S        |   66 -----
 purgatory/arch/ppc/v2wrap_32.S     |   91 +++++++
 12 files changed, 1524 insertions(+), 110 deletions(-)
 create mode 100644 kexec/arch/ppc/crashdump-powerpc.c
 create mode 100644 kexec/arch/ppc/crashdump-powerpc.h
 create mode 100644 kexec/arch/ppc/fs2dt.c
 delete mode 100644 purgatory/arch/ppc/v2wrap.S
 create mode 100644 purgatory/arch/ppc/v2wrap_32.S
kexec/arch/ppc/Makefile +2 -0
index 1c7441c..5988213 100644
@@ -11,6 +11,8 @@ ppc_KEXEC_SRCS += kexec/arch/ppc/kexec-uImage-ppc.c
 ppc_KEXEC_SRCS += kexec/arch/ppc/ppc-setup-simple.S
 ppc_KEXEC_SRCS += kexec/arch/ppc/ppc-setup-dol.S
 ppc_KEXEC_SRCS += kexec/arch/ppc/fixup_dtb.c
+ppc_KEXEC_SRCS += kexec/arch/ppc/fs2dt.c
+ppc_KEXEC_SRCS += kexec/arch/ppc/crashdump-powerpc.c
 ppc_KEXEC_SRCS += kexec/kexec-uImage.c
 
 libfdt_SRCS = kexec/arch/ppc/libfdt-wrapper.c
kexec/arch/ppc/crashdump-powerpc.c new file +439 -0

439 lines not on this page · raw message

kexec/arch/ppc/crashdump-powerpc.h new file +38 -0
new file mode 100644
index 0000000..dc2772d
@@ -0,0 +1,38 @@
+#ifndef CRASHDUMP_POWERPC_H
+#define CRASHDUMP_POWERPC_H
+
+struct kexec_info;
+int load_crashdump_segments(struct kexec_info *info, char *mod_cmdline,
+				unsigned long max_addr, unsigned long min_base);
+void add_usable_mem_rgns(unsigned long long base, unsigned long long size);
+
+extern struct arch_options_t arch_options;
+
+#ifdef CONFIG_PPC64
+#define PAGE_OFFSET	0xC000000000000000UL
+#define VMALLOCBASE	0xD000000000000000UL
+#define MAXMEM		(-KERNELBASE-VMALLOCBASE)
+#else
+#define PAGE_OFFSET	0xC0000000
+#define MAXMEM		0x30000000 /* Use CONFIG_LOWMEM_SIZE from kernel */
+#endif
+
+#define KERNELBASE	PAGE_OFFSET
+#define __pa(x)		((unsigned long)(x)-PAGE_OFFSET)
+
+#define COMMAND_LINE_SIZE	512 /* from kernel */
+/* Backup Region, First 64K of System RAM. */
+#define BACKUP_SRC_START	0x0000
+#define BACKUP_SRC_END		0xffff
+#define BACKUP_SRC_SIZE		(BACKUP_SRC_END - BACKUP_SRC_START + 1)
+
+#define KDUMP_BACKUP_LIMIT	BACKUP_SRC_SIZE
+#define _ALIGN_UP(addr, size)	(((addr)+((size)-1))&(~((size)-1)))
+#define _ALIGN_DOWN(addr, size)	((addr)&(~((size)-1)))
+
+extern unsigned long long crash_base;
+extern unsigned long long crash_size;
+extern unsigned int rtas_base;
+extern unsigned int rtas_size;
+
+#endif /* CRASHDUMP_POWERPC_H */
kexec/arch/ppc/fs2dt.c new file +460 -0

460 lines not on this page · raw message

kexec/arch/ppc/kexec-elf-ppc.c +169 -17

277 lines not on this page · raw message

kexec/arch/ppc/kexec-ppc.c +260 -16

367 lines not on this page · raw message

kexec/arch/ppc/kexec-ppc.h +32 -0
index 6cec467..fc0471f 100644
@@ -1,6 +1,11 @@
 #ifndef KEXEC_PPC_H
 #define KEXEC_PPC_H
 
+#define MAXBYTES	128
+#define MAX_LINE	160
+#define CORE_TYPE_ELF32	1
+#define CORE_TYPE_ELF64	2
+
 extern unsigned char setup_simple_start[];
 extern uint32_t setup_simple_size;
 
@@ -16,6 +21,8 @@ extern struct {
 	uint32_t spr8;
 } setup_dol_regs;
 
+#define SIZE_16M	(16*1024*1024UL)
+
 int elf_ppc_probe(const char *buf, off_t len);
 int elf_ppc_load(int argc, char **argv, const char *buf, off_t len,
 	struct kexec_info *info);
@@ -37,4 +44,29 @@ void dol_ppc_usage(void);
  */
 #define KERNEL_ACCESS_TOP (24 * 1024 * 1024)
 
+/* boot block version 17 as defined by the linux kernel */
+struct bootblock {
+	unsigned magic,
+		totalsize,
+		off_dt_struct,
+		off_dt_strings,
+		off_mem_rsvmap,
+		version,
+		last_comp_version,
+		boot_physid,
+		dt_strings_size,
+		dt_struct_size;
+};
+
+typedef struct mem_rgns {
+	unsigned int size;
+	struct memory_range *ranges;
+} mem_rgns_t;
+extern mem_rgns_t usablemem_rgns;
+extern int max_memory_ranges;
+extern unsigned long long initrd_base, initrd_size;
+extern unsigned char reuse_initrd;
+#define COMMAND_LINE_SIZE	512 /* from kernel */
+/*fs2dt*/
+void reserve(unsigned long long where, unsigned long long length);
 #endif /* KEXEC_PPC_H */
purgatory/arch/ppc/Makefile +1 -1
index 0dd18b6..72289a0 100644
@@ -2,7 +2,7 @@
 # Purgatory ppc
 #
 
-ppc_PURGATORY_SRCS += purgatory/arch/ppc/v2wrap.S
+ppc_PURGATORY_SRCS += purgatory/arch/ppc/v2wrap_32.S
 ppc_PURGATORY_SRCS += purgatory/arch/ppc/misc.S
 ppc_PURGATORY_SRCS += purgatory/arch/ppc/purgatory-ppc.c
 ppc_PURGATORY_SRCS += purgatory/arch/ppc/console-ppc.c
purgatory/arch/ppc/purgatory-ppc.c +30 -8
index 01d0f38..3d7d484 100644
@@ -1,19 +1,41 @@
+/*
+ * kexec: Linux boots Linux
+ *
+ * Created by: Mohan Kumar M ([email protected])
+ *
+ * Copyright (C) IBM Corporation, 2005. All rights reserved
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation (version 2 of the License).
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
 #include <purgatory.h>
 #include "purgatory-ppc.h"
 
-unsigned int pul_stack = 0;
-unsigned int dt_offset = 0;
-unsigned int kernel = 0;
-unsigned int epapr_magic = 0;
-unsigned int mem_size = 0;
+unsigned int panic_kernel = 0;
+unsigned long backup_start = 0;
+unsigned long stack = 0;
+unsigned long dt_offset = 0;
+unsigned long my_toc = 0;
+unsigned long kernel = 0;
 
 void setup_arch(void)
 {
-	/* Nothing for now */
+	return;
 }
 
-/* This function can be used to execute after the SHA256 verification. */
 void post_verification_setup_arch(void)
 {
-	/* Nothing for now */
+	if (panic_kernel)
+		crashdump_backup_memory();
 }
purgatory/arch/ppc/purgatory-ppc.h +2 -2
index e931cae..7eff8aa 100644
@@ -1,6 +1,6 @@
 #ifndef PURGATORY_PPC_H
 #define PURGATORY_PPC_H
 
-/* nothing yet */
-
+void crashdump_backup_memory(void);
+void post_verification_setup_arch(void);
 #endif /* PURGATORY_PPC_H */
purgatory/arch/ppc/v2wrap.S deleted +0 -66

66 lines not on this page · raw message

purgatory/arch/ppc/v2wrap_32.S new file +91 -0

91 lines not on this page · raw message

#1 lore raw

PATCH 2/2 powerpc new toolchains fix (crt.S)

This patch is required in case if you are using new toolchains.

Best regards,
Maxim Uvarov.

From: Maxim Uvarov <[email protected]>

Linker does not provide some vital functions when building freestanding applications with a new toolchain, so we have to provide our own CRT.

p.s.
Without the CRT we won't see any build errors (since the purgatory is linked with --no-undefined), but the purgatory code won't work, 'kexec -e' will just hang the board.

I added option to configure to keep code buildable for old toolchais. But there should be way to do this automatically.

Author: Anton Vorontsov <[email protected]>

---

 configure.ac                |    9 +++++++++
 purgatory/arch/ppc/Makefile |    3 +++
 2 files changed, 12 insertions(+), 0 deletions(-)
configure.ac +9 -0
index fcf50e4..63606bc 100644
@@ -159,6 +159,15 @@ if test "$with_xen" = yes ; then
 		AC_MSG_NOTICE([Xen support disabled])))
 fi
 
+dnl new toolchains
+if test "$ARCH" = ppc; then
+AC_ARG_WITH([oldtoolchain],
+		AC_HELP_STRING([--with-oldtoolchain],[compile without crt.S
+			required for new toolchains]),
+		AC_DEFINE(PPC_OLDTOOLCHAIN, 1,
+			[Define to compile with old toolchains]))
+fi
+
 dnl ---Sanity checks
 if test "$CC"      = "no"; then AC_MSG_ERROR([cc not found]); fi
 if test "$CPP"     = "no"; then AC_MSG_ERROR([cpp not found]); fi
purgatory/arch/ppc/Makefile +3 -0
index 72289a0..d11ec3e 100644
@@ -6,6 +6,9 @@ ppc_PURGATORY_SRCS += purgatory/arch/ppc/v2wrap_32.S
 ppc_PURGATORY_SRCS += purgatory/arch/ppc/misc.S
 ppc_PURGATORY_SRCS += purgatory/arch/ppc/purgatory-ppc.c
 ppc_PURGATORY_SRCS += purgatory/arch/ppc/console-ppc.c
+ifndef PPC_OLDTOOLCHAIN
+	ppc_PURGATORY_SRCS += purgatory/arch/ppc/crt.S
+endif
 
 dist += purgatory/arch/ppc/Makefile $(ppc_PURGATORY_SRCS)		\
 	purgatory/arch/ppc/purgatory-ppc.h purgatory/arch/ppc/ppc_asm.h
#2 lore raw
In reply to Maxim Uvarov
Quoted 1 line · Maxim Uvarov

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

Signature · 6 lines
make bzImage, not war

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
#3 lore raw
In reply to Maxim Uvarov

Maxim Uvarov wrote on 2010-05-11 10:47 :

Quoted 1 line

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/kexec-ppc.c: In function ‘get_base_ranges’:
kexec/arch/ppc/kexec-ppc.c:258: error: value computed is not used
make: *** [kexec/arch/ppc/kexec-ppc.o] Error 1

Somehow a "-" hyphen made it into one of the functions:

Quoted 2 lines
kexec/arch/ppc/kexec-ppc.c +0 -0

[...]

kexec/arch/ppc/kexec-ppc.c static int get_base_ranges(void) · line 258

Quoted 5 lines
kexec/arch/ppc/kexec-ppc.c +2 -2
 			if (local_memory_ranges >= max_memory_ranges) {
-				fclose(file);
-				break;
+				if (realloc_memory_ranges() < 0){
+	-				fclose(file);

Removing this, gets me further, until:

purgatory/arch/ppc/crt.o: In function `__lshrdi3':
(.text+0xf0): multiple definition of `__lshrdi3' purgatory/arch/ppc/misc.o:(.text+0x50): first defined here
collect2: ld returned 1 exit status
make: *** [purgatory/purgatory.ro] Error 1

And has been defined in purgatory/arch/ppc/crt.S and ./purgatory/arch/ppc/misc.S. Removing it from e.g. crt.S makes it compile, I have not tested it yet, though :-)

Thanks,
Christian.

PS: Where is -Werror defined? I could not find it anywhere in the kexec
source (execpt in arch/mips)...

Signature · 6 lines
make bzImage, not war

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
#4 lore raw

2010/5/12 Christian Kujau <[email protected]>

Quoted 18 lines

Maxim Uvarov wrote on 2010-05-11 10:47 :

Quoted 1 line

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/kexec-ppc.c: In function ‘get_base_ranges’:
kexec/arch/ppc/kexec-ppc.c:258: error: value computed is not used
make: *** [kexec/arch/ppc/kexec-ppc.o] Error 1

Somehow a "-" hyphen made it into one of the functions:

Quoted 2 lines
kexec/arch/ppc/kexec-ppc.c +0 -0

[...]

Quoted 7 lines

kexec/arch/ppc/kexec-ppc.c static int get_base_ranges(void) · line 258

Quoted 5 lines
                      if (local_memory_ranges >= max_memory_ranges) {
kexec/arch/ppc/kexec-ppc.c +2 -2
-                             fclose(file);
-                             break;
+                             if (realloc_memory_ranges() < 0){
+     -                               fclose(file);

Oh, I sent this patch twice with stg -a by mistake. And second version has

"-". I will fix and resend patches.

Quoted 10 lines

Removing this, gets me further, until:

purgatory/arch/ppc/crt.o: In function `__lshrdi3':
(.text+0xf0): multiple definition of `__lshrdi3' purgatory/arch/ppc/misc.o:(.text+0x50): first defined here
collect2: ld returned 1 exit status
make: *** [purgatory/purgatory.ro] Error 1

Quoted 4 lines

And has been defined in purgatory/arch/ppc/crt.S and ./purgatory/arch/ppc/misc.S. Removing it from e.g. crt.S makes it compile, I have not tested it yet, though :-)

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 know what is better.)

Quoted 8 lines

Thanks,
Christian.

PS: Where is -Werror defined? I could not find it anywhere in the kexec
source (execpt in arch/mips)...
--

This -Werror came from mips. kexec/arch/mips/Makefile. It is already removed in the git. We already saw this problem.

Quoted 2 lines

make bzImage, not war

Signature · 2 lines
Best regards,
Maxim Uvarov

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#5 lore raw
Quoted 5 lines · Maxim Uvarov

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 know what is better.)

Yes, I've seen this --with-oldtoolchain flag in ./configure, but: when exactly is my toolchain old enough so that this flag has to be used? Is my binutils 2.18 too old?

So, I'm all in favour of --with-crts (which I would use when compilation breaks with some descriptive error message) or, even better: can't we set this flag during ./configure automatically, based on the actual toolchain installed on the system? ./configure should be able to determine this, no?

Quoted 2 lines

This -Werror came from mips. kexec/arch/mips/Makefile. It is already removed in the git. We already saw this problem.

Powerpc including a mops Makefile, whooha :-)

Thanks,
Christian.

Signature · 8 lines
BOFH excuse #91:

Mouse chewed through power cable

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
#10 lore raw
In reply to Maxim Uvarov
Quoted 1 line · Maxim Uvarov

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 system just hung there, no more messages, I had to powercycle it.

The --debug options is listed for "dol-ppc" systems (I have a PowerBook G4, not sure if this falls into this category), when I use it the help screen of kexec is displayed again and at the bottom:

Cannot load /boot/2.6/zImage

This is with 2.6.34-rc7 (today's git):

# file /boot/2.6/zImage
/boot/2.6/zImage: ELF 32-bit MSB executable, PowerPC or cisco 4500,
version 1 (SYSV), statically linked, with unknown capability 0x41000000
= 0x11676e75, with unknown capability 0x10000 = 0x90402, not stripped

.config and dmesg: http://nerdbynature.de/bits/2.6.34-rc7/kexec/

Christian.

Signature · 6 lines
make bzImage, not war

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
#6 lore raw
In reply to Maxim Uvarov
Quoted 3 lines · Maxim Uvarov

This -Werror came from mips. kexec/arch/mips/Makefile. It is already removed in the git. We already saw this problem.

BTW, I just did a clone of the kexec git tree repository and the -Werror is still in kexec/arch/mips/Makefile. Simon's patch of May 4th ("[PATCH] build: Don't modify CFLAGS in kexec/arch/mips/Makefile") doesn't seem to be in there [yet].

Cheers,

Matt

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#7 lore raw
Quoted 9 lines · Matt Evans
Quoted 3 lines · Maxim Uvarov

This -Werror came from mips. kexec/arch/mips/Makefile. It is already removed in the git. We already saw this problem.

BTW, I just did a clone of the kexec git tree repository and the -Werror is still in kexec/arch/mips/Makefile. Simon's patch of May 4th ("[PATCH] build: Don't modify CFLAGS in kexec/arch/mips/Makefile") doesn't seem to be in there [yet].

I'll investigate why.

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#8 lore raw
Quoted 6 lines · Simon Horman
Quoted 5 lines · Matt Evans
Quoted 3 lines · Maxim Uvarov

This -Werror came from mips. kexec/arch/mips/Makefile. It is already removed in the git. We already saw this problem.

Quoted 6 lines
Quoted 4 lines

BTW, I just did a clone of the kexec git tree repository and the -Werror is still in kexec/arch/mips/Makefile. Simon's patch of May 4th ("[PATCH] build: Don't modify CFLAGS in kexec/arch/mips/Makefile") doesn't seem to be in there [yet].

I'll investigate why.

Sorry about that, my pushing was a bit out of sync. I think that I've fixed that now. Please let me know if there are still patches missing.

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#11 lore raw
In reply to Christian Kujau

2010/5/12 Christian Kujau <[email protected]>

Quoted 30 lines · Maxim Uvarov
Quoted 1 line

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 system just hung there, no more messages, I had to powercycle it.

The --debug options is listed for "dol-ppc" systems (I have a PowerBook G4, not sure if this falls into this category), when I use it the help screen of kexec is displayed again and at the bottom:

Cannot load /boot/2.6/zImage

This is with 2.6.34-rc7 (today's git):

# file /boot/2.6/zImage
/boot/2.6/zImage: ELF 32-bit MSB executable, PowerPC or cisco 4500,
version 1 (SYSV), statically linked, with unknown capability 0x41000000
= 0x11676e75, with unknown capability 0x10000 = 0x90402, not stripped
Quoted 6 lines

.config and dmesg: http://nerdbynature.de/bits/2.6.34-rc7/kexec/

Christian.
--
make bzImage, not war

Can you try vmlinux? I tested only with vmlinux.

Signature · 2 lines
Best regards,
Maxim Uvarov

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#9 lore raw
In reply to Maxim Uvarov
Quoted 44 lines · Maxim Uvarov

2010/5/12 Christian Kujau <[email protected]>

Quoted 18 lines

Maxim Uvarov wrote on 2010-05-11 10:47 :

Quoted 1 line

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/kexec-ppc.c: In function ‘get_base_ranges’:
kexec/arch/ppc/kexec-ppc.c:258: error: value computed is not used
make: *** [kexec/arch/ppc/kexec-ppc.o] Error 1

Somehow a "-" hyphen made it into one of the functions:

Quoted 2 lines
kexec/arch/ppc/kexec-ppc.c +0 -0

[...]

Quoted 7 lines

kexec/arch/ppc/kexec-ppc.c static int get_base_ranges(void) · line 258

Quoted 5 lines
                      if (local_memory_ranges >= max_memory_ranges) {
kexec/arch/ppc/kexec-ppc.c +2 -2
-                             fclose(file);
-                             break;
+                             if (realloc_memory_ranges() < 0){
+     -                               fclose(file);

Oh, I sent this patch twice with stg -a by mistake. And second version has

"-". I will fix and resend patches.

Quoted 10 lines

Removing this, gets me further, until:

purgatory/arch/ppc/crt.o: In function `__lshrdi3':
(.text+0xf0): multiple definition of `__lshrdi3' purgatory/arch/ppc/misc.o:(.text+0x50): first defined here
collect2: ld returned 1 exit status
make: *** [purgatory/purgatory.ro] Error 1

Quoted 4 lines

And has been defined in purgatory/arch/ppc/crt.S and ./purgatory/arch/ppc/misc.S. Removing it from e.g. crt.S makes it compile, I have not tested it yet, though :-)

Quoted 5 lines

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 know what is better.)

I think --with-crts would be better as --with-oldtoolchain could mean many things.

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#12 lore raw
In reply to Christian Kujau
Quoted 6 lines · Christian Kujau
# 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 understand zImages?

Thanks,
Christian.

Signature · 3 lines
BOFH excuse #373:

Suspicious pointer corrupted virtual machine
#13 lore raw

2010/5/13 Christian Kujau <[email protected]>

Quoted 5 lines · Christian Kujau
Quoted 4 lines
# kexec -e
Starting new kernel
Bye!
Quoted 7 lines
Quoted 2 lines

....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 understand zImages?

zImage should not work with kexec. Only vmlinux.

Quoted 7 lines

Thanks,
Christian.
--
BOFH excuse #373:

Suspicious pointer corrupted virtual machine

Signature · 2 lines
Best regards,
Maxim Uvarov

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#15 lore raw
In reply to Christian Kujau
Quoted 10 lines · Christian Kujau
Quoted 6 lines · Christian Kujau
# 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 understand zImages?

Not really. There's extra debugging on some systems (with a hypervisor console). I think you're on 32-bit, which means I don't really know what I'm talking about, but I don't think zImage works - use vmlinux.

cheers

#14 lore raw
In reply to Maxim Uvarov
Quoted 1 line · Maxim Uvarov

zImage should not work with kexec. Only vmlinux.

"should"?

PPC64 has something nice there:

Quoted 2 lines

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 from.

Anyway, tried vmlinux now and it's working, yay!

Thanks a lot, Maxim!

Christian.

Signature · 3 lines
BOFH excuse #363:

Out of cards on drive D: