From owner-freebsd-arm@FreeBSD.ORG Fri Jan 3 17:59:26 2014 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1238089D; Fri, 3 Jan 2014 17:59:26 +0000 (UTC) Received: from turing.morphism.de (turing.morphism.de [62.116.177.133]) by mx1.freebsd.org (Postfix) with ESMTP id C2AE51341; Fri, 3 Jan 2014 17:59:25 +0000 (UTC) Received: from localhost (moore.morphism.de [IPv6:2001:4178:4:202::136]) by turing.morphism.de (Postfix) with ESMTP id 50CD62F696; Fri, 3 Jan 2014 17:59:17 +0000 (UTC) Date: Fri, 3 Jan 2014 17:59:14 +0000 From: Markus Pfeiffer To: Ian Lepore Subject: Re: FreeBSD 10 on Dockstar (Marvell Kirkwood) Message-ID: <20140103175914.GC98342@moore.morphism.de> References: <20131231211054.GA90299@moore.morphism.de> <1388770603.1158.273.camel@revolution.hippie.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nmemrqcdn5VTmUEE" Content-Disposition: inline In-Reply-To: <1388770603.1158.273.camel@revolution.hippie.lan> User-Agent: Mutt/1.5.22 (2013-10-16) Cc: freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Markus Pfeiffer 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:59:26 -0000 --nmemrqcdn5VTmUEE Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Ian, On Fri, Jan 03, 2014 at 10:36:43AM -0700, Ian Lepore wrote: > On Tue, 2013-12-31 at 21:10 +0000, Markus Pfeiffer wrote: > > Hi all, > >=20 > > I managed "fixing" it by editing the dockstar.dts file and putting for = ranges: > >=20 > > ranges =3D <0x0 0x2f 0xf9300000 0x00100000> > >=20 > > 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. > >=20 > > Cheers, > > markus >=20 > 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). >=20 Can I find information anywhere as to what this ranges command actually mea= ns? I was assuming it has something to do with memory mappings, but I didn't fi= nd any info as to what in particular the 0x2f _means_. > Markus, could you please test this; if it works, I'll commit it. The > only marvell hardware I have for testing is DreamPlug. It does indeed work. I am a bit surprised that noone seems to be running FreeBSD on a dockstar seriously enough to run into these problems. Some ugly problem in connection with USB seems to rear it's head atm: if I fsck a filesystem, it finds a lot of DUPs and starts deleting perfectly fine files. I changed to using sync as well as disabling clustered reads and writes. Maybe I'll find the time to investigate this issue as well. I hacked a bit on the gpio/led driver to make the LED work with gpioled, I'= ll post a patch to the mailing list when it's cleaned up if that's ok. markus --nmemrqcdn5VTmUEE Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (DragonFly) iQIcBAEBAgAGBQJSxvpyAAoJEBRHBRYBD4mPI+sQAID5vge/l4iD0RuqTALk/m3R zKfoJ2IxCmOrhtm3kYlD4O5yHmTLgg4kXRjo1AxF2oOEH75adM/wvNdTFGgikVUg VolOax0UcT4EpprrQfbqc2soUxALc2wlEvlEGwcFeWpGAG76UF8VT0UTl5LG97uv umrHI5k9emlw/+1ebvydVjrGcVqBbt+wvm3dyLJDJZSYhmMGqAjk5V+ODBhCbIMo gzGwQsOcKqnlF36ibbhU9dzcoAqP9lHg7Hci/WredIwWUUYkYjOdwsTWPMi8Kheq LPSwauIU97DRLBIQ6csO8XF7xqr9xCEPly/9/OpxCb6iGWha/1ocznCkwWgzZlV0 281Ae1lWM6s1ApwCBcTpJhe/jcvrNCICHmXAitp79GY6bJ9n5VKf15Pz9sb3w7U6 tXO7VLMHSQkzb3lYnAAQ4vP4jNZlUpzK63e8IfBFzysF7HyYSojF/UXsSS3Cx95N v3Lmuxls8BOSN7LcthBHP5NksNIQwQxO8S69qYPAu1EagJNmKYmhlcxpfxCeahO7 d7H37/eWxhSHX1P7w5Sw1Gx6rhMQM/M8US54b/AHgLkVL5dvbHVcSNjGS16SrOpk yGoYnt6pQUCONI/Q/HJTuVh+aTXN6PlMNNt1CLg9tZyPqfxQDGEuCqvd2HxK4RJC hDbiI2SnmF18skGqHaOL =uMpn -----END PGP SIGNATURE----- --nmemrqcdn5VTmUEE--