From owner-freebsd-embedded@FreeBSD.ORG Thu Dec 4 22:25:19 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 BC52E106564A for ; Thu, 4 Dec 2008 22:25:19 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og108.obsmtp.com (exprod7og108.obsmtp.com [64.18.2.169]) by mx1.freebsd.org (Postfix) with ESMTP id 5C5298FC0A for ; Thu, 4 Dec 2008 22:25:19 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from source ([66.129.224.36]) (using TLSv1) by exprod7ob108.postini.com ([64.18.6.12]) with SMTP ID DSNKSThYzm9fFFwz4YwVBwEUWvEXd6sBBALZ@postini.com; Thu, 04 Dec 2008 14:25:19 PST Received: from p-emfe01-sac.jnpr.net (66.129.254.72) by P-EMHUB01-HQ.jnpr.net (172.24.192.35) with Microsoft SMTP Server id 8.1.311.2; Thu, 4 Dec 2008 14:23:42 -0800 Received: from p-emsmtp03.jnpr.net ([66.129.254.54]) by p-emfe01-sac.jnpr.net with Microsoft SMTPSVC(6.0.3790.3959); Thu, 4 Dec 2008 14:23:42 -0800 Received: from antipi.jnpr.net ([10.10.2.34]) by p-emsmtp03.jnpr.net with Microsoft SMTPSVC(6.0.3790.3959); Thu, 4 Dec 2008 14:23:41 -0800 x-mimeole: Produced By Microsoft Exchange V6.5 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Date: Thu, 4 Dec 2008 17:23:41 -0500 Message-ID: <0FCFCF6165E968449991746EB91D614D01FF35C9@antipi.jnpr.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to support a TrueIDE (ATA) NANDrive chip Thread-Index: AclWXvZsIhGoBqf8T9e9zZkN9WRp5g== From: Andrew Duane To: X-OriginalArrivalTime: 04 Dec 2008 22:23:41.0911 (UTC) FILETIME=[F67D9670:01C9565E] Subject: 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: Thu, 04 Dec 2008 22:25:19 -0000 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. -- Andrew Duane Juniper Networks 978-589-0551 10 Technology Park Dr aduane@juniper.net Westford, MA 01886-3418 =20