From owner-freebsd-arm@FreeBSD.ORG Mon Nov 12 15:02:10 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4D570CA for ; Mon, 12 Nov 2012 15:02:10 +0000 (UTC) (envelope-from freebsd@damnhippie.dyndns.org) Received: from duck.symmetricom.us (duck.symmetricom.us [206.168.13.214]) by mx1.freebsd.org (Postfix) with ESMTP id ED0858FC08 for ; Mon, 12 Nov 2012 15:02:09 +0000 (UTC) Received: from damnhippie.dyndns.org (daffy.symmetricom.us [206.168.13.218]) by duck.symmetricom.us (8.14.5/8.14.5) with ESMTP id qACF29QZ010118 for ; Mon, 12 Nov 2012 08:02:09 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) 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 qACF26s2021346; Mon, 12 Nov 2012 08:02:06 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) Subject: Re: Proposed patchset to support DreamPlug on freebsd 9 and 10. From: Ian Lepore To: Alie Tan In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" Date: Mon, 12 Nov 2012 08:02:06 -0700 Message-ID: <1352732526.1217.29.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2012 15:02:10 -0000 On Mon, 2012-11-12 at 10:48 +0800, Alie Tan wrote: > > > > After exchanging a few emails with Richard yesterday we realized why I > > had to put some tweaks on top of the patches he had posted... there are > > two different flavors of a DreamPlug v10. One of my co-workers has a > > unit marked "1001" and it has NOR SPI flash, as does Richard's. My unit > > is marked "1001N" and has NAND flash (which makes it a bit like an > > expanded GuruPlug). > > > > This is going to drive the need for two separate .dts files and two > > separate kernel configs. I reworked the patchset I've been using for > > 9-stable and -current to move in this direction, and I'm attaching what > > I've got so far as a proposal for handling this difference. > > > > The attached patches don't include Hiroki's led driver, this is just > > minimal dreamplug support on top of a fresh checkout of 9 or 10. > > > > I've also heard there are differences in the v0901 dreamplug units, but > > I don't know what the differences are. That might require yet another > > set of config. > > > > I broke the kernel config into 3 pieces... a DREAMPLUG-BASE that has > > config for things that are dreamplug-specific and common to all > > dreamplugs, and notably is not a GENERIC or kitchen-sink type config > > file. Then there are DREAMPLUG-1001 and -1001N config files that > > include the -BASE file, and add other options to make a more fully > > usable system. I think there's plenty of room for changes and additions > > to these -1001[N] files, such as IPFW and other things that you might > > want right out of the box -- I do mainly embedded systems work, so I > > don't know what most folks might want. > > > > The config for the 1001N needs more work, notably more support for the > > NAND flash in the .dts and kernel configs. Since the whole reason I'm > > playing with a dreamplug is to get some experience using nand flash, > > I'll be working on that in the days to come. I just wanted to get this > > out there and see if folks think this is a workable direction for > > supporting different dreamplug flavors. > > > > -- Ian > > > > Is there any plan to merge this patch to HEAD? Its already 3 months but > still now news about this news. > > Regards, > Alie T It's been long enough now that I'm not sure that patchset will even apply cleanly anymore. I bricked my dreamplug and haven't been able to revive it yet (I haven't quite given up, but that fact that's it's almost a one-off by being NAND based doesn't help). I just ordered a new dreamplug a few days ago; I assume I'm going to get one with NOR flash this time. When it arrives I'll see about updating and re-validating the patches and try to find someone who'll commit it for us. I'd like to actually have a dreamplug replace the ancient x86 computer I use for router and firewall and etc. But that's essentially putting it into "production," and even if that word may have a somewhat less rigorous meaning when it's a server for a hacker, I still would be happier if the support for it were part of freebsd. The last thing I need when a problem happens (usually in the middle of trying to solve two other problems) is trying to remember where I stashed some big required patchset 2 years ago. -- Ian