From owner-freebsd-mips@FreeBSD.ORG Fri Nov 26 15:54:45 2010 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 4CBF51065670 for ; Fri, 26 Nov 2010 15:54:45 +0000 (UTC) (envelope-from freebsd-mips@dino.sk) Received: from loki.netlab.sk (ns3.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id BF2A38FC20 for ; Fri, 26 Nov 2010 15:54:43 +0000 (UTC) Received: from door.dino.sk (fw1.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Fri, 26 Nov 2010 17:01:58 +0100 id 00033C0F.4CEFD9F6.0001723F From: Milan Obuch To: Luiz Otavio O Souza Date: Fri, 26 Nov 2010 16:54:48 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.5.3; i386; ; ) References: <201011241145.43480.freebsd-mips@dino.sk> <21DE95C5-CD5F-48C0-9569-C40D15BDC215@gmail.com> In-Reply-To: <21DE95C5-CD5F-48C0-9569-C40D15BDC215@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201011261654.50452.freebsd-mips@dino.sk> Cc: freebsd-mips@freebsd.org Subject: Re: [Re: First RSPRO deployed!] flash utility mkfwimage and RSPRO boot question 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, 26 Nov 2010 15:54:45 -0000 On Thursday 25 November 2010 12:12:06 Luiz Otavio O Souza wrote: > On Nov 24, 2010, at 8:45 AM, Milan Obuch wrote: > > On Thursday 18 November 2010 12:07:34 Luiz Otavio O Souza wrote: [snip] > > Hi, > > > > I can succesfully build world and kernel and using mkflash create an > > image usable to be loaded by redboot and this is used on regular boot > > after power on. Fine. I am using currently kernel in on board flash > > (spiflash) and filesystem on USB flash key. This way I am able to try > > native buildworld on RSPRO (not too quick, much slower than cross build, > > but this is expected), test ports etc. > > Great ! > > Building world works with CPUTYPE=mips32 and for ports, add the following > line to /etc/make.conf: > > CFLAGS=-O2 -pipe -march=mips32 > Hmm, I put just TARGET_ARCH=mipseb into /etc/make.conf and compiled almost all world (accidentally broken just before end, but that's a pilot error in this case) and sysutils/screen port compiled and run with no CPUTYPE nor CFLAGS definition. That should not be read as better from any side, but surely simpler :) Maybe even TARGET_ARCH should be known from running kernel, this would be similar how native build works on both i386 and amd64 platforms. Now, with screen in place I am going to test buildworld again (with some WITHOUT_XXX=YES in /etc/make.conf) to verify native builds... they are slowish here, which is expected, but seems to work, which is great. Regards, Milan