* Kernel panic - not syncing: No init found
@ 2012-09-12 16:18 Ellis Andrew
2012-09-15 19:04 ` Baruch Siach
0 siblings, 1 reply; 4+ messages in thread
From: Ellis Andrew @ 2012-09-12 16:18 UTC (permalink / raw)
To: linux-arm-kernel
Hi,
After a lot of searching with Google I have found this is a common
problem, unfortunately none of the solutions I have found, fix the
problem.
The original error I got was:
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
The command line option was:
root=/dev/mtdblock3 rootfstype=jffs2 rw console=ttyMCS mem=64M at 0x0
I after digging around with google, I found a suggestion which I tried, I made my command line:
root=/dev/mtdblock3 rootfstype=jffs2 rw console=ttyMCS mem=64M at 0x0 init=/sbin/init panic=4
But I now get the following error:
Freeing init memory: 88K
Failed to execute /sbin/init. Attempting defaults...
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
I can see that the Root drive is being mounted.
The contents of the init file is:
#!/bin/busybox ash
/bin/busybox mount -t sysfs /dev/sys /sys
/bin/busybox mount -t proc /proc
/bin/busybox mount -t devpts /dev/pts
# Populate /dev according to /sys
/bin/busybox mdev -s
/bin/busybox --install -s
/linuxrc
exec /sbin/init "$@"? </dev/console >/dev/console 2>&1
Does anyone have any suggestions on how to fix this please?
Kind regards
Andrew Ellis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120912/a9a75241/attachment-0001.html>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Kernel panic - not syncing: No init found
2012-09-12 16:18 Kernel panic - not syncing: No init found Ellis Andrew
@ 2012-09-15 19:04 ` Baruch Siach
2012-09-17 11:49 ` Ellis Andrew
0 siblings, 1 reply; 4+ messages in thread
From: Baruch Siach @ 2012-09-15 19:04 UTC (permalink / raw)
To: linux-arm-kernel
Hi Ellis,
On Wed, Sep 12, 2012 at 05:18:22PM +0100, Ellis Andrew wrote:
> After a lot of searching with Google I have found this is a common problem,
> unfortunately none of the solutions I have found, fix the problem.
>
> The original error I got was:
>
> Kernel panic - not syncing: No init found. Try passing init= option to kernel.
>
> The command line option was:
> root=/dev/mtdblock3 rootfstype=jffs2 rw console=ttyMCS mem=64M at 0x0
>
> I after digging around with google, I found a suggestion which I tried, I made my command line:
> root=/dev/mtdblock3 rootfstype=jffs2 rw console=ttyMCS mem=64M at 0x0 init=/sbin/init panic=4
>
> But I now get the following error:
>
> Freeing init memory: 88K
> Failed to execute /sbin/init. Attempting defaults...
> Kernel panic - not syncing: No init found. Try passing init= option to kernel.
>
> I can see that the Root drive is being mounted.
>
> The contents of the init file is:
>
> #!/bin/busybox ash
> /bin/busybox mount -t sysfs /dev/sys /sys
> /bin/busybox mount -t proc /proc
> /bin/busybox mount -t devpts /dev/pts
> # Populate /dev according to /sys
> /bin/busybox mdev -s
> /bin/busybox --install -s
> /linuxrc
> exec /sbin/init "$@"? </dev/console >/dev/console 2>&1
>
> Does anyone have any suggestions on how to fix this please?
The most common reason for this failure is that your root filesystem layout is
not what you think it is. Try booting into initramfs and mounting your jffs2
filesystem from there to examine it directly on your running system.
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 4+ messages in thread
* Kernel panic - not syncing: No init found
2012-09-15 19:04 ` Baruch Siach
@ 2012-09-17 11:49 ` Ellis Andrew
2012-09-19 5:04 ` Baruch Siach
0 siblings, 1 reply; 4+ messages in thread
From: Ellis Andrew @ 2012-09-17 11:49 UTC (permalink / raw)
To: linux-arm-kernel
Hi Baruch
Thank you for your reply.
I have done a bit of searching around, and I'm not sure how to boot into initrmafs. Can you please point me towards some instructions on how to do this.
Kind regards
Andrew
________________________________
From: Baruch Siach <baruch@tkos.co.il>
To: Ellis Andrew <ajellisuk@yahoo.co.uk>
Cc: "linux-arm-kernel at lists.infradead.org" <linux-arm-kernel@lists.infradead.org>
Sent: Saturday, 15 September 2012, 20:04
Subject: Re: Kernel panic - not syncing: No init found
Hi Ellis,
On Wed, Sep 12, 2012 at 05:18:22PM +0100, Ellis Andrew wrote:
> After a lot of searching with Google I have found this is a common problem,
> unfortunately none of the solutions I have found, fix the problem.
>
> The original error I got was:
>
> Kernel panic - not syncing: No init found.? Try passing init= option to kernel.
>
> The command line option was:
> root=/dev/mtdblock3 rootfstype=jffs2 rw console=ttyMCS mem=64M at 0x0
>
> I after digging around with google, I found a suggestion which I tried, I made my command line:
> root=/dev/mtdblock3 rootfstype=jffs2 rw console=ttyMCS mem=64M at 0x0 init=/sbin/init panic=4
>
> But I now get the following error:
>
> Freeing init memory: 88K
> Failed to execute /sbin/init.? Attempting defaults...
> Kernel panic - not syncing: No init found.? Try passing init= option to kernel.
>
> I can see that the Root drive is being mounted.
>
> The contents of the init file is:
>
> #!/bin/busybox ash
> /bin/busybox mount -t sysfs /dev/sys /sys
> /bin/busybox mount -t proc? /proc
> /bin/busybox mount -t devpts /dev/pts
> # Populate /dev according to /sys
> /bin/busybox mdev -s
> /bin/busybox --install -s
> /linuxrc
> exec /sbin/init "$@"?? </dev/console >/dev/console 2>&1
>
> Does anyone have any suggestions on how to fix this please?
The most common reason for this failure is that your root filesystem layout is
not what you think it is. Try booting into initramfs and mounting your jffs2
filesystem from there to examine it directly on your running system.
baruch
--
? ? http://baruch.siach.name/blog/? ? ? ? ? ? ? ? ? ~. .~? Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
? - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120917/43ba1442/attachment.html>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Kernel panic - not syncing: No init found
2012-09-17 11:49 ` Ellis Andrew
@ 2012-09-19 5:04 ` Baruch Siach
0 siblings, 0 replies; 4+ messages in thread
From: Baruch Siach @ 2012-09-19 5:04 UTC (permalink / raw)
To: linux-arm-kernel
Hi Ellis,
On Mon, Sep 17, 2012 at 12:49:37PM +0100, Ellis Andrew wrote:
> I have done a bit of searching around, and I'm not sure how to boot into
> initrmafs. Can you please point me towards some instructions on how to do
> this.
See Documentation/filesystems/ramfs-rootfs-initramfs.txt in (recent) kernel
source tree. See also http://www.landley.net/writing/rootfs-howto.html by the
same author.
baruch
> ________________________________
> From: Baruch Siach <baruch@tkos.co.il>
> To: Ellis Andrew <ajellisuk@yahoo.co.uk>
> Cc: "linux-arm-kernel at lists.infradead.org" <linux-arm-kernel@lists.infradead.org>
> Sent: Saturday, 15 September 2012, 20:04
> Subject: Re: Kernel panic - not syncing: No init found
>
> Hi Ellis,
>
> On Wed, Sep 12, 2012 at 05:18:22PM +0100, Ellis Andrew wrote:
> > After a lot of searching with Google I have found this is a common problem,
> > unfortunately none of the solutions I have found, fix the problem.
> >
> > The original error I got was:
> >
> > Kernel panic - not syncing: No init found.? Try passing init= option to kernel.
> >
> > The command line option was:
> > root=/dev/mtdblock3 rootfstype=jffs2 rw console=ttyMCS mem=64M at 0x0
> >
> > I after digging around with google, I found a suggestion which I tried, I made my command line:
> > root=/dev/mtdblock3 rootfstype=jffs2 rw console=ttyMCS mem=64M at 0x0 init=/sbin/init panic=4
> >
> > But I now get the following error:
> >
> > Freeing init memory: 88K
> > Failed to execute /sbin/init.? Attempting defaults...
> > Kernel panic - not syncing: No init found.? Try passing init= option to kernel.
> >
> > I can see that the Root drive is being mounted.
> >
> > The contents of the init file is:
> >
> > #!/bin/busybox ash
> > /bin/busybox mount -t sysfs /dev/sys /sys
> > /bin/busybox mount -t proc? /proc
> > /bin/busybox mount -t devpts /dev/pts
> > # Populate /dev according to /sys
> > /bin/busybox mdev -s
> > /bin/busybox --install -s
> > /linuxrc
> > exec /sbin/init "$@"?? </dev/console >/dev/console 2>&1
> >
> > Does anyone have any suggestions on how to fix this please?
>
> The most common reason for this failure is that your root filesystem layout is
> not what you think it is. Try booting into initramfs and mounting your jffs2
> filesystem from there to examine it directly on your running system.
>
> baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-09-19 5:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-12 16:18 Kernel panic - not syncing: No init found Ellis Andrew
2012-09-15 19:04 ` Baruch Siach
2012-09-17 11:49 ` Ellis Andrew
2012-09-19 5:04 ` Baruch Siach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox