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