Changes between Version 4 and Version 5 of MMC


Ignore:
Timestamp:
01/19/2018 01:47:07 PM (9 months ago)
Author:
Tim Harvey
Comment:

added gzwrite example

Legend:

Unmodified
Added
Removed
Modified
  • MMC

    v4 v5  
    8080
    8181If U-Boot has been built with {{{CONFIG_SUPPORT_EMMC_RPMB}}} the {{{mmc rpmb}}} command is available for reading, writing and programming the key for the Replay Protection Memory Block (RPMB) partition in eMMC.
     82
     83When using U-Boot to write to eMMC (or microSD) it is often useful to use the {{{gzwrite}}} command. For example if you have a compressed 'disk image' you can write it to your eMMC (assuming it is mmc dev 0) with:
     84{{{#!bash
     85tftpboot ${loadaddr} disk-image.gz && gzwrite mmc 0 ${loadaddr} ${filesize}
     86}}}
     87 * The {{{disk-image.gz}}} contains a partition table at offset 0x0 as well as partitions at their respective offsets (according to the partition table) and has been compressed with gzip
     88 * If you know the flash offset of a specific partition (which you can determine using the {{{part list mmc 0}}} command) you can also use gzwrite to flash a compressed partition image
    8289
    8390