-
Notifications
You must be signed in to change notification settings - Fork 81
Description
Is there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe.
eMMC features so called hardware partitions, among them two dedicated boot partitions for storing the bootloader in embedded applications (not to be confused with GPT partitions in the user data area of the MMC, like the EFI system partition or extended boot loader partitions).
These are exposed as separate (read-only by default) block devices under /sys/block by the kernel (e.g. mmcblk1boot0 and mmcblk1boot1 in addition to the actual user data area mmcblk1), see https://www.kernel.org/doc/html/latest/driver-api/mmc/mmc-dev-parts.html.
I'm not even sure whether these are actually used for their intended purpose on x86 UEFI systems but listing them as separate read-only 4 MB drives in Resources adds clutter to the device list and seems quite useless at any rate.
Describe the solution you'd like
Outright ignore MMC boot partitions or hide them behind an opt-in toggle (similar to virtual drives).
Describe alternatives you've considered
- Treat them as virtual drives
- But they aren't?
- Afaik it's not possible to distinguish them by
DriveType, so they need to be handled separately anyway
- Allow the user to toggle visibility for individual devices / drives themselves as suggested in Flexible support for devices and multi-device filesystems. #490
Additional context
$ ls -l /sys/block/
total 0
lrwxrwxrwx 1 root root 0 Oct 12 13:27 mmcblk0 -> ../devices/pci0000:00/0000:00:13.0/0000:01:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0
lrwxrwxrwx 1 root root 0 Oct 12 13:27 mmcblk1 -> ../devices/pci0000:00/0000:00:1c.0/mmc_host/mmc1/mmc1:0001/block/mmcblk1
lrwxrwxrwx 1 root root 0 Oct 12 13:34 mmcblk1boot0 -> ../devices/pci0000:00/0000:00:1c.0/mmc_host/mmc1/mmc1:0001/block/mmcblk1/mmcblk1boot0
lrwxrwxrwx 1 root root 0 Oct 12 13:34 mmcblk1boot1 -> ../devices/pci0000:00/0000:00:1c.0/mmc_host/mmc1/mmc1:0001/block/mmcblk1/mmcblk1boot1
