On Fri, 2003-05-09 21:57:46 -0700, Michael Anburaj <email@example.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
Jan-Benedict Glaw firstname.lastname@example.org . +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));
Description: PGP signature