Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
To: linux-mips@linux-mips.org
Subject: Re: Linux for MIPS Atlas 4Kc board
Date: Sat, 10 May 2003 12:30:10 +0200	[thread overview]
Message-ID: <20030510103009.GF27494@lug-owl.de> (raw)
In-Reply-To: <BAY1-F45jlKqwWil63h0000a6fd@hotmail.com>

[-- Attachment #1: Type: text/plain, Size: 2079 bytes --]

On Fri, 2003-05-09 21:57:46 -0700, Michael Anburaj <michaelanburaj@hotmail.com>
wrote in message <BAY1-F45jlKqwWil63h0000a6fd@hotmail.com>:
> 
> 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

MfG, JBG

-- 
   Jan-Benedict Glaw       jbglaw@lug-owl.de    . +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 #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2003-05-10 10:30 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-10  4:57 Linux for MIPS Atlas 4Kc board Michael Anburaj
2003-05-10  5:44 ` Muthukumar Ratty
2003-05-10  5:44   ` Muthukumar Ratty
2003-05-10 10:30 ` Jan-Benedict Glaw [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-05-13  7:31 Michael Anburaj
2003-05-10 21:07 Michael Anburaj
2003-05-10 15:56 Michael Anburaj
2003-05-10 19:49 ` Jan-Benedict Glaw
2003-05-09 18:34 Michael Anburaj
2003-05-09  6:31 Michael Anburaj
2003-05-09  8:25 ` Jan-Benedict Glaw
2003-05-09  5:47 Michael Anburaj
2003-05-08 17:02 Michael Anburaj
2003-05-08 21:40 ` Jan-Benedict Glaw
2003-05-08 10:09 Michael Anburaj
2003-05-08 11:20 ` Jan-Benedict Glaw
2003-05-05  8:26 Michael Anburaj
2003-05-05 21:52 ` Muthukumar Ratty
2003-05-05 21:52   ` Muthukumar Ratty
2003-05-05  0:27 Michael Anburaj
2003-05-05  2:21 ` Muthukumar Ratty
2003-05-05  2:21   ` Muthukumar Ratty
2003-05-01  8:53 Michael Anburaj
2003-04-30  8:56 Michael Anburaj
2003-04-30  7:13 Michael Anburaj
2003-04-30  7:24 ` Greg Lindahl
2003-04-30  4:00 Michael Anburaj
2003-04-30  4:06 ` Keith Owens
2003-04-29 19:40 Michael Anburaj
2003-04-29 20:00 ` Wolfgang Denk
2003-04-29 20:06 ` Muthukumar Ratty
2003-04-29 20:06   ` Muthukumar Ratty
     [not found] <BAY1-F124jn04x29xDb00011e0b@hotmail.com>
2003-04-11 10:04 ` Geert Uytterhoeven
2003-04-11  9:48 Michael Anburaj
2003-04-11  9:24 Michael Anburaj
2003-04-11  9:28 ` Geert Uytterhoeven
2003-04-11 16:47 ` Jun Sun
2003-04-09 21:32 Michael Anburaj
2003-04-10  1:25 ` Ralf Baechle
2003-04-10  6:29   ` Jan-Benedict Glaw

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030510103009.GF27494@lug-owl.de \
    --to=jbglaw@lug-owl.de \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox