All of lore.kernel.org
 help / color / mirror / Atom feed
* kernel panic - not syncing: No init found
@ 2011-07-31 19:44 Francis Meyvis
  2011-08-01  2:42 ` Bruce Ashfield
  0 siblings, 1 reply; 12+ messages in thread
From: Francis Meyvis @ 2011-07-31 19:44 UTC (permalink / raw)
  To: yocto

Hello,

I probably miss something trivial.
I cloned the git://git.yoctoproject.org/poky.git
I build on a 64 bit machine a qemux86-64
(. ./oe-init-build-env qemux86-64 and changing the conf/local.conf)
I build the core-image-sato & core-image-minimal.
Then I try to run with
runqemu qemux86-64 core-image-sato ext3

But both sato and minimal give me this message:
Kernel panic - not syncing: No init found.

As runqemu showed me the full command line I tried to add the --append
command line option
init=/sbin/init and /sbin/init.sysvinit
But that did not help (there's a message saying Failed to execute
/sbin/init. Attempting defaults...)
I verified by mounting these ext3 images on a loop device that there's
really a /sbin/init present.

Can somebody tell what I'm doing wrong?

BTW is there any way to not have to run qemu with root permissions?
I ran the android emulator and it does not require me to be root.
Should I configure something on my Ubuntu machine to get qemu to function?

Thanks,
francis


^ permalink raw reply	[flat|nested] 12+ messages in thread
* 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; 12+ 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] 12+ messages in thread
[parent not found: <-1484187685935794069@unknownmsgid>]
* Kernel panic - not syncing: No init found.
@ 2006-05-10  9:40 hangtoo
  0 siblings, 0 replies; 12+ messages in thread
From: hangtoo @ 2006-05-10  9:40 UTC (permalink / raw)
  To: linuxppc-embedded


I try to make a new uRamdisk for my bubinga board(linux-2.6.14,PPC405EP).
actully I just copy the most of the files in the board,and compiled busybox with ppc tools.
but when I use the new uRamdisk for a try,it just showed up this errors(as follow),then reboot,back and forth...
**************************************************
RAMDISK: incomplete write (-28 != 32768) 4194304

EXT2-fs warning: checktime reached, running e2fsck is recommended

VFS: Mounted root (ext2 filesystem).

Freeing unused kernel memory: 116k init

attempt to access beyond end of device  //this is where the error begins.

ram0: rw=0, want=10330, limit=8192

Buffer I/O error on device ram0, logical block 5164

attempt to access beyond end of device

ram0: rw=0, want=10330, limit=8192

Buffer I/O error on device ram0, logical block 5164

attempt to access beyond end of device

ram0: rw=0, want=10330, limit=8192

Buffer I/O error on device ram0, logical block 5164

attempt to access beyond end of device

ram0: rw=0, want=10330, limit=8192

Buffer I/O error on device ram0, logical block 5164

Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
//according to this note,is there something I have to do with my kernel??
 <0>Rebooting in 1 seconds..
*************************************************

Any help is appreciated.

regards
tony

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-09-19  5:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-31 19:44 kernel panic - not syncing: No init found Francis Meyvis
2011-08-01  2:42 ` Bruce Ashfield
2011-08-01  3:30   ` Tom Zanussi
2011-08-01  4:04     ` Bruce Ashfield
2011-08-02  5:38       ` Francis Meyvis
2011-08-02 17:34         ` Bruce Ashfield
  -- strict thread matches above, loose matches on Subject: below --
2012-09-12 16:18 Kernel " Ellis Andrew
2012-09-15 19:04 ` Baruch Siach
2012-09-17 11:49   ` Ellis Andrew
2012-09-19  5:04     ` Baruch Siach
     [not found] <-1484187685935794069@unknownmsgid>
2006-05-10 13:57 ` Steve Iribarne (GMail)
2006-05-10  9:40 hangtoo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.