Date: Fri, 16 Oct 2009 18:56:20 -0700 From: alan yang <alancyang@gmail.com> To: "M. Warner Losh" <imp@bsdimp.com> Cc: freebsd-mips@freebsd.org Subject: Re: Cavium port Message-ID: <290865fd0910161856l3d988d0bqf4c600bd76b37037@mail.gmail.com> In-Reply-To: <290865fd0910161801x35bbdcd2hd77626d4dfe2465a@mail.gmail.com> References: <20091013.220451.1649859237.imp@bsdimp.com> <290865fd0910141545p770d3c27gbc24f7c01f8e7ed3@mail.gmail.com> <290865fd0910161428g45ab74a0x272c9b9674c9d5fd@mail.gmail.com> <20091016.162454.-10324602.imp@bsdimp.com> <290865fd0910161801x35bbdcd2hd77626d4dfe2465a@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
seems to find the place: kern.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 <alancyang@gmail.com> wrote: > thanks Warner! got that. > > the buildkernel failed on some files due to warning of cast pointer > and -Werror flag. wonder how to remove -Werror, should regen > toolchain / Makefile... ? > > thanks again!! > > On Fri, Oct 16, 2009 at 3:24 PM, M. Warner Losh <imp@bsdimp.com> wrote: >> Looks like you are trying to use the old-school way of building the >> kernel (which is what I do all the time). Problem 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=OCTEON1 >> >> and then to do an incremental build: >> >> make buildkernel KERNFAST=OCTEON1 >> >> I should turn this into a readme file. >> >> Warner >> >> >> >> In message: <290865fd0910161428g45ab74a0x272c9b9674c9d5fd@mail.gmail.com> >> alan yang <alancyang@gmail.com> writes: >> : 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=/usr/home/alan/genova/mips/sys/mips/compile/OCTEON1/modules >> : KMODDIR=/boot/kernel MODULES_OVERRIDE="""" DEBUG_FLAGS="-g" >> : MACHINE=mips MACHINE_ARCH=mips >> : KERNBUILDDIR="/usr/home/alan/genova/mips/sys/mips/compile/OCTEON1" >> : SYSDIR="/usr/home/alan/genova/mips/sys/mips/compile/OCTEON1/../../.." >> : make cleandepend >> : Fujitsu# make depend >> : machine -> ../../../mips/include >> : cc -c -O -pipe -std=c99 -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=8000 --param inline-unit-growth=100 >> : --param large-function-growth=1000 -EB -fno-pic -mno-abicalls -G0 -EB >> : -march=mips64 -mabi=64 -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=64" >> : ../../../mips/mips/genassym.c:1: error: bad value (mips64) for -march= switch >> : ../../../mips/mips/genassym.c:1: error: bad value (mips64) for -mtune= switch >> : *** Error code 1 >> : >> : >> : >> : On Wed, Oct 14, 2009 at 3:45 PM, alan yang <alancyang@gmail.com> 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 <imp@bsdimp.com> wrote: >> : >> In message: <290865fd0910132051l6a4a6280id401cab8ef5a1c0c@mail.gmail.com> >> : >> alan yang <alancyang@gmail.com> writes: >> : >> : Hi, Warner, >> : >> : >> : >> : Thanks for the info. I 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 <imp@bsdimp.com> wrote: >> : >> : > In message: <290865fd0910131105i6daa9a17y5f6fe2a4447d7233@mail.gmail.com> >> : >> : > alan yang <alancyang@gmail.com> writes: >> : >> : > : last email thread is about 1 year ago, and i wonder if things changed >> : >> : > : that would allow your code to be available and / or provide some >> : >> : > : guidance on porting... >> : >> : > >> : >> : > Cavium released a port to me earlier this year. It 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 been stalled by >> : >> : > my job search... >> : >> : > >> : >> : > Warner >> : >> : > >> : >> : > >> : >> : > : many thanks!! >> : >> : > : >> : >> : > : On Thu, Oct 9, 2008 at 12:52 PM, M. Warner Losh <imp@bsdimp.com> wrote: >> : >> : > : > In message: <86068e730810091235q3f41b5a3w4dbc38fb23164483@mail.gmail.com> >> : >> : > : > "Jerry Toung" <jrytoung@gmail.com> writes: >> : >> : > : > : On Wed, Oct 8, 2008 at 7:54 PM, M. Warner Losh <imp@bsdimp.com> 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. I'll be >> : >> : > : > doing native builds soon enough... >> : >> : > : > >> : >> : > : > : what version of your FreeBSD is running on CN38xx ? >> : >> : > : > >> : >> : > : > FreeBSD -current as of Tuesday. Prior versions of -current have >> : >> : > : > 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@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@freebsd.org" >> : >> : >> >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?290865fd0910161856l3d988d0bqf4c600bd76b37037>
