From owner-freebsd-ppc@FreeBSD.ORG Fri Sep 21 17:20:18 2007 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A64716A41A; Fri, 21 Sep 2007 17:20:18 +0000 (UTC) (envelope-from sepotvin@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.freebsd.org (Postfix) with ESMTP id 0C89913C44B; Fri, 21 Sep 2007 17:20:17 +0000 (UTC) (envelope-from sepotvin@videotron.ca) Received: from [10.0.0.168] ([67.70.237.74]) by VL-MH-MR001.ip.videotron.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTPA id <0JOQ00K8VATSITY0@VL-MH-MR001.ip.videotron.ca>; Fri, 21 Sep 2007 13:20:17 -0400 (EDT) Date: Fri, 21 Sep 2007 13:20:16 -0400 From: "Stephane E. Potvin" In-reply-to: <46F39815.6060507@semihalf.com> To: Rafal Jaworowski Message-id: <46F3FD50.6030409@videotron.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT References: <46DCD1DA.5090301@freebsd.org> <42C14314-D3EC-460E-97D9-53830FB9CBF6@decpp.net> <46E03D3E.8060504@freebsd.org> <46F28001.2030205@videotron.ca> <46F39815.6060507@semihalf.com> User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) Cc: grehan@freebsd.org, freebsd-ppc@freebsd.org Subject: Re: Cell port X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Sep 2007 17:20:18 -0000 Rafal Jaworowski wrote: > Stephane E. Potvin wrote: >> >> Small comment about the OpenFirmware dependency. Recent Linux kernels >> started to required that all powerpc platforms provide what they call >> a "flattened device tree" which is very similar to an OpenFirmware >> device tree. It enables them to share the same code for standard Apple >> computers providing an OpenFirmware and small embedded processors >> (like the 8349e from FSL) that do not usually have OpenFirmware. >> >> It might be worthwhile for anybody attempting to port to a new >> architecture to look into adding support for something similar instead >> of removing the OF dependency. >> > > Having the flat device tree is not cheap, as one has to provide the > whole infrastructure, which is currently non-existent: > > - the dtc 'compiler' to produce binary out of textual description of the > device tree (the existing GPL-licensed could be used for quick start) > > - in-kernel library of routines processing the device tree blob (node, > properties etc.) > > - loader(8) would need to be involved too (at least to pass the blob as > part of metadata or so). > > Introducing this is quite a big project for its own, and requires > dealing with OpenFirmware internals, binding definitions etc. as FDT > essentially mimics some part of it. > I admit that I might be confused but I thought that the ppc port already had the infrastructure to deal with OF. As the FDT is a simplified OF tree (flattened), once you have the blob parser it should be pretty straightforward. At least not much more complicated than to rip out the OF dependency and have to maintain two different ways of probing the HW. This being said, even if I have a very strong interest in this area I don't have enough resources at this time to work on this, so I'll leave those who work on this decide which way is better. Regards, Steph