summaryrefslogtreecommitdiff
path: root/common/cmd_part.c
diff options
context:
space:
mode:
authorPierre Aubert <p.aubert@staubli.com>2014-04-24 10:30:08 +0200
committerPantelis Antoniou <panto@antoniou-consulting.com>2014-05-23 11:53:17 +0300
commit1fd93c6e7d8a1e4d6261058cefab11b875ded252 (patch)
tree05203aa066cdff3d66939ac8ef56408e4b962ab6 /common/cmd_part.c
parenta5dffa4b67fb0ad635088c9853abf6fcb181ac3c (diff)
downloadu-boot-imx-1fd93c6e7d8a1e4d6261058cefab11b875ded252.zip
u-boot-imx-1fd93c6e7d8a1e4d6261058cefab11b875ded252.tar.gz
u-boot-imx-1fd93c6e7d8a1e4d6261058cefab11b875ded252.tar.bz2
eMMC: cmd_mmc.c adds the 'rpmb' sub-command for the 'mmc' command
This sub-command adds support for the RPMB partition of an eMMC: * mmc rpmb key <address of the authentication key> Programs the authentication key in the eMMC This key can not be overwritten. * mmc rpmb read <address> <block> <#count> [address of key] Reads <#count> blocks of 256 bytes in the RPMB partition beginning at block number <block>. If the optionnal address of the authentication key is provided, the Message Authentication Code (MAC) is verified on each block. * mmc rpmb write <address> <block> <#count> <address of key> Writes <#count> blocks of 256 bytes in the RPMB partition beginning at block number <block>. The datas are signed with the key provided. * mmc rpmb counter Returns the 'Write counter' of the RPMB partition. The sub-command is conditional on compilation flag CONFIG_SUPPORT_EMMC_RPMB Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com> Signed-off-by: Pierre Aubert <p.aubert@staubli.com> CC: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'common/cmd_part.c')
0 files changed, 0 insertions, 0 deletions