X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C7AFB7.7FCB8E71@onstor-exch02.onstor.net>; Fri, 15 Jun 2007 17:41:46 -0800
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-class: urn:content-classes:message
Subject: RE: linux hangs during boot up
Date: Fri, 15 Jun 2007 17:41:46 -0800
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E02215862@onstor-exch02.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E042A54D9@onstor-exch02.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: linux hangs during boot up
Thread-Index: AcevrrX0YvabIOryQt+gzHv/ZT+S4AAAHxEQAAEs68A=
From: "Larry Scheer" <larry.scheer@onstor.com>
To: "Maxim Kozlovsky" <maxim.kozlovsky@onstor.com>,
	"Andy Sharp" <andy.sharp@onstor.com>,
	"Tim Gardner" <tim.gardner@onstor.com>

Well Max,
   I am trying to remember all the things that went wrong with the
instructions on the wiki page. Another thing that is wrong with the
rootfs created by mk-mipsel-deb-rootfs is it has an incomplete /dev
directory (no /dev/console.) So trying to use it as-is won't work.=20

I managed to get the devices created but I can't remember what I did, or
how, or even how I could forget such a thing!

I need to revisit this and get the process right.

In the mean time you can copy 10.2.0.4:/home/nfsroot/etch-mipsel or one
of the rootfs areas Andy has on ripper. (Ask Andy if/where he has a
generic rootfs on rippter. The etch-mipsel on 10.2.0.4 is one I set up.)
You will need to edit /etc/fstab /etc/hostname /etc/hosts to match your
filer.

Give it a try and let me know what problems you have.

Good hunting,

Larry



-----Original Message-----
From: Maxim Kozlovsky=20
Sent: Friday, June 15, 2007 5:43 PM
To: Andy Sharp; Larry Scheer; Tim Gardner
Subject: RE: linux hangs during boot up

What is the correct incantation then?

-----Original Message-----
From: Andy Sharp=20
Sent: Friday, June 15, 2007 5:39 PM
To: Maxim Kozlovsky; Larry Scheer; Tim Gardner
Subject: Re: linux hangs during boot up

The wiki was changed a little too soon, I'd say.

On Fri, 15 Jun 2007 17:12:07 -0700 "Maxim Kozlovsky"
<maxim.kozlovsky@onstor.com> wrote:

> As the wiki page says:
>=20
> cd cougar/linux/pkg-tools
> sudo ./mk-mipsel-deb-rootfs
> This will create the tree /var/chroot/etch-mipsel on your local disk.
> From this point you can either export this tree as an NFS share or use
> rsync -vauH to copy it to an exported directory.=20
>=20
> [edit]Installing Kernel and Kernel Modules=20
> You need to install the kernel modules in your [NFS] root directory.
> This requires that you have one set up already! See section: Creating
> a Root filesystem.=20
>=20
> $ make INSTALL_MOD_PATH=3D<path-to-NFS-root-directory> modules_install
> For instance, the NFS root directory for one of my bobcats is on my
> workstation in /var/nfsroot/bobcat, hence the command would be make
> INSTALL_MOD_PATH=3D/var/nfsroot/bobcat modules_install for me. Yours
> will be different! Make sure you give the right directory, or you will
> install kernel modules in some crazy place.=20
>=20
> copy vmlinux.bin to your tftp server, and then follow the instructions
> on netbooting linux on a bobcat.=20
> [edit]Booting for the First Time Your Newly Created NFS Root
> (Finishing the Install)=20
> Note: This section is preliminary. Not all of this has been thoroughly
> tested.=20
>=20
> The first time your filer boots from a newly created NFS Root
> partition run the following command on the filer:=20
>=20
> /debootstrap/debootstrap --second-stage
>=20
> -----Original Message-----
> From: Andy Sharp=20
> Sent: Friday, June 15, 2007 5:10 PM
> To: Maxim Kozlovsky
> Subject: Re: linux hangs during boot up
>=20
> Where did you get the root filesystem?
>=20
> On Fri, 15 Jun 2007 16:24:19 -0700 "Maxim Kozlovsky"
> <maxim.kozlovsky@onstor.com> wrote:
>=20
> > pccard: PCMCIA card inserted into slot 1
> > IP-Config: Complete:
> >       device=3Deth0, addr=3D10.2.204.1, mask=3D255.255.0.0, =
gw=3D10.2.0.1,
> >      host=3Deng131, domain=3D, nis-domain=3D(none),
> >      bootserver=3D10.0.0.23, rootserver=3D10.0.0.23, rootpath=3D
> > Looking up port of RPC 100003/3 on 10.0.0.23
> > Looking up port of RPC 100005/3 on 10.0.0.23
> > VFS: Mounted root (nfs filesystem) readonly.
> > Freeing unused kernel memory: 104k freed
> > Warning: unable to open an initial console.
> >=20
> >=20
> > The kernel was built from what is currently checked in. The command
> > line was the following:
> >=20
> > CONFIG_CMDLINE=3D"console=3DttyS0,57600n8 console=3DttyMM0,57600n8
> > root=3D/dev/nfs nfsroot=3D10.0.0.23:/var/nfsroot/max,v3,tcp
> > ip=3D10.2.204.1:10.0.0.23:10.2.0.1:255.255.0.0:eng131:eth0:none -s"
> >=20
> > Is there some step that I missed?
> >=20
