Hi Thomas,

 

Can you share the build command and the git hash you used? I tested on this board based on the patch I posted with

“cmake -S . -B cmake_build -DTFM_PLATFORM=nxp/lpcxpresso55s69 -DBL2=0 -DTEST_NS=ON -DTEST_S=ON”

The nonsecure tests can pass on my local.

 

Regards,

Sherry

 

 

From: Thomas Törnblom <thomas.tornblom@iar.com>
Sent: Thursday, November 4, 2021 7:13 PM
To: Sherry Zhang <Sherry.Zhang2@arm.com>; tf-m@lists.trustedfirmware.org
Cc: nd <nd@arm.com>
Subject: Re: [TF-M] lpcxpresso55s69 builds broken

 

Thanks Sherry,

This fixes this issue.

Unfortunately it reveals that most of the NS tests fails.

Seems like the LPCxpresso55s69 support currently is in a sad state.

---

Den 2021-11-04 kl. 06:49, skrev Sherry Zhang:

Hi Thomas,

 

Thanks for reporting this issue.

 

This is caused by a recent patch about ITS. And it only occurs on NAND flash. lpcxpresso55s69 is the only board which uses NAND flash for ITS in TF-M currently. Sorry I missed to test my original patch based on lpcxpresso55s69.

 

I created this patch https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/12282/ to fix it.

I have verified the fix on lpcxpresso55s69 board.  The command I used in the test is

“cmake -S . -B cmake_build -DTFM_PLATFORM=nxp/lpcxpresso55s69 -DBL2=0”

 

Regards,

Sherry Zhang

 

From: TF-M <tf-m-bounces@lists.trustedfirmware.org> On Behalf Of Thomas Törnblom via TF-M
Sent: Wednesday, November 3, 2021 8:32 PM
To: tf-m@lists.trustedfirmware.org
Subject: Re: [TF-M] lpcxpresso55s69 builds broken

 

It appears to be the logic around creating the ITS flash storage when the flash is empty that fails

This call to its_flash_fs_prepare() fails:
---
     if (status != PSA_SUCCESS) {
        /* Remove all data in the ITS memory area and create a valid ITS flash
         * layout in that area.
         */
        LOG_INFFMT("Creating an empty ITS flash layout.\r\n");
        status = its_flash_fs_wipe_all(&fs_ctx_its);
        if (status != PSA_SUCCESS) {
            return status;
        }

        /* Attempt to prepare again */
        status = its_flash_fs_prepare(&fs_ctx_its);
    }
#endif /* ITS_CREATE_FLASH_LAYOUT */

