X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C81686.B91B9602@onstor-exch02.onstor.net>; Wed, 24 Oct 2007 13:42:06 -0800
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C81686.B91B9602"
References: <BB375AF679D4A34E9CA8DFA650E2B04E056C915F@onstor-exch02.onstor.net>
Content-class: urn:content-classes:message
Subject: RE: This AM's Kernel build error
Date: Wed, 24 Oct 2007 13:40:25 -0800
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E02F3DA2A@onstor-exch02.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: This AM's Kernel build error
Thread-Index: AcgWf3tga1yYOkj9SO69Vho04mV1CAAAEVS6AAAY23AAAZY2RA==
From: "Ken Renshaw" <ken.renshaw@onstor.com>
To: "Larry Scheer" <larry.scheer@onstor.com>,
	"Andy Sharp" <andy.sharp@onstor.com>

This is a multi-part message in MIME format.

------_=_NextPart_001_01C81686.B91B9602
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Here's what I've got now for the kernel build variants, bl and cg for =
both opt and dbg:

>               # Build the linux kernel variants
>
>               echo "" >> ${BUILDLOGS}/auditlog
>                 echo "***** Compilation of linux kernel variants =
beginning at `date`" >> ${BUILDLOGS}/auditlog
>
>               cd ..
>
>               if [ ${OK2DEBUG} =3D=3D "true" ]; then
>
>                       make VARIANT=3Ddbg PROD=3Dbl =
DESTDIR=3D/var/nfsroot/bobcat TFTPDIR=3D/var/nfsroot/bobcat kernel\
>                               2>&1 |tee =
${BUILDLOGS}/linux-kernel-bl-dbg.log
>                       make VARIANT=3Ddbg PROD=3Dcg =
DESTDIR=3D/var/nfsroot/cougar TFTPDIR=3D/var/nfsroot/cougar kernel\
>                               2>&1 |tee =
${BUILDLOGS}/linux-kernel-cg-dbg.log
>
>               fi
>
>               make VARIANT=3Dopt PROD=3Dbl =
DESTDIR=3D/var/nfsroot/bobcat TFTPDIR=3D/var/nfsroot/bobcat kernel\
>                       2>&1 |tee ${BUILDLOGS}/linux-kernel-bl-opt.log
>               make VARIANT=3Dopt PROD=3Dcg =
DESTDIR=3D/var/nfsroot/cougar TFTPDIR=3D/var/nfsroot/cougar kernel\
>                       2>&1 |tee ${BUILDLOGS}/linux-kernel-cg-opt.log

Thanks,

-Ken


-----Original Message-----
From: Larry Scheer
Sent: Wed 10/24/2007 2:20 PM
To: Ken Renshaw; Andy Sharp
Subject: RE: This AM's Kernel build error
=20
The top level Kernel target now needs some command line variables. Since =
we will soon be building both bobcat and cougar Linux kernels a PROD =
variable is needed. Since we will also be building for both NFS root =
filesystems and a compact flash filesystem two more variables are =
needed, DESTDIR and TFTPDIR. Since you need so many command line =
variables might as well throw in VARIANT. It, too, is needed.

I am planning on creating the make release targets to set these for you =
but until I get that together this is how you should invoke the kernel =
build.

cd .. && make VARIANT=3Ddbg (or opt) PROD=3Dbl (or cg) =
DESTDIR=3D/var/nfsroot/bobcat TFTPDIR=3D/var/nfsroot/bobcat

For PROD=3Dcg use /var/nfsroot/cougar for DESTDIR and TFTPDIR.

Of course if you have a bobcat Linux box then you want to set TFTPDIR to =
the actual directory your bobcat boots from. Since you don't have one of =
these setting DESTDIR and TFTPDIR to the same directory is good enough =
for the time being.

I will also change the top level Makefile so if PROD=3Dch or bc the =
Linux kernel target won't fire.

Larry

-----Original Message-----
From: Ken Renshaw=20
Sent: Wednesday, October 24, 2007 1:52 PM
To: Andy Sharp; Larry Scheer
Subject: RE: This AM's Kernel build error

Hi guys. This is what I'm doing:

#
# Cougar and Bobcat Linux targets, compile only
#

        if [ ${NIGHTLY} =3D=3D "true" ]; then

                # First build the linux kernel...

                echo "" >> ${BUILDLOGS}/auditlog
                echo "***** bc and ch target builds completed, =
compilation of linux kernel beginning at `date`" >> =
${BUILDLOGS}/auditlog
                cd .. && make kernel 2>&1 |tee =
${BUILDLOGS}/linux-kernel-compile.log
                cd nfx-tree
                echo "" >> ${BUILDLOGS}/auditlog
                echo "***** Compilation of linux kernel completed, cg =
and bl target builds now starting at `date`" >> ${BUILDLOGS}/auditlog

                # ..and then the cougar and bobcat-on-linux targets.
                make ${MKFLAGS} VARIANT=3Ddbg PROD=3Dcg all 2>&1 |tee =
