- 11 May, 2021 1 commit
-
-
Kimito Sakata authored
we have been using this erase feature for a while, but it is still not merged into the upstream mmc-utils. Especially, for the customer, every time when they update the mmc-utils, they should re-install this patch again, let's try to make this erase command upstreamed in the mmc-utils. We need to send 3 MMC commands and it is important that they stay in sequence. Therefore we are using MMC_IOC_MULTI_CMD. Co-developed-by: Bean Huo <beanhuo@micron.com> Signed-off-by: Bean Huo <beanhuo@micron.com> Signed-off-by: Kimito Sakata <kimito.sakata@oracle.com> Reviewed-by: Kenneth Gibbons <kenny.gibbons@oracle.com> Reviewed-by: Avri Altman <avri.altman@wdc.com> Link: https://lore.kernel.org/r/20210506191041.1178-1-oracleks043021@gmail.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-
- 30 Mar, 2021 2 commits
-
-
Lars Pedersen authored
This patch adds support to enable auto(AUTO_EN) and manual(MANUAL_EN) in BKOPS_EN register. Auto bkops can only be used on eMMC 5.0 or newer. Signed-off-by: Lars Pedersen <lapeddk@gmail.com> Reviewed-by: Avri Altman <avri.altman@wdc.com> Link: https://lore.kernel.org/r/20191111110051.16490-1-lapeddk@gmail.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-
Julius Werner authored
This patch updates 'mmc writeprotect boot set' with a few more optional parameters, so that it can be used to enable permanent write-protection and so that the two boot partitions can be protected independently. It also splits protection information output by 'mmc writeprotect boot get' by partition. (Note: eMMC boot partitions are named "Area 1" and "Area 2" by the eMMC spec, but mmcblk0boot0 and mmcblk0boot1 by Linux. To avoid confusion between the two numbering schemes, this patch uses 0 and 1 throughout, even when defining EXT_CSD register bits.) Signed-off-by: Julius Werner <jwerner@chromium.org> Link: https://lore.kernel.org/r/20200316202221.107714-1-jwerner@chromium.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-
- 29 Aug, 2016 1 commit
-
-
Tomas Melin authored
-c option added to gp create, enh_area set and write_reliability set commands. Signed-off by: Tomas Melin <tomas.melin@vaisala.com> Signed-off-by: Chris Ball <chris@printf.net>
-
- 07 Jun, 2016 1 commit
-
-
Al Cooper authored
Add commands to get and set write protect modes for the specified areas of the user partition. The ability to set permanent write protect is #ifdef'd with "DANGEROUS_COMMANDS_ENABLED" because it has the ability to make the eMMC device and possibly the system permanently unusable. Signed-off-by: Al Cooper <alcooperx@gmail.com> Signed-off-by: Chris Ball <chris@printf.net>
-
- 11 May, 2016 1 commit
-
-
Markus Schuetterle authored
Modified 'bootpart enable' function to disable partition boot by setting the <partition> parameter to 0. Signed-off-by: Markus Schuetterle <markus.schuetterle@intel.com> Signed-off-by: Chris Ball <chris@printf.net>
-
- 08 Mar, 2016 1 commit
-
-
Avi Shchislowski authored
Adding support for field firmware update over multiple command ioctl. As multiple command ioctl is supported only from kernel 4.4, this patch should be used against kernel 4.4 and above. Known issues: - There is no support for Multiple Block write commands (CMD25) in existing IOCTL implementation - In case MODE_OPERATION_CODES field is not supported by the device manual reset of the device/platform is required. The reset issue discussed in another email thread - " [RFC 0/6] mmc: Field Firmware Update" Signed-off-by: Yaniv Agman <yaniv.agman@sandisk.com> Signed-off-by: Avi Shchislowski <avi.shchislowski@sandisk.com> Signed-off-by: Chris Ball <chris@printf.net>
-
- 26 Feb, 2016 1 commit
-
-
Sebastian Rasmussen authored
The lsmmc tools contains an extensive parser of the CID, CSD, SCR registers from userspace. The utility works as-is and uses sysfs to read the register values. The original code is created by Sebastian Rasmussen and still lives in an attachment in the mail archive of linux-mmc. It need to be merged into mmc-utils repository, which is convenient for testing MMC device from userspace. Change since v3: - Remove the unused EXT_CSD parser in lsmmc.c file. Signed-off-by: Sebastian Rasmussen <sebras@gmail.com> Signed-off-by: Chris Ball <chris@printf.net> Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
-
- 01 May, 2015 3 commits
-
-
Al Cooper authored
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>
-
Al Cooper authored
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>
-
Balaji T K authored
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>
-
- 12 Aug, 2014 2 commits
-
-
Chris Ball authored
Signed-off-by: Chris Ball <chris@printf.net>
-
Roman Peniaev authored
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>
-
- 26 Sep, 2013 1 commit
-
-
Ben Gardiner authored
Signed-off-by: Ben Gardiner <ben.l.gardiner@gmail.com> Signed-off-by: Chris Ball <cjb@laptop.org>
-
- 27 Jun, 2013 2 commits
-
-
Ben Gardiner authored
Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca> Signed-off-by: Chris Ball <cjb@laptop.org>
-
Ben Gardiner authored
mmc status get </path/to/mmcblkX> Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca> Signed-off-by: Chris Ball <cjb@laptop.org>
-
- 26 May, 2013 1 commit
-
-
Yaniv Gardi authored
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>
-
- 19 Oct, 2012 1 commit
-
-
Chris Ball authored
(Note: one-time programmable fuse.) $ mmc hwreset enable /dev/mmcblk0 $ mmc hwreset disable /dev/mmcblk0
-
- 21 Sep, 2012 2 commits
-
-
Chris Ball authored
-
Jaehoon Chung authored
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>
-
- 17 May, 2012 2 commits
-
-
Saugata Das authored
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>
-
Giuseppe CAVALLARO authored
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>
-
- 20 Feb, 2012 1 commit
-
-
Chris Ball authored
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>
-
- 12 Feb, 2012 2 commits
-
-
Chris Ball authored
Signed-off-by: Chris Ball <cjb@laptop.org>
-
Goffredo Baroncelli authored
This commit was made by Chris Ball, but reuses framework code from Goffredo's btrfs-progs/btrfs.c. Signed-off-by: Chris Ball <cjb@laptop.org>
-