Date: Fri, 03 Jan 2014 10:36:43 -0700 From: Ian Lepore <ian@FreeBSD.org> To: Markus Pfeiffer <markus.pfeiffer@morphism.de> Cc: freebsd-arm@FreeBSD.org Subject: Re: FreeBSD 10 on Dockstar (Marvell Kirkwood) Message-ID: <1388770603.1158.273.camel@revolution.hippie.lan> In-Reply-To: <20131231211054.GA90299@moore.morphism.de> References: <20131231211054.GA90299@moore.morphism.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1388770603.1158.273.camel>