Changes between Version 31 and Version 32 of MMC


Ignore:
Timestamp:
05/16/2024 07:15:33 PM (11 months ago)
Author:
Tim Harvey
Comment:

updated examples for 'mmc partconf'

Legend:

Unmodified
Added
Removed
Modified
  • MMC

    v31 v32  
    132132 * mmc bootbus <dev> <boot_bus_width> <reset_boot_bus_width> <boot_mode>
    133133 * mmc bootpart-resize <dev> <boot-part-size-mb> <rpmb-part-size-mb>
    134  * mmc partconf <dev> <boot_ack> <boot-partition> <partition-access> # set PARTITION_CONFIG field
     134 * mmc partconf <dev> <boot_ack> <boot_partition_enable> <partition_access> # set PARTITION_CONFIG field
    135135 * mmc rst-function <dev> <value> # change RST_n_FUNCTION field between 0|1|2 (write-once)
    136136
    137137The {{{mmc partconf}}} command can be used to configure the PARTITION_CONFIG specifying what hardware partition to boot from:
    138138{{{#!bash
    139 mmc partconf 0 0 0 0 # disable boot partition (default unset condition; boots from user partition)
    140 mmc partconf 0 1 1 0 # set boot0 partition (with ack)
    141 mmc partconf 0 1 2 0 # set boot1 partition (with ack)
    142 mmc partconf 0 1 7 0 # set user partition (with ack)
    143 }}}
     139setenv ack 0 # 0=no boot ack sent 1=boot ack sent during boot
     140setenv part 7 # valid options are 1=boot0, 2=boot1, 7=user
     141setenv access 0 # specify partition to switch to
     142mmc partconf $dev $ack $part $access # set emmc PARTITION_CONFIG register
     143}}}
     144 - Note that setting the PARTITION_ACCESS field (access above) via 'mmc partconf' selects the current active partition; you should followup with an 'mmc dev $dev $part' afterward before reading/writing with the 'mmc' command
    144145
    145146If 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.