[Error Record] Solve the problem of Kernel panic - not syncing: Fatal exception Kernel Offset:0x***** when installing CentOS7.9 on a physical machine

Preface

Since I saved a lot of accessories by building my own computer, I decided to install another computer to use as my own development server. I thought the installation would be very simple, because I had installed CentOS7.9 before, and it was indeed very simple to install. Unexpectedly This time the installation was overturned! I originally wanted to give up using Windows and create a virtual machine to install CentOS. But then I thought about it, which completely deviated from the original intention, and if this problem is not solved, I will probably encounter it again in the future, so I bit the bullet and worked on it for a few hours. Finally solved it.

In order to save everyone's time, let me tell you the conclusion first:

Since CentOS7.9 is a 2020 system, it may not be compatible with AMD's new platform. It is truly incompatible at the hardware level , causing it to be unable to be installed and unable to start! ! Just get a new one! !

Let me talk about the hardware of my computer:

CPU:AMD R5 5600G

Motherboard: ASUS TUF Gaming B550M-E Wifi

Memory: Guangwei DDR4 2666MHz 16GB*2

Hard drive: Hungry Shark 256GB SSD (Toshiba TR150)

Resolution process

I used balena Etcher to burn this CentOS7.9 into a SanDisk 32GB USB flash drive. However, it cannot start from the USB flash drive, as shown in the picture:

The main contents are:

Oops: 0000 [#1] SMP

Modules linked in:

CPU: 3 PID: 1 Comm: swapper/0 Not tainted 3.10.0-1160.e17.x86_64 #1

Next is the computer hardware information

Then report vsnprintf+0x4e/0x6a0

Error reported when calling this method

Then there is a bunch of stack information, just ignore it, and finally report

Kernel panic - not syncing: Fatal exception

Kernel Offset:0x****** from 0x****** (relocation range: 0x******-0x******)

My troubleshooting steps are:

1. Did the U disk burning system fail? The result is good.

2. Did Grub startup not find the installation path of this image file? As a result, I changed the startup path in Grub to no avail, and still reported an error.

3. I took the SSD out of the computer, installed it on another computer that could be installed, and then put it back into my server. Even after the installation was completed, it still didn’t work.

4. Test the running status of this SSD on other computers and found that a laptop can run it.

5. Check the startup log under /var/log on the laptop, and find nothing, indicating that it has hung up before boot.log is reached.

6. I ran the SSD on my other 5600X host, and found that the same error was reported.

I switched to my main computer i7 8700K and tried it. I found that there was no problem at all like the laptop. I entered the system directly.

Let me summarize my test results:

R5 5600G+B550M TUF: Unable to run

R5 5600X+B550-A ROG STRIX: Unable to run

i7 8700K+Z370-A PRIME: can run

i5 10400+ Shenzhou motherboard: can run

R5 5500U+ Redmi motherboard: can run

Fortunately, I have many computers and can do this kind of test. Therefore, I have reason to suspect that the CentOS7.9 version is no longer compatible with AMD's Zen3 architecture CPU. A generation of classics is coming to an end, and it is still necessary to embrace changes and replace the Linux version.

What I finally chose was Rocky Linux 9.2 (the latest version as of August 26, 2023), which is also the successor of CentOS. This system runs perfectly on my 5600G server. Sometimes stubbornness is useless and you still have to change the system.

The installation completion effect is as follows

Specific installation method

1. Download balenaEtcher

2. Plug in the USB flash drive

3. Open balenaEtcher

4. Select operating system

5. Select your USB flash drive

6. Burn now

I think such a fool-like software can be used successfully by any fool.

Then insert the U disk into the computer that needs to be installed, select the U disk to boot, and the other steps are the same as the CentOS installation method, so I won’t go into details.

 

Guess you like

Origin blog.csdn.net/DCTANT/article/details/132517156