2013-04-19 12:47:34

by Neil Armstrong

[permalink] [raw]
Subject: [PATCH 0/3] Add boot_enable attribute to eMMC device for boot mode operation selection

Since eMMC 4.3 a special boot mode operation was introduced to retrieve
data from the eMMC device with a very simple procedure. Since the Linux
kernel exports these device boot partitions, it may be useful to select
the boot partition from the user space.

The patch has been tested on a Toshiba eMMC conforming with eMMC 4.5
specifications.

Neil Armstrong (3):
Add BOOT_PARTITION_ENABLE definition to MMC EXT_CSD PART_CONFIG
Add boot_enable sysfs attribute to select MMC boot operation
partition
Add Documentation for MMC boot_enable attribute

Documentation/mmc/mmc-dev-parts.txt | 6 +++
drivers/mmc/card/block.c | 72
++++++++++++++++++++++++++++++++++-
include/linux/mmc/mmc.h | 1 +
3 files changed, 78 insertions(+), 1 deletions(-)


2013-04-22 04:55:12

by Namjae Jeon

[permalink] [raw]
Subject: Re: [PATCH 0/3] Add boot_enable attribute to eMMC device for boot mode operation selection

2013/4/19, Neil Armstrong <[email protected]>:
> Since eMMC 4.3 a special boot mode operation was introduced to retrieve
> data from the eMMC device with a very simple procedure. Since the Linux
> kernel exports these device boot partitions, it may be useful to select
> the boot partition from the user space.
>
> The patch has been tested on a Toshiba eMMC conforming with eMMC 4.5
> specifications.
Hi Neil.
We can be enable boot partition using mmc-utils.
See this address.
https://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git/commit/?id=7bd1320b2cb38f040ab5cf017d17e283496690bf

So, I don't think this patch is useful.
If you consider to be disable boot partition, you can try to update
mmc-utils base on the address I shared.

Thanks.
>
> Neil Armstrong (3):
> Add BOOT_PARTITION_ENABLE definition to MMC EXT_CSD PART_CONFIG
> Add boot_enable sysfs attribute to select MMC boot operation
> partition
> Add Documentation for MMC boot_enable attribute
>
> Documentation/mmc/mmc-dev-parts.txt | 6 +++
> drivers/mmc/card/block.c | 72
> ++++++++++++++++++++++++++++++++++-
> include/linux/mmc/mmc.h | 1 +
> 3 files changed, 78 insertions(+), 1 deletions(-)
>
>
>

2013-04-22 07:24:05

by Neil Armstrong

[permalink] [raw]
Subject: Re: [PATCH 0/3] Add boot_enable attribute to eMMC device for boot mode operation selection

On 04/22/2013 06:55 AM, Namjae Jeon wrote:
> 2013/4/19, Neil Armstrong <[email protected]>:
>> Since eMMC 4.3 a special boot mode operation was introduced to retrieve
>> data from the eMMC device with a very simple procedure. Since the Linux
>> kernel exports these device boot partitions, it may be useful to select
>> the boot partition from the user space.
>>
>> The patch has been tested on a Toshiba eMMC conforming with eMMC 4.5
>> specifications.
> Hi Neil.
> We can be enable boot partition using mmc-utils.
> See this address.
> https://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git/commit/?id=7bd1320b2cb38f040ab5cf017d17e283496690bf
>
> So, I don't think this patch is useful.
> If you consider to be disable boot partition, you can try to update
> mmc-utils base on the address I shared.
>
> Thanks.
>>
>> Neil Armstrong (3):
>> Add BOOT_PARTITION_ENABLE definition to MMC EXT_CSD PART_CONFIG
>> Add boot_enable sysfs attribute to select MMC boot operation
>> partition
>> Add Documentation for MMC boot_enable attribute
>>
>> Documentation/mmc/mmc-dev-parts.txt | 6 +++
>> drivers/mmc/card/block.c | 72
>> ++++++++++++++++++++++++++++++++++-
>> include/linux/mmc/mmc.h | 1 +
>> 3 files changed, 78 insertions(+), 1 deletions(-)
>>
>>
>>
>

Hi,
Thanks for the reply, I was not aware of the mmc-utils tools. I think
the tool and the MMC_IOC_CMD interface should be documented in the kernel.

Please ignore my patch.

Regards,
Neil

2013-04-22 11:41:40

by Chris Ball

[permalink] [raw]
Subject: Re: [PATCH 0/3] Add boot_enable attribute to eMMC device for boot mode operation selection

Hi Neil,

On Mon, Apr 22 2013, Neil Armstrong wrote:
> Thanks for the reply, I was not aware of the mmc-utils tools. I think
> the tool and the MMC_IOC_CMD interface should be documented in the kernel.

Where do you think a good place for documentating the mmc tool would
be, such that you would have seen it while investigating?

It'd be nice to avoid having to document the commands themselves,
since the userspace tool may be updated out of sync with the kernel.

Thanks,

- Chris.
--
Chris Ball <[email protected]> <http://printf.net/>
One Laptop Per Child