[CentOS] How to rebuild the kernel

Wed Jun 3 14:54:35 UTC 2020
Harsh chopra <serviceprovider.tester at gmail.com>

Hi everyone,
I am using Centos 7.8.2003 kernel 3.10
. I was trying to build and install the latest linux stable kernel i.e.
5.7, I successfully did the process but accidentally messed it up by
copying the .config file again in 5.7 kernel src,I tried to rebuild the 5.7
kernel but got make error as I was still on 5.7 kernel.

Then I changed to 3.10 and tried to rebuild 5.7 but was not successful.
I tried to reboot the system but this time I was in the maintenance mode.

So if anyone could suggest any help in recovering the 3.10 kernel.