From owner-freebsd-embedded@FreeBSD.ORG Fri Dec 5 08:33:28 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D83C7106568E for ; Fri, 5 Dec 2008 08:33:28 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from mr0.ht-systems.ru (mr0.ht-systems.ru [78.110.50.55]) by mx1.freebsd.org (Postfix) with ESMTP id 32DBD8FC26 for ; Fri, 5 Dec 2008 08:33:28 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from [85.21.245.235] (helo=orion.SpringDaemons.com) by smtp.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1L8W7o-0005kz-VD; Fri, 05 Dec 2008 11:33:25 +0300 Received: from orion (localhost [127.0.0.1]) by orion.SpringDaemons.com (Postfix) with SMTP id 756FD398F4; Fri, 5 Dec 2008 11:35:07 +0300 (MSK) Date: Fri, 5 Dec 2008 11:35:02 +0300 From: Stanislav Sedov To: Andrew Duane Message-Id: <20081205113502.f9871231.stas@FreeBSD.org> In-Reply-To: <0FCFCF6165E968449991746EB91D614D01FF35C9@antipi.jnpr.net> References: <0FCFCF6165E968449991746EB91D614D01FF35C9@antipi.jnpr.net> Organization: The FreeBSD Project X-XMPP: ssedov@jabber.ru X-Voice: +7 916 849 20 23 X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Fri__5_Dec_2008_11_35_02_+0300_nlqVJjlEj+LW03Ob" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-embedded@freebsd.org Subject: Re: How to support a TrueIDE (ATA) NANDrive chip X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Dec 2008 08:33:28 -0000 --Multipart=_Fri__5_Dec_2008_11_35_02_+0300_nlqVJjlEj+LW03Ob Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 4 Dec 2008 17:23:41 -0500 Andrew Duane mentioned: > We have an SST NANDrive chip on our board that supports the simple ATA > command set. What's the easiest way to get support for this into our > kernel so we can partition and mount the device? > > Using "da" and "umass" isn't really an option, since it is neither SCSI, > nor attached to USB. Pulling in all of "ata" seems like overkill; all we > really need is read/write block and some simple sense commands. They are > all synchronous, it's low traffic and we are more concerned with > simplicity than performance. Is there some subset of "ata" I can use > that won't involve pci bus, controllers, etc? We just want to be able to > write the LBA, SECT_CNT, and GO command and read the data. > Why not attach the ATA stack to the register space the chip provides. Doesn't look like an overkill to me. It should work pretty well. I'm using something like this for AT91 CF controller. I'v attached it source, it might be useful to you. It's simple enough. - -- Stanislav Sedov ST4096-RIPE -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAkk457sACgkQK/VZk+smlYHvAQCfYOd+soOVtbmLr1mFC51irI3w YnQAni7TgWtsukf4ZcOS1lR9r/qAynyu =H60J -----END PGP SIGNATURE----- --Multipart=_Fri__5_Dec_2008_11_35_02_+0300_nlqVJjlEj+LW03Ob--