<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=windows-1252"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Geoff Levand wrote:
<blockquote cite="mid:47D7349E.90409@am.sony.com" type="cite">
  <pre wrap="">Pete/Piet Delaney wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Geoff Levand wrote:
| Geoff Levand wrote:
|&gt; Rajasekaran P wrote:
|&gt;&gt; Hi Geoff,
|&gt;&gt; Thanks for your information.
|&gt;&gt;
|&gt;&gt; I used latest kexec tools with 2.6.23 kernel built with ps3_defconfig.
|&gt;&gt; This kernel boots normally on PS3. But when I  add "crashkernel"
|&gt;&gt; argument, it goes on hang.
|&gt;&gt;
|&gt;&gt; # kexec --command-line="video=ps3fb:mode:166 rhgb root=/dev/ps3da3
|&gt;&gt; crashkernel=128M@32M" \
|&gt;&gt; --initrd=/boot/initrd-2.6.23.img \
|&gt;&gt; -l /boot/vmlinux-2.6.23
|&gt;&gt;
|&gt;&gt; # taskset 1 kexec e
|&gt;&gt;
|&gt;&gt; Nothing happens after this. As you said earlier in your mail, I am not
|&gt;&gt; getting any PRINTK outputs from kernel on screen.

I was wondering about bringing in the printf() code from purgatory
and using that to print info about what's going on in the kexec code.
The standalone printf() might come in handy in other places; Ex: kgdb
stub. If it was in a library it could also be used during kernel
decompression to inform on problems occurring, like checksum errors.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
When the first stage kernel goes down it releases all hypervisor
resources so that whatever boots next can successful open those
resources.  The frame buffer is one of those resources that are
released, and after it is, there will be no more output to the
display until the second stage image brings up its display.  It
is not a matter of adding print statements or string formatting.
  </pre>
</blockquote>
<br>
Oh, I thought you experienced the same problem I had<br>
with printk() calls in some of the kexec functions making<br>
it no longer work. I was considering changing my KEXEC_DEBUG()<br>
macros to using printf() instead of printk() and importing <br>
the purgatory printf() code.<br>
<blockquote cite="mid:47D7349E.90409@am.sony.com" type="cite">
  <pre wrap="">
-Geoff

  </pre>
</blockquote>
<br>
</body>
</html>