public inbox for kexec@lists.infradead.org
 help / color / mirror / Atom feed
* Re: kexec for powerpc mpc83xx processors
@ 2010-07-12  6:22 krish
  2010-07-12 15:29 ` Matthew McClintock
  0 siblings, 1 reply; 9+ messages in thread
From: krish @ 2010-07-12  6:22 UTC (permalink / raw)
  To: Matthew McClintock; +Cc: Simon Horman, kexec


[-- Attachment #1.1: Type: text/plain, Size: 13662 bytes --]

Hi,

Actually, I have posted two emails, one for mpc83xx compilation error and
other for mpc85xx support to mailing list.
I have got response only for mpc85xx email. Anyway, the compilation problem
is common for both mpc83xx and mpc85xx.
Sorry for inconvenience created by me..

I have changed subject to "mpc83xx" instead "mpc85xx", and continue compile
error in this email.
I will post new request for "support of kexec for mpc85xx", if required.

"Makefile.libfdt" file is not present in the package.

I have used following link to download package.
http://www.kernel.org/pub/linux/kernel/people/horms/kexec-tools/testing/kexec-tools-2.0.2-rc1.tar.gz


On Sun, Jul 11, 2010 at 10:23 PM, Matthew McClintock <msm@freescale.com>wrote:

> On Sat, 2010-07-10 at 14:38 +0530, krish wrote:
> > Hi,
> >
> > I have gone through the kexec syscall implementation in kernel in the
> > view of mpc83xx processor. Currently, I am testing for mpc83xx based
> > card.
>
> Which are we talking about? You said mpc85xx NOT mpc83xx first, right?
>
> >
> > The compile error i got was:
> > kexec/arch/ppc/Makefile:4: kexec/arch/ppc/libfdt/Makefile.libfdt: No
> > such file or directory
>
> Well, does this file exist? If not you might not have a complete
> kexec-tools package.
>
> > make: *** No rule to make target
> > `kexec/arch/ppc/libfdt/Makefile.libfdt'.  Stop.
> >
> > I have commented the rule to include Makefile.libfdt in
> > "kexec/arch/ppc/Makefile", becuase the rules to compile source files
> > of libfdt folder are already present in the arch/ppc/Makefile.
> >
> > then i got following compile error:
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/arch/ppc/kexec-ppc.o kexec/arch/ppc/kexec-ppc.c
> > kexec/arch/ppc/kexec-ppc.c:24:31: error: crashdump-powerpc.h: No such
> > file or directory
> > kexec/arch/ppc/kexec-ppc.c: In function 'get_devtree_details':
> > kexec/arch/ppc/kexec-ppc.c:389: warning: implicit declaration of
> > function 'add_usable_mem_rgns'
> > kexec/arch/ppc/kexec-ppc.c:390: error: 'KDUMP_BACKUP_LIMIT' undeclared
> > (first use in this function)
> > kexec/arch/ppc/kexec-ppc.c:390: error: (Each undeclared identifier is
> > reported only once
> > kexec/arch/ppc/kexec-ppc.c:390: error: for each function it appears
> > in.)
> >
> >
> > Below is the full dump of configure and make commands.
> > ==================================================================
> > [krishna@Amru kexec-tools-2.0.2-rc1]$ ./configure
> > --prefix=/home/krishna/work/KEXEC/kexec-tools-2.0.2-rc1/
> > CC=/opt/ELDK41/usr/bin/ppc_6xx-gcc LD=/opt/ELDK41/usr/bin/ppc_6xx-ld
> > BUILD_CC=/usr/bin/gcc --target=ppc --host=i686
> > TARGET_CC=/opt/ELDK41/usr/bin/ppc_6xx-gcc
> > configure: WARNING: If you wanted to set the --build type, don't use
> > --host.
> >     If a cross compiler is detected then cross compile mode will be
> > used.
> > checking build system type... i686-pc-linux-gnu
> > checking host system type... i686-pc-none
> > checking target system type... powerpc-unknown-none
> > checking for i686-gcc... /opt/ELDK41/usr/bin/ppc_6xx-gcc
> > checking whether the C compiler works... yes
> > checking for C compiler default output file name... a.out
> > checking for suffix of executables...
> > checking whether we are cross compiling... yes
> > checking for suffix of object files... o
> > checking whether we are using the GNU C compiler... yes
> > checking whether /opt/ELDK41/usr/bin/ppc_6xx-gcc accepts -g... yes
> > checking for /opt/ELDK41/usr/bin/ppc_6xx-gcc option to accept ISO
> > C89... none needed
> > checking for -gcc... /usr/bin/gcc
> > checking how to run the C
> > preprocessor... /opt/ELDK41/usr/bin/ppc_6xx-gcc -E
> > checking for i686-ld... /opt/ELDK41/usr/bin/ppc_6xx-ld
> > checking for i686-as... no
> > checking for as... as
> > configure: WARNING: using cross tools not prefixed with host triplet
> > checking for i686-objcopy... no
> > checking for objcopy... objcopy
> > checking for i686-ar... no
> > checking for ar... ar
> > checking for ppc-gcc... /opt/ELDK41/usr/bin/ppc_6xx-gcc
> > checking for ppc-ld... no
> > checking for powerpc-unknown-none-ld... no
> > checking for ld... ld
> > checking whether /opt/ELDK41/usr/bin/ppc_6xx-gcc accepts
> > -fno-zero-initialized-in-bss... Yes
> > checking for a BSD-compatible install... /usr/bin/install -c
> > checking for mkdir... mkdir
> > checking for rm... rm
> > checking for cp... cp
> > checking for ln... ln
> > checking for tar... tar
> > checking for rpmbuild... rpmbuild
> > checking for sed... sed
> > checking for find... find
> > checking for xargs... xargs
> > checking for dirname... dirname
> > checking for grep that handles long lines and -e... /bin/grep
> > checking for egrep... /bin/grep -E
> > checking for ANSI C header files... yes
> > checking for sys/types.h... yes
> > checking for sys/stat.h... yes
> > checking for stdlib.h... yes
> > checking for string.h... yes
> > checking for memory.h... yes
> > checking for strings.h... yes
> > checking for inttypes.h... yes
> > checking for stdint.h... yes
> > checking for unistd.h... yes
> > checking zlib.h usability... yes
> > checking zlib.h presence... yes
> > checking for zlib.h... yes
> > checking for inflateInit_ in -lz... yes
> > checking lzma.h usability... no
> > checking lzma.h presence... no
> > checking for lzma.h... no
> > checking xenctrl.h usability... no
> > checking xenctrl.h presence... no
> > checking for xenctrl.h... no
> > configure: creating ./config.status
> > config.status: creating Makefile
> > config.status: creating include/config.h
> >
> > output of "make" command
> > --------------------------------------------------------
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/kexec.o kexec/kexec.c
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/ifdown.o kexec/ifdown.c
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/kexec-elf.o kexec/kexec-elf.c
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/kexec-elf-exec.o kexec/kexec-elf-exec.c
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/kexec-elf-core.o kexec/kexec-elf-core.c
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/kexec-elf-rel.o kexec/kexec-elf-rel.c
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/kexec-elf-boot.o kexec/kexec-elf-boot.c
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/kexec-iomem.o kexec/kexec-iomem.c
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/firmware_memmap.o kexec/firmware_memmap.c
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/crashdump.o kexec/crashdump.c
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/crashdump-xen.o kexec/crashdump-xen.c
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/phys_arch.o kexec/phys_arch.c
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/lzma.o kexec/lzma.c
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/zlib.o kexec/zlib.c
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/proc_iomem.o kexec/proc_iomem.c
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/virt_to_phys.o kexec/virt_to_phys.c
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/phys_to_virt.o kexec/phys_to_virt.c
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/add_segment.o kexec/add_segment.c
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/add_buffer.o kexec/add_buffer.c
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/arch_reuse_initrd.o kexec/arch_reuse_initrd.c
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/arch_init.o kexec/arch_init.c
> > /opt/ELDK41/usr/bin/ppc_6xx-gcc -g -O2 -fno-strict-aliasing -Wall
> > -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/
> > -I./kexec/arch/ppc/libfdt -I./kexec/arch/ppc/include  -c -MD -o
> > kexec/arch/ppc/kexec-ppc.o kexec/arch/ppc/kexec-ppc.c
> > kexec/arch/ppc/kexec-ppc.c:24:31: error: crashdump-powerpc.h: No such
> > file or directory
> > kexec/arch/ppc/kexec-ppc.c: In function 'get_devtree_details':
> > kexec/arch/ppc/kexec-ppc.c:389: warning: implicit declaration of
> > function 'add_usable_mem_rgns'
> > kexec/arch/ppc/kexec-ppc.c:390: error: 'KDUMP_BACKUP_LIMIT' undeclared
> > (first use in this function)
> > kexec/arch/ppc/kexec-ppc.c:390: error: (Each undeclared identifier is
> > reported only once
> > kexec/arch/ppc/kexec-ppc.c:390: error: for each function it appears
> > in.)
> > make: *** [kexec/arch/ppc/kexec-ppc.o] Error 1
> > ==============================================================
> >
> >
> > On Sat, Jul 10, 2010 at 12:53 PM, Matthew McClintock
> > <msm@freescale.com> wrote:
> >
> >         On Sat, 2010-07-10 at 15:37 +0900, Simon Horman wrote:
> >         > On Sat, Jul 10, 2010 at 10:14:25AM +0530, krish wrote:
> >         > > Hi,
> >         > >
> >         > > I am using linux-2.6.34.1 version for both mpc83xx and
> >         mpc85xx processors.
> >         > > This version of kernel supports kexec for both 83xx and
> >         85xx processors.
> >         > > I have been using ELDK toolchain for PowerPC processors.
> >         > > I am using u-boot as boot loader and uImage & dtb images
> >         as Linux images.
> >         > >
> >         > > I have downloaded 2.0.2-rc1 package and tried to compile
> >         for mpc83xx.
> >         > > I have used following command to configure kexec-tools for
> >         ppc.
> >         > > ./configure
> >         --prefix=/home/krishna/work/kexec-tools-6dd624d/
> >         > > CC=/opt/ELDK41/usr/bin/ppc_6xx-gcc
> >         LD=/opt/ELDK41/usr/bin/ppc_6xx-ld
> >         > > BUILD_CC=/usr/bin/gcc --target=ppc --host=i686
> >         > > CC=/opt/ELDK41/usr/bin/ppc_6xx-gcc
> >         > > TARGET_CC=/opt/ELDK41/usr/bin/ppc_6xx-gcc;
> >         > >
> >         > > The compilation was broken for PPC.
> >         >
> >         > Could you provide the compile errors that you are seeing?
> >         >
> >
> >
> >         Also, how do you know your kernel supports kexec?
> >
> >         -Matthew
> >
> >
> >
> >
> >
> > --
> > Regards,
> > Radha Krishna
> > "Yesterday is history, Tomorrow is mystery, Today is gift"
>
> -M
>
>
>