${BUILDLOGS}/cg-dbg-compile.log
                make ${MKFLAGS} VARIANT=3Dopt PROD=3Dcg all 2>&1 |tee =
${BUILDLOGS}/cg-opt-compile.log
                make ${MKFLAGS} VARIANT=3Ddbg PROD=3Dbl all 2>&1 |tee =
${BUILDLOGS}/bl-dbg-compile.log
                make ${MKFLAGS} VARIANT=3Dopt PROD=3Dbl all 2>&1 |tee =
${BUILDLOGS}/bl-opt-compile.log
                echo "" >> ${BUILDLOGS}/auditlog
                echo "***** Compilation of cg and bl target builds =
completed at `date`" >> ${BUILDLOGS}/auditlog

        fi


it would be nice if the makefile disallowed building on cheetah, but =
I'll go ahead and change the build script to skip building linux for =
cheetah.

Thanks,

-Ken


-----Original Message-----
From: Andy Sharp
Sent: Wed 10/24/2007 1:50 PM
To: Larry Scheer
Cc: Ken Renshaw
Subject: Re: This AM's Kernel build error
=20
The makefile should prevent this, unless someone is doing something
strange.

On Wed, 24 Oct 2007 13:26:02 -0700 "Larry Scheer"
<larry.scheer@onstor.com> wrote:

