Hi,
I am trying to enable WRREL on the onboard eMMC of the the Apalis iMX8QM 4GB WB by following the instructions in this guide: eMMC (Linux) | Toradex Developer Center
I used the output of cat /sys/class/block/mmcblk0/size
which was 61120512 in my case, but it didn’t work, it gave a mis-alignment error.
I then tried the number from the example (31080448) and it looks like the max allowed enhanced size is 1243. Is this correct? That is only 9.7Gb. Does this mean I can only use 9.7Gb of my 32Gb eMMC if I want to use it with WRREL on?
Here are the commands I tried:
U-Boot 2022.04-6.4.0-devel+git.dc27426aa417 (Sep 25 2023 - 13:34:50 +0000)
CPU: NXP i.MX8QM RevB A53 at 1200 MHz at 67C
DRAM: 4 GiB
Core: 193 devices, 19 uclasses, devicetree: separate
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... OK
In: serial
Out: serial
Err: serial
Model: Toradex 0037 Apalis iMX8QM 4GB WB IT V1.1E
BuildInfo:
- SCFW 6638c032, SECO-FW c9de51c0, IMX-MKIMAGE 3bfcfccb, ATF 3c1583b
- U-Boot 2022.04-6.4.0-devel+git.dc27426aa417
flash target is MMC:0
Net: eth0: ethernet@5b040000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
Apalis iMX8 # mmc info
Device: FSL_SDHC
Manufacturer ID: 70
OEM: 0
Name: IX2932
Bus Speed: 49500000
Mode: MMC High Speed (52MHz)
Rd Block Len: 512
MMC version 5.1
High Capacity: Yes
Capacity: 29.1 GiB
Bus Width: 8-bit
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 29.1 GiB
Boot Capacity: 4 MiB ENH
RPMB Capacity: 4 MiB ENH
Boot area 0 is not write protected
Boot area 1 is not write protected
Apalis iMX8 # mmc hwpartition user enh 0 61120512 check
Partition configuration:
User Enhanced Start: 0 Bytes
User Enhanced Size: 29.1 GiB
No GP1 partition
No GP2 partition
No GP3 partition
No GP4 partition
User data enhanced area not HC WP group size aligned
Failed!
Apalis iMX8 # mmc hwpartition user enh 0 31080448 check
Partition configuration:
User Enhanced Start: 0 Bytes
User Enhanced Size: 14.8 GiB
No GP1 partition
No GP2 partition
No GP3 partition
No GP4 partition
Total enhanced size exceeds maximum (1897 > 1243)
Failed!
Apalis iMX8 # mmc hwpartition user enh 0 20365312 wrrel on check
Partition configuration:
User Enhanced Start: 0 Bytes
User Enhanced Size: 9.7 GiB
User partition write reliability: on
No GP1 partition
No GP2 partition
No GP3 partition
No GP4 partition