Skip to content

Ignore eMMC boot partitions #555

@0B001C

Description

@0B001C

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

Additional context

Screenshot Screenshot of Resources showing mmcblk1boot0 as a separate read-only 4MB drive of eMMC Storage Type with another 4MB drive in the sidebar
$ 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions