Discussion:
Kernel panic - not syncing: No init found. Try passing init= option to kernel
Rambabu Dasari
2010-01-24 16:40:06 UTC
Permalink
Hi all,

I am trying to build Linux from Scratch(LFS), while booting the kernel
throughing the following error.

[ 4.586704] Warning: unable to open an initial console.
[ 4.592188] Failed to execute /init
[ 4.595746] Kernel panic - not syncing: No init found. Try passing init=
option to kernel.
[ 4.604190] Pid: 1, comm: swapper Not tainted 2.6.30.2 #1
[ 4.609649] Call Trace:
[ 4.612168] [<c164073c>] ? printk+0xf/0x11
[ 4.616417] [<c1640695>] panic+0x39/0xd1
[ 4.620493] [<c10012e5>] init_post+0xd3/0xd6
[ 4.624916] [<c1aa231f>] kernel_init+0x152/0x15c
[ 4.629686] [<c1aa21cd>] ? kernel_init+0x0/0x15c
[ 4.634456] [<c100340f>] kernel_thread_helper+0x7/0x10



Thanks in advance,
Rambabu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20100124/f34e70cf/attachment.html>
Muzer
2010-01-24 16:51:12 UTC
Permalink
Post by Rambabu Dasari
Hi all,
I am trying to build Linux from Scratch(LFS), while booting the kernel
throughing the following error.
[ 4.586704] Warning: unable to open an initial console.
[ 4.592188] Failed to execute /init
[ 4.595746] Kernel panic - not syncing: No init found. Try passing
init= option to kernel.
[ 4.604190] Pid: 1, comm: swapper Not tainted 2.6.30.2 #1
[ 4.612168] [<c164073c>] ? printk+0xf/0x11
[ 4.616417] [<c1640695>] panic+0x39/0xd1
[ 4.620493] [<c10012e5>] init_post+0xd3/0xd6
[ 4.624916] [<c1aa231f>] kernel_init+0x152/0x15c
[ 4.629686] [<c1aa21cd>] ? kernel_init+0x0/0x15c
[ 4.634456] [<c100340f>] kernel_thread_helper+0x7/0x10
Thanks in advance,
Rambabu
Are you using the correct partition in the kernel boot line?

Did you install init correctly?

- --
- -----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/CM/IT d>++ s+:- a--- C+++ UL+++>++++ P+>+++ L+++>+++++ E---->---
W+++ N o? K? w--- O+ M-- V- PS PE? Y-- PGP+++ t+ 5? X- R-- tv+ b++ DI D
G++ e- h! !r y
- ------END GEEK CODE BLOCK------
linux fan
2010-01-24 17:04:56 UTC
Permalink
Post by Rambabu Dasari
Hi all,
I am trying to build Linux from Scratch(LFS), while booting the kernel
throughing the following error.
[ 4.586704] Warning: unable to open an initial console.
[ 4.592188] Failed to execute /init
6.2.1. Creating Initial Device Nodes, is supposed to have created null
and console. If these are not present on the filesystem at boot time,
it will panic the kernel.
Andrew Benton
2010-01-24 17:01:04 UTC
Permalink
Post by Rambabu Dasari
Hi all,
I am trying to build Linux from Scratch(LFS), while booting the kernel
throughing the following error.
[ 4.586704] Warning: unable to open an initial console.
[ 4.592188] Failed to execute /init
[ 4.595746] Kernel panic - not syncing: No init found. Try passing
init= option to kernel.
[ 4.604190] Pid: 1, comm: swapper Not tainted 2.6.30.2 #1
[ 4.612168] [<c164073c>] ? printk+0xf/0x11
[ 4.616417] [<c1640695>] panic+0x39/0xd1
[ 4.620493] [<c10012e5>] init_post+0xd3/0xd6
[ 4.624916] [<c1aa231f>] kernel_init+0x152/0x15c
[ 4.629686] [<c1aa21cd>] ? kernel_init+0x0/0x15c
[ 4.634456] [<c100340f>] kernel_thread_helper+0x7/0x10
Looks like you've screwed up somewhere. Have you compiled support for
you motherboard's chipset into you kernel? Likewise support for whatever
device your root filesystem is on and whatever filesystem you use. I get
the "No init found" error if I screw up the grub.cfg and try to boot the
wrong partition (which doesn't have /sbin/init) but that shouldn't
produce an oops. Sorry I can't be more help.

Andy
Bruce Dubbs
2010-01-24 18:03:12 UTC
Permalink
Post by Rambabu Dasari
Hi all,
I am trying to build Linux from Scratch(LFS), while booting the kernel
throughing the following error.
[ 4.586704] Warning: unable to open an initial console.
[ 4.592188] Failed to execute /init
[ 4.595746] Kernel panic - not syncing: No init found. Try passing init=
option to kernel.
[ 4.604190] Pid: 1, comm: swapper Not tainted 2.6.30.2 #1
[ 4.612168] [<c164073c>] ? printk+0xf/0x11
[ 4.616417] [<c1640695>] panic+0x39/0xd1
[ 4.620493] [<c10012e5>] init_post+0xd3/0xd6
[ 4.624916] [<c1aa231f>] kernel_init+0x152/0x15c
[ 4.629686] [<c1aa21cd>] ? kernel_init+0x0/0x15c
[ 4.634456] [<c100340f>] kernel_thread_helper+0x7/0x10
At least linux is being loaded. It sounds like you have the wrong
parameters (e.g. root=/dev/sda5) on your linux line in
/boot/grub/grub.cfg. The init program should be at /sbin/init.

The initial console problem looks like it can't find /dev/console which
should be created explicitly. That can be because of the wrong disk
partition too.

-- Bruce

Loading...