diff options
author | ahaslam@baylibre.com <ahaslam@baylibre.com> | 2017-02-13 18:49:40 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-02-17 17:24:35 -0500 |
commit | 4aac44be11a44b72a87de2ee751aa1fcd4960fef (patch) | |
tree | 80be2988559c76dc9ef9ab2c39a94b55438c8611 /board | |
parent | 7a2af751a005a08c21a697a7295dbe6f928fc980 (diff) | |
download | u-boot-4aac44be11a44b72a87de2ee751aa1fcd4960fef.tar.gz |
da850: Add instructions to copy AIS image to an MMC card
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>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/davinci/da8xxevm/README.da850 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/board/davinci/da8xxevm/README.da850 b/board/davinci/da8xxevm/README.da850 index 313a1ef431..29cb4ec408 100644 --- a/board/davinci/da8xxevm/README.da850 +++ b/board/davinci/da8xxevm/README.da850 @@ -47,6 +47,29 @@ 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 at least 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) + +CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR is used by SPL, and should +point to the sector were the u-boot image is located. (eg. After SPL) + +There are 2 ways to copy the AIS image to the mmc card: + + 1 - Using the TI tool "uflash" + $ uflash -d /dev/mmcblk0 -b ./u-boot.ais -p OMAPL138 -vv + + 2 - using the "dd" command + $ dd if=u-boot.ais of=/dev/mmcblk0 seek=117 bs=512 conv=fsync + +uflash writes the AIS image at offset 117. For compatibility with uflash, +CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR is set to take into account this +offset, and the dd command is adjusted accordingly. Recovery ======== |