Date: Fri, 5 Dec 2008 11:35:02 +0300 From: Stanislav Sedov <stas@FreeBSD.org> To: Andrew Duane <aduane@juniper.net> Cc: freebsd-embedded@freebsd.org Subject: Re: How to support a TrueIDE (ATA) NANDrive chip Message-ID: <20081205113502.f9871231.stas@FreeBSD.org> In-Reply-To: <0FCFCF6165E968449991746EB91D614D01FF35C9@antipi.jnpr.net> References: <0FCFCF6165E968449991746EB91D614D01FF35C9@antipi.jnpr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <aduane@juniper.net> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081205113502.f9871231.stas>