From owner-freebsd-embedded@FreeBSD.ORG Mon Oct 11 11:06:52 2010 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8FD26106564A for ; Mon, 11 Oct 2010 11:06:52 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7D7258FC1C for ; Mon, 11 Oct 2010 11:06:52 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o9BB6qhv037518 for ; Mon, 11 Oct 2010 11:06:52 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o9BB6pTF037516 for freebsd-embedded@FreeBSD.org; Mon, 11 Oct 2010 11:06:51 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 11 Oct 2010 11:06:51 GMT Message-Id: <201010111106.o9BB6pTF037516@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-embedded@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-embedded@FreeBSD.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Oct 2010 11:06:52 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o misc/136889 embedded [nanobsd] [path] nanobsd error reporting and other ref o misc/52256 embedded [picobsd] picobsd build script does not read in user/s o kern/42728 embedded [picobsd] many problems in src/usr.sbin/ppp/* after c 3 problems total. From owner-freebsd-embedded@FreeBSD.ORG Thu Oct 14 20:47:36 2010 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1CB011065696 for ; Thu, 14 Oct 2010 20:47:36 +0000 (UTC) (envelope-from matt.schnall@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 AC8548FC0A for ; Thu, 14 Oct 2010 20:47:35 +0000 (UTC) Received: by wyb38 with SMTP id 38so2729wyb.13 for ; Thu, 14 Oct 2010 13:47:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=YCXPl6VBcGo1ZLsWS1+MJ+EBWWZkkXBUXCL12RXaEL8=; b=Q6Iy+bZ28bjaMwGlpaGaf4EgLjODpGjeamNAP5OooonhFfJUNWpVjrSr8gfY0n6Bwt EwVOcGWKOBIUW9INQTihgEnEUplgBsSh+ooUEs9l5oheLhAAhwC1iY4dm09vjwgutdy6 dgeOgXNRxTukKMPuNBtLmRT2yW8XaeLUuyRCo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=P8R7ILNxrWYkP8xyknKQ29Hpw2CD443qE1x/N37qNtE0JWhYjNIGH7wcMzY36g0I+s K8TYbuCC/GR+qqCGhELtUN3wbkvqunanf5oKRN1ScuqfTLr9jBeVQmREW0LAOHHiByQR w008YnToB+VpVsEsRYdH40MH0Le6/m79vy6oU= MIME-Version: 1.0 Received: by 10.216.37.193 with SMTP id y43mr10521689wea.59.1287087830725; Thu, 14 Oct 2010 13:23:50 -0700 (PDT) Received: by 10.216.6.37 with HTTP; Thu, 14 Oct 2010 13:23:50 -0700 (PDT) Date: Thu, 14 Oct 2010 16:23:50 -0400 Message-ID: From: Matthew Schnall To: freebsd-embedded@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Creating New Cross-Compiled Build Target X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Oct 2010 20:47:36 -0000 I am a student at CMU taking a OS project course (www.cs.cmu.edu/~412). My project is creating a port of freeBSD to the new Tilera chips. The chip has a mips like architecture. There is a gcc cross compiler from x86 to the tilera assembly. I was curious if someone could help guide me through the steps to create a new cross-compiled target within the freeBSD build infrastructure. Thanks, Matt From owner-freebsd-embedded@FreeBSD.ORG Thu Oct 14 21:44:13 2010 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE99B1065670 for ; Thu, 14 Oct 2010 21:44:13 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A23F88FC08 for ; Thu, 14 Oct 2010 21:44:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o9ELY7kn010480; Thu, 14 Oct 2010 15:34:08 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 14 Oct 2010 15:34:07 -0600 (MDT) Message-Id: <20101014.153407.84142211.imp@bsdimp.com> To: matt.schnall@gmail.com From: Warner Losh In-Reply-To: References: X-Mailer: Mew version 6.3 on Emacs 23.2 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@FreeBSD.org Subject: Re: Creating New Cross-Compiled Build Target X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Oct 2010 21:44:13 -0000 In message: Matthew Schnall writes: : I am a student at CMU taking a OS project course : (www.cs.cmu.edu/~412). My project is creating a port of freeBSD to the : new Tilera chips. The chip has a mips like architecture. There is a : gcc cross compiler from x86 to the tilera assembly. I was curious if : someone could help guide me through the steps to create a new : cross-compiled target within the freeBSD build infrastructure. There's lots of people that are interested in doing a port to Tilera. I'd start with 'setenv TARGET tilera' and 'setenv TARGET_ARCH tilera' and then 'make buildworld' and fix what breaks. Chances are good you'll need some WIP that I have to support out-of-tree toolchains... Warner From owner-freebsd-embedded@FreeBSD.ORG Thu Oct 14 22:30:02 2010 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A40E106564A for ; Thu, 14 Oct 2010 22:30:02 +0000 (UTC) (envelope-from gonzo@launchpad.bluezbox.com) Received: from launchpad.bluezbox.com (hq.bluezbox.com [70.38.37.145]) by mx1.freebsd.org (Postfix) with ESMTP id 8DCF58FC13 for ; Thu, 14 Oct 2010 22:30:01 +0000 (UTC) Received: from [140.242.16.2] (helo=[172.23.2.112]) by launchpad.bluezbox.com with esmtpsa (SSLv3:DES-CBC3-SHA:168) (Exim 4.71 (FreeBSD)) (envelope-from ) id 1P6Vem-000A6U-1A; Thu, 14 Oct 2010 14:48:13 -0700 Message-ID: <4CB77A98.8010604@bluezbox.com> Date: Thu, 14 Oct 2010 14:48:08 -0700 From: Oleksandr Tymoshenko User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: Matthew Schnall References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: gonzo@launchpad.bluezbox.com X-Spam-Level: ---- X-Spam-Report: Spam detection software, running on the system "hq.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: On 10/14/2010 1:23 PM, Matthew Schnall wrote: > I am a student at CMU taking a OS project course > (www.cs.cmu.edu/~412). My project is creating a port of freeBSD to the > new Tilera chips. The chip has a mips like architecture. There is a > gcc cross compiler from x86 to the tilera assembly. I was curious if > someone could help guide me through the steps to create a new > cross-compiled target within the freeBSD build infrastructure. It's relatively easy :) [...] Content analysis details: (-4.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 0.2 AWL AWL: From: address is in the auto white-list Cc: freebsd-embedded@freebsd.org Subject: Re: Creating New Cross-Compiled Build Target X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Oct 2010 22:30:02 -0000 On 10/14/2010 1:23 PM, Matthew Schnall wrote: > I am a student at CMU taking a OS project course > (www.cs.cmu.edu/~412). My project is creating a port of freeBSD to the > new Tilera chips. The chip has a mips like architecture. There is a > gcc cross compiler from x86 to the tilera assembly. I was curious if > someone could help guide me through the steps to create a new > cross-compiled target within the freeBSD build infrastructure. It's relatively easy :) Rough plan: - Getting toolchain - Add architecture name to the KNOWN_ARCHES in Makefile.inc1 - Add architecture entries to share/mk/bsd.cpu.mk and share/mk/bsd.endian.mk - Look for "mips" in bsd.sys.mk and sys.mk and check if those exceptions are related to you arch - In sys/conf add Makefile.$arch, files.$arch, ldscript.$arch, options.$arch files (use *.mips as examples) - Add sys/$arch subdirectory with layout simmilar to sys/mips or sys/arm - Start hacking Getting toolchain might be a tricky part since version of gcc in base is 4.2 and binutils are quite outdated. So if you have toolchain as a set of patches to later versions backporting them would be a major headache. Easy way would be to build gcc/binutils with your patches applied from sources and hack proper gcc/binutils binaries' names to makefile. Warner did some work on out-of-base toolchains support but I'm not sure at what stage this project is.