From owner-freebsd-arm@FreeBSD.ORG Mon May 19 13:21:11 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E7702FF2 for ; Mon, 19 May 2014 13:21:10 +0000 (UTC) Received: from mail-ee0-x22b.google.com (mail-ee0-x22b.google.com [IPv6:2a00:1450:4013:c00::22b]) (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 7F0A22ADE for ; Mon, 19 May 2014 13:21:10 +0000 (UTC) Received: by mail-ee0-f43.google.com with SMTP id d17so3576904eek.16 for ; Mon, 19 May 2014 06:21:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=4QDTYzMSqoQr4K09MqN63ejd9JSQxoBsZAoxl7L6EAs=; b=dYejdOuXjErzVhvhMP3Hw7Q/odCyy2LlmLJZxjfmRT9Kut2LQ2L9mR4WW8BAm9nlYX DWkY5xy80yQqH0nTfOYVktoz48xaTbHoT8taYBh8UMMB/CWJ8/e8Qi1LuQ554W9nHu8w yyifpJS2xQ1Yt9gH7/2g4uTUxYoeAFztW7qcfS/vdxc2RL4b6pyjvjYXBZJrEp1yXeIN UYhokGBFfx8pqncp3AgFFw/iQK0jrOxbfhInm49E2Rx3c3l2datlySvp4MEgo31/9fJD 1RvlOiiOsa0SzscZrKyU0DG7LZs4dt4Ww84qtphvgyURXEs8LNkVj4Hylqpi19Ki+VF4 yAzQ== X-Received: by 10.14.127.9 with SMTP id c9mr4237693eei.93.1400505668814; Mon, 19 May 2014 06:21:08 -0700 (PDT) Received: from ketas-laptop.mydomain (ketas-laptop6.si.pri.ee. [2001:ad0:91f:0:21a:6bff:fe66:2ad3]) by mx.google.com with ESMTPSA id h49sm41918654eeg.21.2014.05.19.06.21.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 19 May 2014 06:21:07 -0700 (PDT) Sender: Sulev-Madis Silber Message-ID: <537A050E.3040804@hot.ee> Date: Mon, 19 May 2014 16:20:14 +0300 From: "Sulev-Madis Silber (ketas)" User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 MIME-Version: 1.0 To: freebsd-arm Subject: BBB MMC / SD detection instability with U-Boot 2014.04 (CPU 1GHz) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: Mon, 19 May 2014 13:21:11 -0000 Hello. Although maybe I could write this as reply to some other message, I feel like it might deserve separate one. I use U-Boot 2014.04 which sets CPU frequency to 1GHz, which seems nice. Apart from inability to find eMMC in ubldr (SD card is always fine), now I get whole different issues here. With 2013.04, I get occasional eMMC failure I mentioned earlier. With 2014.04, it's very hard to get SD devices detected at all. And I get all sorts of weird errors (megabytes of boot logs from serial if anyone wishes to see). I'm aware how HW clock changes can affect things like this, but I'm not exactly sure where and what happens when this is done. If I boot with 2013.04, it's ok again, if I switch to 2014.04 again, it's ok again for a while. It really feels like it's overheating. After a while, it gets extremely hard to get thing booted up. Both devices sometimes detect and sometimes not. I get things like "no compatible cards found on bus" (mmc 0/1), or things like "card at relative address x lost". Tried adding delays like suggested earlier, but that doesn't help and now the issue seems different. I get no other issues. System is very stable once it's booted up. There are no hangs, panics... Everything works. I must mention that I always use latest CURRENT. I didn't find a way to make kernel reboot system when root mount fails, so I manually patched that option in. Last time I got 11 failures before it booted up with both SD and eMMC found (they don't fail same way every time, sometimes SD is missing, often eMMC is missing). What would somebody else think about such issues? I don't have experience in HW dev, I can only guess what goes wrong. And again, if it boots, it works. And no component on BBB gets too warm to hold finger there for long time, too (if that matters). I have 5V 2.5A PSU powering it (but the PMIC should fail if voltage drops too much, etc, I read the datasheet for that), I have few LEDs with resistors connected to GPIO pins, two ~30cm wires that sit on table for input testing (resistors there too, of course) and Nokia DKU-5 data cable for USB-TTL serial console. If the board gets any ground, it's via this cable. But I don't see how my HW config is related to this issue. And I don't change this when I try different U-Boot's?! I don't have USB devices connected to host port and nothing to other USB port too. I use old 64MB SD card to help with booting (because of ubldr issues), not sure that matters, though. Thanks.