From owner-freebsd-mips@FreeBSD.ORG Tue Nov 30 23:20:48 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 F08A11065673 for ; Tue, 30 Nov 2010 23:20:48 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 809528FC15 for ; Tue, 30 Nov 2010 23:20:48 +0000 (UTC) Received: by wyf19 with SMTP id 19so6233164wyf.13 for ; Tue, 30 Nov 2010 15:20:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=I2Bny6AioRiRBeOYBVNP9TYj4Qy5xnHzG05prcqTmVs=; b=sDpOXKieN8GB+uFEGgRv5Ghlgvw3Y4lR6BQp7r31J8stDtpBNUCwz7QmXC9XeYwqyY r2kF0XTeVM9JZ8NDAXAtPWXV9afEKvKV0y8QKUG00CdGnpGvhs5PupKdFUonZWw4jEN7 ZRieWPDoZuzM+EzF9cdW/eDFETI/Eu1eA+G84= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=GrPdglw/Lue2oEDQhsnMcGfJCMYC6QD6xIL0lv1nUbr97g0mwB+zjmFPwa0LGSX12g Fg0pleQ9nzQT2wWTTalnstq1fVgucWKCsJdlpjtqDHlx9mtjboF3sjIovechRBWSEIKN prQVjC7BRsV/4zh1KxtH/Ka+r1TSVR30A9mjY= MIME-Version: 1.0 Received: by 10.216.51.21 with SMTP id a21mr7242125wec.50.1291159247428; Tue, 30 Nov 2010 15:20:47 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.65.210 with HTTP; Tue, 30 Nov 2010 15:20:47 -0800 (PST) In-Reply-To: <201011301617.00130.freebsd-mips@dino.sk> References: <201011261935.50734.freebsd-mips@dino.sk> <4CF3DF2C.6040109@bsdimp.com> <201011301617.00130.freebsd-mips@dino.sk> Date: Wed, 1 Dec 2010 07:20:47 +0800 X-Google-Sender-Auth: d6xntkXp1ECR1h2PUta1gpTU1Us Message-ID: From: Adrian Chadd To: Milan Obuch Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Tue, 30 Nov 2010 23:20:49 -0000 *urge* write a blog post about this please. :-) Adrian On 30 November 2010 23:16, Milan Obuch wrote: > On Monday 29 November 2010 18:13:16 Warner Losh wrote: >> On 11/26/2010 11:35, Milan Obuch wrote: >> > On Friday 26 November 2010 17:59:05 Warner Losh wrote: >> >> On 11/26/2010 08:54, Milan Obuch wrote: >> >>> On Thursday 25 November 2010 12:12:06 Luiz Otavio O Souza wrote: >> > [ snip] >> > >> >>>> Building world works with CPUTYPE=3Dmips32 and for ports, add the >> >>>> following line to /etc/make.conf: >> >>>> >> >>>> CFLAGS=3D-O2 -pipe -march=3Dmips32 >> >>> >> >>> Hmm, I put just TARGET_ARCH=3Dmipseb into /etc/make.conf and compile= d >> >>> 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 wou= ld >> >>> 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=3DYES in /etc/make.conf) to verify native builds... >> >>> they are slowish here, which is expected, but seems to work, which i= s >> >>> great. >> >> >> >> what does uname -a tell you? >> > >> > FreeBSD argo.dino.sk 9.0-CURRENT FreeBSD 9.0-CURRENT #3: Wed Nov 24 >> > 10:16:14 CET 2010 >> > root@wind.dino.sk:/tmp/rspro/obj/mips.mipseb/data/src9/sys/RSPRO mips >> > >> > Currently running world and kernel is from cross build on i386 host. >> > >> > Native buildworld just ended, I am going to try native buildkernel... = for >> > that I must apply some patches (already published on this list). >> >> Juli just committed some patches to make this better. =A0I was going to = do >> it, but she got impatient waiting for my overbooked schedule to free up.= .. >> >> Warner > > Well, over weekend it did not work, now it compiles. > > There is a problem, however. > > With no /etc/make.conf (TARGET nor TARGET_ARCH defined) both buildworld a= nd > buildkernel operation fails complaining about 'unknown target mips:mips'. > After defining TARGET_ARCH=3Dmipseb make buildworld succeeds, but this is= not > actually native buildworld - nake installworld complains about unknown ta= rget > mips:mips as well, when TARGET_ARCH is defined, make errors with 'ERROR: > Please set DESTDIR!' - so actually this is considered cross build. > > MAKEOBJDIRPREFIX is set to /usr/obj/mips.mipseb and this again indicates = it is > a cross-build. So I think for mips architecture we need to set TARGET_ARC= H > internally, somehow - after all, maybe endianness should be visible in ou= tput > of uname -someswitch... > Maybe uname -m or uname -p should be altered to output mipsel/mipseb... I > think I saw it once, but now they are both mips... > > Regards, > Milan > _______________________________________________ > 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" >