#ifdef TFM_PARTITION_PROTECTED_STORAGE
    /* Check status of ITS initialisation before continuing with PS */
    if (status != PSA_SUCCESS) {
        return status;
---



#### Execute test suites for the Non-secure area ####

Running Test Suite PSA protected storage NS interface tests (TFM_NS_PS_TEST_1XXX)...
> Executing 'TFM_NS_PS_TEST_1001'
  Description: 'Set interface'
  Set should not fail with valid UID (Failed at lib/ext/tfm_test_repo-src/test/suites/ps/non_secure/psa_ps_ns_interface_testsuite.c:159)
  TEST: TFM_NS_PS_TEST_1001 - FAILED!
> Executing 'TFM_NS_PS_TEST_1002'
  Description: 'Set interface with create flags'
  Set should not fail with no flags (Failed at lib/ext/tfm_test_repo-src/test/suites/ps/non_secure/psa_ps_ns_interface_testsuite.c:224)
  TEST: TFM_NS_PS_TEST_1002 - FAILED!
> Executing 'TFM_NS_PS_TEST_1003'
  Description: 'Set interface with NULL data pointer'
  Set should succeed with NULL data pointer and zero length (Failed at lib/ext/tfm_test_repo-src/test/suites/ps/non_secure/psa_ps_ns_interface_testsuite.c:257)
  TEST: TFM_NS_PS_TEST_1003 - FAILED!
> Executing 'TFM_NS_PS_TEST_1004'
  Description: 'Set interface with write once UID'
  Set should not rewrite a write once UID (Failed at lib/ext/tfm_test_repo-src/test/suites/ps/non_secure/psa_ps_ns_interface_testsuite.c:283)
  TEST: TFM_NS_PS_TEST_1004 - FAILED!
> Executing 'TFM_NS_PS_TEST_1005'
  Description: 'Get interface with valid data'
  Set should not fail (Failed at lib/ext/tfm_test_repo-src/test/suites/ps/non_secure/psa_ps_ns_interface_testsuite.c:324)
  TEST: TFM_NS_PS_TEST_1005 - FAILED!
> Executing 'TFM_NS_PS_TEST_1006'
  Description: 'Get interface with zero data length'
  Set should not fail (Failed at lib/ext/tfm_test_repo-src/test/suites/ps/non_secure/psa_ps_ns_interface_testsuite.c:405)
  TEST: TFM_NS_PS_TEST_1006 - FAILED!
> Executing 'TFM_NS_PS_TEST_1007'
  Description: 'Get interface with invalid UIDs'
  Get succeeded with non-existant UID (Failed at lib/ext/tfm_test_repo-src/test/suites/ps/non_secure/psa_ps_ns_interface_testsuite.c:467)
  TEST: TFM_NS_PS_TEST_1007 - FAILED!
> Executing 'TFM_NS_PS_TEST_1008'
  Description: 'Get interface with invalid data lengths and offsets'
  Set should not fail (Failed at lib/ext/tfm_test_repo-src/test/suites/ps/non_secure/psa_ps_ns_interface_testsuite.c:514)
  TEST: TFM_NS_PS_TEST_1008 - FAILED!
> Executing 'TFM_NS_PS_TEST_1009'
  Description: 'Get interface with NULL data pointer'
  Set should not fail (Failed at lib/ext/tfm_test_repo-src/test/suites/ps/non_secure/psa_ps_ns_interface_testsuite.c:618)
  TEST: TFM_NS_PS_TEST_1009 - FAILED!
> Executing 'TFM_NS_PS_TEST_1010'
  Description: 'Get info interface with write once UID'
  Get info should not fail for write once UID (Failed at lib/ext/tfm_test_repo-src/test/suites/ps/non_secure/psa_ps_ns_interface_testsuite.c:652)
  TEST: TFM_NS_PS_TEST_1010 - FAILED!
> Executing 'TFM_NS_PS_TEST_1011'
  Description: 'Get info interface with valid UID'
  Set should not fail (Failed at lib/ext/tfm_test_repo-src/test/suites/ps/non_secure/psa_ps_ns_interface_testsuite.c:685)
  TEST: TFM_NS_PS_TEST_1011 - FAILED!
> Executing 'TFM_NS_PS_TEST_1012'
  Description: 'Get info interface with invalid UIDs'
  Get info should not succeed with unset UID (Failed at lib/ext/tfm_test_repo-src/test/suites/ps/non_secure/psa_ps_ns_interface_testsuite.c:731)
  TEST: TFM_NS_PS_TEST_1012 - FAILED!
> Executing 'TFM_NS_PS_TEST_1013'
  Description: 'Remove interface with valid UID'
  Set should not fail (Failed at lib/ext/tfm_test_repo-src/test/suites/ps/non_secure/psa_ps_ns_interface_testsuite.c:785)
  TEST: TFM_NS_PS_TEST_1013 - FAILED!
> Executing 'TFM_NS_PS_TEST_1014'
  Description: 'Remove interface with write once UID'
  Remove should not succeed with write once UID (Failed at lib/ext/tfm_test_repo-src/test/suites/ps/non_secure/psa_ps_ns_interface_testsuite.c:832)
  TEST: TFM_NS_PS_TEST_1014 - FAILED!
> Executing 'TFM_NS_PS_TEST_1015'
  Description: 'Remove interface with invalid UID'
  Remove should not succeed with invalid UID (Failed at lib/ext/tfm_test_repo-src/test/suites/ps/non_secure/psa_ps_ns_interface_testsuite.c:851)
  TEST: TFM_NS_PS_TEST_1015 - FAILED!
> Executing 'TFM_NS_PS_TEST_1021'
  Description: 'Block compaction after remove'
  Set should not fail for UID 1 (Failed at lib/ext/tfm_test_repo-src/test/suites/ps/non_secure/psa_ps_ns_interface_testsuite.c:1477)
  TEST: TFM_NS_PS_TEST_1021 - FAILED!
> Executing 'TFM_NS_PS_TEST_1022'
  Description: 'Multiple partial gets'
  Set should not fail (Failed at lib/ext/tfm_test_repo-src/test/suites/ps/non_secure/psa_ps_ns_interface_testsuite.c:1540)
  TEST: TFM_NS_PS_TEST_1022 - FAILED!
> Executing 'TFM_NS_PS_TEST_1023'
  Description: 'Multiple sets to same UID from same thread'
  First set should not fail (Failed at lib/ext/tfm_test_repo-src/test/suites/ps/non_secure/psa_ps_ns_interface_testsuite.c:1590)
  TEST: TFM_NS_PS_TEST_1023 - FAILED!
> Executing 'TFM_NS_PS_TEST_1024'
  Description: 'Get support interface'
  TEST: TFM_NS_PS_TEST_1024 - PASSED!
> Executing 'TFM_NS_PS_TEST_1025'
  Description: 'Set, get and remove interface with different asset sizes'
  Set should not fail with valid UID (Failed at lib/ext/tfm_test_repo-src/test/suites/ps/non_secure/psa_ps_ns_interface_testsuite.c:1680)
  TEST: TFM_NS_PS_TEST_1025 - FAILED!
TESTSUITE FAILED!
Number of failed tests: 19 of 20
Running Test Suite PSA internal trusted storage NS interface tests (TFM_NS_ITS_TEST_1XXX)...
> Executing 'TFM_NS_ITS_TEST_1001'
  Description: 'Set interface'
  Set should not fail with valid UID (Failed at lib/ext/tfm_test_repo-src/test/suites/its/its_tests_common.c:32)
  TEST: TFM_NS_ITS_TEST_1001 - FAILED!
> Executing 'TFM_NS_ITS_TEST_1002'
  Description: 'Set interface with create flags'
  Set should not fail with no flags (Failed at lib/ext/tfm_test_repo-src/test/suites/its/its_tests_common.c:91)
  TEST: TFM_NS_ITS_TEST_1002 - FAILED!
> Executing 'TFM_NS_ITS_TEST_1003'
  Description: 'Set interface with NULL data pointer'
  Set should succeed with NULL data pointer and zero length (Failed at lib/ext/tfm_test_repo-src/test/suites/its/its_tests_common.c:115)
  TEST: TFM_NS_ITS_TEST_1003 - FAILED!
> Executing 'TFM_NS_ITS_TEST_1004'
  Description: 'Set interface with write once UID'
  Set should not rewrite a write once UID (Failed at lib/ext/tfm_test_repo-src/test/suites/its/its_tests_common.c:138)
  TEST: TFM_NS_ITS_TEST_1004 - FAILED!
> Executing 'TFM_NS_ITS_TEST_1005'
  Description: 'Get interface with valid data'
  Set should not fail (Failed at lib/ext/tfm_test_repo-src/test/suites/its/its_tests_common.c:186)
  TEST: TFM_NS_ITS_TEST_1005 - FAILED!
> Executing 'TFM_NS_ITS_TEST_1006'
  Description: 'Get interface with zero data length'
  Set should not fail (Failed at lib/ext/tfm_test_repo-src/test/suites/its/its_tests_common.c:293)
  TEST: TFM_NS_ITS_TEST_1006 - FAILED!
> Executing 'TFM_NS_ITS_TEST_1007'
  Description: 'Get interface with invalid UIDs'
  Get succeeded with non-existant UID (Failed at lib/ext/tfm_test_repo-src/test/suites/its/its_tests_common.c:374)
  TEST: TFM_NS_ITS_TEST_1007 - FAILED!
> Executing 'TFM_NS_ITS_TEST_1008'
  Description: 'Get interface with invalid data lengths and offsets'
  Set should not fail (Failed at lib/ext/tfm_test_repo-src/test/suites/its/its_tests_common.c:426)
  TEST: TFM_NS_ITS_TEST_1008 - FAILED!
> Executing 'TFM_NS_ITS_TEST_1009'
  Description: 'Get interface with NULL data pointer'
  Set should not fail (Failed at lib/ext/tfm_test_repo-src/test/suites/its/its_tests_common.c:541)
  TEST: TFM_NS_ITS_TEST_1009 - FAILED!
> Executing 'TFM_NS_ITS_TEST_1010'
  Description: 'Get info interface with write once UID'
  Get info should not fail for write once UID (Failed at lib/ext/tfm_test_repo-src/test/suites/its/its_tests_common.c:578)
  TEST: TFM_NS_ITS_TEST_1010 - FAILED!
> Executing 'TFM_NS_ITS_TEST_1011'
  Description: 'Get info interface with valid UID'
  Set should not fail (Failed at lib/ext/tfm_test_repo-src/test/suites/its/its_tests_common.c:612)
  TEST: TFM_NS_ITS_TEST_1011 - FAILED!
> Executing 'TFM_NS_ITS_TEST_1012'
  Description: 'Get info interface with invalid UIDs'
  Get info should not succeed with unset UID (Failed at lib/ext/tfm_test_repo-src/test/suites/its/its_tests_common.c:658)
  TEST: TFM_NS_ITS_TEST_1012 - FAILED!
> Executing 'TFM_NS_ITS_TEST_1013'
  Description: 'Remove interface with valid UID'
  Set should not fail (Failed at lib/ext/tfm_test_repo-src/test/suites/its/its_tests_common.c:708)
  TEST: TFM_NS_ITS_TEST_1013 - FAILED!
> Executing 'TFM_NS_ITS_TEST_1014'
  Description: 'Remove interface with write once UID'
  Remove should not succeed with write once UID (Failed at lib/ext/tfm_test_repo-src/test/suites/its/its_tests_common.c:751)
  TEST: TFM_NS_ITS_TEST_1014 - FAILED!
> Executing 'TFM_NS_ITS_TEST_1015'
  Description: 'Remove interface with invalid UID'
  Remove should not succeed with invalid UID (Failed at lib/ext/tfm_test_repo-src/test/suites/its/its_tests_common.c:766)
  TEST: TFM_NS_ITS_TEST_1015 - FAILED!
> Executing 'TFM_NS_ITS_TEST_1016'
  Description: 'Block compaction after remove'
  Set should not fail for UID 1 (Failed at lib/ext/tfm_test_repo-src/test/suites/its/its_tests_common.c:790)
  TEST: TFM_NS_ITS_TEST_1016 - FAILED!
> Executing 'TFM_NS_ITS_TEST_1017'
  Description: 'Multiple partial gets'
  Set should not fail (Failed at lib/ext/tfm_test_repo-src/test/suites/its/its_tests_common.c:860)
  TEST: TFM_NS_ITS_TEST_1017 - FAILED!
> Executing 'TFM_NS_ITS_TEST_1018'
  Description: 'Multiple sets to same UID from same thread'
  First set should not fail (Failed at lib/ext/tfm_test_repo-src/test/suites/its/its_tests_common.c:911)
  TEST: TFM_NS_ITS_TEST_1018 - FAILED!
> Executing 'TFM_NS_ITS_TEST_1019'
  Description: 'Set, get and remove interface with different asset sizes'
  Set should not fail with valid UID (Failed at lib/ext/tfm_test_repo-src/test/suites/its/its_tests_common.c:995)
  TEST: TFM_NS_ITS_TEST_1019 - FAILED!
TESTSUITE FAILED!
Number of failed tests: 19 of 19
Running Test Suite Crypto non-secure interface test (TFM_NS_CRYPTO_TEST_1XXX)...
> Executing 'TFM_NS_CRYPTO_TEST_1001'
  Description: 'Non Secure Key management interface'
  Error importing a key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:34)
  TEST: TFM_NS_CRYPTO_TEST_1001 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1002'
  Description: 'Non Secure Symmetric encryption (AES-128-CBC) interface'
  Error destroying a key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:350)
  TEST: TFM_NS_CRYPTO_TEST_1002 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1003'
  Description: 'Non Secure Symmetric encryption (AES-128-CFB) interface'
  Error destroying a key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:350)
  TEST: TFM_NS_CRYPTO_TEST_1003 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1005'
  Description: 'Non Secure Symmetric encryption (AES-128-CTR) interface'
  Error destroying a key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:350)
  TEST: TFM_NS_CRYPTO_TEST_1005 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1007'
  Description: 'Non Secure Symmetric encryption invalid cipher'
  Error importing a key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:382)
  TEST: TFM_NS_CRYPTO_TEST_1007 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1008'
  Description: 'Non Secure Symmetric encryption invalid cipher (AES-152)'
  Should not successfully import with an invalid key length (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:903)
  TEST: TFM_NS_CRYPTO_TEST_1008 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1009'
  Description: 'Non Secure Symmetric encryption invalid cipher (HMAC-128-CFB)'
  Error importing a key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:382)
  TEST: TFM_NS_CRYPTO_TEST_1009 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1010'
  Description: 'Non Secure Unsupported Hash (SHA-1) interface'
  Should not successfully setup an unsupported hash alg (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:413)
  TEST: TFM_NS_CRYPTO_TEST_1010 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1011'
  Description: 'Non Secure Hash (SHA-224) interface'
  Error setting up hash operation object (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:480)
  TEST: TFM_NS_CRYPTO_TEST_1011 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1012'
  Description: 'Non Secure Hash (SHA-256) interface'
  Error setting up hash operation object (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:480)
  TEST: TFM_NS_CRYPTO_TEST_1012 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1013'
  Description: 'Non Secure Hash (SHA-384) interface'
  Error setting up hash operation object (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:480)
  TEST: TFM_NS_CRYPTO_TEST_1013 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1014'
  Description: 'Non Secure Hash (SHA-512) interface'
  Error setting up hash operation object (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:480)
  TEST: TFM_NS_CRYPTO_TEST_1014 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1019'
  Description: 'Non Secure Unsupported HMAC (SHA-1) interface'
  Error importing a key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:538)
  TEST: TFM_NS_CRYPTO_TEST_1019 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1020'
  Description: 'Non Secure HMAC (SHA-256) interface'
  Error importing a key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:634)
  TEST: TFM_NS_CRYPTO_TEST_1020 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1021'
  Description: 'Non Secure HMAC (SHA-384) interface'
  Error importing a key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:634)
  TEST: TFM_NS_CRYPTO_TEST_1021 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1022'
  Description: 'Non Secure HMAC (SHA-512) interface'
  Error importing a key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:634)
  TEST: TFM_NS_CRYPTO_TEST_1022 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1024'
  Description: 'Non Secure HMAC with long key (SHA-224) interface'
  Error importing a key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:634)
  TEST: TFM_NS_CRYPTO_TEST_1024 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1030'
  Description: 'Non Secure AEAD (AES-128-CCM) interface'
  Error importing a key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:757)
  TEST: TFM_NS_CRYPTO_TEST_1030 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1031'
  Description: 'Non Secure AEAD (AES-128-GCM) interface'
  Error importing a key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:757)
  TEST: TFM_NS_CRYPTO_TEST_1031 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1032'
  Description: 'Non Secure key policy interface'
  TEST: TFM_NS_CRYPTO_TEST_1032 - PASSED!
