Failed to execute /init. Attempting defaults...

3,263 views
Skip to first unread message

stanly

unread,
Mar 17, 2011, 5:09:41 AM3/17/11
to android...@googlegroups.com
hi all,

I have developed in kernel 2.6.35
and when booting up kernel,
there have some problems bellow,
I get the "failed to execute /init" message,
but there really exist init
can somebody give me suggestion?
thanks so much
===============================
EXT3-fs: barriers not enabled
kjournald starting.  Commit interval 5 seconds
EXT3-fs (mmcblk0p2): using internal journal
EXT3-fs (mmcblk0p2): recovery complete
EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) on device 179:2.
Freeing init memory: 208K
Failed to execute /init.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[<c0041b8c>] (unwind_backtrace+0x0/0xe4) from [<c0487aac>] (panic+0x54/0xdc)
[<c0487aac>] (panic+0x54/0xdc) from [<c003c5c4>] (init_post+0xac/0xd4)
[<c003c5c4>] (init_post+0xac/0xd4) from [<c00084e4>] (kernel_init+0x174/0x1f0)
[<c00084e4>] (kernel_init+0x174/0x1f0) from [<c003d97c>] (kernel_thread_exit+0x0/0x8)
Rebooting in 1 seconds..
===============================

gmail

unread,
Mar 17, 2011, 5:14:07 AM3/17/11
to android...@googlegroups.com, android...@googlegroups.com
should you ramdisk issue.  Please check your kernel option and bootloader setting

Jiejing

tstanly

unread,
Mar 17, 2011, 5:35:09 AM3/17/11
to Android Linux Kernel Development
hi,

I think my bootloader args is correct,
bootargs=console=ttyO2,115200n8 rootdelay=1 init=/init root=/dev/
mmcblk1p2 ...........

but I can't understand it's a ramdisk issue?
can you give me some hint?
thanks

On 3月17日, 下午5時14分, gmail <kzj...@gmail.com> wrote:
> should you ramdisk issue. Please check your kernel option and bootloader setting
>
> Jiejing
>

tstanly

unread,
Mar 17, 2011, 5:43:42 AM3/17/11
to Android Linux Kernel Development
hi,

I think my bootloader args is correct,
bootargs=console=ttyO2,115200n8 rootdelay=1 init=/init root=/dev/
mmcblk1p2 ...........

but I can't understand it's a ramdisk issue?
can you give me some hint?
thanks

On 3月17日, 下午5時14分, gmail <kzj...@gmail.com> wrote:
> should you ramdisk issue. Please check your kernel option and bootloader setting
>
> Jiejing
>

Jiejing.Zhang

unread,
Mar 17, 2011, 11:42:51 AM3/17/11
to android...@googlegroups.com
Hi,

do you have /init in your mmcbk1p2 ?


Best regards,
Zhang Jiejing


2011/3/17 tstanly <tsai....@gmail.com>

tstanly

unread,
Mar 17, 2011, 10:33:01 PM3/17/11
to Android Linux Kernel Development
hi Jiejing,

yes I really have, thanks

On 3月17日, 下午11時42分, "Jiejing.Zhang " <kzj...@gmail.com> wrote:
> Hi,
>
> do you have /init in your mmcbk1p2 ?
>
> Best regards,
> Zhang Jiejing
>
> 2011/3/17 tstanly <tsai.sta...@gmail.com>

Amit Pundir

unread,
Mar 18, 2011, 5:55:14 AM3/18/11
to android...@googlegroups.com, tstanly
Does your /init has executable permission?

Regards,
Amit Pundir

2011/3/18 tstanly <tsai....@gmail.com>:

stanly

unread,
Mar 20, 2011, 10:18:25 PM3/20/11
to Nate H, android...@googlegroups.com, Amit Pundir
hi Nate,

thanks for your reply,
and it's found the /init succesfully,
because there are some problem in mmcblk1p2..

but shows the other problem now,
when kernel executing /init,
the kernel will be stuck for 60 seconds and shows message:

BUG: soft lockup - CPU#0 stuck for 61s! [init:1]

however, I try to change boot args in my u-boot for init parameter,
from init=/init to init=/system/bin/sh
and the error message will be

Kernel panic - not syncing: Attempted to kill init!

these two problem have the same condition,
problem is in execute the *run_init_process* function,
for run_init_process("/init") the kernel shows soft lock,
and run_init_process("/system/bin/sh") appears kernel panic,

if you have any suggestion, please tell me,
thanks a lot!

stanly

2011/3/19 Nate H <hnm...@gmail.com>
What's your kernel command? I mean something like  "noinitrd root=/dev/nfs  init=/linuxrc"


2011/3/18 Amit Pundir <pundi...@gmail.com>

tstanly

unread,
Mar 20, 2011, 10:27:41 PM3/20/11
to Android Linux Kernel Development
actually the run_init_process() is do
kernel_execve()

so I think is something stuck in kernel_execve()

On 3月21日, 上午10時18分, stanly <tsai.sta...@gmail.com> wrote:
> hi Nate,
>
> thanks for your reply,
> and it's found the /init succesfully,
> because there are some problem in mmcblk1p2..
>
> but shows the other problem now,
> when kernel executing /init,
> the kernel will be stuck for 60 seconds and shows message:
>
> BUG: soft lockup - CPU#0 stuck for 61s! [init:1]
> however, I try to change boot args in my u-boot for init parameter,
> from init=/init to init=/system/bin/sh
> and the error message will be
>
> Kernel panic - not syncing: Attempted to kill init!
>
> these two problem have the same condition,
> problem is in execute the *run_init_process* function,
> for run_init_process("/init") the kernel shows soft lock,
> and run_init_process("/system/bin/sh") appears kernel panic,
>
> if you have any suggestion, please tell me,
> thanks a lot!
>
> stanly
>
> 2011/3/19 Nate H <hnm...@gmail.com>
>
>
>
>
>
>
>
> > What's your kernel command? I mean something like "noinitrd root=/dev/nfs
> > init=/linuxrc"
>
> > 2011/3/18 Amit Pundir <pundira...@gmail.com>
>
> >> Does your /init has executable permission?
>
> >> Regards,
> >> Amit Pundir
>
> >> 2011/3/18 tstanly <tsai.sta...@gmail.com>:

Nate H

unread,
Mar 19, 2011, 2:46:40 AM3/19/11
to android...@googlegroups.com, Amit Pundir, tstanly
What's your kernel command? I mean something like  "noinitrd root=/dev/nfs  init=/linuxrc"

2011/3/18 Amit Pundir <pundi...@gmail.com>

tstanly

unread,
Mar 22, 2011, 11:31:00 PM3/22/11
to Android Linux Kernel Development
if you mean the CONFIG_CMDLINE in the default config
I set CONFIG_CMDLINE="" for kernel,
because the command I set in uboot should pass to kernel

thanks
On 3月19日, 下午2時46分, Nate H <hnm...@gmail.com> wrote:
> What's your kernel command? I mean something like "noinitrd root=/dev/nfs
> init=/linuxrc"
>
> 2011/3/18 Amit Pundir <pundira...@gmail.com>
>
>
>
>
>
>
>
> > Does your /init has executable permission?
>
> > Regards,
> > Amit Pundir
>
> > 2011/3/18 tstanly <tsai.sta...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages