From owner-freebsd-arm@FreeBSD.ORG Wed Aug 11 09:40:00 2010 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 7A0691065672 for ; Wed, 11 Aug 2010 09:40:00 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from smtp.semihalf.com (smtp.semihalf.com [213.17.239.109]) by mx1.freebsd.org (Postfix) with ESMTP id 224558FC19 for ; Wed, 11 Aug 2010 09:39:59 +0000 (UTC) Received: from localhost (unknown [213.17.239.109]) by smtp.semihalf.com (Postfix) with ESMTP id B9072C3BB5; Wed, 11 Aug 2010 11:39:58 +0200 (CEST) X-Virus-Scanned: by amavisd-new at semihalf.com Received: from smtp.semihalf.com ([213.17.239.109]) by localhost (smtp.semihalf.com [213.17.239.109]) (amavisd-new, port 10024) with ESMTP id tDpL0CerHJTA; Wed, 11 Aug 2010 11:39:58 +0200 (CEST) Received: from [10.0.0.79] (cardhu.semihalf.com [213.17.239.108]) by smtp.semihalf.com (Postfix) with ESMTPSA id 14304C3BAF; Wed, 11 Aug 2010 11:39:58 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Rafal Jaworowski In-Reply-To: <20100810090533.GA56784@ci0.org> Date: Wed, 11 Aug 2010 11:39:57 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <82A49B7C-23F2-400C-B726-2FF13FD6D282@semihalf.com> References: <4C607639.9050506@gmail.com> <20100810090533.GA56784@ci0.org> To: Olivier Houchard X-Mailer: Apple Mail (2.1081) Cc: "freebsd-arm@FreeBSD.org" Subject: ARMv6 support -- was: OMAP3530 - Beagleboard and I2C problems 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, 11 Aug 2010 09:40:00 -0000 On 2010-08-10, at 11:05, Olivier Houchard wrote: > On Mon, Aug 09, 2010 at 10:42:17PM +0100, Ben Gray wrote: >> Hi, >>=20 >=20 > Hi Ben, >=20 >> I've been working on a port of FreeBSD to Texas Instruments = OMAP3530=20 >> for a while now. I have the basic drivers, Clocks, MMC, DMA, GPIO's,=20= >> etc. The kernel is coming up, however it crashes with a seg fault = when=20 >> starting the init process, this is probably caused by the hacks I had = to=20 >> put in the pmap code to get it to work with ARMv7 MMU's, but that's = an=20 >> email for another day. >>=20 >=20 > That's great to hear ! > How hackish is your work ? There's an ongoing work to support = armv6/armv7, so > maybe it's best to avoid duplicating efforts ? Olivier, As we spoke, I've put a diff of our ARMv6 work to freefall, see: = http://people.freebsd.org/~raj/patches/arm/dove_v6.diff This is against HEAD 2009.08.03, and is part of support for the = following hardware: - CPU core: Marvell Sheeva2 (88SV581x), ARMv6 - SOC: 88F6781 (Armada 500 alias Dove) The DB-88F6781 kernel won't rather build, as there are a couple of = platform-specific bits missing (GPIO rework, PM etc.), but the common = ARM code should apply to the above baseline and give you an idea what = kind of changes and adaptations were introduced in order to get this = working. It's an initial attempt, but working stable. The main areas are = pmap / busdma rework for v6; in order to have a clear situation during = development we have decided to cut off from the legacy v5 files (and = come up with separate -v6 derivatives), although we could converge back = to a single file approach if this proves better eventually. Rafal