-- 
Regards,
Radha Krishna
"Yesterday is history, Tomorrow is mystery, Today is gift"

[-- Attachment #1.2: Type: text/html, Size: 16155 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: kexec for powerpc mpc83xx processors
  2010-07-12  6:22 kexec for powerpc mpc83xx processors krish
@ 2010-07-12 15:29 ` Matthew McClintock
  2010-07-13  2:58   ` Simon Horman
  0 siblings, 1 reply; 9+ messages in thread
From: Matthew McClintock @ 2010-07-12 15:29 UTC (permalink / raw)
  To: krish; +Cc: Simon Horman, kexec

On Mon, 2010-07-12 at 11:52 +0530, krish wrote:
> I have changed subject to "mpc83xx" instead "mpc85xx", and continue
> compile error in this email.
> I will post new request for "support of kexec for mpc85xx", if
> required.

No this is fine, I'm just trying to make sure I understand exactly what
you are doing.

> 
> "Makefile.libfdt" file is not present in the package.
> 
> I have used following link to download package.
> http://www.kernel.org/pub/linux/kernel/people/horms/kexec-tools/testing/kexec-tools-2.0.2-rc1.tar.gz 

It looks like this package is missing stuff. My only advice here is to
use git instead. I just tested GIT HEAD and the file is included and the
complication works. Can you give that a shot?

-M



_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: kexec for powerpc mpc83xx processors
  2010-07-12 15:29 ` Matthew McClintock
@ 2010-07-13  2:58   ` Simon Horman
  2010-07-16  6:12     ` krish
  0 siblings, 1 reply; 9+ messages in thread
From: Simon Horman @ 2010-07-13  2:58 UTC (permalink / raw)
  To: Matthew McClintock; +Cc: krish, kexec

On Mon, Jul 12, 2010 at 10:29:53AM -0500, Matthew McClintock wrote:
> On Mon, 2010-07-12 at 11:52 +0530, krish wrote:
> > I have changed subject to "mpc83xx" instead "mpc85xx", and continue
> > compile error in this email.
> > I will post new request for "support of kexec for mpc85xx", if
> > required.
> 
> No this is fine, I'm just trying to make sure I understand exactly what
> you are doing.
> 
> > 
> > "Makefile.libfdt" file is not present in the package.
> > 
> > I have used following link to download package.
> > http://www.kernel.org/pub/linux/kernel/people/horms/kexec-tools/testing/kexec-tools-2.0.2-rc1.tar.gz 
> 
> It looks like this package is missing stuff. My only advice here is to
> use git instead. I just tested GIT HEAD and the file is included and the
> complication works. Can you give that a shot?

Sorry about that, I have resolved this problem by including the
following change in 2.0.2-rc2.

http://www.kernel.org/pub/linux/kernel/people/horms/kexec-tools/testing/kexec-tools-2.0.2-rc2.tar.gz

From 04b22ab9dda7e73064c9b20cf08308473a7b0951 Mon Sep 17 00:00:00 2001
From: Simon Horman <horms@verge.net.au>
Date: Tue, 13 Jul 2010 11:32:16 +0900
Subject: [PATCH] build: Include missing files in tarball

Signed-off-by: Simon Horman <horms@verge.net.au>
---
 include/Makefile                      |    1 +
 kexec/arch/arm/Makefile               |    4 ++--
 kexec/arch/ppc/Makefile               |    5 ++++-
 kexec/arch/ppc/libfdt/Makefile.libfdt |    5 +++++
 kexec/arch/x86_64/Makefile            |    2 +-
 purgatory/arch/ppc64/Makefile         |    1 +
 6 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/include/Makefile b/include/Makefile
index 12c1030..c26b503 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -1,6 +1,7 @@
 dist += include/Makefile		\
 	include/config.h		\
 	include/config.h.in		\
+	include/kexec-uImage.h		\
 	include/x86/x86-linux.h		\
 	include/x86/mb_info.h		\
 	include/x86/mb_header.h		\
diff --git a/kexec/arch/arm/Makefile b/kexec/arch/arm/Makefile
index 7419621..3d07e59 100644
--- a/kexec/arch/arm/Makefile
+++ b/kexec/arch/arm/Makefile
@@ -10,6 +10,6 @@ arm_KEXEC_SRCS+= kexec/kexec-uImage.c
 
 arm_PHYS_TO_VIRT = kexec/arch/arm/phys_to_virt.c
 
-dist += kexec/arch/arm/Makefile $(arm_KEXEC_SRCS)			\
-	kexec/arch/arm/kexec-arm.h					\
+dist += kexec/arch/arm/Makefile $(arm_KEXEC_SRCS) $(arm_PHYS_TO_VIRT)	\
+	kexec/arch/arm/crashdump-arm.h kexec/arch/arm/kexec-arm.h	\
 	kexec/arch/arm/include/arch/options.h
diff --git a/kexec/arch/ppc/Makefile b/kexec/arch/ppc/Makefile
index 5988213..d4f04ec 100644
--- a/kexec/arch/ppc/Makefile
+++ b/kexec/arch/ppc/Makefile
@@ -23,5 +23,8 @@ CPPFLAGS+=-I$(srcdir)/kexec/arch/$(ARCH)/libfdt
 ppc_KEXEC_SRCS += $(libfdt_SRCS)
 
 dist += kexec/arch/ppc/Makefile $(ppc_KEXEC_SRCS)			\
-	kexec/arch/ppc/kexec-ppc.h kexec/arch/ppc/ppc_asm.h		\
+	kexec/arch/ppc/crashdump-powerpc.h kexec/arch/ppc/fixup_dtb.h	\
+	kexec/arch/ppc/kexec-ppc.h kexec/arch/ppc/ops.h			\
+	kexec/arch/ppc/ppc_asm.h					\
+	kexec/arch/ppc/include/page.h kexec/arch/ppc/include/types.h	\
 	kexec/arch/ppc/include/arch/options.h
diff --git a/kexec/arch/ppc/libfdt/Makefile.libfdt b/kexec/arch/ppc/libfdt/Makefile.libfdt
index 6c42acf..1d1b295 100644
--- a/kexec/arch/ppc/libfdt/Makefile.libfdt
+++ b/kexec/arch/ppc/libfdt/Makefile.libfdt
@@ -6,3 +6,8 @@
 LIBFDT_INCLUDES = fdt.h libfdt.h
 LIBFDT_SRCS = fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c
 LIBFDT_OBJS = $(LIBFDT_SRCS:%.c=%.o)
+
+dist += kexec/arch/ppc/libfdt/Makefile.libfdt				\
+	kexec/arch/ppc/libfdt/fdt.h kexec/arch/ppc/libfdt/libfdt.h	\
+	kexec/arch/ppc/libfdt/libfdt_env.h				\
+	kexec/arch/ppc/libfdt/libfdt_internal.h
diff --git a/kexec/arch/x86_64/Makefile b/kexec/arch/x86_64/Makefile
index e6a8d35..0f35a46 100644
--- a/kexec/arch/x86_64/Makefile
+++ b/kexec/arch/x86_64/Makefile
@@ -15,6 +15,6 @@ x86_64_KEXEC_SRCS += kexec/arch/x86_64/kexec-elf-rel-x86_64.c
 
 x86_64_ARCH_INIT = kexec/arch/x86_64/arch_init.c
 
-dist += kexec/arch/x86_64/Makefile $(x86_64_KEXEC_SRCS)			\
+dist += kexec/arch/x86_64/Makefile $(x86_64_KEXEC_SRCS) $(x86_64_ARCH_INIT) \
 	kexec/arch/x86_64/kexec-x86_64.h kexec/arch/x86_64/crashdump-x86_64.h \
 	kexec/arch/x86_64/include/arch/options.h
diff --git a/purgatory/arch/ppc64/Makefile b/purgatory/arch/ppc64/Makefile
index 40a9e99..dc9c12e 100644
--- a/purgatory/arch/ppc64/Makefile
+++ b/purgatory/arch/ppc64/Makefile
@@ -13,4 +13,5 @@ ppc64_PURGATORY_EXTRA_ASFLAGS += -m64 -mcall-aixdesc
 ppc64_PURGATORY_EXTRA_LDFLAGS += -melf64ppc
 
 dist += purgatory/arch/ppc64/Makefile $(ppc64_PURGATORY_SRCS)		\
+	purgatory/arch/ppc64/hvCall.h					\
 	purgatory/arch/ppc64/purgatory-ppc64.h
-- 
1.7.1


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: kexec for powerpc mpc83xx processors
  2010-07-13  2:58   ` Simon Horman
@ 2010-07-16  6:12     ` krish
  2010-07-16  6:34       ` Simon Horman
  2010-07-16 15:08       ` Matthew McClintock
  0 siblings, 2 replies; 9+ messages in thread
From: krish @ 2010-07-16  6:12 UTC (permalink / raw)
  To: Simon Horman; +Cc: Matthew McClintock, kexec


[-- Attachment #1.1: Type: text/plain, Size: 5902 bytes --]

Thanks for the announcement of new release.

I have successfully compiled for mpc83xx, but execution was failed with
following message
"Symbol: mem_size found cannot set".

The root cause behind it was that pul_stack and mem_size symbols are not
defined in purgatory/arch/ppc/purgatory-ppc.c file.
Correct me if i am wrong.

As i am new to git, I am going through the git user manual to sync with the
latest sources and if possible to provide code changes in patch-format..


On Tue, Jul 13, 2010 at 8:28 AM, Simon Horman <horms@verge.net.au> wrote:

> On Mon, Jul 12, 2010 at 10:29:53AM -0500, Matthew McClintock wrote:
> > On Mon, 2010-07-12 at 11:52 +0530, krish wrote:
> > > I have changed subject to "mpc83xx" instead "mpc85xx", and continue
> > > compile error in this email.
> > > I will post new request for "support of kexec for mpc85xx", if
> > > required.
> >
> > No this is fine, I'm just trying to make sure I understand exactly what
> > you are doing.
> >
> > >
> > > "Makefile.libfdt" file is not present in the package.
> > >
> > > I have used following link to download package.
> > >
> http://www.kernel.org/pub/linux/kernel/people/horms/kexec-tools/testing/kexec-tools-2.0.2-rc1.tar.gz
> >
> > It looks like this package is missing stuff. My only advice here is to
> > use git instead. I just tested GIT HEAD and the file is included and the
> > complication works. Can you give that a shot?
>
> Sorry about that, I have resolved this problem by including the
> following change in 2.0.2-rc2.
>
>
> http://www.kernel.org/pub/linux/kernel/people/horms/kexec-tools/testing/kexec-tools-2.0.2-rc2.tar.gz
>
> From 04b22ab9dda7e73064c9b20cf08308473a7b0951 Mon Sep 17 00:00:00 2001
> From: Simon Horman <horms@verge.net.au>
> Date: Tue, 13 Jul 2010 11:32:16 +0900
> Subject: [PATCH] build: Include missing files in tarball
>
> Signed-off-by: Simon Horman <horms@verge.net.au>
> ---
>  include/Makefile                      |    1 +
>  kexec/arch/arm/Makefile               |    4 ++--
>  kexec/arch/ppc/Makefile               |    5 ++++-
>  kexec/arch/ppc/libfdt/Makefile.libfdt |    5 +++++
>  kexec/arch/x86_64/Makefile            |    2 +-
>  purgatory/arch/ppc64/Makefile         |    1 +
>  6 files changed, 14 insertions(+), 4 deletions(-)
>
> diff --git a/include/Makefile b/include/Makefile
> index 12c1030..c26b503 100644
> --- a/include/Makefile
> +++ b/include/Makefile
> @@ -1,6 +1,7 @@
>  dist += include/Makefile               \
>        include/config.h                \
>        include/config.h.in             \
> +       include/kexec-uImage.h          \
>        include/x86/x86-linux.h         \
>        include/x86/mb_info.h           \
>        include/x86/mb_header.h         \
> diff --git a/kexec/arch/arm/Makefile b/kexec/arch/arm/Makefile
> index 7419621..3d07e59 100644
> --- a/kexec/arch/arm/Makefile
> +++ b/kexec/arch/arm/Makefile
> @@ -10,6 +10,6 @@ arm_KEXEC_SRCS+= kexec/kexec-uImage.c
>
>  arm_PHYS_TO_VIRT = kexec/arch/arm/phys_to_virt.c
>
> -dist += kexec/arch/arm/Makefile $(arm_KEXEC_SRCS)                      \
> -       kexec/arch/arm/kexec-arm.h                                      \
> +dist += kexec/arch/arm/Makefile $(arm_KEXEC_SRCS) $(arm_PHYS_TO_VIRT)  \
> +       kexec/arch/arm/crashdump-arm.h kexec/arch/arm/kexec-arm.h       \
>        kexec/arch/arm/include/arch/options.h
> diff --git a/kexec/arch/ppc/Makefile b/kexec/arch/ppc/Makefile
> index 5988213..d4f04ec 100644
> --- a/kexec/arch/ppc/Makefile
> +++ b/kexec/arch/ppc/Makefile
> @@ -23,5 +23,8 @@ CPPFLAGS+=-I$(srcdir)/kexec/arch/$(ARCH)/libfdt
>  ppc_KEXEC_SRCS += $(libfdt_SRCS)
>
>  dist += kexec/arch/ppc/Makefile $(ppc_KEXEC_SRCS)                      \
> -       kexec/arch/ppc/kexec-ppc.h kexec/arch/ppc/ppc_asm.h             \
> +       kexec/arch/ppc/crashdump-powerpc.h kexec/arch/ppc/fixup_dtb.h   \
> +       kexec/arch/ppc/kexec-ppc.h kexec/arch/ppc/ops.h                 \
> +       kexec/arch/ppc/ppc_asm.h                                        \
> +       kexec/arch/ppc/include/page.h kexec/arch/ppc/include/types.h    \
>        kexec/arch/ppc/include/arch/options.h
> diff --git a/kexec/arch/ppc/libfdt/Makefile.libfdt
> b/kexec/arch/ppc/libfdt/Makefile.libfdt
> index 6c42acf..1d1b295 100644
> --- a/kexec/arch/ppc/libfdt/Makefile.libfdt
> +++ b/kexec/arch/ppc/libfdt/Makefile.libfdt
> @@ -6,3 +6,8 @@
>  LIBFDT_INCLUDES = fdt.h libfdt.h
>  LIBFDT_SRCS = fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c
>  LIBFDT_OBJS = $(LIBFDT_SRCS:%.c=%.o)
> +
> +dist += kexec/arch/ppc/libfdt/Makefile.libfdt                          \
> +       kexec/arch/ppc/libfdt/fdt.h kexec/arch/ppc/libfdt/libfdt.h      \
> +       kexec/arch/ppc/libfdt/libfdt_env.h                              \
> +       kexec/arch/ppc/libfdt/libfdt_internal.h
> diff --git a/kexec/arch/x86_64/Makefile b/kexec/arch/x86_64/Makefile
> index e6a8d35..0f35a46 100644
> --- a/kexec/arch/x86_64/Makefile
> +++ b/kexec/arch/x86_64/Makefile
> @@ -15,6 +15,6 @@ x86_64_KEXEC_SRCS +=
> kexec/arch/x86_64/kexec-elf-rel-x86_64.c
>
>  x86_64_ARCH_INIT = kexec/arch/x86_64/arch_init.c
>
> -dist += kexec/arch/x86_64/Makefile $(x86_64_KEXEC_SRCS)
>      \
> +dist += kexec/arch/x86_64/Makefile $(x86_64_KEXEC_SRCS)
> $(x86_64_ARCH_INIT) \
>        kexec/arch/x86_64/kexec-x86_64.h
> kexec/arch/x86_64/crashdump-x86_64.h \
>        kexec/arch/x86_64/include/arch/options.h
> diff --git a/purgatory/arch/ppc64/Makefile b/purgatory/arch/ppc64/Makefile
> index 40a9e99..dc9c12e 100644
> --- a/purgatory/arch/ppc64/Makefile
> +++ b/purgatory/arch/ppc64/Makefile
> @@ -13,4 +13,5 @@ ppc64_PURGATORY_EXTRA_ASFLAGS += -m64 -mcall-aixdesc
>  ppc64_PURGATORY_EXTRA_LDFLAGS += -melf64ppc
>
>  dist += purgatory/arch/ppc64/Makefile $(ppc64_PURGATORY_SRCS)          \
> +       purgatory/arch/ppc64/hvCall.h                                   \
>        purgatory/arch/ppc64/purgatory-ppc64.h
> --
> 1.7.1
>
>

[-- Attachment #1.2: Type: text/html, Size: 7203 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: kexec for powerpc mpc83xx processors
  2010-07-16  6:12     ` krish
@ 2010-07-16  6:34       ` Simon Horman
  2010-07-16 15:08       ` Matthew McClintock
  1 sibling, 0 replies; 9+ messages in thread
From: Simon Horman @ 2010-07-16  6:34 UTC (permalink / raw)
  To: krish; +Cc: Matthew McClintock, kexec

On Fri, Jul 16, 2010 at 11:42:32AM +0530, krish wrote:
> Thanks for the announcement of new release.
> 
> I have successfully compiled for mpc83xx, but execution was failed with
> following message
> "Symbol: mem_size found cannot set".
> 
> The root cause behind it was that pul_stack and mem_size symbols are not
> defined in purgatory/arch/ppc/purgatory-ppc.c file.
> Correct me if i am wrong.
> 
> As i am new to git, I am going through the git user manual to sync with the
> latest sources and if possible to provide code changes in patch-format..

git diff would probably suffice if you want a two-word getting started guide :-)
Please provide an appropriate description and signed-off-by line with the patch.

