From owner-freebsd-mips@FreeBSD.ORG Thu Aug 26 23:42:25 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 489BF1065672 for ; Thu, 26 Aug 2010 23:42:25 +0000 (UTC) (envelope-from PMahan@adaranet.com) Received: from barracuda.adaranet.com (smtp.adaranet.com [72.5.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 2CAB58FC08 for ; Thu, 26 Aug 2010 23:42:24 +0000 (UTC) X-ASG-Debug-ID: 1282865525-50615b640001-1gY7mK Received: from SJ-EXCH-1.adaranet.com ([10.10.1.29]) by barracuda.adaranet.com with ESMTP id nB8cBhybJLtDvwoS; Thu, 26 Aug 2010 16:32:05 -0700 (PDT) X-Barracuda-Envelope-From: PMahan@adaranet.com Received: from mycroft.adaranet.com (10.10.24.100) by SJ-EXCH-1.adaranet.com (10.10.1.29) with Microsoft SMTP Server (TLS) id 8.1.240.5; Thu, 26 Aug 2010 16:32:04 -0700 Message-ID: <4C76FA9F.2070805@adaranet.com> X-Barracuda-BBL-IP: nil Date: Thu, 26 Aug 2010 16:37:03 -0700 From: Patrick Mahan User-Agent: Thunderbird 2.0.0.23 (X11/20091021) MIME-Version: 1.0 To: Juli Mallett X-ASG-Orig-Subj: Re: Cannot build the Mips 32 bit kernel References: <4C76F4B6.5050607@adaranet.com> <20100826.171545.705015198975915183.imp@bsdimp.com> In-Reply-To: Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Barracuda-Connect: UNKNOWN[10.10.1.29] X-Barracuda-Start-Time: 1282865525 X-Barracuda-URL: http://172.16.10.203:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at adaranet.com Cc: "freebsd-mips@freebsd.org" Subject: Re: Cannot build the Mips 32 bit kernel 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: Thu, 26 Aug 2010 23:42:25 -0000 Juli Mallett wrote: > On Thu, Aug 26, 2010 at 16:15, M. Warner Losh wrote: >> In message: <4C76F4B6.5050607@adaranet.com> >> Patrick Mahan writes: >> : I have attached my modified OCTEON1-32 for you folks to look at. >> >> And the mailing list helpfully stripped it :( > > What's going on here is that we use ISA_MIPS32 bogusly (using it at > all is bad enough, but...) namely we use it to determine whether to > link in the relevant bits of libkern. I'm not sure what the best > thing to do is. I've thought about creating a .c file that includes > the libkern bits depending on the ABI that's being used, so that we > can get config out of the business of handling this. > > In short: your config probably lacks and should have (even though it's > actually wrong) options ISA_MIPS32. Nice to have someone who is prescient ;-) Yes, our current configuration was leaving this out and I wanted to build without it. I am trying to detemine where the, pardon my language, bloat is coming from. We build for mips o32 under 8.0 and our kernel (before we insert the rootfile system) is -rwxr-xr-x 1 pmahan pmahan 38155521 Aug 24 19:22 kernel.octeon.32 Where when we build it off of head we are seeing -rwxr-xr-x 1 pmahan pmahan 243364423 Aug 26 09:45 kernel.octeon.32 ~38 Mbytes versus ~243 Mbytes a 6x increase in size. So I was playing around with the configuration file to decide what to leave out. Patrick