> Executing 'TFM_NS_CRYPTO_TEST_1033'
  Description: 'Non Secure key policy check permissions'
  Failed to import a key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:1018)
  TEST: TFM_NS_CRYPTO_TEST_1033 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1034'
  Description: 'Non Secure persistent key interface'
  Failed to import a key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:1082)
  TEST: TFM_NS_CRYPTO_TEST_1034 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1035'
  Description: 'Non Secure AEAD interface with truncated auth tag (AES-128-CCM-8)'
  Error importing a key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:757)
  TEST: TFM_NS_CRYPTO_TEST_1035 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1036'
  Description: 'Non Secure TLS 1.2 PRF key derivation'
  Failed to import secret (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:1251)
  TEST: TFM_NS_CRYPTO_TEST_1036 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1037'
  Description: 'Non Secure TLS-1.2 PSK-to-MasterSecret key derivation'
  Failed to import secret (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:1251)
  TEST: TFM_NS_CRYPTO_TEST_1037 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1038'
  Description: 'Non Secure HKDF key derivation'
  Failed to import secret (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:1251)
  TEST: TFM_NS_CRYPTO_TEST_1038 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1039'
  Description: 'Non Secure ECDH key agreement'
  Error importing the private key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:1180)
  TEST: TFM_NS_CRYPTO_TEST_1039 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1040'
  Description: 'Non Secure Symmetric encryption (AES-128-OFB) interface'
  Error destroying a key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:350)
  TEST: TFM_NS_CRYPTO_TEST_1040 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1041'
  Description: 'Non Secure Symmetric encryption (AES-128-ECB) interface'
  Error destroying a key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:350)
  TEST: TFM_NS_CRYPTO_TEST_1041 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1042'
  Description: 'Non Secure Asymmetric encryption interface (RSA_OAEP)'
  Error importing a key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:1439)
  TEST: TFM_NS_CRYPTO_TEST_1042 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1043'
  Description: 'Non Secure Asymmetric encryption interface (RSA_PKCS1V15)'
  Error importing a key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:1439)
  TEST: TFM_NS_CRYPTO_TEST_1043 - FAILED!
> Executing 'TFM_NS_CRYPTO_TEST_1044'
  Description: 'Non Secure Sign and verify message interface (ECDSA-SECP256R1-SHA256)'
  Error importing the private key (Failed at lib/ext/tfm_test_repo-src/test/suites/crypto/crypto_tests_common.c:1516)
  TEST: TFM_NS_CRYPTO_TEST_1044 - FAILED!
TESTSUITE FAILED!
Number of failed tests: 31 of 32
Running Test Suite Platform Service Non-Secure interface tests(TFM_NS_PLATFORM_TEST_1XXX)...
> Executing 'TFM_NS_PLATFORM_TEST_1001'
  Description: 'Minimal platform service test'
  Call with invalid request should fail. (Failed at lib/ext/tfm_test_repo-src/test/suites/platform/platform_tests_common.c:22)
  TEST: TFM_NS_PLATFORM_TEST_1001 - FAILED!
TESTSUITE FAILED!
Number of failed tests: 1 of 1
Running Test Suite Initial Attestation Service non-secure interface tests(TFM_NS_ATTEST_TEST_1XXX)...
> Executing 'TFM_NS_ATTEST_TEST_1004'
  Description: 'ECDSA signature test of attest token'
decode_test_normal_sig() returned: -131
  Attest token decode_test_normal_sig() has failed (Failed at lib/ext/tfm_test_repo-src/test/suites/attestation/non_secure/attest_asymmetric_ns_interface_testsuite.c:136)
  TEST: TFM_NS_ATTEST_TEST_1004 - FAILED!