Once you resolve this problem does kexec work?


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: kexec for powerpc mpc83xx processors
  2010-07-16  6:12     ` krish
  2010-07-16  6:34       ` Simon Horman
@ 2010-07-16 15:08       ` Matthew McClintock
       [not found]         ` <AANLkTikGM3wFFUYDLOvrG65FtsJseYwnbGRh62e95j6E@mail.gmail.com>
  1 sibling, 1 reply; 9+ messages in thread
From: Matthew McClintock @ 2010-07-16 15:08 UTC (permalink / raw)
  To: krish; +Cc: Simon Horman, kexec

On Fri, 2010-07-16 at 11:42 +0530, krish wrote:
> Thanks for the announcement of new release.
> 
> I have successfully compiled for mpc83xx, but execution was failed
> with following message
> "Symbol: mem_size found cannot set".
> 
> The root cause behind it was that pul_stack and mem_size symbols are
> not defined in purgatory/arch/ppc/purgatory-ppc.c file.
> Correct me if i am wrong.
> 
> As i am new to git, I am going through the git user manual to sync
> with the latest sources and if possible to provide code changes in
> patch-format..

My patches to the list recently should address those issues.

-M



_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: kexec for powerpc mpc83xx processors
       [not found]         ` <AANLkTikGM3wFFUYDLOvrG65FtsJseYwnbGRh62e95j6E@mail.gmail.com>
@ 2010-07-23 19:25           ` Matthew McClintock
  2010-07-24  4:24             ` Simon Horman
  0 siblings, 1 reply; 9+ messages in thread
From: Matthew McClintock @ 2010-07-23 19:25 UTC (permalink / raw)
  To: krish; +Cc: Simon Horman, kexec

On Fri, 2010-07-23 at 15:34 +0530, krish wrote:
> Hello Matthew,
> 
> Now, i am able to execute kexec successfully on mpc83xx platforms.
> Thanks for your support.
> 
> But, My requirement is as follows:
> The kexec always loads kernel and dtb images in to memory and starts
> the new kernel loaded. But, I want to start the same kernel every
> time.

You mean you don't want to load a new kernel you just want to reboot the
current kernel in place? I don't think that is possible nor an small
task.

> 
> I am not sure whether i can post this message to kexec-mailing list,
> If required i will add kexec-mailing list in CC. 

Generally, it's always best to post to the list as it will get you the
most responses.

> 
> I believe that the scheme i am trying had been already experimented by
> developers.
> 
> To acheive this, i have made few changes in kernel-2.6.26 version.
> But, it was stuck after jumping to start address.
> I have followed the steps used by "kexec -e" to restart kernel again.
> Appreciate your suggestions.....
> 
> I have modified the restart function and added code to allocate a
> control page and copied reboot_code_buffer, which is written in
> misc_32.S file.
> Following are the code changes made by me.

I'm not sure what version of the kernel you are working with, but as I
believe I said before you need a recent version of the kernel tree and
there is code present that might do what you are trying to do below.

For starters. You can pull Kumar's powerpc tree which should be a better
                                                         starting point:

http://git.kernel.org/?p=linux/kernel/git/galak/powerpc.git;a=summary

The default routines in this kernel should work on an 83xx if you said
the changes you made below work. But, I have not tested on the 83xx. I
think I remember someone saying it worked.

-M


> 
>   1 Index: arch/powerpc/kernel/misc_32.S
>   2
> ===================================================================
>   3 RCS
> file: /tn100/cvs/LINUX/linux-2.6.26/arch/powerpc/kernel/misc_32.S,v
>   4 retrieving revision 1.1
>   5 diff -u -r1.1 misc_32.S
>   6 --- arch/powerpc/kernel/misc_32.S   4 Sep 2008 11:05:10 -0000
> 1.1
>   7 +++ arch/powerpc/kernel/misc_32.S   23 Jul 2010 09:39:04 -0000
>   8 @@ -868,6 +868,7 @@
>   9  _GLOBAL(__main)
>  10     blr
>  11 
>  12  #ifdef CONFIG_KEXEC
>  13     /*
>  14      * Must be relocatable PIC code callable as a C function.
>  15 @@ -961,6 +962,13 @@
>  16      */
>  17     isync
>  18     sync
>  19  
>  20     /* jump to the entry point, usually the setup routine */
>  21     mtlr    r5 
>  22 @@ -974,3 +982,170 @@
>  23  relocate_new_kernel_size:
>  24     .long relocate_new_kernel_end - relocate_new_kernel
>  25  #endif
>  26 +
>  27 +#define RK_KERNELBASE   0x0 /* KERNELBASE */
>  28 +    .global rk_restart
>  29 +rk_restart:    
>  30 +    li r8,0
>  31 +    ori r8,r8,MSR_RI|MSR_ME
>  32 +    mtspr SPRN_SRR1,r8
>  33 +    addi r8,r4,1f-rk_restart
>  34 +    mtspr SPRN_SRR0,r8
>  35 +    sync
>  36 +    rfi
>  37 +
>  38 +    /* Set environment variables to start kernel */
>  39 +1:  lis r4,RK_KERNELBASE@h
>  40 +    ori r4,r4,RK_KERNELBASE@l
>  41 +    li r5,0x01
>  42 +    li r6,0
>  43 +
>  44 +    isync
>  45 +    mtlr r4
>  46 +    sync
>  47 +    isync
>  48 +    blrl
>  49 +
>  50 +rk_restart_end:
>  51 +    .global rk_restart_size
>  52 +rk_restart_size:
>  53 +   .long rk_restart_end - rk_restart 
> 
>  
>   1 Index: arch/powerpc/platforms/83xx/mpc837x_rdb.c
>   2
> ===================================================================
>   3 RCS
> file: /tn100/cvs/LINUX/linux-2.6.26/arch/powerpc/platforms/83xx/mpc837x_rdb.c,v
>   4 retrieving revision 1.1
>   5 diff -u -r1.1 mpc837x_rdb.c
>   6 --- arch/powerpc/platforms/83xx/mpc837x_rdb.c   4 Sep 2008
> 11:05:13 -0000   1.1
>   7 +++ arch/powerpc/platforms/83xx/mpc837x_rdb.c   23 Jul 2010
> 09:38:51 -0000
>   8 @@ -17,6 +17,7 @@
>   9  #include <asm/time.h>
>  10  #include <asm/ipic.h>
>  11  #include <asm/udbg.h>
>  12 +#include <asm/cacheflush.h>
>  13 
>  14  #include "mpc83xx.h"
>  15 
>  16 @@ -82,10 +83,70 @@
>  17  {
>  18     unsigned long root = of_get_flat_dt_root();
>  19 
>  20     return of_flat_dt_is_compatible(root, "fsl,mpc8377rdb") ||
>  21            of_flat_dt_is_compatible(root, "fsl,mpc8378rdb") ||
>  22            of_flat_dt_is_compatible(root, "fsl,mpc8379rdb");
>  23  }
>  24 +
>  25 +typedef NORET_TYPE void ( * rk_restart_t)(phys_addr_t dtb_paddr,
> phys_addr_t rb_code_paddr)ATTRIB_NORET;
>  26 +void tj_restart(char *cmd)
>  27 +{
>  28 +    extern const u8 rk_restart[];
>  29 +    extern const u32 rk_restart_size;
>  30 +    rk_restart_t rkr;
>  31 +    struct page *rb_code_page;
>  32 +    u32 rb_code_vaddr;
>  33 +    phys_addr_t rb_code_paddr;
>  34 +    unsigned long flags;
>  35 +    extern struct boot_param_header *initial_boot_params;
>  36 +    phys_addr_t dtb_paddr;
>  37 +
>  38 +    local_irq_save(flags);
>  39+
>  40 +
>  41 +    /* Get physical address of DTB */
>  42 +    dtb_paddr = virt_to_phys((void *)initial_boot_params);
>  43 +    printk("DTB paddr: %08x\n", dtb_paddr);
>  44 +
>  45 +    /* Allocate a page for reboot code */
>  46 +    rb_code_page = alloc_pages(GFP_KERNEL, get_order(4096));
>  47 +    if (rb_code_page == NULL) {
>  48 +        printk("Failed to alloc page for reboot code\n");
>  49 +        printk("Going for processor restart\n");
>  50 +        mpc83xx_restart(cmd);
>  51 +    }
>  52 +    rb_code_vaddr = (u32)page_address(rb_code_page);
>  53 +    rb_code_paddr = virt_to_phys((void *)rb_code_vaddr);
>  54 +    printk("rb_code_page: %08x, rb_code_vaddr: %08x,
> rb_code_paddr: %08x\n", (u32)rb_code_page, rb_code_vaddr,
> rb_code_paddr);
>  55 +    memcpy((void *)rb_code_vaddr, rk_restart, rk_restart_size);
>  56 +    flush_icache_range(rb_code_vaddr, rb_code_vaddr
> +rk_restart_size);
>  57 +    rkr = (rk_restart_t)rb_code_vaddr;
>  58 +
>  59 +    printk("Restarting OS ...\n");
>  60 +    (*rkr)(dtb_paddr, rb_code_paddr);
>  61 +    printk("This message should not print..\n");
>  62 +    while (1);
>  63 +}
>  64 +
>  65 
>  66  define_machine(mpc837x_rdb) {
>  67     .name           = "MPC837x RDB",
>  68 @@ -93,7 +154,8 @@
>  69     .setup_arch     = mpc837x_rdb_setup_arch,
>  70     .init_IRQ       = mpc837x_rdb_init_IRQ,
>  71     .get_irq        = ipic_get_irq,
>  72 -   .restart        = mpc83xx_restart,
>  73 +// .restart        = mpc83xx_restart,
>  74 +   .restart        = tj_restart,
>  75     .time_init      = mpc83xx_time_init,
>  76     .calibrate_decr     = generic_calibrate_decr,
>  77     .progress       = udbg_progress,
> 
> 
> 
> ============================== 
> 
> On Fri, Jul 16, 2010 at 8:38 PM, Matthew McClintock
> <msm@freescale.com> wrote:
>         On Fri, 2010-07-16 at 11:42 +0530, krish wrote:
>         > Thanks for the announcement of new release.
>         >
>         > I have successfully compiled for mpc83xx, but execution was
>         failed
>         > with following message
>         > "Symbol: mem_size found cannot set".
>         >
>         > The root cause behind it was that pul_stack and mem_size
>         symbols are
>         > not defined in purgatory/arch/ppc/purgatory-ppc.c file.
>         > Correct me if i am wrong.
>         >
>         > As i am new to git, I am going through the git user manual
>         to sync
>         > with the latest sources and if possible to provide code
>         changes in
>         > patch-format..
>         
>         
>         My patches to the list recently should address those issues.
>         
>         -M
>         
>         
> 




_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: kexec for powerpc mpc83xx processors
  2010-07-23 19:25           ` Matthew McClintock
