From: Gary Thomas <gary@mlbassoc.com>
To: meta-freescale@yoctoproject.org
Subject: Re: Boot on eMMC
Date: Wed, 15 Apr 2015 06:16:48 -0600 [thread overview]
Message-ID: <552E56B0.2080802@mlbassoc.com> (raw)
In-Reply-To: <loom.20150415T120654-611@post.gmane.org>
On 2015-04-15 04:17, Thomas wrote:
> Gary Thomas <gary@...> writes:
>
>>
>> On 2015-04-14 08:28, Otavio Salvador wrote:
>>> On Tue, Apr 14, 2015 at 11:12 AM, Shanx <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
------------------------------------------------------------
prev parent reply other threads:[~2015-04-15 12:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-14 14:12 Boot on eMMC Shanx
2015-04-14 14:28 ` Otavio Salvador
2015-04-14 14:58 ` Gary Thomas
2015-04-14 15:00 ` Otavio Salvador
2015-04-14 15:04 ` Gary Thomas
2015-04-14 15:05 ` Otavio Salvador
2015-04-14 15:11 ` Gary Thomas
2015-04-15 11:55 ` Shanx
2015-04-15 12:06 ` Gary Thomas
2015-04-15 14:19 ` Shanx
2015-04-15 10:17 ` Thomas
2015-04-15 12:16 ` Gary Thomas [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=552E56B0.2080802@mlbassoc.com \
--to=gary@mlbassoc.com \
--cc=meta-freescale@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.