linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* trying to debug my failure to start "init"
@ 2004-06-09 23:17 Robert P. J. Day
  2004-06-10 12:25 ` Mark Chambers
  0 siblings, 1 reply; 4+ messages in thread
From: Robert P. J. Day @ 2004-06-09 23:17 UTC (permalink / raw)
  To: Embedded Linux PPC list


  just before i pack it in for the day, i'm still grappling with why i
can't get the linuxppc-2.5 kernel to start the init/minit program on my
8xx board.  very curious, since it used to be able to, even if it hung
immediately afterwards.

  for more feedback, i added a printk() call to the run_init_process()
function in init/main.c to see what it thought it was doing.  the tail end
of my boot sequence was:

...
Kernel command line: console=ttyS0,9600 rw root=/dev/ram0 init=/sbin/minit
... snip ...
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).             <-- good
Mounted devfs on /dev                            <-- also good
Freeing unused kernel memory: 52k init
Trying run_init_process with /sbin/minit         <-- hmm, that should work
Trying run_init_process with /sbin/init
Trying run_init_process with /etc/init
Trying run_init_process with /bin/init
Trying run_init_process with /bin/sh
Kernel panic: No init found.  Try passing init= option to kernel.


  at this point, i'm out of ideas, and in need of a beer.  thanks to
everyone who's provided advice so far.

rday

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: trying to debug my failure to start "init"
@ 2004-06-10  4:57 MuthuGanesh M
  0 siblings, 0 replies; 4+ messages in thread
From: MuthuGanesh M @ 2004-06-10  4:57 UTC (permalink / raw)
  To: linuxppc-embedded


Hi Rday,

I may suggest you to verify you library settings in busybox.
with static  library you can start easily.

Best regards,
Muthu


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: trying to debug my failure to start "init"
  2004-06-09 23:17 Robert P. J. Day
@ 2004-06-10 12:25 ` Mark Chambers
  2004-06-10 13:00   ` Robert P. J. Day
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Chambers @ 2004-06-10 12:25 UTC (permalink / raw)
  To: Robert P. J. Day, Embedded Linux PPC list


>   for more feedback, i added a printk() call to the run_init_process()
> function in init/main.c to see what it thought it was doing.

Maybe you should add a printout of errno, which the execve() inside of
run_init_process() will set - might give an important clue.

Mark Chambers


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: trying to debug my failure to start "init"
  2004-06-10 12:25 ` Mark Chambers
@ 2004-06-10 13:00   ` Robert P. J. Day
  0 siblings, 0 replies; 4+ messages in thread
From: Robert P. J. Day @ 2004-06-10 13:00 UTC (permalink / raw)
  To: Mark Chambers; +Cc: Embedded Linux PPC list


On Thu, 10 Jun 2004, Mark Chambers wrote:

> >   for more feedback, i added a printk() call to the run_init_process()
> > function in init/main.c to see what it thought it was doing.
>
> Maybe you should add a printout of errno, which the execve() inside of
> run_init_process() will set - might give an important clue.

did that, here are the results:

Freeing unused kernel memory: 52k init
Trying run_init_process with /sbin/minit
Error code from execve: -1
Errno: 2
Trying run_init_process with /sbin/init
Error code from execve: -1
Errno: 14
Trying run_init_process with /etc/init
Error code from execve: -1
Errno: 14
Trying run_init_process with /bin/init
Error code from execve: -1
Errno: 14
Trying run_init_process with /bin/sh
Error code from execve: -1
Errno: 14
Kernel panic: No init found.  Try passing init= option to kernel.


  if i read the include files correctly (include/asm-generic/errno*.h), i
read this as:

#define ENOENT           2      /* No such file or directory */
#define EFAULT          14      /* Bad address */

note that the error for minit is different from all the busybox errors.
the man page for execve() tells me this:

ENOENT The file filename or a script or ELF interpreter does not exist,
or a shared library needed for file or interpreter cannot be found.

EFAULT filename points outside your accessible address space.

  so, i guess the next step is to compile minit statically and see what
happens.

rday


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2004-06-10 13:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-10  4:57 trying to debug my failure to start "init" MuthuGanesh M
  -- strict thread matches above, loose matches on Subject: below --
2004-06-09 23:17 Robert P. J. Day
2004-06-10 12:25 ` Mark Chambers
2004-06-10 13:00   ` Robert P. J. Day

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).