> Executing 'TFM_NS_ATTEST_TEST_1005'
  Description: 'Negative test cases for initial attestation service'
  Attestation should fail with too big challenge object (Failed at lib/ext/tfm_test_repo-src/test/suites/attestation/non_secure/attest_asymmetric_ns_interface_testsuite.c:165)
  TEST: TFM_NS_ATTEST_TEST_1005 - FAILED!
TESTSUITE FAILED!
Number of failed tests: 2 of 2
Running Test Suite QCBOR regression test(TFM_NS_QCBOR_TEST_1XXX)...
> Executing 'TFM_NS_QCBOR_TEST_1001'
  Description: 'Regression test of QCBOR library'
  TEST: TFM_NS_QCBOR_TEST_1001 - PASSED!
TESTSUITE PASSED!
Running Test Suite T_COSE regression test(TFM_NS_T_COSE_TEST_1XXX)...
> Executing 'TFM_NS_T_COSE_TEST_1001'
  Description: 'Regression test of t_cose library'
  TEST: TFM_NS_T_COSE_TEST_1001 - PASSED!
TESTSUITE PASSED!
Running Test Suite Core non-secure positive tests (TFM_NS_CORE_TEST_1XXX)...
> Executing 'TFM_NS_CORE_TEST_1001'
  Description: 'Test service request from NS thread mode'
  Secure function call from thread mode should be successful (Failed at lib/ext/tfm_test_repo-src/test/suites/core/non_secure/core_ns_positive_testsuite.c:123)
  TEST: TFM_NS_CORE_TEST_1001 - FAILED!
