Reset PRAM. https://support.apple.com/kb/PH25631?locale=en_US&viewlocale=en_US
Start from Recovery HD and “Reinstall macOS” . Use the appropriate key combination. https://support.apple.com/en-us/HT204904
About Kernel Panics: https://support.apple.com/kb/PH25498?locale=en_US