From owner-freebsd-arm@FreeBSD.ORG Tue Aug 23 02:19:47 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8168A1065678 for ; Tue, 23 Aug 2011 02:19:47 +0000 (UTC) (envelope-from mcgovern@beta.com) Received: from spoon.beta.com (spoon.beta.com [199.165.180.2]) by mx1.freebsd.org (Postfix) with ESMTP id 236848FC0A for ; Tue, 23 Aug 2011 02:19:46 +0000 (UTC) Received: from [199.165.180.39] (dhcp9.beta.com [199.165.180.39]) by spoon.beta.com (8.14.4/8.14.4) with ESMTP id p7N2JihC044954; Mon, 22 Aug 2011 22:19:44 -0400 (EDT) (envelope-from mcgovern@beta.com) From: "Brian J. McGovern" To: freebsd-arm@freebsd.org In-Reply-To: <20110822120029.91E141065680@hub.freebsd.org> References: <20110822120029.91E141065680@hub.freebsd.org> Content-Type: text/plain; charset="us-ascii" Date: Mon, 22 Aug 2011 22:19:44 -0400 Message-ID: <1314065984.1479.11.camel@bmcgover-laptop.beta.com> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.5 required=5.0 tests=RP_MATCHES_RCVD, S25R_6, URI_HEX autolearn=no version=3.3.1 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on spoon.beta.com Cc: raj@freebsd.org Subject: SDIO on OpenRD Ultimate issues? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2011 02:19:47 -0000 I started looking at getting the sdio device working on my OpenRD Ultimate a couple of weeks ago, but got side tracked with "real work". At this point, I have the patch located at http://freebsd.1045724.n5.nabble.com/SD-MMC-driver-for-OpenRD-Board-td4384370.html applied to a 9.0-BETA1 source base, built for ARM, and the kernel booting. Without an SD card installed, the kernel boots and works fine. If an SD card is installed at boot time, the kernel hangs between detecting the "SCSI" devices (currently, an attached USB thumb drive) and /etc/rc firing up. Removing the device at this point allows the boot to continue, but promptly causes the kernel to panic. If an SD card is installed post-boot after logging in, there are some kernel messages as the sdio and mmc devices probe and detect, but nothing shows up in /dev. Removing the device again causes a kernel panic. The only message I get that suggests there is something wrong is a "mv_gpio_intr_handler(): No handler for Pin 34" message on boot. Looking quickly at the code, it appears that the drivers try to route pin 34 to the CPU, to then be routed to the sdio interrupt routine in the driver. Before I try to chase down some docs on the sdio slot and the various protocols, has anyone gotten this working on the openrd ultimate board? Its not critical for me, as I can use a USB drive for my purposes, but it'd be nice to get the sdio card working so I don't have something sticking out of the box.