|
| 1 | +# Dasharo Stability: NVMe detection |
| 2 | + |
| 3 | +## Test cases common documentation |
| 4 | + |
| 5 | +**Test setup** |
| 6 | + |
| 7 | +1. Proceed with the |
| 8 | + [Generic test setup: firmware](../../generic-test-setup/#firmware). |
| 9 | +1. Proceed with the |
| 10 | + [Generic test setup: OS installer](../../generic-test-setup/#os-installer). |
| 11 | +1. Proceed with the |
| 12 | + [Generic test setup: OS installation](../../generic-test-setup/#os-installation). |
| 13 | +1. Proceed with the |
| 14 | + [Generic test setup: OS boot from disk](../../generic-test-setup/#os-boot-from-disk). |
| 15 | +1. Install the `tpm2-tools` package: `sudo apt-get install tpm2-tools`. |
| 16 | + |
| 17 | +## TPD001.001 TPM detection after cold boot |
| 18 | + |
| 19 | +**Test description** |
| 20 | + |
| 21 | +This test aims to verify that the TPM module is correctly detected after |
| 22 | +performing a cold boot. The test should be performed in multiple iterations. |
| 23 | + |
| 24 | +**Test configuration data** |
| 25 | + |
| 26 | +1. `FIRMWARE` = Dasharo |
| 27 | +1. `OPERATING_SYSTEM` = Ubuntu 22.04 |
| 28 | + |
| 29 | +**Test setup** |
| 30 | + |
| 31 | +1. Proceed with the |
| 32 | + [Test cases common documentation](#test-cases-common-documentation) section. |
| 33 | + |
| 34 | +**Test steps** |
| 35 | + |
| 36 | +1. Power on the DUT. |
| 37 | +1. Boot into the system. |
| 38 | +1. Log into the system by using the proper login and password. |
| 39 | +1. Open a terminal window and run the following command: |
| 40 | + |
| 41 | + ```bash |
| 42 | + tpm2_pcrread |
| 43 | + ``` |
| 44 | + |
| 45 | +1. Disconnect the power source, and remove the battery if present. |
| 46 | +1. Connect power and battery again. |
| 47 | +1. Power on the DUT. |
| 48 | +1. Boot into the system. |
| 49 | +1. Log into the system by using the proper login and password. |
| 50 | +1. Open a terminal window and run the following command: |
| 51 | + |
| 52 | + ```bash |
| 53 | + tpm2_pcrread |
| 54 | + ``` |
| 55 | + |
| 56 | +**Expected result** |
| 57 | + |
| 58 | +1. The output of each `tpm2_pcrread` command should contain information about |
| 59 | + PCRS: |
| 60 | + |
| 61 | + Example output: |
| 62 | + |
| 63 | + ```bash |
| 64 | + 0 : 0x2F69DFD9A789F47317B110DA698A5DF3A02F12878FF467E33C474C7E487DAE15 |
| 65 | + 1 : 0xCF9AEC0D919A26133F5802FE82FFE92DBAF4C2C9D5DB764531A1B9E027A4445F |
| 66 | + 2 : 0x1573E2C07C01B429AE2CAA0027E2E41F22342CA9CBA8F70778449972F17FC1F9 |
| 67 | + 3 : 0x3D458CFE55CC03EA1F443F1562BEEC8DF51C75E14A9FCF9A7234A13F198E7969 |
| 68 | + 4 : 0xB23E42324EFE04AF98A835543314DCC5D3A30ADF853A7FD5A168C7FB808DA701 |
| 69 | + 5 : 0x276663B40D595416A4B58349EE91C2FBD8B1D9D8B8FD5F82DD3BC29931B034E0 |
| 70 | + 6 : 0x3D458CFE55CC03EA1F443F1562BEEC8DF51C75E14A9FCF9A7234A13F198E7969 |
| 71 | + 7 : 0x2FFE4BE876B04E0E8A539ED2E62F83627CAE8B57BA9BA22DAC8497B1B21FDEA4 |
| 72 | + 8 : 0x8F54ADFD4A146A400296665FD1B3BB19B85104831C17E61837004EA297461AD5 |
| 73 | + 9 : 0x6BA8A0F2BBD7D46CEF36371AA47F1E772F73FF318BC151FEDDD0725C28BA8DF8 |
| 74 | + 10: 0xB6B7F8415859D8B32325DCACC304166F5C33E0ED3F39F378348BCD29627F3A93 |
| 75 | + 11: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 76 | + 12: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 77 | + 13: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 78 | + 14: 0xD7C4CC7FF7933022F013E03BDEE875B91720B5B86CF1753CAD830F95E791926F |
| 79 | + 15: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 80 | + 16: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 81 | + 17: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 82 | + 18: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 83 | + 19: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 84 | + 20: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 85 | + 21: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 86 | + 22: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 87 | + 23: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 88 | + ``` |
| 89 | + |
| 90 | +1. PCRs should be subject to the following regularities: |
| 91 | + |
| 92 | + - PCR0 - PCR7 values should not be equal zero; they contains firmware |
| 93 | + measurements, |
| 94 | + - PCR8, PCR9 and PCR14 values should not be equal zero; they contains GRUB |
| 95 | + measurements, |
| 96 | + - PCR10 value should not be equal zero. |
| 97 | + |
| 98 | +1. Between subsequent boots above mentioned PCRs values should remain unchanged. |
| 99 | + |
| 100 | +## TPD002.001 TPM detection after warm boot |
| 101 | + |
| 102 | +**Test description** |
| 103 | + |
| 104 | +This test aims to verify that the TPM module is correctly detected after |
| 105 | +performing a warm boot. The test should be performed in multiple iterations. |
| 106 | + |
| 107 | +**Test configuration data** |
| 108 | + |
| 109 | +1. `FIRMWARE` = Dasharo |
| 110 | +1. `OPERATING_SYSTEM` = Ubuntu 22.04 |
| 111 | + |
| 112 | +**Test setup** |
| 113 | + |
| 114 | +1. Proceed with the |
| 115 | + [Test cases common documentation](#test-cases-common-documentation) section. |
| 116 | + |
| 117 | +**Test steps** |
| 118 | + |
| 119 | +1. Power on the DUT. |
| 120 | +1. Boot into the system. |
| 121 | +1. Log into the system by using the proper login and password. |
| 122 | +1. Open a terminal window and run the following command: |
| 123 | + |
| 124 | + ```bash |
| 125 | + tpm2_pcrread |
| 126 | + ``` |
| 127 | + |
| 128 | +1. Power off the DUT using the power button. |
| 129 | +1. Power on the DUT. |
| 130 | +1. Boot into the system. |
| 131 | +1. Log into the system by using the proper login and password. |
| 132 | +1. Open a terminal window and run the following command: |
| 133 | + |
| 134 | + ```bash |
| 135 | + tpm2_pcrread |
| 136 | + ``` |
| 137 | + |
| 138 | +**Expected result** |
| 139 | + |
| 140 | +1. The output of each `tpm2_pcrread` command should contain information about |
| 141 | + PCRS: |
| 142 | + |
| 143 | + Example output: |
| 144 | + |
| 145 | + ```bash |
| 146 | + 0 : 0x2F69DFD9A789F47317B110DA698A5DF3A02F12878FF467E33C474C7E487DAE15 |
| 147 | + 1 : 0xCF9AEC0D919A26133F5802FE82FFE92DBAF4C2C9D5DB764531A1B9E027A4445F |
| 148 | + 2 : 0x1573E2C07C01B429AE2CAA0027E2E41F22342CA9CBA8F70778449972F17FC1F9 |
| 149 | + 3 : 0x3D458CFE55CC03EA1F443F1562BEEC8DF51C75E14A9FCF9A7234A13F198E7969 |
| 150 | + 4 : 0xB23E42324EFE04AF98A835543314DCC5D3A30ADF853A7FD5A168C7FB808DA701 |
| 151 | + 5 : 0x276663B40D595416A4B58349EE91C2FBD8B1D9D8B8FD5F82DD3BC29931B034E0 |
| 152 | + 6 : 0x3D458CFE55CC03EA1F443F1562BEEC8DF51C75E14A9FCF9A7234A13F198E7969 |
| 153 | + 7 : 0x2FFE4BE876B04E0E8A539ED2E62F83627CAE8B57BA9BA22DAC8497B1B21FDEA4 |
| 154 | + 8 : 0x8F54ADFD4A146A400296665FD1B3BB19B85104831C17E61837004EA297461AD5 |
| 155 | + 9 : 0x6BA8A0F2BBD7D46CEF36371AA47F1E772F73FF318BC151FEDDD0725C28BA8DF8 |
| 156 | + 10: 0xB6B7F8415859D8B32325DCACC304166F5C33E0ED3F39F378348BCD29627F3A93 |
| 157 | + 11: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 158 | + 12: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 159 | + 13: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 160 | + 14: 0xD7C4CC7FF7933022F013E03BDEE875B91720B5B86CF1753CAD830F95E791926F |
| 161 | + 15: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 162 | + 16: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 163 | + 17: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 164 | + 18: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 165 | + 19: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 166 | + 20: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 167 | + 21: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 168 | + 22: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 169 | + 23: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 170 | + ``` |
| 171 | + |
| 172 | +1. PCRs should be subject to the following regularities: |
| 173 | + |
| 174 | + - PCR0 - PCR7 values should not be equal zero; they contains firmware |
| 175 | + measurements, |
| 176 | + - PCR8, PCR9 and PCR14 values should not be equal zero; they contains GRUB |
| 177 | + measurements, |
| 178 | + - PCR10 value should not be equal zero. |
| 179 | + |
| 180 | +1. Between subsequent boots above mentioned PCRs values should remain unchanged. |
| 181 | + |
| 182 | +## TPD003.001 TPM detection after cold reboot |
| 183 | + |
| 184 | +**Test description** |
| 185 | + |
| 186 | +This test aims to verify that the TPM module is correctly detected after |
| 187 | +performing a reboot. The test should be performed in multiple iterations. |
| 188 | + |
| 189 | +**Test configuration data** |
| 190 | + |
| 191 | +1. `FIRMWARE` = Dasharo |
| 192 | +1. `OPERATING_SYSTEM` = Ubuntu 22.04 |
| 193 | + |
| 194 | +**Test setup** |
| 195 | + |
| 196 | +1. Proceed with the |
| 197 | + [Generic test setup: firmware](../../generic-test-setup#firmware) |
| 198 | + |
| 199 | +**Test steps** |
| 200 | + |
| 201 | +1. Power on the DUT. |
| 202 | +1. Boot into the system. |
| 203 | +1. Log into the system by using the proper login and password. |
| 204 | +1. Open a terminal window and run the following command: |
| 205 | + |
| 206 | + ```bash |
| 207 | + tpm2_pcrread |
| 208 | + ``` |
| 209 | + |
| 210 | +1. Execute the following command to reboot the system: |
| 211 | + |
| 212 | + ```bash |
| 213 | + reboot |
| 214 | + ``` |
| 215 | + |
| 216 | +1. Log into the system by using the proper login and password. |
| 217 | +1. Open a terminal window and run the following command: |
| 218 | + |
| 219 | + ```bash |
| 220 | + tpm2_pcrread |
| 221 | + ``` |
| 222 | + |
| 223 | +**Expected result** |
| 224 | + |
| 225 | +**Expected result** |
| 226 | + |
| 227 | +1. The output of each `tpm2_pcrread` command should contain information about |
| 228 | + PCRS: |
| 229 | + |
| 230 | + Example output: |
| 231 | + |
| 232 | + ```bash |
| 233 | + 0 : 0x2F69DFD9A789F47317B110DA698A5DF3A02F12878FF467E33C474C7E487DAE15 |
| 234 | + 1 : 0xCF9AEC0D919A26133F5802FE82FFE92DBAF4C2C9D5DB764531A1B9E027A4445F |
| 235 | + 2 : 0x1573E2C07C01B429AE2CAA0027E2E41F22342CA9CBA8F70778449972F17FC1F9 |
| 236 | + 3 : 0x3D458CFE55CC03EA1F443F1562BEEC8DF51C75E14A9FCF9A7234A13F198E7969 |
| 237 | + 4 : 0xB23E42324EFE04AF98A835543314DCC5D3A30ADF853A7FD5A168C7FB808DA701 |
| 238 | + 5 : 0x276663B40D595416A4B58349EE91C2FBD8B1D9D8B8FD5F82DD3BC29931B034E0 |
| 239 | + 6 : 0x3D458CFE55CC03EA1F443F1562BEEC8DF51C75E14A9FCF9A7234A13F198E7969 |
| 240 | + 7 : 0x2FFE4BE876B04E0E8A539ED2E62F83627CAE8B57BA9BA22DAC8497B1B21FDEA4 |
| 241 | + 8 : 0x8F54ADFD4A146A400296665FD1B3BB19B85104831C17E61837004EA297461AD5 |
| 242 | + 9 : 0x6BA8A0F2BBD7D46CEF36371AA47F1E772F73FF318BC151FEDDD0725C28BA8DF8 |
| 243 | + 10: 0xB6B7F8415859D8B32325DCACC304166F5C33E0ED3F39F378348BCD29627F3A93 |
| 244 | + 11: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 245 | + 12: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 246 | + 13: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 247 | + 14: 0xD7C4CC7FF7933022F013E03BDEE875B91720B5B86CF1753CAD830F95E791926F |
| 248 | + 15: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 249 | + 16: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 250 | + 17: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 251 | + 18: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 252 | + 19: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 253 | + 20: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 254 | + 21: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 255 | + 22: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 256 | + 23: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 257 | + ``` |
| 258 | + |
| 259 | +1. PCRs should be subject to the following regularities: |
| 260 | + |
| 261 | + - PCR0 - PCR7 values should not be equal zero; they contains firmware |
| 262 | + measurements, |
| 263 | + - PCR8, PCR9 and PCR14 values should not be equal zero; they contains GRUB |
| 264 | + measurements, |
| 265 | + - PCR10 value should not be equal zero. |
| 266 | + |
| 267 | +1. Between subsequent boots above mentioned PCRs values should remain unchanged, |
| 268 | + except PCR10. |
| 269 | + |
| 270 | +## TPD0004.001 TPM detection after suspension (Ubuntu 22.04) |
| 271 | + |
| 272 | +**Test description** |
| 273 | + |
| 274 | +This test aims to verify that the TPM module is correctly detected after |
| 275 | +performing suspension. The test should be performed in multiple iterations. |
| 276 | + |
| 277 | +**Test configuration data** |
| 278 | + |
| 279 | +1. `FIRMWARE` = Dasharo |
| 280 | +1. `OPERATING_SYSTEM` = Ubuntu 22.04 |
| 281 | + |
| 282 | +**Test setup** |
| 283 | + |
| 284 | +1. Proceed with the |
| 285 | + [Test cases common documentation](#test-cases-common-documentation) section. |
| 286 | +1. Install the [Firmware test suite](https://wiki.ubuntu.com/FirmwareTestSuite) |
| 287 | + package. |
| 288 | + |
| 289 | +**Test steps** |
| 290 | + |
| 291 | +1. Power on the DUT. |
| 292 | +1. Boot into the system. |
| 293 | +1. Log into the system by using the proper login and password. |
| 294 | +1. Open a terminal window and run the following command: |
| 295 | + |
| 296 | + ```bash |
| 297 | + tpm2_pcrread |
| 298 | + ``` |
| 299 | + |
| 300 | +1. Execute the following command to suspend the system and automatically wake it |
| 301 | + up after 10 seconds: |
| 302 | + |
| 303 | + ```bash |
| 304 | + sudo fwts s3 --s3-sleep-delay=10 |
| 305 | + ``` |
| 306 | + |
| 307 | +1. Log into the system by using the proper login and password. |
| 308 | +1. Open a terminal window and run the following command: |
| 309 | + |
| 310 | + ```bash |
| 311 | + tpm2_pcrread |
| 312 | + ``` |
| 313 | + |
| 314 | +**Expected result** |
| 315 | + |
| 316 | +1. The output of each `tpm2_pcrread` command should contain information about |
| 317 | + PCRS: |
| 318 | + |
| 319 | + Example output: |
| 320 | + |
| 321 | + ```bash |
| 322 | + 0 : 0x2F69DFD9A789F47317B110DA698A5DF3A02F12878FF467E33C474C7E487DAE15 |
| 323 | + 1 : 0xCF9AEC0D919A26133F5802FE82FFE92DBAF4C2C9D5DB764531A1B9E027A4445F |
| 324 | + 2 : 0x1573E2C07C01B429AE2CAA0027E2E41F22342CA9CBA8F70778449972F17FC1F9 |
| 325 | + 3 : 0x3D458CFE55CC03EA1F443F1562BEEC8DF51C75E14A9FCF9A7234A13F198E7969 |
| 326 | + 4 : 0xB23E42324EFE04AF98A835543314DCC5D3A30ADF853A7FD5A168C7FB808DA701 |
| 327 | + 5 : 0x276663B40D595416A4B58349EE91C2FBD8B1D9D8B8FD5F82DD3BC29931B034E0 |
| 328 | + 6 : 0x3D458CFE55CC03EA1F443F1562BEEC8DF51C75E14A9FCF9A7234A13F198E7969 |
| 329 | + 7 : 0x2FFE4BE876B04E0E8A539ED2E62F83627CAE8B57BA9BA22DAC8497B1B21FDEA4 |
| 330 | + 8 : 0x8F54ADFD4A146A400296665FD1B3BB19B85104831C17E61837004EA297461AD5 |
| 331 | + 9 : 0x6BA8A0F2BBD7D46CEF36371AA47F1E772F73FF318BC151FEDDD0725C28BA8DF8 |
| 332 | + 10: 0xB6B7F8415859D8B32325DCACC304166F5C33E0ED3F39F378348BCD29627F3A93 |
| 333 | + 11: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 334 | + 12: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 335 | + 13: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 336 | + 14: 0xD7C4CC7FF7933022F013E03BDEE875B91720B5B86CF1753CAD830F95E791926F |
| 337 | + 15: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 338 | + 16: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 339 | + 17: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 340 | + 18: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 341 | + 19: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 342 | + 20: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 343 | + 21: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 344 | + 22: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
| 345 | + 23: 0x0000000000000000000000000000000000000000000000000000000000000000 |
| 346 | + ``` |
| 347 | + |
| 348 | +1. PCRs should be subject to the following regularities: |
| 349 | + |
| 350 | + - PCR0 - PCR7 values should not be equal zero; they contains firmware |
| 351 | + measurements, |
| 352 | + - PCR8, PCR9 and PCR14 values should not be equal zero; they contains GRUB |
| 353 | + measurements, |
| 354 | + - PCR10 value should not be equal zero. |
| 355 | + |
| 356 | +1. Between subsequent boots above mentioned PCRs values should remain unchanged. |
0 commit comments