LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-16-2021, 12:25 PM   #1
psrksprasad
LQ Newbie
 
Registered: Oct 2021
Posts: 4

Rep: Reputation: Disabled
Trouble installing Linux kernel version 5.14.12 - kernel panic not syncing no working init found try passing init


Hello all,
I tried installing the latest kernel version 5.14.12 in my 32-bit system.While configuring the kernel options,in make menuconfig I disabled 64bit support because my system is 32 bit.I was able to successfully build and install the kernel 5.14.12.But when I rebooted to find the changes to take place the system is giving the following error :

kernel panic not syncing no working init found try passing init.init error 8.
Is there any solution?

Regards
Prasad
 
Old 10-16-2021, 10:04 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349

Rep: Reputation: Disabled
There's always a solution. But first you need to properly identify the problem.

"No working init found" means the kernel can't locate the file "/bin/init" (or the alternative init filename you've specified in the .configure file) in the root filesystem.

Are you using an initrd? Have you successfully booted any other 5.14.x kernel on this system? Which distribution are you running? What is your root filesystem?
 
Old 10-17-2021, 03:11 AM   #3
psrksprasad
LQ Newbie
 
Registered: Oct 2021
Posts: 4

Original Poster
Rep: Reputation: Disabled
Trouble installing kernel version 5.14.12 - details of file system etc...

Hello Ser Olmy,
Thank you for your reply.This is the first time I am installing the linux kernel 5.14.12 on my system.I am running Ubuntu 20.04.3 LTS on my machine.I ran the command df -Th and got the below output about the file system.

prasad@prasad-desktop:/$ df -Th
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs tmpfs 391M 1.6M 389M 1% /run
/dev/sda5 ext4 457G 8.6G 426G 2% /
tmpfs tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/loop1 squashfs 33M 33M 0 100% /snap/snapd/12704
/dev/loop2 squashfs 51M 51M 0 100% /snap/snap-store/547
/dev/loop3 squashfs 56M 56M 0 100% /snap/core18/2128
/dev/loop0 squashfs 66M 66M 0 100% /snap/gtk-common-themes/1515
/dev/loop4 squashfs 219M 219M 0 100% /snap/gnome-3-34-1804/72
/dev/sda1 vfat 511M 4.0K 511M 1% /boot/efi
tmpfs tmpfs 391M 112K 391M 1% /run/user/1000


As far as initrd is concerned,I ran the following command and got the output as below.
prasad@prasad-desktop:/$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.11.0-37-generic root=UUID=a1f65d91-d564-4d93-bbac-df272208d8e1 ro quiet splash vt.handoff=7

But I think the real problem is not detecting init.It is detecting init and giving init error 8.
 
Old 10-17-2021, 03:33 AM   #4
lovemeslk
Member
 
Registered: Feb 2020
Location: Rantoul IL
Distribution: Slackware
Posts: 350

Rep: Reputation: 73
here use this one boot without an intrid
Attached Files
File Type: txt config-5.14.12.txt (229.5 KB, 186 views)
File Type: txt config-generic-smp-5.14.12-smp.txt (230.9 KB, 60 views)

Last edited by lovemeslk; 10-17-2021 at 03:37 AM.
 
Old 10-17-2021, 03:38 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ I haven't looked at that file, but "init" is not the same as "initrd".
 
Old 10-17-2021, 07:15 AM   #6
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349

Rep: Reputation: Disabled
Quote:
Originally Posted by psrksprasad View Post
This is the first time I am installing the linux kernel 5.14.12 on my system.
OK. There is a specific problem with 5.14.12 that seems to predominantly affect 32-bit systems. This may or may not be related to your issue (we'll see), but that's why I asked.
Quote:
Originally Posted by psrksprasad View Post
I am running Ubuntu 20.04.3 LTS on my machine.I ran the command df -Th and got the below output about the file system.

prasad@prasad-desktop:/$ df -Th
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs tmpfs 391M 1.6M 389M 1% /run
/dev/sda5 ext4 457G 8.6G 426G 2% /
So your root file system is ext4, and you're running Ubuntu. That means the new kernel must include ext4 support (CONFIG_EXT4_FS), and the init system is systemd.

How did you generate the .config file before compiling the new kernel? Did you start with a .config file from a running Ubuntu system, or did you start from scratch?
Quote:
Originally Posted by psrksprasad View Post
As far as initrd is concerned,I ran the following command and got the output as below.
prasad@prasad-desktop:/$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.11.0-37-generic root=UUID=a1f65d91-d564-4d93-bbac-df272208d8e1 ro quiet splash vt.handoff=7
So you're not using an initrd. That means ext4 support must be compiled into the kernel proper, and not as a module. Same goes for the hard drive controller.
 
1 members found this post helpful.
Old 10-17-2021, 12:49 PM   #7
psrksprasad
LQ Newbie
 
Registered: Oct 2021
Posts: 4

Original Poster
Rep: Reputation: Disabled
Trouble installing kernel version 5.14.12 - further update

Quote:
Originally Posted by Ser Olmy View Post
OK. There is a specific problem with 5.14.12 that seems to predominantly affect 32-bit systems. This may or may not be related to your issue (we'll see), but that's why I asked.So your root file system is ext4, and you're running Ubuntu. That means the new kernel must include ext4 support (CONFIG_EXT4_FS), and the init system is systemd.

How did you generate the .config file before compiling the new kernel? Did you start with a .config file from a running Ubuntu system, or did you start from scratch?So you're not using an initrd. That means ext4 support must be compiled into the kernel proper, and not as a module. Same goes for the hard drive controller.
Thank you for your response. I used the .config file from a running Ubuntu system.The kernel version in the running Ubuntu system is 5.11.0-37-generic.How the hard drive controller support must be compiled into the kernel proper?Could you suggest any articles?It is also fine if you explain it.
 
Old 10-17-2021, 01:55 PM   #8
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349

Rep: Reputation: Disabled
Quote:
Originally Posted by psrksprasad View Post
Thank you for your response. I used the .config file from a running Ubuntu system.The kernel version in the running Ubuntu system is 5.11.0-37-generic.How the hard drive controller support must be compiled into the kernel proper?Could you suggest any articles?It is also fine if you explain it.
If you used an existing config file, the required filesystem and controller support really ought to be present.

Check the .config file for ext4 support:
Code:
grep "CONFIG_EXT4_FS=" .config
If this returns CONFIG_EXT4_FS=y, you're good. If it says CONFIG_EXT4_FS=m you'll need to generate an initrd.

As for the controller, the command lspci -v should be able to identify the hard drive or NVME controller in your system.

The next step would be for you to post more of the kernel "splat", not just the "Kernel Panic - not syncing" part. You need to nail down exactly why it's unable to find the init file.

Capturing kernel messages during boot may be somewhat difficult without a serial connection, but you could add boot_delay=200 to the kernel command line in GRUB. That would add a 200 ms delay for each line of output from the kernel during boot, which should help you get a screenshot of the part just before a panic is reported.
 
1 members found this post helpful.
Old 10-18-2021, 04:30 AM   #9
psrksprasad
LQ Newbie
 
Registered: Oct 2021
Posts: 4

Original Poster
Rep: Reputation: Disabled
The boot messages you requested

Quote:
Originally Posted by Ser Olmy View Post
If you used an existing config file, the required filesystem and controller support really ought to be present.

Check the .config file for ext4 support:
Code:
grep "CONFIG_EXT4_FS=" .config
If this returns CONFIG_EXT4_FS=y, you're good. If it says CONFIG_EXT4_FS=m you'll need to generate an initrd.

As for the controller, the command lspci -v should be able to identify the hard drive or NVME controller in your system.

The next step would be for you to post more of the kernel "splat", not just the "Kernel Panic - not syncing" part. You need to nail down exactly why it's unable to find the init file.

Capturing kernel messages during boot may be somewhat difficult without a serial connection, but you could add boot_delay=200 to the kernel command line in GRUB. That would add a 200 ms delay for each line of output from the kernel during boot, which should help you get a screenshot of the part just before a panic is reported.
Thank you for your response.I am attaching the dump that is appearing on the screen when I try to boot.Probably this may give you some hint.Please let me know if I have to provide some thing else.
Attached Thumbnails
Click image for larger version

Name:	20211018_144633.jpg
Views:	408
Size:	234.5 KB
ID:	37498  
 
Old 10-18-2021, 05:23 AM   #10
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,843

Rep: Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682
On my xubuntu the nvme support section is setup as modules in my generic-config, I would think it needs to be built in.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Diskless: Kernel panic-not syncing: No init found. Try passing init= option to kernel Pier Gentoo 6 10-10-2011 06:17 AM
Kernel panic-not syncing:No init found. Try passing init=option to kernel cucolin@ Ubuntu 5 12-26-2008 06:44 AM
Kernel panic - not syncing: No init found. Try passing init= option to kernel. john_schimandle Linux - Embedded & Single-board computer 3 10-10-2008 09:09 AM
Kernel panic - not syncing: No init found. Try passing init= option to kernel. john_schimandle Linux - Newbie 4 10-09-2008 02:40 AM
Kernel panic - not syncing: No init found. Try passing init= option to kernel ranjithmrk Linux - Newbie 4 08-22-2008 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 04:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration