Sometimes, the system might become corrupted during unexpected power outages or improper shutdowns. In this situation, the system might go into Kernel Panic mode and be unable to boot up properly. Many reasons might cause kernel panic; in some cases, it can be easily fixed by performing a couple of simple commands.
This article shows the steps to bypass the error and fix the non-permanent damage that might have occurred. First, we interrupt the U-Boot by pressing any key during the system boot-up. This will bring up a command prompt.
Enter the following command to disable the error flag in the log:
setenv b_c console=tty1 console=ttyS0,115200 earlyprintk rootflags=norecovery
The command is completed in an instant and now we can try to boot from EMMC:
The system should boot up and stop with a command prompt. This is where we try to fix the disc. We first need to unmount the partition that we wish to repair.
sudo umount /dev/mmcblk0p8
We issue the File System Check command for the problematic partition.
sudo fsck -p /dev/mmcblk0p8
After completion, we can mount the partition, and the system will check to see if the mounting is successful.
sudo mount /dev/mmcblk0p8
Finally, we can reboot the system, and the problem should be fixed.