1 2 | wget http://www.kernel.org/pub/linux/kernel/people/horms/kexec-tools/\ kexec-tools.tar.gz |
1 2 3 4 | # tar xvpzf kexec-tools.tar.gz # cd kexec-tools-VERSION # ./configure # make && make install |
1 | CONFIG_KEXEC=y |
1 | CONFIG_SYSFS=y |
1 | CONFIG_DEBUG_INFO=Y |
1 | CONFIG_CRASH_DUMP=y |
1 | CONFIG_PROC_VMCORE=y |
1 | CONFIG_HIGHMEM64G=y |
1 | CONFIG_SMP=n |
1 | CONFIG_RELOCATABLE=y |
1 | CONFIG_PHYSICAL_START=0x1000000 |
1 2 3 | # kexec -p <dump-capture-kernel-bzImage> \ --initrd=<initrd-for-dump-capture-kernel> \ --append="root=<root-dev> <arch-specific-options>" |
1 2 3 4 | # tar -zvxf crash-5.0.0.tar.gz # cd crash-5.0.0 # ./configure # make &&make install |
1 | # echo c > /proc/sysrq-trigger |
1 | # cp /proc/vmcore mydumpfile |
1 | # crash vmlinux mydumpfile |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |