From owner-freebsd-arm@FreeBSD.ORG Tue May 13 17:11:39 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8AA83D6D; Tue, 13 May 2014 17:11:39 +0000 (UTC) Received: from mail-wi0-x22d.google.com (mail-wi0-x22d.google.com [IPv6:2a00:1450:400c:c05::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0181E2B99; Tue, 13 May 2014 17:11:38 +0000 (UTC) Received: by mail-wi0-f173.google.com with SMTP id bs8so6637251wib.6 for ; Tue, 13 May 2014 10:11:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=zJcBr2n9GfjASKEkBgXJWNo1mzPAWkaZTQxUe9ybJhI=; b=VANNN5rTN4t9j1En5twukgeJGVj+KrWANzydtX9zvcFQrH+raeLHj+2qHyx92ZbfQS vKK4rk6N7Ti/qPhO3tCUAwLotujtcC11bD3u+yQTSzKiKflZtAKUJFPUJseQm+Zux7mw ASKz0d9RZxV81al9tdz2sPeZi7mR417E7/ygZJFdymtqIGv3ghjy9TAvN2Y7wWMU2imw CEoNmKJF3+czYjMI5uu0cnT8OlaVqVkTywZm2INhWnAzax/L4i3I1ixpWDlkNncGS7xc t5zRIKeHallLLSCgoeHnX3ZrvVhQ1eibKIn7GNi2S0DK08zrPcFmsgth2QuNshmnDOaG 0vjg== MIME-Version: 1.0 X-Received: by 10.194.58.161 with SMTP id s1mr9796113wjq.43.1400001097282; Tue, 13 May 2014 10:11:37 -0700 (PDT) Received: by 10.217.10.195 with HTTP; Tue, 13 May 2014 10:11:37 -0700 (PDT) In-Reply-To: <1399991632.56626.7.camel@revolution.hippie.lan> References: <5371E1F3.6080002@hot.ee> <1399987808.56626.2.camel@revolution.hippie.lan> <1399991632.56626.7.camel@revolution.hippie.lan> Date: Tue, 13 May 2014 13:11:37 -0400 Message-ID: Subject: Re: Patch to make BBB properly boot from eMMC every time From: Winston Smith To: Ian Lepore Content-Type: text/plain; charset=UTF-8 Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 May 2014 17:11:39 -0000 On Tue, May 13, 2014 at 10:33 AM, Ian Lepore wrote: > Does your emmc come up as 8-bit reliably every time? No, not since I've rebuilt (using 11-CURRENT r265949). I'm using Tim's updated crochet-freebsd which now includes the 1Ghz patches. This time around, instead of the 15 second hang I previously reported, it hung for maybe 60s before generating this message: mmcsd0: 4GB at mmc0 48.0MHz/4bit/65535-block uhub1: 1 port with 1 removable, self powered uhub0: 1 port with 1 removable, self powered random: unblocking device. ###### HANGS HERE ... ###### sdhci_ti1-slot0: Got data interrupt 0x00000002, but there is no active command. sdhci_ti1-slot0: ============== REGISTER DUMP ============== sdhci_ti1-slot0: Sys addr: 0x00000000 | Version: 0x00003101 sdhci_ti1-slot0: Blk size: 0x00000004 | Blk cnt: 0x00000001 sdhci_ti1-slot0: Argument: 0x00020000 | Trn mode: 0x0000071b sdhci_ti1-slot0: Present: 0x01f70000 | Host ctl: 0x00000000 sdhci_ti1-slot0: Power: 0x0000000d | Blk gap: 0x00000000 sdhci_ti1-slot0: Wake-up: 0x00000000 | Clock: 0x00008007 sdhci_ti1-slot0: Timeout: 0x00000006 | Int stat: 0x00000000 sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb sdhci_ti1-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci_ti1-slot0: Caps: 0x06e10080 | Max curr: 0x00000000 sdhci_ti1-slot0: =========================================== sdhci_ti1-slot0: Got data interrupt 0x00000002, but there is no active command. sdhci_ti1-slot0: ============== REGISTER DUMP ============== sdhci_ti1-slot0: Sys addr: 0x00000000 | Version: 0x00003101 sdhci_ti1-slot0: Blk size: 0x00000004 | Blk cnt: 0x00000001 sdhci_ti1-slot0: Argument: 0x00020000 | Trn mode: 0x0000071b sdhci_ti1-slot0: Present: 0x01f70000 | Host ctl: 0x00000000 sdhci_ti1-slot0: Power: 0x0000000d | Blk gap: 0x00000000 sdhci_ti1-slot0: Wake-up: 0x00000000 | Clock: 0x00008007 sdhci_ti1-slot0: Timeout: 0x00000006 | Int stat: 0x00000000 sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb sdhci_ti1-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci_ti1-slot0: Caps: 0x06e10080 | Max curr: 0x00000000 sdhci_ti1-slot0: =========================================== sdhci_ti1-slot0: Got data interrupt 0x00000002, but there is no active command. sdhci_ti1-slot0: ============== REGISTER DUMP ============== sdhci_ti1-slot0: Sys addr: 0x00000000 | Version: 0x00003101 sdhci_ti1-slot0: Blk size: 0x00000004 | Blk cnt: 0x00000001 sdhci_ti1-slot0: Argument: 0x00020000 | Trn mode: 0x0000071b sdhci_ti1-slot0: Present: 0x01f70000 | Host ctl: 0x00000000 sdhci_ti1-slot0: Power: 0x0000000d | Blk gap: 0x00000000 sdhci_ti1-slot0: Wake-up: 0x00000000 | Clock: 0x00008007 sdhci_ti1-slot0: Timeout: 0x00000006 | Int stat: 0x00000000 sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb sdhci_ti1-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci_ti1-slot0: Caps: 0x06e10080 | Max curr: 0x00000000 sdhci_ti1-slot0: =========================================== sdhci_ti1-slot0: Got data interrupt 0x00000002, but there is no active command. sdhci_ti1-slot0: ============== REGISTER DUMP ============== sdhci_ti1-slot0: Sys addr: 0x00000000 | Version: 0x00003101 sdhci_ti1-slot0: Blk size: 0x00000004 | Blk cnt: 0x00000001 sdhci_ti1-slot0: Argument: 0x00020000 | Trn mode: 0x0000071b sdhci_ti1-slot0: Present: 0x01f70000 | Host ctl: 0x00000000 sdhci_ti1-slot0: Power: 0x0000000d | Blk gap: 0x00000000 sdhci_ti1-slot0: Wake-up: 0x00000000 | Clock: 0x00008007 sdhci_ti1-slot0: Timeout: 0x00000006 | Int stat: 0x00000000 sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb sdhci_ti1-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci_ti1-slot0: Caps: 0x06e10080 | Max curr: 0x00000000 sdhci_ti1-slot0: =========================================== am335x_pmic0: TPS65217C ver 1.2 powered by AC Trying to mount root from ufs:/dev/ufs/sdfreebsd1 [rw,noatime]... It did not appear to detect the eMMC.