On Tue, Mar 21, 2006 at 06:03:13AM +0000, bhanu prakash wrote:
> Hi all,
> 
> I am Bhanu.I am working on kexec,kdump now.I am naive
> to this environment and have some problems related to
> kexec and kdump.
> 
> I am using 2.6.15-git12-6-default kernel in suse 10.1
> linux.I had gone through the kdump.txt document about
> the steps to be followed and i am getting some
> problems when installing kdump,kexec.
> 
> I followed the below steps
> 
> 1)  Download the upstream kexec-tools userspace
> package 
> 2)  Applied latest consolidated kdump patch on top of
> kexec-tools-1.101
> 3) Downloaded and built the vanilla kernel
>     I downloded 2.6.16-rc6.
> 4) Set the appropriate configuration in both the
> kernels. 
> 
> I am not sure where to add the line
> [EMAIL PROTECTED] when booting to first kernel.
> where actually we have to add the [EMAIL PROTECTED]
> in /boot/grub/menu.lst.

"[EMAIL PROTECTED]" is a boot param for 1st kernel and it can be added 
to the /boot/grub/menu.lst like below

--------
title test
    kernel (hd0,0)/boot/t root=/dev/sda1 vga=0x314 selinux=0 console=tty0 
console=ttyS0,38400 resume=/dev/sda2 elevator=cfq showopts [EMAIL PROTECTED]
---------

> 
> If we can pass this as command line argument to
> /sbin/reboot, can u help me with the syntax as I am
> not sure about it.
> 

not sure about the /sbin/reboot command, but while rebooting
using grub menu options one can edit and add the "[EMAIL PROTECTED]" boot
option to the selected kernel.

> I tried with adding [EMAIL PROTECTED] in the
> menu.lst file and rebooted the sytem. I executed kexec
> -p <vmlinux image of second kernel>
> 
> It gave invalid "-p" option error.
> 

As per Documentation/kdump/kdump.txt, for kdump (kexec on panic) the right
syntax is some thing like this

---------
kexec -p <second-kernel> --args-linux --elf32-core-headers 
--append="root=<root-dev> init 1 irqpoll maxcpus=1"
----------

> I tried with kexec -l <vmlinux image of second kernel>
> image it resulted with the following error.
> 

For normal kexec, the proper syntax is

kexec -l <second-kernel> --append="root=<root-dev>"

where <second-kernel> is a bzImage, but if a uncompressed (vmlinux) image
is used then specify --args-linux

kexec -l <second-kernel> --args-linux --append="root=<root-dev>"

> 
> kexec_load failed: Bad address
> entry       = (nil)
> nr_segments = 4
> segment[0].buf   = (nil)
> segment[0].bufsz = 158
> segment[0].mem   = (nil)
> segment[0].memsz = 158
> segment[1].buf   = 0xb7c00008
> segment[1].bufsz = 1b23e8
> segment[1].mem   = 0x1000000
> segment[1].memsz = 1b23e8
> segment[2].buf   = 0xb7bb2008
> segment[2].bufsz = 4dc24
> segment[2].mem   = 0x11b3000
> segment[2].memsz = 4dc24
> segment[3].buf   = 0xb7b82008
> segment[3].bufsz = 2f086
> segment[3].mem   = 0x1202000
> segment[3].memsz = 7fd54
> 
> I am not able to find kdump file in etc/sysconfig
> directory.
> 
No idea, I am not sure if kernel-kdump-xxx.rpm and kexec-tools rpms are
packaged with SuSE 10.1 or not.

thanks
Maneesh

_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot

Reply via email to