From owner-freebsd-mips@FreeBSD.ORG Sun Oct 18 15:30:06 2009 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 725F5106568D for ; Sun, 18 Oct 2009 15:30:06 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 394548FC0A for ; Sun, 18 Oct 2009 15:30:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id n9IFOdvE076653; Sun, 18 Oct 2009 09:24:39 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 18 Oct 2009 09:24:42 -0600 (MDT) Message-Id: <20091018.092442.329271515.imp@bsdimp.com> To: alancyang@gmail.com From: "M. Warner Losh" In-Reply-To: <290865fd0910161902y626f8375m5d46881f4883c1ec@mail.gmail.com> References: <290865fd0910161801x35bbdcd2hd77626d4dfe2465a@mail.gmail.com> <290865fd0910161856l3d988d0bqf4c600bd76b37037@mail.gmail.com> <290865fd0910161902y626f8375m5d46881f4883c1ec@mail.gmail.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@FreeBSD.org Subject: Re: Cavium port X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2009 15:30:06 -0000 In message: <290865fd0910161902y626f8375m5d46881f4883c1ec@mail.gmail.co= m> alan yang writes: : but ran into another failure, wonder there is a quick work around: : --- : -c -O -pipe -std=3Dc99 -g -Wall -Wredundant-decls -Wnested-externs : -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline : -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc : -I. -I/usr/home/alan/genova/mips/sys : -I/usr/home/alan/genova/mips/sys/contrib/altq -D_KERNEL : -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common : -finline-limit=3D8000 --param inline-unit-growth=3D100 --param : large-function-growth=3D1000 -EB -fno-pic -mno-abicalls -G0 -EB : -march=3Dmips64 -mabi=3D64 -msoft-float -ffreestanding : /usr/home/alan/genova/mips/sys/mips/mips/trap.c : /usr/home/alan/genova/mips/sys/mips/mips/trap.c:1063: error: : conflicting types for 'MipsEmulateBranch' : ./machine/md_var.h:51: error: previous declaration of : 'MipsEmulateBranch' was here : *** Error code 1 Hmmm... Looks like there were some changes that were stomped on by the latest MFC. We'll have to investigate why that was... In the mean time, I've restored them and fixed a few new issues and committed the results. You can at least build OCTEON1 now. I've not tried to run it, and I'd expect that it will die somewhere in the context switch for the first task, if not sooner.... Warner : On Fri, Oct 16, 2009 at 6:56 PM, alan yang wrot= e: : > seems to find the place: =A0kern.pre.mk file to comment out WERROR = as a : > work around and redo buildkernel. : > : > On Fri, Oct 16, 2009 at 6:01 PM, alan yang wr= ote: : >> thanks Warner! =A0got that. : >> : >> the buildkernel failed on some files due to warning of cast pointe= r : >> and -Werror flag. =A0wonder how to remove -Werror, should regen : >> toolchain / Makefile... ? : >> : >> thanks again!! : >> : >> On Fri, Oct 16, 2009 at 3:24 PM, M. Warner Losh w= rote: : >>> Looks like you are trying to use the old-school way of building t= he : >>> kernel (which is what I do all the time). =A0Problem is that you = need to : >>> have the right compilers in your path to do this. : >>> : >>> Here's what I do: : >>> : >>> setenv TARGET mips : >>> setenv TARGET_BIG_ENDIAN t : >>> make kernel-toolchain : >>> make buildkernel KERNCONF=3DOCTEON1 : >>> : >>> and then to do an incremental build: : >>> : >>> make buildkernel KERNFAST=3DOCTEON1 : >>> : >>> I should turn this into a readme file. : >>> : >>> Warner : >>> : >>> : >>> : >>> In message: <290865fd0910161428g45ab74a0x272c9b9674c9d5fd@mail.gm= ail.com> : >>> =A0 =A0 =A0 =A0 =A0 =A0alan yang writes: : >>> : Hello, : >>> : : >>> : I checked out from svn repo the project/mips and try to build k= ernel : >>> : for OCTEON, but ran into the following errors. =A0Wonder any re= adme : >>> : available describes procedures, appreciate people could shed so= me : >>> : light. : >>> : : >>> : Thanks in advance. : >>> : --- : >>> : : >>> : tsu# config OCTEON1 : >>> : Kernel build directory is ../compile/OCTEON1 : >>> : Don't forget to do ``make cleandepend && make depend'' : >>> : Fujitsu# cd ../compile/OCTEON1/ : >>> : Fujitsu# make cleandepend : >>> : rm -f .depend machine : >>> : cd ../../../modules; : >>> : MAKEOBJDIRPREFIX=3D/usr/home/alan/genova/mips/sys/mips/compile/= OCTEON1/modules : >>> : KMODDIR=3D/boot/kernel MODULES_OVERRIDE=3D"""" DEBUG_FLAGS=3D"-= g" : >>> : MACHINE=3Dmips MACHINE_ARCH=3Dmips : >>> : KERNBUILDDIR=3D"/usr/home/alan/genova/mips/sys/mips/compile/OCT= EON1" : >>> : SYSDIR=3D"/usr/home/alan/genova/mips/sys/mips/compile/OCTEON1/.= ./../.." : >>> : make =A0cleandepend : >>> : Fujitsu# make depend : >>> : machine -> ../../../mips/include : >>> : cc -c -O -pipe -std=3Dc99 -g -Wall -Wredundant-decls -Wnested-e= xterns : >>> : -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winli= ne : >>> : -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nost= dinc : >>> : -I. -I../../.. -I../../../contrib/altq -I../../../contrib/ipfil= ter : >>> : -I../../../contrib/pf -I../../../dev/ath -I../../../dev/ath/ath= _hal : >>> : -I../../../contrib/ngatm -I../../../dev/twa : >>> : -I../../../gnu/fs/xfs/FreeBSD -I../../../gnu/fs/xfs/FreeBSD/sup= port : >>> : -I../../../gnu/fs/xfs -I../../../contrib/opensolaris/compat : >>> : -I../../../dev/cxgb -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -inc= lude : >>> : opt_global.h -finline-limit=3D8000 --param inline-unit-growth=3D= 100 : >>> : --param large-function-growth=3D1000 -EB -fno-pic -mno-abicalls= -G0 -EB : >>> : -march=3Dmips64 -mabi=3D64 -msoft-float -ffreestanding : >>> : ../../../mips/mips/genassym.c : >>> : cc: unrecognized option '-EB' : >>> : cc: unrecognized option '-G0' : >>> : cc: unrecognized option '-EB' : >>> : cc1: error: unrecognized command line option "-mno-abicalls" : >>> : cc1: error: unrecognized command line option "-mabi=3D64" : >>> : ../../../mips/mips/genassym.c:1: error: bad value (mips64) for = -march=3D switch : >>> : ../../../mips/mips/genassym.c:1: error: bad value (mips64) for = -mtune=3D switch : >>> : *** Error code 1 : >>> : : >>> : : >>> : : >>> : On Wed, Oct 14, 2009 at 3:45 PM, alan yang wrote: : >>> : > Thanks Warner for the link, i checkout the project mips from = svn repo, : >>> : > and wonder is there any readme like for procedures to build/r= un on : >>> : > CN8560 base eval board as the target. : >>> : > : >>> : > Thanks for shedding the light... : >>> : > : >>> : > : >>> : > On Tue, Oct 13, 2009 at 9:04 PM, M. Warner Losh wrote: : >>> : >> In message: <290865fd0910132051l6a4a6280id401cab8ef5a1c0c@ma= il.gmail.com> : >>> : >> =A0 =A0 =A0 =A0 =A0 =A0alan yang write= s: : >>> : >> : Hi, Warner, : >>> : >> : : >>> : >> : Thanks for the info. =A0I wonder this port could be transf= erred, to : >>> : >> : allow me to participate and continue ..., i know this is q= uite naive : >>> : >> : and don't know will this have issue. : >>> : >> : >>> : >> The current port is in the svn repo under projects/mips. : >>> : >> : >>> : >> Warner : >>> : >> : >>> : >> : On Tue, Oct 13, 2009 at 3:45 PM, M. Warner Losh wrote: : >>> : >> : > In message: <290865fd0910131105i6daa9a17y5f6fe2a4447d723= 3@mail.gmail.com> : >>> : >> : > =A0 =A0 =A0 =A0 =A0 =A0alan yang w= rites: : >>> : >> : > : last email thread is about 1 year ago, and i wonder if= things changed : >>> : >> : > : that would allow your code to be available and / or pr= ovide some : >>> : >> : > : guidance on porting... : >>> : >> : > : >>> : >> : > Cavium released a port to me earlier this year. =A0It is= substantially : >>> : >> : > similar to the port I started from that I referred to in= this post. : >>> : >> : > I've been making good progress, but the efforts have bee= n stalled by : >>> : >> : > my job search... : >>> : >> : > : >>> : >> : > Warner : >>> : >> : > : >>> : >> : > : >>> : >> : > : many thanks!! : >>> : >> : > : : >>> : >> : > : On Thu, Oct 9, 2008 at 12:52 PM, M. Warner Losh wrote: : >>> : >> : > : > In message: <86068e730810091235q3f41b5a3w4dbc38fb231= 64483@mail.gmail.com> : >>> : >> : > : > =A0 =A0 =A0 =A0 =A0 =A0"Jerry Toung" writes: : >>> : >> : > : > : On Wed, Oct 8, 2008 at 7:54 PM, M. Warner Losh wrote: : >>> : >> : > : > : : >>> : >> : > : > : > : >>> : >> : > : > : > : >>> : >> : > : > : > : >>> : >> : > : > : > The issues aren't technical, but the short versi= on is that I've not : >>> : >> : > : > : > received permission from the copyright owner to = release the code. : >>> : >> : > : > : > : >>> : >> : > : > : > : >>> : >> : > : > : > Hi Warner, : >>> : >> : > : > : are you able to run the build on FreeBSD or is it = cross-built ? : >>> : >> : > : > : >>> : >> : > : > Both, although the version I'm running now is cross-= built. =A0I'll be : >>> : >> : > : > doing native builds soon enough... : >>> : >> : > : > : >>> : >> : > : > : what version of your FreeBSD is running on CN38xx = ? : >>> : >> : > : > : >>> : >> : > : > FreeBSD -current as of Tuesday. =A0Prior versions of= -current have : >>> : >> : > : > worked as well. : >>> : >> : > : > : >>> : >> : > : > Warner : >>> : >> : > : > _______________________________________________ : >>> : >> : > : > freebsd-mips@freebsd.org mailing list : >>> : >> : > : > http://lists.freebsd.org/mailman/listinfo/freebsd-mi= ps : >>> : >> : > : > To unsubscribe, send any mail to "freebsd-mips-unsub= scribe@freebsd.org" : >>> : >> : > : > : >>> : >> : > : : >>> : >> : > : : >>> : >> : > : >>> : >> : : >>> : >> : : >>> : >> : >>> : > : >>> : _______________________________________________ : >>> : freebsd-mips@freebsd.org mailing list : >>> : http://lists.freebsd.org/mailman/listinfo/freebsd-mips : >>> : To unsubscribe, send any mail to "freebsd-mips-unsubscribe@free= bsd.org" : >>> : : >>> : : >>> : >> : > : _______________________________________________ : freebsd-mips@freebsd.org mailing list : http://lists.freebsd.org/mailman/listinfo/freebsd-mips : To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.or= g" : = : = From owner-freebsd-mips@FreeBSD.ORG Tue Oct 20 17:22:21 2009 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54866106566C for ; Tue, 20 Oct 2009 17:22:21 +0000 (UTC) (envelope-from alancyang@gmail.com) Received: from mail-pz0-f202.google.com (mail-pz0-f202.google.com [209.85.222.202]) by mx1.freebsd.org (Postfix) with ESMTP id 2925F8FC2A for ; Tue, 20 Oct 2009 17:22:20 +0000 (UTC) Received: by pzk40 with SMTP id 40so4350364pzk.7 for ; Tue, 20 Oct 2009 10:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ZAanz1W80ZMs2gNNu1It7PsCH9gp3pcJg4CQWeJ9vFg=; b=TLgl9XHxCKcDYzntvFlFrptTMGGLejUJfT4GztFCRdys+chusHduUBTeUzjt1if5Dn 7KLsad9zkr2au5J5a9GsS5lKU+5r9f2TJNU8orgNIdAg/QpJI/U25hGx1S8skfXND6uZ oKIMlcaiV0sTpqlFMBTH8Nr+ca6ZRBtHN06kc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=lYleuVh2AIPC/HyJ5m9MmjymFITa04a3ZoaHK27EezhQ7DYFGodfmXfyQI7qD+jF3J OW/72R1UjmU67zcFlyplzGbWy/EmBBmJX1iSwqlWGDs5xo9lB3Ah88aEN9vHwfymXe2L 7BE0+5B+kZSrk6SH0CoNdnwTa0Ls+sCnKNZ+w= MIME-Version: 1.0 Received: by 10.114.31.14 with SMTP id e14mr9764729wae.78.1256059340246; Tue, 20 Oct 2009 10:22:20 -0700 (PDT) In-Reply-To: <20091018.092442.329271515.imp@bsdimp.com> References: <290865fd0910161801x35bbdcd2hd77626d4dfe2465a@mail.gmail.com> <290865fd0910161856l3d988d0bqf4c600bd76b37037@mail.gmail.com> <290865fd0910161902y626f8375m5d46881f4883c1ec@mail.gmail.com> <20091018.092442.329271515.imp@bsdimp.com> Date: Tue, 20 Oct 2009 10:22:19 -0700 Message-ID: <290865fd0910201022h6bfd82cev7fac4294f1e89004@mail.gmail.com> From: alan yang To: "M. Warner Losh" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: Cavium port X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Oct 2009 17:22:21 -0000 Thanks Warner: updated the source tree, now can build OCTEON1. Will try to run it... On Sun, Oct 18, 2009 at 8:24 AM, M. Warner Losh wrote: > In message: <290865fd0910161902y626f8375m5d46881f4883c1ec@mail.gmail.com> > =A0 =A0 =A0 =A0 =A0 =A0alan yang writes: > : but ran into another failure, wonder there is a quick work around: > : --- > : -c -O -pipe =A0-std=3Dc99 -g -Wall -Wredundant-decls -Wnested-externs > : -Wstrict-prototypes =A0-Wmissing-prototypes -Wpointer-arith -Winline > : -Wcast-qual =A0-Wundef -Wno-pointer-sign -fformat-extensions -nostdinc > : -I. -I/usr/home/alan/genova/mips/sys > : -I/usr/home/alan/genova/mips/sys/contrib/altq -D_KERNEL > : -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common > : -finline-limit=3D8000 --param inline-unit-growth=3D100 --param > : large-function-growth=3D1000 =A0-EB -fno-pic -mno-abicalls -G0 -EB > : -march=3Dmips64 -mabi=3D64 -msoft-float -ffreestanding > : /usr/home/alan/genova/mips/sys/mips/mips/trap.c > : /usr/home/alan/genova/mips/sys/mips/mips/trap.c:1063: error: > : conflicting types for 'MipsEmulateBranch' > : ./machine/md_var.h:51: error: previous declaration of > : 'MipsEmulateBranch' was here > : *** Error code 1 > > Hmmm... =A0Looks like there were some changes that were stomped on by > the latest MFC. =A0We'll have to investigate why that was... =A0In the > mean time, I've restored them and fixed a few new issues and committed > the results. =A0You can at least build OCTEON1 now. =A0I've not tried to > run it, and I'd expect that it will die somewhere in the context > switch for the first task, if not sooner.... > > Warner > >