From owner-freebsd-arm@FreeBSD.ORG Wed Mar 30 09:10:01 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB9271065670 for ; Wed, 30 Mar 2011 09:10:01 +0000 (UTC) (envelope-from ben.r.gray@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 426728FC08 for ; Wed, 30 Mar 2011 09:10:00 +0000 (UTC) Received: by wwc33 with SMTP id 33so1188590wwc.31 for ; Wed, 30 Mar 2011 02:10:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=Otc+IDqRB1dBNJYaxATB9YJMT77L3spl/bTb2+hg7vE=; b=MtPLLtsxKEnITSVFcwi/zpKFCcVxs+c7w40+AJ18NshOSVeRzi6BdVe/UrruysNzXk EvW0iW/DrVFtA7PItk0doAhzu9KqZF9LZxp9fu8LcGC+eZjfIbGlvzmGqkeQapkYMUpV uvQGgCzYdJPNYYyEkig9R/0/fHaNZPwfjpRW0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=BO8KxbDUoUWQJsEPL+IkupIWUngfV3HEVoOjqta9xgvdIsC3429VPqAw7MQF5Ubhej /JKpTKhCM8TABFr5tOn9WvceeJIIlaG8PL66YwLYdyxd3LYP8L06e0jB6/eiEzkFO/5b MTw8PoijysSjUYg575KgDzT9SpB5GLAAKOQJw= Received: by 10.216.140.154 with SMTP id e26mr861999wej.79.1301474864066; Wed, 30 Mar 2011 01:47:44 -0700 (PDT) Received: from Bens-MBP.local (ip-80-238-8-128.bskyb.com [80.238.8.128]) by mx.google.com with ESMTPS id r80sm2338378wei.15.2011.03.30.01.47.42 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 Mar 2011 01:47:43 -0700 (PDT) Message-ID: <4D92EE2D.8000107@gmail.com> Date: Wed, 30 Mar 2011 09:47:41 +0100 From: Ben Gray User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-arm@freebsd.org References: <20110329150903.GA4069@ci0.org> <7519F558-CEA3-41A9-8AA6-5A3234C4F1A8@gmail.com> <1301451934.2217.19.camel@nsl> In-Reply-To: <1301451934.2217.19.camel@nsl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Beagleboard stuff X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2011 09:10:01 -0000 Hi all, Just an update on some of the work I've done on the Beagleboard/Pandaboard in case someone finds it useful ... I've done a rework of the pmap changes I made for ARMv7, the old work was a bodge and was really just so I could get the kernel up for writing device drivers. My newly modified pmap code is also a bodge :), but I've tried to tidy up a lot of my changes and I've gone down the route of providing static inline functions (could be converted to macros) for manipulating the individual PTEs. Besides these changes I've added an extension for Cortex-A9 which allows you to map pages as either "device" or "strongly ordered", this is needed for SCU registers set mapping on the omap44xx devices. For this I added a new PTE_? type, i.e. PTE_NOCACHE, PTE_CACHED, PTE_PAGETABLE and now PTE_DEVICE. I've also reworked the device initialisation code to be more like the AT91 tree, i.e. there is a base omap device which then has SoC specific children, like omap35xx, omap44xx, etc. I started doing this a couple of weeks ago when I first got my Pandaboard, but since then I haven't had much time to work on it. On that note, I've got my Pandaboard starting to boot but I haven't ported the MMC or ECHI drivers yet so can't mount a rootfs. I'm hoping to get these done reasonably soon and moving on to the interesting stuff of hacking in MPCore support :). Once I get the basic Pandaboard support up and running I'll update the code on googlecode, right now it's all a bit of a mess. Thanks, Ben. > Damjan Marion wrote: >> Hi, >> >> On Mar 29, 2011, at 5:09 PM, Olivier Houchard wrote: >> >>> On Tue, Mar 29, 2011 at 12:27:33PM +0100, Mark Murray wrote: >>>> Hi * >>>> >>> Hi Mark, >>> >>>> I'm keen "go embedded". I have a Beagleboard-xM, and I haven't had the >>>> time I'd like to do much with it. >>>> >>>> A fellow called Ben Gray has done some of the work to get FreeBSD >>>> working on this unit, but used FreeBSD-8 as a base. I've taken his >>>> work and made it compile on current (mostly). He had some hacks >>>> (beagle_brintf, beagle_panic etc) which I've removed, along with some >>>> stuff (that may have broken things) in PMAP. >>>> >>>> The diffs are in http://people.freebsd.org/~markm/src.beagleboard.diff. >>>> >>>> Is this of any use? :-) >>>> >>> yes it his :) armv6/v7 support has been wanted for a long time now. >>> However, there's been ongoing discussions with Mark Tinguely, raj@ and others >>> about how to handle the MMU differences between<= v5 and>= v6, and I think >>> the consensus was we should create a new pmap_v6.c file, maybe using kobj as >>> is done in the ppc port. Maybe now is a good time to do so :) >> This is very interesting topic to me. I just received few days ago pandaboard, which is somehow successor of beagleboard and it is built on TI OMAP4430 SoC. > Mine has arrived four months ago, I haven't had time to work on it. > >> Main difference is that this one is dual core ARM Cortex-A9 so it needs SMP support. I guess that so far there is no SMP in ARM implementation on FreeBSD so I planed to spent some time on it. >> Is there any work done so far on SMP side? >> If not is there any wider interest to implement ARM MPCore in FreeBSD? >> Any other thoughts on this topic? > You likely can snag a bunch of that support from NetBSD, since they > have ARM11 MPCore support: > http://mail-index.netbsd.org/source-changes/2011/03/10/msg019790.html > > Is this enough to get you going? > >> Thanks, >> >> Damjan > Kevin > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"