1. Please install utility to run crash-utility
$ sudo apt-get install texinfo git build-essential bison zlib1g-dev libncurses5-dev libncursesw5-dev pkg-config flex swig -y
2. Pull crash-utility source code with below command.
$ git clone https://github.com/crash-utility/crash.git
3. Build crash-utility Source code
$ cd crash
$ make target=ARM64 -j3
(Warninig)
You may see error messages compiling crash-utility due to 'j' option.
In this case, please build crash-utility without 'j' option
$ cd crash
$ make target=ARM64
After crash-utility is sucessfully compiled, 'crash' is generated.
4. Place the vmcore and vmlinux in the same directory. And copy 'crash' to the same directory where vmcore and vmlinux are placed.
$ ls
$ crash vmcore vmlinux
$ chmod 777 crash
(Warning)
Please make sure that vmcore is matched to vmlinux. And then you need to use the below
command to start crash utility
5. Run crash-utility using below command
$ ./crash vmcore vmlinux
'유용한 디버깅 팁 > crash utility and vmcore' 카테고리의 다른 글
[Linux kernel] vmcore enabled kernel configuration (0) | 2024.08.23 |
---|---|
[Install] crash utility with Aarch32 for troubleshooting (0) | 2023.12.21 |
[Debugging] crash-utility (11/10/2023) (0) | 2023.11.10 |
[crash-utility] 컴파일 에러: curses.h: No such file or directory! (0) | 2023.05.06 |
[리눅스커널][디버깅] Red Hat Crash-Utility(크래시 유틸리티) 설치! (0) | 2023.05.06 |