From owner-freebsd-mips@FreeBSD.ORG Fri Oct 16 21:54:58 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 132061065672 for ; Fri, 16 Oct 2009 21:54:58 +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 DA9538FC0A for ; Fri, 16 Oct 2009 21:54:57 +0000 (UTC) Received: by pzk40 with SMTP id 40so1969782pzk.7 for ; Fri, 16 Oct 2009 14:54:57 -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:content-type :content-transfer-encoding; bh=rHpX4wdzfAmPD6ykqDXVJXxd6m62CtVc60y2/mpKruI=; b=gL04H9rroBNKNsr9Z+Q0qEDhQ2w4zCJXOdWj9dxXLEoOmUeNfoaIlXAOEDPtKKNv7u PXSkW1hNv7uh5zQqbAtsHMTtvGaVxPS3esraPAsaO4lv6U4dIAgJkkNTu+yPOXB4y5oC xCiPpjWvngYKYGbI7lmUe7XyHaEQuIY0VB9oc= 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 :content-type:content-transfer-encoding; b=Os0opI6YGeIHpYQKsEX/IoGoOvXyBZFjc/JZIb6GQnirEboIUYsaFpzLkugX5MVZjf hRx+tDn+/ZfswAMcCVE7zaPI1H9Vb/TCIamC92gN0Ie6AnIKSLPuhd7fWwNxE05J2EHJ qPdeKvrvxkr1APDbMcXzq3Zepw2B2Uw7TVlog= MIME-Version: 1.0 Received: by 10.141.4.20 with SMTP id g20mr174063rvi.121.1255728529246; Fri, 16 Oct 2009 14:28:49 -0700 (PDT) In-Reply-To: <290865fd0910141545p770d3c27gbc24f7c01f8e7ed3@mail.gmail.com> References: <290865fd0910131105i6daa9a17y5f6fe2a4447d7233@mail.gmail.com> <20091013.164542.1251853681.imp@bsdimp.com> <290865fd0910132051l6a4a6280id401cab8ef5a1c0c@mail.gmail.com> <20091013.220451.1649859237.imp@bsdimp.com> <290865fd0910141545p770d3c27gbc24f7c01f8e7ed3@mail.gmail.com> Date: Fri, 16 Oct 2009 14:28:49 -0700 Message-ID: <290865fd0910161428g45ab74a0x272c9b9674c9d5fd@mail.gmail.com> From: alan yang To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Fri, 16 Oct 2009 21:54:58 -0000 Hello, I checked out from svn repo the project/mips and try to build kernel for OCTEON, but ran into the following errors. Wonder any readme available describes procedures, appreciate people could shed some 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/modu= les 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/OCTEON1" SYSDIR=3D"/usr/home/alan/genova/mips/sys/mips/compile/OCTEON1/../../.." make cleandepend Fujitsu# make depend machine -> ../../../mips/include cc -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../../.. -I../../../contrib/altq -I../../../contrib/ipfilter -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/support -I../../../gnu/fs/xfs -I../../../contrib/opensolaris/compat -I../../../dev/cxgb -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -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 ../../../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 sw= itch ../../../mips/mips/genassym.c:1: error: bad value (mips64) for -mtune=3D sw= itch *** 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/run 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@mail.gmail.com= > >> =A0 =A0 =A0 =A0 =A0 =A0alan yang writes: >> : Hi, Warner, >> : >> : Thanks for the info. =A0I wonder this port could be transferred, to >> : allow me to participate and continue ..., i know this is quite 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: <290865fd0910131105i6daa9a17y5f6fe2a4447d7233@mail.gmail= .com> >> : > =A0 =A0 =A0 =A0 =A0 =A0alan yang writes: >> : > : last email thread is about 1 year ago, and i wonder if things chan= ged >> : > : that would allow your code to be available and / or provide some >> : > : guidance on porting... >> : > >> : > Cavium released a port to me earlier this year. =A0It is substantial= ly >> : > similar to the port I started from that I referred to in this post. >> : > I've been making good progress, but the efforts have been stalled by >> : > my job search... >> : > >> : > Warner >> : > >> : > >> : > : many thanks!! >> : > : >> : > : On Thu, Oct 9, 2008 at 12:52 PM, M. Warner Losh w= rote: >> : > : > In message: <86068e730810091235q3f41b5a3w4dbc38fb23164483@mail.g= mail.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 version 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 ha= ve >> : > : > worked as well. >> : > : > >> : > : > Warner >> : > : > _______________________________________________ >> : > : > freebsd-mips@freebsd.org mailing list >> : > : > http://lists.freebsd.org/mailman/listinfo/freebsd-mips >> : > : > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freeb= sd.org" >> : > : > >> : > : >> : > : >> : > >> : >> : >> >