From owner-freebsd-arm@FreeBSD.ORG Fri Jan 3 17:36:49 2014 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7B21112D for ; Fri, 3 Jan 2014 17:36:49 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4B4931199 for ; Fri, 3 Jan 2014 17:36:48 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Vz8fv-000Apr-Tl; Fri, 03 Jan 2014 17:36:48 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id s03HahxN024110; Fri, 3 Jan 2014 10:36:45 -0700 (MST) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19ROvydtcB3Wp0mo8LS/PqJ Subject: Re: FreeBSD 10 on Dockstar (Marvell Kirkwood) From: Ian Lepore To: Markus Pfeiffer In-Reply-To: <20131231211054.GA90299@moore.morphism.de> References: <20131231211054.GA90299@moore.morphism.de> Content-Type: multipart/mixed; boundary="=-jckgBP4nfFzA4kCid71J" Date: Fri, 03 Jan 2014 10:36:43 -0700 Message-ID: <1388770603.1158.273.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jan 2014 17:36:49 -0000 --=-jckgBP4nfFzA4kCid71J Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Tue, 2013-12-31 at 21:10 +0000, Markus Pfeiffer wrote: > Hi all, > > I managed "fixing" it by editing the dockstar.dts file and putting for ranges: > > ranges = <0x0 0x2f 0xf9300000 0x00100000> > > Now I just have to figure out why this "fixes" it, and what damage that patch > does. > I also have some pathces for the LED on the dockstar which will tip up in my > github soon. > > Cheers, > markus After looking at the marvell code and docs, and some info I found about the dockstar at OpenWRT.org, I think the attached patch is the right fix for a dockstar (it maps the nand flash, and removes mappings for NOR flash and an LED; the dockstar doesn't seem to have NOR flash, and the LED thing seems to be out of place). Markus, could you please test this; if it works, I'll commit it. The only marvell hardware I have for testing is DreamPlug. -- Ian --=-jckgBP4nfFzA4kCid71J Content-Disposition: inline; filename="dockstar_dts.diff" Content-Type: text/x-patch; name="dockstar_dts.diff"; charset="us-ascii" Content-Transfer-Encoding: 7bit Index: sys/boot/fdt/dts/dockstar.dts =================================================================== --- sys/boot/fdt/dts/dockstar.dts (revision 259730) +++ sys/boot/fdt/dts/dockstar.dts (working copy) @@ -76,44 +76,17 @@ #size-cells = <1>; compatible = "mrvl,lbc"; - /* This reflects CPU decode windows setup. */ - ranges = <0x0 0x0f 0xf9300000 0x00100000 - 0x1 0x1e 0xfa000000 0x00100000 - 0x2 0x1d 0xfa100000 0x02000000 - 0x3 0x1b 0xfc100000 0x00000400>; + /* This reflects CPU decode windows setup for NAND access. */ + ranges = <0x0 0x2f 0xf9300000 0x00100000>; - nor@0,0 { + nand@0,0 { #address-cells = <1>; #size-cells = <1>; - compatible = "cfi-flash"; + compatible = "mrvl,nfc"; reg = <0x0 0x0 0x00100000>; bank-width = <2>; device-width = <1>; }; - - led@1,0 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "led"; - reg = <0x1 0x0 0x00100000>; - }; - - nor@2,0 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "cfi-flash"; - reg = <0x2 0x0 0x02000000>; - bank-width = <2>; - device-width = <1>; - }; - - nand@3,0 { - #address-cells = <1>; - #size-cells = <1>; - reg = <0x3 0x0 0x00100000>; - bank-width = <2>; - device-width = <1>; - }; }; SOC: soc88f6281@f1000000 { --=-jckgBP4nfFzA4kCid71J--