Subject: Re: memory based root filesystem
To: None <kamalp@acm.org>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 01/11/2005 11:31:46
--6sX45UoQRIJXqkqR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jan 11, 2005 at 10:39:27AM -0800, Kamal R. Prasad wrote:
>=20
> Why does the system panic saying there is no init and
> then stop in init? Do we need an /sbin/oinit and
> /sbin/init.bak too in the crunch file?

You do not need those other files, they are backups for testing a new=20
init.

> Pasted below is info about the panic.
> -------------------------------
> root on md0a dumps on md0b
> mountroot: trying ffs...
> root file system type: ffs
> cpu_lwp_fork: 0xc0732a1c 0xc2a4207c 0xc0732a1c
> 0xc0732a1c
> l1->procaddr=3D0xc01ed000 l1->procaddr->u_pcb=3D0xc01ed000
> pid=3D1 pmap=3D0xc07366c8
> l2->procaddr=3D0xc2a46000 l2->procaddr->u_pcb=3D0xc2a46000
> pid=3D0 pmap=3D0xc07366c8
> cpu_lwp_fork: 0xc0732a1c 0xc2a420f8 0xc0732a1c
> 0xc0732a1c
> l1->procaddr=3D0xc01ed000 l1->procaddr->u_pcb=3D0xc01ed000
> pid=3D1 pmap=3D0xc07366c8
> l2->procaddr=3D0xc2a48000 l2->procaddr->u_pcb=3D0xc2a48000
> pid=3D0 pmap=3D0xc07366c8
> cpu_lwp_fork: 0xc0732a1c 0xc2a42174 0xc0732a1c
> 0xc0732a1c
> l1->procaddr=3D0xc01ed000 l1->procaddr->u_pcb=3D0xc01ed000
> pid=3D1 pmap=3D0xc07366c8
> l2->procaddr=3D0xc2a4a000 l2->procaddr->u_pcb=3D0xc2a4a000
> pid=3D0 pmap=3D0xc07366c8
> init: copying out flags `-s' 3
> init: copying out path `/sbin/init' 11
> exec /sbin/init: error 8

Error 8 is ENOEXEC. Since it's not error 2, ENOENT, your /sbin/init was=20
there but something was wrong with it. Its 'x' bit is set, isn't it?

Take care,

Bill

--6sX45UoQRIJXqkqR
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQFB5CmhWz+3JHUci9cRAk6tAJ99I1o0nzUX2yRCL0SXrii9OOnZjwCeJjC2
AZlLXdMgA14ABItmJ0dDNbw=
=vnBD
-----END PGP SIGNATURE-----

--6sX45UoQRIJXqkqR--