Test kexec functionality ========================== Please refer to Documentation/kdump.txt in kernel source tree for detailed information about kdump. 1) Test kexec -l (booting a normal kernel using kexec reboot) -------------------------------------------------------------- - Build first kernel with kexec support(CONFIG_KEXEC=y) - Build kexec-tools (http://www.xmission.com/~ebiederm/files/kexec/kexec-tools-1.101.tar.gz) - Reboot to first kernel with kexec support - Use kexec-tools to load second kernel (nothing special about this kernel, can be the same kernel as the first kernel) kexec -l --args-linux --append="" - Use kexec-tools to reboot the system kexec -e - save boot/console log - see if the system has booted fine 2) Test kdump ------------- - Build first kernel with kexec support - Build kexec-tools with kdump patch (http://lse.sf.net/kdump/patches/kexec-tools-1.101-kdump.patch) - Reboot to first kernel with kexec support with boot parameter crashkernel=XM@YM to reserve RAM for dump capture kernel for example crashkernel=64M@16M - Build dump capture kernel as mentioned in Documentation/kdump.txt - Use kexec-tools to load dump capture kernel - use a panic module to create kernel panic or use `echo "c" > /proc/sysrq-trigger` to initiate kdump. - save boot/console log - once Dump capture kernel has booted save /proc/vmcore.