diff options
author | Giuseppe CAVALLARO <peppe.cavallaro@st.com> | 2012-04-19 10:58:37 +0200 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-05-17 09:21:33 -0400 |
commit | 7bd1320b2cb38f040ab5cf017d17e283496690bf (patch) | |
tree | 950ca5cfc881465e265cd7121108b49be57b4dc1 /mmc_cmds.h | |
parent | b9c7a17fce190f085bb4eb6e6535a22e2c69de68 (diff) | |
download | mmc-utils-7bd1320b2cb38f040ab5cf017d17e283496690bf.tar.gz |
Add new "bootpart enable" command to enable boot partitions
This adds a new option to enable the boot from eMMC
by writing to the 179 ext_csd register.
The example below shows as to enable the mmcblk0boot0
partition and also set/reset the ACK bit).
$ ./mmc bootpart enable 1 1 /dev/mmcblk0boot0
$ ./mmc extcsd read /dev/mmcblk0boot0 | grep PARTITION_CON
Boot configuration bytes [PARTITION_CONFIG: 0x49]
Reported-by: Youssef TRIKI <youssef.triki@st.com>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'mmc_cmds.h')
-rw-r--r-- | mmc_cmds.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -19,3 +19,4 @@ int do_read_extcsd(int nargs, char **argv); int do_write_extcsd(int nargs, char **argv); int do_writeprotect_get(int nargs, char **argv); int do_writeprotect_set(int nargs, char **argv); +int do_write_boot_en(int nargs, char **argv); |