<build root/common/config/ufs/provision.
The provision XML files for the various UFS device versions are as follows:
provision_ufs22.xml- This is for UFS device 2.2 partprovision_ufs31.xml- This is for UFS device 3.1 part
| Parameter | Description |
|---|---|
bNumberLU | Number of Logical Units. bNumberLU does not include well-known logical units. |
bBootEnable | Indicates whether the device is enabled for boot: 00h = Boot feature disabled, 01h = Bootable feature enabled |
bDescrAccessEn | Indicates whether the Device Descriptor can be read after the partial initialization phase of the boot sequence: 00h = Device Descriptor access disabled, 01h = Device Descriptor access enabled |
BInitPowerMode | Defines the Power Mode after device initialization or hardware reset: 00h = UFS-Sleep Mode, 01h = Active Mode |
bHighPriorityLUN | Defines the high-priority logical unit |
bSecureRemovalType | 00h = Information removed by an erase of the physical memory; 01h = Information removed by overwriting the addressed locations with a single character followed by an erase; 02h = Information removed by overwriting the addressed locations with a character, its complement, then a random character; 03h = Information removed using a vendor-defined mechanism |
bConfigDescrLock | 0h = Configuration Descriptor not locked; 1h = Configuration Descriptor locked |
- To reprovision the UFS device, set
bConfigDescrLock="0". This parameter is part of the provision XML file. - To prevent reprovisioning, set
bConfigDescrLock="1"after the UFS device configuration and provisioning is finalized.
| Parameter | Description |
|---|---|
LUNum | Logical Unit Number |
bLUEnable | Enables/disables the logical unit: 00h = Disables the logical unit, 01h = Enables the logical unit |
bBootLunID | Boot LUN ID: 00h = Not bootable, 01h = Boot LU A, 02h = Boot LU B |
size_in_kb | Specifies LUN size in KBs |
bLUWriteProtect | Logical Unit Write Protect: 00h = LU is not write protected, 01h = LU write protected when fPowerOnWPEn = 1 |
bMemoryType | Defines logical unit memory type: 00h = Normal memory, 01h = System code memory type, 02h = Non-Persistent memory type, 03h = Enhanced memory type 1, 04h = Enhanced memory type 2, 05h = Enhanced memory type 3, 06h = Enhanced memory type 4 |
bProvisioningType | Provisioning type: 00h = Thin Provisioning is disabled, 02h = Enables thin provisioning with TPRZ = 0 |
UFS device partition layout
The default UFS device provisioning creates eight LUNs (LUN0 to LUN7).- The Linux data and all Linux file system images are stored in LUN0.
- Boot well-known LUN (WLUN) 0xB0 alternates between LUN1 and LUN2 to provide a fail-safe backup for the XBL.
- The rest of the boot chain is stored in LUN4.
- The LUN6 and LUN7 are unused by default.

