Special eMMC partition shows up in Disks GUI, but it should not.

johnlocke

Dabbler
Joined
Oct 24, 2020
Messages
18
If I open GUI / Storage / Disks, I see a eMMC special, hardware partition:

Screen Shot 2020-10-24 at 8.32.45 pm.png


I think this eMMC hardware partition should not be there.

My research shows these partitions are part of eMMC spec, they should not be picked in Disks (mmcsd0boot0, mmcsd0boot1 or mmcsd0rpmb).

Code:
root@truenas[/usr/ports/packages]# ls -la /dev/ | grep mmcsd
lrwxr-xr-x   1 root  wheel       13 Oct 25 04:22 dumpdev -> /dev/mmcsd0p3
crw-r-----   1 root  operator  0x42 Oct 25 04:22 mmcsd0
crw-r-----   1 root  operator  0x46 Oct 25 04:22 mmcsd0boot0
crw-r-----   1 root  operator  0x4d Oct 25 04:22 mmcsd0boot1
crw-r-----   1 root  operator  0x43 Oct 25 04:22 mmcsd0p1
crw-r-----   1 root  operator  0x44 Oct 25 04:22 mmcsd0p2
crw-r-----   1 root  operator  0x45 Oct 25 04:22 mmcsd0p3
crw-r-----   1 root  operator  0x6f Oct 25 04:22 mmcsd0p3.eli
crw-r-----   1 root  operator  0x41 Oct 25 04:22 mmcsd0rpmb


eMMC devices are partitioned into several hardware partitions but only one can be selected at a time:
BOOT - one or more small partitions intended for boot firmware (eMMC 4.3 spec requires 2 boot and 1 user partition)
RPMB - Replay Protected Memory Block - intended to store secure data (ie DRM content protection keys) (eMMC 4.4 spec adds the requirement of an RPMB partition)
USER - a large partition intended for general storage

Fresh install of TrueNAS Core 12 Release on x86 SBC with soldered on, 64GB eMMC storage, used for TrueNAS install.
I installed mmc-utils for debug, but afraid to run it, some operations on eMMC are irreversible.

Please help :))
 

johnlocke

Dabbler
Joined
Oct 24, 2020
Messages
18
Code:
# dmesg
mmcsd0: 63GB <MMCHC DA4064 0.1 SN 56B9130F MFG 08/2019 by 69 0x0000> at mmc0 200.0MHz/8bit/8192-block
mmcsd0boot0: 4MB partition 1 (read-only) at mmcsd0
mmcsd0boot1: 4MB partition 2 (read-only) at mmcsd0
mmcsd0rpmb: 17MB partition 3 at mmcsd0

# gpart show mmcsd0
=>       40  122142640  mmcsd0  GPT  (58G)
         40     532480       1  efi  (260M)
     532520   33554432       3  freebsd-swap  (16G)
   34086952   88047616       2  freebsd-zfs  (42G)
  122134568       8112          - free -  (4.0M)

# gpart show mmcsd0boot1
gpart: No such geom: mmcsd0boot1.
 

johnlocke

Dabbler
Joined
Oct 24, 2020
Messages
18
So it is likely a bug. Installer shows these partitions too (1), not just Disks GUI (2).

Till now I have found only 3 places where mmcsd0boot0 and mmcsd0boot1 are showing up.
1. In the installer where to choose destination media. Here we need only "mmcsd0".
2. WebUI -> Storage -> View disks (In Legacy and Angular UI as well)
3. In the Wizard. It didn't let me click on "Next" without configuring these devices


 
Top