From mboxrd@z Thu Jan 1 00:00:00 1970 From: Axel Haslam Date: Mon, 13 Feb 2017 11:44:56 +0100 Subject: [U-Boot] [PATCH 1/2] da850: Add instructions to copy AIS image to an MMC card In-Reply-To: <20170213104457.28125-1-ahaslam@baylibre.com> References: <20170213104457.28125-1-ahaslam@baylibre.com> Message-ID: <20170213104457.28125-2-ahaslam@baylibre.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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