* kexec for powerpc mpc85xx processors @ 2010-07-09 6:09 krish 2010-07-09 6:28 ` Matthew McClintock 0 siblings, 1 reply; 8+ messages in thread From: krish @ 2010-07-09 6:09 UTC (permalink / raw) To: kexec [-- Attachment #1.1: Type: text/plain, Size: 212 bytes --] Hi, Is kexec-tools support powerpc mpc85xx processors. If so, please help me to compile the package for powerpc processors. -- Regards, Radha Krishna "Yesterday is history, Tomorrow is mystery, Today is gift" [-- Attachment #1.2: Type: text/html, Size: 262 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] 8+ messages in thread
* Re: kexec for powerpc mpc85xx processors 2010-07-09 6:09 kexec for powerpc mpc85xx processors krish @ 2010-07-09 6:28 ` Matthew McClintock 2010-07-09 6:43 ` Simon Horman 0 siblings, 1 reply; 8+ messages in thread From: Matthew McClintock @ 2010-07-09 6:28 UTC (permalink / raw) To: krish; +Cc: kexec On Fri, 2010-07-09 at 11:39 +0530, krish wrote: > Hi, > > Is kexec-tools support powerpc mpc85xx processors. If so, please help > me to compile the package for powerpc processors. > Some work has been done recently on the kernel side and kexec side. First, what version of the kernel are you running? Secondly, you will need to get kexec from git or possibly a very recent version for it to work. > -- > Regards, > Radha Krishna > "Yesterday is history, Tomorrow is mystery, Today is gift" > _______________________________________________ > kexec mailing list > kexec@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/kexec -M _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kexec for powerpc mpc85xx processors 2010-07-09 6:28 ` Matthew McClintock @ 2010-07-09 6:43 ` Simon Horman 2010-07-10 4:44 ` krish 0 siblings, 1 reply; 8+ messages in thread From: Simon Horman @ 2010-07-09 6:43 UTC (permalink / raw) To: Matthew McClintock; +Cc: krish, kexec On Fri, Jul 09, 2010 at 01:28:18AM -0500, Matthew McClintock wrote: > On Fri, 2010-07-09 at 11:39 +0530, krish wrote: > > Hi, > > > > Is kexec-tools support powerpc mpc85xx processors. If so, please help > > me to compile the package for powerpc processors. > > > > Some work has been done recently on the kernel side and kexec side. > First, what version of the kernel are you running? Secondly, you will > need to get kexec from git or possibly a very recent version for it to > work. Current git and 2.0.2-rc1 are the same thing at this moment :-) _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kexec for powerpc mpc85xx processors 2010-07-09 6:43 ` Simon Horman @ 2010-07-10 4:44 ` krish 2010-07-10 6:37 ` Simon Horman 0 siblings, 1 reply; 8+ messages in thread From: krish @ 2010-07-10 4:44 UTC (permalink / raw) To: Simon Horman; +Cc: Matthew McClintock, kexec [-- Attachment #1.1: Type: text/plain, Size: 1565 bytes --] 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. If the above configuration was wrong, please help me to configure the package for ppc. Thanks in advance. On Fri, Jul 9, 2010 at 12:13 PM, Simon Horman <horms@verge.net.au> wrote: > On Fri, Jul 09, 2010 at 01:28:18AM -0500, Matthew McClintock wrote: > > On Fri, 2010-07-09 at 11:39 +0530, krish wrote: > > > Hi, > > > > > > Is kexec-tools support powerpc mpc85xx processors. If so, please help > > > me to compile the package for powerpc processors. > > > > > > > Some work has been done recently on the kernel side and kexec side. > > First, what version of the kernel are you running? Secondly, you will > > need to get kexec from git or possibly a very recent version for it to > > work. > > Current git and 2.0.2-rc1 are the same thing at this moment :-) > -- Regards, Radha Krishna "Yesterday is history, Tomorrow is mystery, Today is gift" [-- Attachment #1.2: Type: text/html, Size: 2025 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] 8+ messages in thread
* Re: kexec for powerpc mpc85xx processors 2010-07-10 4:44 ` krish @ 2010-07-10 6:37 ` Simon Horman 2010-07-10 7:23 ` Matthew McClintock 0 siblings, 1 reply; 8+ messages in thread From: Simon Horman @ 2010-07-10 6:37 UTC (permalink / raw) To: krish; +Cc: Matthew McClintock, kexec 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? _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kexec for powerpc mpc85xx processors 2010-07-10 6:37 ` Simon Horman @ 2010-07-10 7:23 ` Matthew McClintock 2010-07-10 9:08 ` krish 0 siblings, 1 reply; 8+ messages in thread From: Matthew McClintock @ 2010-07-10 7:23 UTC (permalink / raw) To: Simon Horman; +Cc: krish, kexec 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 _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kexec for powerpc mpc85xx processors 2010-07-10 7:23 ` Matthew McClintock @ 2010-07-10 9:08 ` krish 2010-07-11 16:53 ` Matthew McClintock 0 siblings, 1 reply; 8+ messages in thread From: krish @ 2010-07-10 9:08 UTC (permalink / raw) To: Matthew McClintock; +Cc: Simon Horman, kexec [-- Attachment #1.1: Type: text/plain, Size: 11389 bytes --] 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. The compile error i got was: kexec/arch/ppc/Makefile:4: kexec/arch/ppc/libfdt/Makefile.libfdt: No such file or directory 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" [-- Attachment #1.2: Type: text/html, Size: 12473 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] 8+ messages in thread
* Re: kexec for powerpc mpc85xx processors 2010-07-10 9:08 ` krish @ 2010-07-11 16:53 ` Matthew McClintock 0 siblings, 0 replies; 8+ messages in thread From: Matthew McClintock @ 2010-07-11 16:53 UTC (permalink / raw) To: krish; +Cc: Simon Horman, kexec 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 _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-07-11 16:54 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-07-09 6:09 kexec for powerpc mpc85xx processors krish 2010-07-09 6:28 ` Matthew McClintock 2010-07-09 6:43 ` Simon Horman 2010-07-10 4:44 ` krish 2010-07-10 6:37 ` Simon Horman 2010-07-10 7:23 ` Matthew McClintock 2010-07-10 9:08 ` krish 2010-07-11 16:53 ` Matthew McClintock
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox