History log of /external/mmc-utils/mmc_cmds.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b7c16c94b8f404a64e3b946e897f482c4b0d1bc5 23-Oct-2015 Mohamad Ayyash <mkayyash@google.com> Make mmc-utils android-tree compatible

Change-Id: I1f1ab40e1395349f25e6c272183be8d76e3a743f
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
/external/mmc-utils/mmc_cmds.c
d0b46442b50794217e53b2455c1344c548d9d088 30-Apr-2015 Al Cooper <acooperx@gmail.com> mmc-utils: add ability to enable/disable optional eMMC cache

The MMC4.5 specification added an optional cache for eMMC devices.
This change will add the ability to enable/disable the cache.

Signed-off-by: Al Cooper <acooperx@gmail.com>
Signed-off-by: Chris Ball <chris@printf.net>
/external/mmc-utils/mmc_cmds.c
64c2de8b1476c42ef9e9729b7ca0e436b5d90170 01-May-2015 Al Cooper <acooperx@gmail.com> mmc-utils: Add command to set the boot bus conditions

This was added because some eMMC devices had the boot bus conditions
set incorrectly causing them to hang on boot.

Signed-off-by: Al Cooper <acooperx@gmail.com>
Signed-off-by: Chris Ball <chris@printf.net>
/external/mmc-utils/mmc_cmds.c
7891236d62ccd201054324b5298dd9529c6a764f 30-Apr-2015 Balaji T K <balajitk@ti.com> mmc-utils: add support to create gp partition

create gp partition if needed with enhanced / extended attribute.

Signed-off-by: Balaji T K <balajitk@ti.com>
Signed-off-by: Chris Ball <chris@printf.net>
/external/mmc-utils/mmc_cmds.c
4afc8c81685825461677311e79059cda15fba9d8 30-Apr-2015 Balaji T K <balajitk@ti.com> mmc-utils: add check for max enhanced user area

In addition to user area, General purpose partition can be
be marked with enhanced attribute, retain enhanced attributes of
gp partition while creating enhanced user area and add
check for max enhanced area of the device.

Signed-off-by: Balaji T K <balajitk@ti.com>
Signed-off-by: Chris Ball <chris@printf.net>
/external/mmc-utils/mmc_cmds.c
c6cb053ec59e7667e2140c320e2b7d5a90592a20 12-Aug-2014 Roman Peniaev <r.peniaev@gmail.com> mmc-utils: RPMB: add support for 4 rpmb operations

mmc rpmb write-key <rpmb device> <key file>
Program authentication key which is 32 bytes length and stored in the specified file.
Also you can specify '-' instead of key file path and utility will read the key from stdin.
BEWARE: key can be programmed only once!
Example:
$ echo -n AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHH | mmc rpmb write-key /dev/mmcblk0rpmb -

mmc rpmb read-counter <rpmb device>
Counter value for the <rpmb device> will be read to stdout.

mmc rpmb read-block <rpmb device> <address> <blocks count> <output file> [key file]
Blocks of 256 bytes will be read from <rpmb device> to output file or stdout if '-'
is specified instead of regular path. If key is specified - read data will be verified.
Instead of regular path you can specify '-' and key will be read from stdin.
Example:
$ echo -n AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHH | \
mmc rpmb read-block /dev/mmcblk0rpmb 0x02 2 /tmp/block -
or read the block without verification
$ mmc rpmb read-block /dev/mmcblk0rpmb 0x02 2 /tmp/block

mmc rpmb write-block <rpmb device> <address> <256 byte data file> <key file>
Block of 256 bytes will be written from data file to <rpmb device>.
Also you can specify '-' instead of key file path or data file and utility will read the
data from stdin.
Example:
$ (awk 'BEGIN {while (c++<256) printf "a"}' | echo -n AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHH) | \
mmc rpmb write-block /dev/mmcblk0rpmb 0x02 - -

Signed-off-by: Roman Pen <r.peniaev@gmail.com>
Cc: Ulf Hansson <ulf.hansson@linaro.org>,
Cc: Ben Gardiner <bengardiner@nanometrics.ca>,
Signed-off-by: Chris Ball <chris@printf.net>
/external/mmc-utils/mmc_cmds.c
11f2ceabc4ad3f0dd568e0ce68166e4803e0615b 23-Sep-2013 Oliver Metz <oliver@freetz.org> Don't use u8 for fields with more than 1 byte

Signed-off-by: Oliver Metz <oliver@freetz.org>
Reviewed-by: Ben Gardiner <ben.l.gardiner@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
/external/mmc-utils/mmc_cmds.c
22f2641fe6155fe9fb8b38a8ebe2093ec3e2ec11 23-Sep-2013 Oliver Metz <oliver@freetz.org> Add defines for ext_csd field MAX_ENH_SIZE_MULT

Signed-off-by: Oliver Metz <oliver@freetz.org>
Reviewed-by: Ben Gardiner <ben.l.gardiner@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
/external/mmc-utils/mmc_cmds.c
196d0d29588867bed50cd28b8f03cbbb5e0e6608 19-Sep-2013 Ben Gardiner <ben.l.gardiner@gmail.com> support setting the OTP write reliability settings

Signed-off-by: Ben Gardiner <ben.l.gardiner@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
/external/mmc-utils/mmc_cmds.c
4da1c0dc8bb295993d05beebc0a6132af9713322 19-Sep-2013 Ben Gardiner <ben.l.gardiner@gmail.com> pretty print write reliability settings

Signed-off-by: Ben Gardiner <ben.l.gardiner@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
/external/mmc-utils/mmc_cmds.c
e6e84e96ac031e261bda8d441aa9c4cade144437 19-Sep-2013 Ben Gardiner <ben.l.gardiner@gmail.com> extract PARTITION_SETTING_COMPLETE function

Extract a function which sets the OTP PARTITION_SETTING_COMPLETE
bit; once this bit is set there are many other parameters in
EXT_CSD which can no longer be set.

Multiple OTP partition settings can be achieved by calling 'set'
commands with '-n' on all except for the last.

Signed-off-by: Ben Gardiner <ben.l.gardiner@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
/external/mmc-utils/mmc_cmds.c
d91d3698c6464a83b7c301eb84da109f9f94b54c 30-May-2013 Ben Gardiner <bengardiner@nanometrics.ca> support setting the OTP enhanced user area parameters

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Signed-off-by: Chris Ball <cjb@laptop.org>
/external/mmc-utils/mmc_cmds.c
f82e27a1b11e6fb52565b61827563316dcbb2cc4 30-May-2013 Ben Gardiner <bengardiner@nanometrics.ca> print KiB sizes for some fields

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Signed-off-by: Chris Ball <cjb@laptop.org>
/external/mmc-utils/mmc_cmds.c
4e85023654b356511612547207a4cb643fb3db16 30-May-2013 Ben Gardiner <bengardiner@nanometrics.ca> report if card is block-addressed and effect on ENH_START_ADDR

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Signed-off-by: Chris Ball <cjb@laptop.org>
/external/mmc-utils/mmc_cmds.c
68f490b54b53c715db06e55f9595a672d1c0690e 30-May-2013 Ben Gardiner <bengardiner@nanometrics.ca> fix printing ENH_START_ADDR

The enhanced user area start field is 4 bytes long
according to the eMMC 4.41 spec.

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Signed-off-by: Chris Ball <cjb@laptop.org>
/external/mmc-utils/mmc_cmds.c
27c357db04350b75b0fceaae8bfb9ce99c50866b 30-May-2013 Ben Gardiner <bengardiner@nanometrics.ca> Support SEND_STATUS command

mmc status get </path/to/mmcblkX>

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Signed-off-by: Chris Ball <cjb@laptop.org>
/external/mmc-utils/mmc_cmds.c
a6cd98de8b158029ca6b9c1e961729dc83a7144c 30-May-2013 Ben Gardiner <bengardiner@nanometrics.ca> extract definitions for PARTITION_SETTING_COMPLETED and pretty-print

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Signed-off-by: Chris Ball <cjb@laptop.org>
/external/mmc-utils/mmc_cmds.c
82bd9504b12160992309d6508dc5654b3db93c2b 27-Jun-2013 Ben Gardiner <bengardiner@nanometrics.ca> extract definitions for EXT_CSD register EXT_CSD_PARTITIONING_SUPPORT

Signed-off-by: Chris Ball <cjb@laptop.org>
/external/mmc-utils/mmc_cmds.c
64f63a3d2693e95b45c6ba743570b3374a45043b 24-May-2013 Oleg Matcovschi <olegm@lab126.com> mmc-utils: Correctly handle CARD_TYPE.

Analysis was based on value of EXT_CSD_BOOT_INFO, not CARD_TYPE.
CARD_TYPE should be handled using bitmask, not values.

Signed-off-by: Oleg Matcovschi <olegm@lab126.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
/external/mmc-utils/mmc_cmds.c
8c0c40d477db2863e2746e6a995980113f725c0d 15-May-2013 Mario Schuknecht <mario.schuknecht@dresearch-fe.de> mmc-utils: small fixes of output

Improve "extcsd read" output of the registers.
Right-shift by 3 of EXT_CSD_BOOT_CFG_EN bits.
Expand the EXT_CSD_BOOT_CFG_ACC bit mask to 0x7.
Add case 3 RPMB partition.

Signed-off-by: Mario Schuknecht <mario.schuknecht@dresearch-fe.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
/external/mmc-utils/mmc_cmds.c
21bb473fc58366b872efe31e1da7831cad4b92fa 26-May-2013 Yaniv Gardi <ygardi@codeaurora.org> Add method for triggering Sanitize command

This patch adds a method to trigger Sanitize command to MMC.
The Sanitize command is used for deleting the unmapped memory region
of the MMC device.

Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
Acked-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
/external/mmc-utils/mmc_cmds.c
f74dfe23cd00894aa9f235374468e05acb793e17 19-Oct-2012 Chris Ball <cjb@laptop.org> Support enable/disable of eMMC H/W Reset function

(Note: one-time programmable fuse.)

$ mmc hwreset enable /dev/mmcblk0
$ mmc hwreset disable /dev/mmcblk0
/external/mmc-utils/mmc_cmds.c
8649651b743a5d7c290ea0f8058794f8d127736e 21-Sep-2012 Jaehoon Chung <jh80.chung@samsung.com> Add method for enabling bkops via one-time fuse.

This patch added the method to enable the bkops.
In ext_csd register, BKOPS_EN bit is one-time programable.
So if you want to use the bkops, use the this command.

$ mmc bkops enable /dev/mmcblk0

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewd-by: Venkatraman S <svenkatr@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
/external/mmc-utils/mmc_cmds.c
b7e2599c67408c38e57e91d2426c077a4541dc8c 17-May-2012 Saugata Das <saugata.das@linaro.org> Add support for disabling 512B emulation

In this patch, we add a utility to disable emulation mode in eMMC-4.5.
This is done to increase the data sector size to 4KB.

Signed-off-by: Saugata Das <saugata.das@linaro.org>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Reviewed-by: Namjae Jeon <linkinjeon@gmail.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
/external/mmc-utils/mmc_cmds.c
8ba4466a4ad458618282f8bdcc2706025856a9f2 19-Apr-2012 Chris Ball <cjb@laptop.org> Fix usage strings after command renaming
/external/mmc-utils/mmc_cmds.c
7bd1320b2cb38f040ab5cf017d17e283496690bf 19-Apr-2012 Giuseppe CAVALLARO <peppe.cavallaro@st.com> 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>
/external/mmc-utils/mmc_cmds.c
b9c7a17fce190f085bb4eb6e6535a22e2c69de68 20-Feb-2012 Chris Ball <cjb@laptop.org> Rename extcsd read/write to writeprotect get/set

This leaves "extcsd read" pointing to Giuseppe's code. Also, abstract
out the writeprotect code so that there's only one shared implementation
in print_writeprotect_status(), used by both "extcsd read" and
"writeprotect get".

Signed-off-by: Chris Ball <cjb@laptop.org>
/external/mmc-utils/mmc_cmds.c
a5bf4a2030a9dcfbcebf1b647e65c1e936a56e14 20-Feb-2012 Giuseppe CAVALLARO <peppe.cavallaro@st.com> improve the parsing of the EXT_CSD registers

This patch enhances the debug information reported
for the mmc card by parsing the extended CSD registers
obviously according to all the current specifications.

I have no HW to test eMMC 4.5 at this moment. In any case,
the patch supports JEDEC Standard No. 84-B45.
No issues on JESD84-A441 and older specs raised on my side.

This patch indeed want to start providing a full parsing
of the all EXT_CSD registers in the following layout:

Name [FIELD: <value>]

Voluntarily, I added the FIELD because it can actually help on
searching though the SPEC in case of doubts.
In fact, in this stage, not all the register bits are yet parsed.
Currently this has been done for a small subset of registers
(e.g. 173, 160 ...) where IMO it's quite useful for an end-user
to get some details. I do hope this will be improved in the near
feature (also for write operations).

P.S. The original patch posted time ago for the Kernel has been
reviewed-by Sebastian Rasmussen, acked-by: Linus Walleij and reported
by Youssef Tiki.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
/external/mmc-utils/mmc_cmds.c
7a39ed3893e549503dac6e372a29102d2aaf0a50 16-Feb-2012 Chris Ball <cjb@laptop.org> Remove unneeded dependency on libuuid.

Signed-off-by: Chris Ball <cjb@laptop.org>
/external/mmc-utils/mmc_cmds.c
a8bfde77e0e275070791138d60b75d1cc293daf0 12-Feb-2012 Johan RUDHOLM <johan.rudholm@stericsson.com> Add extcsd write-protect read/write code

This was posted to linux-mmc@ by Johan Rudholm.

Signed-off-by: Chris Ball <cjb@laptop.org>
/external/mmc-utils/mmc_cmds.c