Add boot_enable attribute to eMMC device for boot mode operation selection
cover 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/4/19, Neil Armstrong <[email protected]>:
Quoted 7 lines
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.
Quoted 15 lines
Neil Armstrong (3):
AddBOOT_PARTITION_ENABLEdefinition to MMCEXT_CSDPART_CONFIGAddboot_enablesysfs attribute to select MMC boot operation
partition
Add Documentation for MMCboot_enableattributeDocumentation/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(-)
Quoted 13 lines · Namjae Jeon
2013/4/19, Neil Armstrong <[email protected]>:
Quoted 7 lines
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
Quoted 21 lines
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.
Quoted 15 lines
Neil Armstrong (3):
AddBOOT_PARTITION_ENABLEdefinition to MMCEXT_CSDPART_CONFIGAddboot_enablesysfs attribute to select MMC boot operation
partition
Add Documentation for MMCboot_enableattributeDocumentation/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
Hi Neil,
Quoted 2 lines · Neil Armstrong
Thanks for the reply, I was not aware of the mmc-utils tools. I think the tool and the
MMC_IOC_CMDinterface 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.
Signature · 2 lines
Chris Ball <[email protected]> <http://printf.net/> One Laptop Per Child