<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>kexec problem on SH platform</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hi,<BR>
my name is Paolo Cortesi. I'am working over one SH4 platform board ST71XX with linux kernel 2.6.17.<BR>
<BR>
I need to spawn a new Linux kernel over the Linux Kernel which is running, without the overhead of boot firmware, and I think that your kexec-tool could be suitable for this target.<BR>
<BR>
I try to use kexec following the steps:<BR>
<BR>
1) I select the CONFIG_KEXEC option while building the runnig kernel.<BR>
<BR>
2) I download your last recent version of kexec-tool which support SH4 platform<BR>
<BR>
I used your .gz reachable by link: <BR>
<A HREF="http://www.vergenet.net/linux/kexec/kexec-tools/">http://www.vergenet.net/linux/kexec/kexec-tools/</A><BR>
<BR>
3) I launch the the configure by my script:<BR>
<BR>
export CC=sh4-linux-uclibc-gcc<BR>
export LD=sh4-linux-uclibc-ld<BR>
export AR=sh4-linux-uclibc-ar<BR>
export CFLAGS="-DSHLINUX -D__SHLINUX__ -Wall -O2 -ml -m4 -pipe -fomit-frame-pointer -fno-strict-aliasing"<BR>
./configure --host=sh4-linux<BR>
<BR>
4) I cross compile. During compilation I comment the invoke of /*crash_setup_regs(&fixed_regs, regs);*/ procedure that's called in crash_kexec procedure of kernel/kexec.c file (I could not find any implementation of this procedure).<BR>
<BR>
5) I launch the runnig kernel, which execute:<BR>
kexec -l <new_zImage> --type=zImage-sh --append="command_line"<BR>
kexec -e<BR>
<BR>
Should be the wright procedure.<BR>
<BR>
But I have one NULL pointer deferenced when itīs called the last assembler procedure reboot_code_buffer (relocate_new_kernel) which is invoked in the kernel C procedure arch/sh/... machine_kexec.c<BR>
<BR>
Have you got an idea of the problem? Have you ever used your tool using one intrd kernel running<BR>
<BR>
Thanks in advance.<BR>
<BR>
Paolo Cortesi.<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>