> Looks like the kernel build failed because PROD was set to "ch"
> (cheetah)
>=20
> make -C linux/rootfs DESTDIR=3D/perforce/trees/dev/distr TFTPDIR=3D
> PROD=3Dch kernel
> ...
> ...
> ...
> make[3]: Leaving directory
> `/perforce/trees/dev/linux/kernel/linux-mips-2.6'
> /usr/local/sde4/bin/conv -f bin -o linux-mips-2.6/vmlinux.bin
> a.out: No such file or directory
> make[2]: *** [linux-mips-2.6/vmlinux.bin] Error 1
> make[2]: Leaving directory `/perforce/trees/dev/linux/kernel'
> make[1]: *** [/perforce/trees/dev/distr/boot/vmlinux.bin] Error 2
> make[1]: Leaving directory `/perforce/trees/dev/linux/rootfs'
> make: *** [kernel] Error 2
>=20
>=20
> Ken,=20
>     How does your build script invoke the linux kernel build?
>=20
>=20
> Larry



------_=_NextPart_001_01C81686.B91B9602
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7652.24">
<TITLE>RE: This AM's Kernel build error</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=3D2>Here's what I've got now for the kernel build =
variants, bl and cg for both opt and dbg:<BR>
<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; # Build the linux kernel variants<BR>
&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; echo &quot;&quot; &gt;&gt; ${BUILDLOGS}/auditlog<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;***** Compilation of linux kernel =
variants beginning at `date`&quot; &gt;&gt; ${BUILDLOGS}/auditlog<BR>
&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; cd ..<BR>
&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; if [ ${OK2DEBUG} =3D=3D &quot;true&quot; ]; then<BR>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t;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; make VARIANT=3Dopt PROD=3Dbl =
DESTDIR=3D/var/nfsroot/bobcat TFTPDIR=3D/var/nfsroot/bobcat kernel\<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
2&gt;&amp;1 |tee ${BUILDLOGS}/linux-kernel-bl-opt.log<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; make VARIANT=3Dopt PROD=3Dcg =
DESTDIR=3D/var/nfsroot/cougar TFTPDIR=3D/var/nfsroot/cougar kernel\<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
2&gt;&amp;1 |tee ${BUILDLOGS}/linux-kernel-cg-opt.log<BR>
<BR>
Thanks,<BR>
<BR>
-Ken<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Larry Scheer<BR>
Sent: Wed 10/24/2007 2:20 PM<BR>
To: Ken Renshaw; Andy Sharp<BR>
Subject: RE: This AM's Kernel build error<BR>
<BR>
The top level Kernel target now needs some command line variables. Since =
we will soon be building both bobcat and cougar Linux kernels a PROD =
variable is needed. Since we will also be building for both NFS root =
filesystems and a compact flash filesystem two more variables are =
needed, DESTDIR and TFTPDIR. Since you need so many command line =
variables might as well throw in VARIANT. It, too, is needed.<BR>
<BR>
I am planning on creating the make release targets to set these for you =
but until I get that together this is how you should invoke the kernel =
build.<BR>
<BR>
cd .. &amp;&amp; make VARIANT=3Ddbg (or opt) PROD=3Dbl (or cg) =
DESTDIR=3D/var/nfsroot/bobcat TFTPDIR=3D/var/nfsroot/bobcat<BR>
<BR>
For PROD=3Dcg use /var/nfsroot/cougar for DESTDIR and TFTPDIR.<BR>
<BR>
Of course if you have a bobcat Linux box then you want to set TFTPDIR to =
the actual directory your bobcat boots from. Since you don't have one of =
these setting DESTDIR and TFTPDIR to the same directory is good enough =
for the time being.<BR>
<BR>
I will also change the top level Makefile so if PROD=3Dch or bc the =
Linux kernel target won't fire.<BR>
<BR>
Larry<BR>
<BR>
-----Original Message-----<BR>
From: Ken Renshaw<BR>
Sent: Wednesday, October 24, 2007 1:52 PM<BR>
To: Andy Sharp; Larry Scheer<BR>
Subject: RE: This AM's Kernel build error<BR>
<BR>
Hi guys. This is what I'm doing:<BR>
<BR>
#<BR>
# Cougar and Bobcat Linux targets, compile only<BR>
#<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if [ ${NIGHTLY} =3D=3D =
&quot;true&quot; ]; then<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; # First build the linux kernel...<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; echo &quot;&quot; &gt;&gt; ${BUILDLOGS}/auditlog<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; echo &quot;***** bc and ch target builds completed, =
compilation of linux kernel beginning at `date`&quot; &gt;&gt; =
${BUILDLOGS}/auditlog<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; cd .. &amp;&amp; make kernel 2&gt;&amp;1 |tee =
${BUILDLOGS}/linux-kernel-compile.log<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; cd nfx-tree<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; echo &quot;&quot; &gt;&gt; ${BUILDLOGS}/auditlog<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; echo &quot;***** Compilation of linux kernel =
completed, cg and bl target builds now starting at `date`&quot; &gt;&gt; =
${BUILDLOGS}/auditlog<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; # ..and then the cougar and bobcat-on-linux =
targets.<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; make ${MKFLAGS} VARIANT=3Ddbg PROD=3Dcg all =
2&gt;&amp;1 |tee ${BUILDLOGS}/cg-dbg-compile.log<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; make ${MKFLAGS} VARIANT=3Dopt PROD=3Dcg all =
2&gt;&amp;1 |tee ${BUILDLOGS}/cg-opt-compile.log<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; make ${MKFLAGS} VARIANT=3Ddbg PROD=3Dbl all =
2&gt;&amp;1 |tee ${BUILDLOGS}/bl-dbg-compile.log<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; make ${MKFLAGS} VARIANT=3Dopt PROD=3Dbl all =
2&gt;&amp;1 |tee ${BUILDLOGS}/bl-opt-compile.log<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; echo &quot;&quot; &gt;&gt; ${BUILDLOGS}/auditlog<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; echo &quot;***** Compilation of cg and bl target =
builds completed at `date`&quot; &gt;&gt; ${BUILDLOGS}/auditlog<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fi<BR>
<BR>
<BR>
it would be nice if the makefile disallowed building on cheetah, but =
I'll go ahead and change the build script to skip building linux for =
cheetah.<BR>
<BR>
Thanks,<BR>
<BR>
-Ken<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Andy Sharp<BR>
Sent: Wed 10/24/2007 1:50 PM<BR>
To: Larry Scheer<BR>
Cc: Ken Renshaw<BR>
Subject: Re: This AM's Kernel build error<BR>
<BR>
The makefile should prevent this, unless someone is doing something<BR>
strange.<BR>
<BR>
On Wed, 24 Oct 2007 13:26:02 -0700 &quot;Larry Scheer&quot;<BR>
&lt;larry.scheer@onstor.com&gt; wrote:<BR>
<BR>
&gt; Looks like the kernel build failed because PROD was set to =
&quot;ch&quot;<BR>
&gt; (cheetah)<BR>
&gt;<BR>
&gt; make -C linux/rootfs DESTDIR=3D/perforce/trees/dev/distr =
TFTPDIR=3D<BR>
&gt; PROD=3Dch kernel<BR>
&gt; ...<BR>
&gt; ...<BR>
&gt; ...<BR>
&gt; make[3]: Leaving directory<BR>
&gt; `/perforce/trees/dev/linux/kernel/linux-mips-2.6'<BR>
&gt; /usr/local/sde4/bin/conv -f bin -o linux-mips-2.6/vmlinux.bin<BR>
&gt; a.out: No such file or directory<BR>
&gt; make[2]: *** [linux-mips-2.6/vmlinux.bin] Error 1<BR>
&gt; make[2]: Leaving directory `/perforce/trees/dev/linux/kernel'<BR>
&gt; make[1]: *** [/perforce/trees/dev/distr/boot/vmlinux.bin] Error =
2<BR>
&gt; make[1]: Leaving directory `/perforce/trees/dev/linux/rootfs'<BR>
&gt; make: *** [kernel] Error 2<BR>
&gt;<BR>
&gt;<BR>
&gt; Ken,<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; How does your build script invoke the linux =
kernel build?<BR>
&gt;<BR>
&gt;<BR>
&gt; Larry<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C81686.B91B9602--