@ 2010-07-24  4:24             ` Simon Horman
  2010-07-26  4:37               ` krish
  0 siblings, 1 reply; 9+ messages in thread
From: Simon Horman @ 2010-07-24  4:24 UTC (permalink / raw)
  To: Matthew McClintock; +Cc: krish, kexec

On Fri, Jul 23, 2010 at 02:25:13PM -0500, Matthew McClintock wrote:
> On Fri, 2010-07-23 at 15:34 +0530, krish wrote:
> > Hello Matthew,
> > 
> > Now, i am able to execute kexec successfully on mpc83xx platforms.
> > Thanks for your support.
> > 
> > But, My requirement is as follows:
> > The kexec always loads kernel and dtb images in to memory and starts
> > the new kernel loaded. But, I want to start the same kernel every
> > time.
> 
> You mean you don't want to load a new kernel you just want to reboot the
> current kernel in place? I don't think that is possible nor an small
> task.

That would be a new feature for kexec, not just a fix for powerpc.
And I also suspect it would be difficult to achieve. Certainly more
difficult than having the image lying around and giving that to kexec.

> > I am not sure whether i can post this message to kexec-mailing list,
> > If required i will add kexec-mailing list in CC. 
> 
> Generally, it's always best to post to the list as it will get you the
> most responses.

