From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 78ADEE009BD; Wed, 15 Apr 2015 05:16:23 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail.chez-thomas.org (mail.mlbassoc.com [65.100.170.105]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id CAD06E00954 for ; Wed, 15 Apr 2015 05:16:22 -0700 (PDT) Received: by mail.chez-thomas.org (Postfix, from userid 1998) id D732AF811E4; Wed, 15 Apr 2015 06:16:21 -0600 (MDT) Received: from [192.168.1.114] (zeus [192.168.1.114]) by mail.chez-thomas.org (Postfix) with ESMTP id 68614F811E4; Wed, 15 Apr 2015 06:16:21 -0600 (MDT) Message-ID: <552E56B0.2080802@mlbassoc.com> Date: Wed, 15 Apr 2015 06:16:48 -0600 From: Gary Thomas User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: meta-freescale@yoctoproject.org References: <552D2B25.9010000@mlbassoc.com> In-Reply-To: Subject: Re: Boot on eMMC X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2015 12:16:23 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 2015-04-15 04:17, Thomas wrote: > Gary Thomas writes: > >> >> On 2015-04-14 08:28, Otavio Salvador wrote: >>> On Tue, Apr 14, 2015 at 11:12 AM, Shanx wrote: >>>> Hello, >>>> I've tried a lot of things, but I can't boot on eMMC. I've flashed it > from >>>> u-boot, or from the system (booted from the sdcard). For exemple, I've > tried >>>> : dd if=rootfs.sdcard of=/dev/mmcblk3 >>>> I've also tried to flash only u-boot.imx (with dd and seek=2) >>>> >>>> When booting on eMMC (with the boot switch setup given on the Linux > User >>>> Guide), nothing append. Any idea why ? >>> >>> eMMC has some details which differ from the uSD normal usage. Mainly >>> regarding the use of Boot Partitions. So you must to write it to the >>> boot partition otherwise it won't work. >>> >> >> I'm not sure this is correct. I have an i.MX6Q board which has >> eMMC on SD4 and SD on SD3 and I can boot from either, using the >> same command to install U-Boot >> dd if=/tmp/disk/${UBOOT_NAME} of=${DISK} seek=2 bs=512 conv=notrunc >> >> Maybe it's a difference in the eMMC device (mine is Sandisk SDIN5 (or7)C2- > 32G-L) >> > Then you're actually booting in SD fallback mode (if your board is > configured for emmc boot). To boot in emmc mode place u-boot on one of the > boot partitions and enable the correct boot partition for boot via sysfs. > > First enable write to boot partition: > echo 0 > /sys/block/mmcblk0boot0/force_ro > > Write uboot: > dd if=u-boot.imx of=/dev/mmcblk0boot0 bs=512 seek=2 > > Re-enable read-only access to the boot partition: > echo 1 > /sys/block/mmcblk0boot0/force_ro > > Then boot partition (here 0) must be activated e.g. like this: > echo 8 > /sys/devices/platform/sdhci-esdhc- > imx.1/mmc_host/mmc0/mmc0:0001/boot_config > > Then set the fuses/gpio for emmc boot. > > What is the advantage of this vs just using the SD fallback method which seems to work just fine? It seems to just make life more complicated, especially my process for installing the software to the unit. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------