All of lore.kernel.org
 help / color / mirror / Atom feed
From: Axel Haslam <ahaslam@baylibre.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] da850: Add instructions to copy AIS image to an MMC card
Date: Mon, 13 Feb 2017 11:44:56 +0100	[thread overview]
Message-ID: <20170213104457.28125-2-ahaslam@baylibre.com> (raw)
In-Reply-To: <20170213104457.28125-1-ahaslam@baylibre.com>

The da850 soc's can boot from a external mmc card, but
the AIS image should be written to the correct sector.

Add instructions to copy the AIS image to a MMC card.

Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
---
 board/davinci/da8xxevm/README.da850 | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/board/davinci/da8xxevm/README.da850 b/board/davinci/da8xxevm/README.da850
index 313a1ef..e8fec3e 100644
--- a/board/davinci/da8xxevm/README.da850
+++ b/board/davinci/da8xxevm/README.da850
@@ -47,6 +47,22 @@ U-Boot > sf erase 0 +320000
 U-Boot > tftp u-boot.ais
 U-Boot > sf write c0700000 0 $filesize
 
+Flashing the images to MMC
+==========================
+If the boot pins are set to boot from mmc, the RBL will try to load the
+next boot stage form the first couple of sectors of an external mmc card.
+As sector 0 is usually used for storing the partition information, the
+AIS image should be written after the first sector, but before the first
+partition begins. (e.g: make sure to leave at least 500KB of unallocated
+space at the start of the mmc when creating the partitions)
+
+To skip the first sector, the AIS image can then written using
+the following dd command:
+dd if=u-boot.ais of=/dev/mmcblk0 seek=1 bs=512 conv=fsync
+
+CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR is used by SPL, and should
+point to the sector were the u-boot image starts on the MMC card.
+(eg. after SPL).
 
 Recovery
 ========
-- 
2.9.3

  reply	other threads:[~2017-02-13 10:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-13 10:44 [U-Boot] [PATCH 0/2] omapl: mmc boot help Axel Haslam
2017-02-13 10:44 ` Axel Haslam [this message]
2017-02-13 10:44 ` [U-Boot] [PATCH 2/2] omapl138_lcdk: Set uboot raw mmc sector to 0x41 Axel Haslam
2017-02-13 13:23   ` Tom Rini
2017-02-13 14:14     ` Axel Haslam
2017-02-13 14:17       ` Tom Rini
2017-02-13 14:23         ` Axel Haslam
2017-02-13 16:11           ` Axel Haslam
2017-02-13 17:07             ` Tom Rini

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=20170213104457.28125-2-ahaslam@baylibre.com \
    --to=ahaslam@baylibre.com \
    --cc=u-boot@lists.denx.de \
    /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.