Yes :-)


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: kexec for powerpc mpc83xx processors
  2010-07-24  4:24             ` Simon Horman
@ 2010-07-26  4:37               ` krish
  0 siblings, 0 replies; 9+ messages in thread
From: krish @ 2010-07-26  4:37 UTC (permalink / raw)
  To: Simon Horman; +Cc: radhakrishnap, Matthew McClintock, kexec


[-- Attachment #1.1: Type: text/plain, Size: 1403 bytes --]

Matthew,

I will start exploring kumar's powerpc tree.
Please bare with me, because i am going to post more doubts regarding
this...

On Sat, Jul 24, 2010 at 9:54 AM, Simon Horman <horms@verge.net.au> wrote:

> On Fri, Jul 23, 2010 at 02:25:13PM -0500, Matthew McClintock wrote:
> > On Fri, 2010-07-23 at 15:34 +0530, krish wrote:
> > > Hello Matthew,
> > >
> > > Now, i am able to execute kexec successfully on mpc83xx platforms.
> > > Thanks for your support.
> > >
> > > But, My requirement is as follows:
> > > The kexec always loads kernel and dtb images in to memory and starts
> > > the new kernel loaded. But, I want to start the same kernel every
> > > time.
> >
> > You mean you don't want to load a new kernel you just want to reboot the
> > current kernel in place? I don't think that is possible nor an small
> > task.
> Yes..., I would like explore more on this topic.
>


> That would be a new feature for kexec, not just a fix for powerpc.
> And I also suspect it would be difficult to achieve. Certainly more
> difficult than having the image lying around and giving that to kexec.
>
>  Currently, i am working only for powerpc processors.

> > > I am not sure whether i can post this message to kexec-mailing list,
> > > If required i will add kexec-mailing list in CC.
> >
> > Generally, it's always best to post to the list as it will get you the
> > most responses.
>
> Yes :-)
>
>

[-- Attachment #1.2: Type: text/html, Size: 2256 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-07-26  4:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-12  6:22 kexec for powerpc mpc83xx processors krish
2010-07-12 15:29 ` Matthew McClintock
2010-07-13  2:58   ` Simon Horman
2010-07-16  6:12     ` krish
2010-07-16  6:34       ` Simon Horman
2010-07-16 15:08       ` Matthew McClintock
     [not found]         ` <AANLkTikGM3wFFUYDLOvrG65FtsJseYwnbGRh62e95j6E@mail.gmail.com>
2010-07-23 19:25           ` Matthew McClintock
2010-07-24  4:24             ` Simon Horman
2010-07-26  4:37               ` krish

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox