From owner-freebsd-arm@FreeBSD.ORG Tue May 20 14:12:41 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 B8EDAE69 for ; Tue, 20 May 2014 14:12:41 +0000 (UTC) Received: from mail-ee0-x235.google.com (mail-ee0-x235.google.com [IPv6:2a00:1450:4013:c00::235]) (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 4B1A529EF for ; Tue, 20 May 2014 14:12:41 +0000 (UTC) Received: by mail-ee0-f53.google.com with SMTP id c13so613812eek.26 for ; Tue, 20 May 2014 07:12:38 -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:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=x2+xswbsybB7JM3Pq+xOMLOu0W3xbmTk2JWnMlgPS2U=; b=xU73LN0sXgvCKA4P2/Zjo4u1BIqEq7Do25TMYZs7+V4yoCwygnUJTqBFbrB7APiQnV VgVaaw5jNer30QlOzbuolwwJ3KVaIXI6qHaj4vMLyRoI+aj3wipjuKuBMIw+wFf0NgEV gtiMWqpUjvbfLPYyLmcZMZCUaDt6nlZ+qB2iCw1+6YLDOV9IswFuayvqbpott5ODkUdH v63FHI94NMr3/dM9k8M3pZoL7xJbe5nsT71Yovl0GChif0+U28Zh0xfhxvKaQRAWB2iU Pa2raWxBqrnnrB9vXLegl/XFQJCcpDgWBI35lKJFAiV7RZoC7d+5tybv9wk4GsjeRWmC z7dA== X-Received: by 10.14.179.136 with SMTP id h8mr4592136eem.57.1400595158208; Tue, 20 May 2014 07:12:38 -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 i4sm4165924eeg.28.2014.05.20.07.12.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 May 2014 07:12:36 -0700 (PDT) Sender: Sulev-Madis Silber Message-ID: <537B62D1.4090901@hot.ee> Date: Tue, 20 May 2014 17:12:33 +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: SAITOU Toshihide Subject: Re: BBB MMC / SD detection instability with U-Boot 2014.04 (CPU 1GHz) References: <537ACDB2.9080808@hot.ee> <20140520.191001.03109216.toshi@ruby.ocn.ne.jp> <20140520.212003.232778263.toshi@ruby.ocn.ne.jp> In-Reply-To: <20140520.212003.232778263.toshi@ruby.ocn.ne.jp> X-TagToolbar-Keys: D20140520171233804 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org 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, 20 May 2014 14:12:41 -0000 On 2014-05-20 15:20, SAITOU Toshihide wrote: > In message: <20140520.191001.03109216.toshi@ruby.ocn.ne.jp> > SAITOU Toshihide writes: >> In message: <537ACDB2.9080808@hot.ee> >> "Sulev-Madis Silber (ketas)" writes: >>> >>> Actually I guess many people might think like me... "HELL, optimizing >>> boot time of 1min?! I have more important tasks to do than this". >> >> If you have ``device sdhci'' line in conf/BEAGLEBONE, is there any >> differences by changing mmchs to sdhci in am335x.dtsi and >> beaglebone-black.dts? And also remove ``status = "disabled"'' Don't edit am335x.dtsi And beaglebone-black.dts already has proper config. >> >> It's needed for me to detect eMMC, and the perfomance is >> better: http://lists.freebsd.org/pipermail/freebsd-arm/2013-August/006332.html >> >> But I don't success to boot from eMMC yet with u-boot-2014.04. I need >> to change u-boot. > > It was booted from eMMC, though it failed sometimes. Are you sure it booted from eMMC? Like, I can't find eMMC in loader (ubldr). So I need SD to complete this part of boot. Not sure what I need to patch, probably loader? Hopefully the old uboot can be used as well. Version check or something... > > > u-boot-2014.04.tar.bz2 > > patch > > 1. apply these patches: > > http://lists.freebsd.org/pipermail/freebsd-arm/2014-April/007922.html > ~/crochet-freebsd/board/BeagleBone/files/uboot-2013.04_api_api_storage.c.patch > ~/crochet-freebsd/board/BeagleBone/files/uboot-2013.04_drivers_mmc_mmc.c.patch > > patch -p1 or edit. > > 2. add followings to include/configs/am335x_evm.h: > > #ifndef CONFIG_SPL_BUILD > #define CONFIG_CMD_ELF > #define CONFIG_API > #define CONFIG_SYS_MMC_MAX_DEVICE 2 > #endif > > 3. comment WATCHDOG in include/configs/ti_am335x_common.h: > > #define CONFIG_HW_WATCHDOG > #define CONFIG_OMAP_WATCHDOG > > #define CONFIG_SPL_WATCHDOG_SUPPORT > > build > > gmake CROSS_COMPILE=arm-eabi- am335x_boneblack_config > gmake CROSS_COMPILE=arm-eabi- > > > uEnv.txt > > bootdelay=2 > fdtaddr=0x80000100 > loadaddr=0x88000000 > loaderdev=disk > fdtfile=beaglebo.dtb > bootdir= > bootfile=ubldr > mmcdev=1 > mmcloados=mmc rescan > loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv} > importbootenv=env import -t $loadaddr $filesize > findfdt=setenv fdtfile beaglebo.dtb > loadimage=fatload mmc ${mmcdev} ${loadaddr} ${bootfile} > loadfdt=fatload mmc ${mmcdev} ${fdtaddr} ${fdtfile}; fdt addr ${fdtaddr} > mmcboot=bootelf ${loadaddr} > nandboot=run mmcboot > > Please ignore ``Card did not respond to voltage select!'' message. > Crochet already has all those patches, so I use uboot from there.