Vivek Goyal wrote:
> On Sat, Jan 20, 2007 at 10:10:36AM -0800, Jay Lan wrote:
>> What is a reliable way to determine whether the booting kernel
>> is a production kernel or a kdump kernel?
>>
>> In setup_arch() routine of arch/ia64/kernel/setup.c, there is
>> a statement as below:
>>
>>  kdump_kernel = (strstr(saved_command_line, "elfcorehdr=") != NULL);
>>
>> This check is not true for an SN system. Is there a better way?
>> How about "maxcpus=" ? Is maxcpus=1 always true for a kdump kernel?
> 
> elfcorehdr= is passed to tell the next kernel about the location of
> saved cpu state of crashed kernel. If this is not passed in SN systems,
> then how next kernel comes to know where the cpu states are available in
> RAM?, jut curious.

Sorry. I stand corrected.

In my debugging i created a "kdump_kernel" and found the variable was
already there and was set if command line contains "eficorehdr=". The
variable is used in the kernel in arch/ia64/hp/common/sba_iommu.c
and i was sure we did not specify that option in elilo.conf nor
in /etc/sysconfig/kdump.

Now i looked at the kexec-tools side of code and found how it is
being used.

Thanks! I should use the variable in the kernel then.

Thanks,
 - jay

> 
> Thanks
> Vivek

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

Reply via email to