> Executing 'TFM_NS_CORE_TEST_1003'
  Description: 'Test the success of service init'
  Failed to initialise test service. (Failed at lib/ext/tfm_test_repo-src/test/suites/core/non_secure/core_ns_positive_testsuite.c:399)
  TEST: TFM_NS_CORE_TEST_1003 - FAILED!
> Executing 'TFM_NS_CORE_TEST_1007'
  Description: 'Test secure service buffer accesses'
  Call to secure service should be successful. (Failed at lib/ext/tfm_test_repo-src/test/suites/core/non_secure/core_ns_positive_testsuite.c:442)
  TEST: TFM_NS_CORE_TEST_1007 - FAILED!
> Executing 'TFM_NS_CORE_TEST_1008'
  Description: 'Test secure service to service call'
  The internal service call failed. (Failed at lib/ext/tfm_test_repo-src/test/suites/core/non_secure/core_ns_positive_testsuite.c:483)
  TEST: TFM_NS_CORE_TEST_1008 - FAILED!
> Executing 'TFM_NS_CORE_TEST_1010'
  Description: 'Test secure service to service call with buffer handling'
  Secure service returned error. (Failed at lib/ext/tfm_test_repo-src/test/suites/core/non_secure/core_ns_positive_testsuite.c:540)
  TEST: TFM_NS_CORE_TEST_1010 - FAILED!
> Executing 'TFM_NS_CORE_TEST_1014'
  Description: 'Test service parameter sanitization'
  iovec sanitization failed on empty vectors. (Failed at lib/ext/tfm_test_repo-src/test/suites/core/non_secure/core_ns_positive_testsuite.c:183)
  TEST: TFM_NS_CORE_TEST_1014 - FAILED!
> Executing 'TFM_NS_CORE_TEST_1015'
  Description: 'Test outvec write'
  call to secure function should be successful (Failed at lib/ext/tfm_test_repo-src/test/suites/core/non_secure/core_ns_positive_testsuite.c:340)
  TEST: TFM_NS_CORE_TEST_1015 - FAILED!
TESTSUITE FAILED!
Number of failed tests: 7 of 7
Running Test Suite IPC non-secure interface test (TFM_NS_IPC_TEST_1XXX)...
> Executing 'TFM_NS_IPC_TEST_1001'
  Description: 'Get PSA framework version'
The version of the PSA Framework API is 257.
  TEST: TFM_NS_IPC_TEST_1001 - PASSED!
> Executing 'TFM_NS_IPC_TEST_1002'
  Description: 'Get version of an RoT Service'
The service version is 1.
  TEST: TFM_NS_IPC_TEST_1002 - PASSED!
> Executing 'TFM_NS_IPC_TEST_1003'
  Description: 'Connect to an RoT Service'
  The RoT Service has refused the connection!
 (Failed at lib/ext/tfm_test_repo-src/test/suites/ipc/non_secure/ipc_ns_interface_testsuite.c:138)
  TEST: TFM_NS_IPC_TEST_1003 - FAILED!
> Executing 'TFM_NS_IPC_TEST_1004'
  Description: 'Call an RoT Service'
TFM service support version is 1.
  psa_call is failed!
 (Failed at lib/ext/tfm_test_repo-src/test/suites/ipc/non_secure/ipc_ns_interface_testsuite.c:169)
  TEST: TFM_NS_IPC_TEST_1004 - FAILED!
> Executing 'TFM_NS_IPC_TEST_1005'
  Description: 'Call IPC_INIT_BASIC_TEST service'
The RoT Service has refused the connection!
  TEST: TFM_NS_IPC_TEST_1005 - FAILED!
> Executing 'TFM_NS_IPC_TEST_1006'
  Description: 'Call PSA RoT access APP RoT memory test service'
The RoT Service has refused the connection!
  TEST: TFM_NS_IPC_TEST_1006 - FAILED!
> Executing 'TFM_NS_IPC_TEST_1010'
  Description: 'Test psa_call with the status of PSA_ERROR_PROGRAMMER_ERROR'
The RoT Service has refused the connection!
  TEST: TFM_NS_IPC_TEST_1010 - FAILED!
> Executing 'TFM_NS_IPC_TEST_1012'
  Description: 'Accessing stateless service from non-secure client'
  Calling a stateless service test fail.
 (Failed at lib/ext/tfm_test_repo-src/test/suites/ipc/non_secure/ipc_ns_interface_testsuite.c:435)
  TEST: TFM_NS_IPC_TEST_1012 - FAILED!
TESTSUITE FAILED!
Number of failed tests: 6 of 8

*** Non-secure test suites summary ***
Test suite 'PSA protected storage NS interface tests (TFM_NS_PS_TEST_1XXX)' has FAILED
Test suite 'PSA internal trusted storage NS interface tests (TFM_NS_ITS_TEST_1XXX)' has FAILED
Test suite 'Crypto non-secure interface test (TFM_NS_CRYPTO_TEST_1XXX)' has FAILED
Test suite 'Platform Service Non-Secure interface tests(TFM_NS_PLATFORM_TEST_1XXX)' has FAILED
Test suite 'Initial Attestation Service non-secure interface tests(TFM_NS_ATTEST_TEST_1XXX)' has FAILED
Test suite 'QCBOR regression test(TFM_NS_QCBOR_TEST_1XXX)' has PASSED
Test suite 'T_COSE regression test(TFM_NS_T_COSE_TEST_1XXX)' has PASSED
Test suite 'Core non-secure positive tests (TFM_NS_CORE_TEST_1XXX)' has FAILED
Test suite 'IPC non-secure interface test (TFM_NS_IPC_TEST_1XXX)' has FAILED

