- 27 Mar, 2018 1 commit
-
-
jason.zeng authored
Fix enh_start_addr overflow when converting emmc enh_area which will cause do_enh_area_set failure. Signed-off-by: jason.zeng <jasonzvz@gmail.com> Signed-off-by: Chris Ball <chris@printf.net>
-
- 17 Feb, 2018 3 commits
-
-
Uwe Kleine-König authored
I didn't find any functions used for which the documentation specifies to use (at least) one of the dropped headers. The only Linux specific header <linux/fs.h> is needed for BLKGETSIZE, document that. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Chris Ball <chris@printf.net>
-
Uwe Kleine-König authored
offsetof isn't mmc specific, so remove it from mmc.h. As there is only a single user define it there. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Chris Ball <chris@printf.net>
-
Uwe Kleine-König authored
This macro saves a few lines of code but is harder to read than the equivalent code spelled out. IMHO the latter is more important, so expand the macro everywhere and drop it. While touching this also unbreak the strings used there for better grepability. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Chris Ball <chris@printf.net>
-
- 20 Mar, 2017 2 commits
-
-
Alexander Stein authored
Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Chris Ball <chris@printf.net>
-
Alexander Stein authored
Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Chris Ball <chris@printf.net>
-
- 16 Mar, 2017 1 commit
-
-
Boris Schmidt authored
Signed-off-by: Boris Schmidt <boris.schmidt@siemens.com>
-
- 01 Sep, 2016 1 commit
-
-
Tomas Melin authored
Fixes upstream-merge in 752072da Write_reliability -c addition from patch was missing. Signed-off-by: Tomas Melin <tomas.melin@vaisala.com> Signed-off-by: Chris Ball <chris@printf.net>
-
- 29 Aug, 2016 4 commits
-
-
Tomas Melin authored
Test was wrong way around. Function returns non-zero value on fail. Signed-off-by: Tomas Melin <tomas.melin@vaisala.com> Signed-off-by: Chris Ball <chris@printf.net>
-
Tomas Melin authored
Adding 'continue' option to: gp create enh_area set write_reliability set Partitioning commands are connected, register PARTITION_SETTING_COMPLETED should not be written until all settings have been done. The continue option enables writing more than one partitioning setting before sealing settings. Signed-off-by: Tomas Melin <tomas.melin@vaisala.com> Signed-off-by: Chris Ball <chris@printf.net>
-
Tomas Melin authored
Signed-off-by: Tomas Melin <tomas.melin@vaisala.com> Signed-off-by: Chris Ball <chris@printf.net>
-
Tomas Melin authored
Block-addressed devices should have address multiplied with sector size. Clarify with comment how is_blockaddressed() is calculated. Signed-off-by: Tomas Melin <tomas.melin@vaisala.com> Signed-off-by: Chris Ball <chris@printf.net>
-
- 23 Jun, 2016 1 commit
-
-
Adrian Hunter authored
Display Command Queue information when printing Extended CSD Example: # mmc extcsd read /dev/mmcblk0 | grep CMDQ Command Queue Support [CMDQ_SUPPORT]: 0x01 Command Queue Depth [CMDQ_DEPTH]: 16 Command Enabled [CMDQ_MODE_EN]: 0x01 Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> 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>
-
- 18 Nov, 2015 1 commit
-
-
Marcus Folkesson authored
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
-
- 01 May, 2015 4 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>
-
Balaji T K authored
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>
-
- 12 Aug, 2014 1 commit
-
-
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 5 commits
-
-
Oliver Metz authored
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>
-
Oliver Metz authored
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>
-
Ben Gardiner authored
Signed-off-by: Ben Gardiner <ben.l.gardiner@gmail.com> Signed-off-by: Chris Ball <cjb@laptop.org>
-
Ben Gardiner authored
Signed-off-by: Ben Gardiner <ben.l.gardiner@gmail.com> Signed-off-by: Chris Ball <cjb@laptop.org>
-
Ben Gardiner authored
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>
-
- 27 Jun, 2013 9 commits
-
-
Ben Gardiner authored
Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca> Signed-off-by: Chris Ball <cjb@laptop.org>
-
Ben Gardiner authored
Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca> Signed-off-by: Chris Ball <cjb@laptop.org>
-
Ben Gardiner authored
Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca> Signed-off-by: Chris Ball <cjb@laptop.org>
-
Ben Gardiner authored
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>
-
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>
-
Ben Gardiner authored
Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca> Signed-off-by: Chris Ball <cjb@laptop.org>
-
Ben Gardiner authored
Signed-off-by: Chris Ball <cjb@laptop.org>
-
Oleg Matcovschi authored
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>
-
Mario Schuknecht authored
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>
-
- 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 1 commit
-
-
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 1 commit
-
-
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>
-