[Top] [All Lists]

Re: Linux for MIPS Atlas 4Kc board

Subject: Re: Linux for MIPS Atlas 4Kc board
From: Jan-Benedict Glaw <>
Date: Sat, 10 May 2003 12:30:10 +0200
In-reply-to: <>
Original-recipient: rfc822;
References: <>
User-agent: Mutt/1.4i
On Fri, 2003-05-09 21:57:46 -0700, Michael Anburaj <>
wrote in message <>:
> Warning: unable to open an initial console.
> Kernel panic: No init found.  Try passing init= option to kernel.
> in src/linux/init/main.c
> open("/dev/console", O_RDWR, 0) is returning a negative value. I don't have 
> a video device on board., required? Will /dev/console open a UART port 
> (/dev/ttyS0 or /dev/tty0)? Why am I getting this error?

/dev/console (within your NFS root) should be a char device with 0x05 as
major and 0x01 as minor.

If you want so use serial console, you need to pass "console=/dev/ttyS0"
(or similar if your serial devices use a different naming scheme) along
with kernel's command line.

"init" is another thing. Your NFS root should include a /sbin/init or
or /etc/init or /bin/init or /bin/sh. If none of those exists, you
loose. Somewhere, you told that you get -5 as error code. This is EIO
IIRC so maybe your network card's driver is buggy. For debugging this,
you should use tcpdump (or ethereal) as well as userspace NFS server and
attach a strace to it:)

> 1. Is the kernel not build properly (did not include console driver)?

You need serial drivers compiled in and you need to configure them as
console drivers (serial console). Additionally, you need to pass
"console=ttyS0" as kernel command line option.

> 2. Should I pass init=blablabla as a parameter? <but nothing like that is 
> specified in the doc.>.

In normal cases, you don't need to pass that. Kernel should just pick
/sbin/init and execute it. /sbin/init will then start everything needed.
Could you please do this:

$ cd /path/to/nfsroot
$ file sbin/inint


   Jan-Benedict Glaw    . +49-172-7608481
   "Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg
    fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!
      ret = do_actions((curr | FREE_SPEECH) & ~(IRAQ_WAR_2 | DRM | TCPA));

Attachment: pgpb_AshCUxuK.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>