*** End of Non-secure test suites ***
---



Thomas

Den 2021-11-03 kl. 09:43, skrev Ken Liu via TF-M:

It might be caused by the panic. Put a breakpoint in ‘tfm_platform_hal_system_reset’ should get stopped and know the reason.

 

/Ken

 

From: TF-M <tf-m-bounces@lists.trustedfirmware.org> On Behalf Of Thomas Törnblom via TF-M
Sent: Wednesday, November 3, 2021 4:09 PM
To: tf-m@lists.trustedfirmware.org
Subject: Re: [TF-M] lpcxpresso55s69 builds broken

 

While this allows building TF-M, it crashes and loops in the boot.

I have not figured out what causes this.

/Thomas

Den 2021-11-02 kl. 05:53, skrev Ken Liu via TF-M:

Sorry, the merged one should be part of group patches but merged individually.

 

We are removing the dependency on VTOR for initial MSP retrieving, here is the followed one:

https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/12228

 

/Ken

 

From: TF-M <tf-m-bounces@lists.trustedfirmware.org> On Behalf Of Thomas Törnblom via TF-M
Sent: Monday, November 1, 2021 11:37 PM
To: tf-m@lists.trustedfirmware.org
Subject: Re: [TF-M] lpcxpresso55s69 builds broken

 

Apparently caused by:

68b14d40 SPM : Arch : Refine common arch code

Den 2021-11-01 kl. 15:33, skrev Thomas Törnblom:

More breakage:

In file included from ../secure_fw/spm/include/tfm_arch.h:19,
                 from ../secure_fw/spm/cmsis_psa/spm_ipc.h:13,
                 from ../secure_fw/partitions/idle_partition/load_info_idle_sp.c:10:
../secure_fw/spm/include/tfm_arch_v8m.h:58:2: error: #error "VTOR not present, check configurations."
   58 | #error "VTOR not present, check configurations."
      |  ^~~~~
ninja: build stopped: subcommand failed.

Same issue with IAR.

/Thomas

--

Thomas Törnblom, Product Engineer
IAR Systems AB
Box 23051, Strandbodgatan 1
SE-750 23 Uppsala, SWEDEN
Mobile: +46 76 180 17 80 Fax: +46 18 16 78 01
E-mail:
thomas.tornblom@iar.com Website: www.iar.com
Twitter:
www.twitter.com/iarsystems

 

--

Thomas Törnblom, Product Engineer
IAR Systems AB
Box 23051, Strandbodgatan 1
SE-750 23 Uppsala, SWEDEN
Mobile: +46 76 180 17 80 Fax: +46 18 16 78 01
E-mail:
thomas.tornblom@iar.com Website: www.iar.com
Twitter:
www.twitter.com/iarsystems





 

--

Thomas Törnblom, Product Engineer
IAR Systems AB
Box 23051, Strandbodgatan 1
SE-750 23 Uppsala, SWEDEN
Mobile: +46 76 180 17 80 Fax: +46 18 16 78 01
E-mail:
thomas.tornblom@iar.com Website: www.iar.com
Twitter:
www.twitter.com/iarsystems




 

--

Thomas Törnblom, Product Engineer
IAR Systems AB
Box 23051, Strandbodgatan 1
SE-750 23 Uppsala, SWEDEN
Mobile: +46 76 180 17 80 Fax: +46 18 16 78 01
E-mail:
thomas.tornblom@iar.com Website: www.iar.com
Twitter:
www.twitter.com/iarsystems

 

--

Thomas Törnblom, Product Engineer
IAR Systems AB
Box 23051, Strandbodgatan 1
SE-750 23 Uppsala, SWEDEN
Mobile: +46 76 180 17 80 Fax: +46 18 16 78 01
E-mail:
thomas.tornblom@iar.com Website: www.iar.com
Twitter:
www.twitter.com/iarsystems