After the oops Kernel panic appears, you need to calm down and analyze it. Based on the oops prompt information, you can guess the cause and type of the code error, and locate the specific one. C or. h file. One of the effective methods is to combine the program disassembly to jump to the error.
Decompile the generated uncompressed kernel image and objdump-D vmlinx to decompile your Kernel
Objdump-D vmlinux> vmlinux. Dis
Then you can use the following registers to determine:
1. Which function does the EPC stick?
2. Return address of the RA function,
3. Cause can use this register to analyze what type of exceptions are.
Process ID with error
The value of each register when an error occurs. CPU: 0 indicates the number of the wrong CPU. For a single processor system, the number is 0.
Stack call in case of an error. The bottom is the top-level call.
Machine code of the command near the wrong command