-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KRKNWK-18440] Signed-off-by: Krzysztof Taborowski <[email protected]> config: move mfg configs to kconfig [KRKNWK-18440] Signed-off-by: Krzysztof Taborowski <[email protected]> pal: fix mfg module for sample tbd Signed-off-by: Krzysztof Taborowski <[email protected]> pal: fix dut build tbd Signed-off-by: Krzysztof Taborowski <[email protected]> tlv: fix flash write add test to parser Signed-off-by: Robert Gałat <[email protected]> mfg: fix on_dev_cert on_dev_cert use tlv to store mfg Signed-off-by: Robert Gałat <[email protected]> pal: add description review Signed-off-by: Krzysztof Taborowski <[email protected]> pal: fix minor name issues review Signed-off-by: Krzysztof Taborowski <[email protected]> pal: fix version check in mfg fix condition Signed-off-by: Krzysztof Taborowski <[email protected]> tests: fix partition manager issues in tests rerevert - to be squashed Signed-off-by: Krzysztof Taborowski <[email protected]> tests: fix pal validation tests psa storage isn't properly initlized in this test so it will fail on deinitlizaing Signed-off-by: Krzysztof Taborowski <[email protected]> mfg: review mfg_storage finding fix fix findings Signed-off-by: Robert Gałat <[email protected]> samples: add test config with no secure key storage [KRKNWK-19108] Signed-off-by: Krzysztof Taborowski <[email protected]> pal: fix version check fix typo Signed-off-by: Krzysztof Taborowski <[email protected]> pal: refactor mfg version get review Signed-off-by: Krzysztof Taborowski <[email protected]>
- Loading branch information
1 parent
2aed5b4
commit e772e20
Showing
46 changed files
with
2,757 additions
and
771 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
#include <tlv/tlv.h> | ||
#include <sid_pal_mfg_store_ifc.h> | ||
|
||
#define MFG_FLAGS_TYPE_ID SID_PAL_MFG_STORE_VALUE_MAX - 1 | ||
struct mfg_flags { | ||
uint8_t unused_bits : 6; | ||
uint8_t keys_in_psa : 1; | ||
uint8_t initialized : 1; | ||
uint8_t unused[3]; | ||
}; | ||
|
||
#define MFG_HEADER_MAGIC "SID0" | ||
#define MFG_HEADER_MAGIC_SIZE sizeof(MFG_HEADER_MAGIC) - 1 | ||
#define REPORTED_VERSION SID_PAL_MFG_STORE_TLV_VERSION | ||
|
||
#define INVALID_VERSION 0xFFFFFFFF | ||
struct mfg_header { | ||
uint8_t magic_string[MFG_HEADER_MAGIC_SIZE]; | ||
uint8_t raw_version[SID_PAL_MFG_STORE_VERSION_SIZE]; | ||
}; | ||
|
||
/** | ||
* @brief Parse content of the manufacturing partition v8, and write it as tlv. | ||
* The TLV will replace raw manufacturing partition | ||
* | ||
* @param tlv [IN/OUT] configuration for tlv | ||
* @return int 0 on success, -ERRNO on error | ||
*/ | ||
int parse_mfg_raw_tlv(tlv_ctx *tlv); | ||
|
||
/** | ||
* @brief Parse content of the manufacturing partition v7, and write it as tlv. | ||
* The TLV will replace raw manufacturing partition | ||
* | ||
* @param tlv [IN/OUT] configuration for tlv | ||
* @return int 0 on success, -ERRNO on error | ||
*/ | ||
int parse_mfg_const_offsets(tlv_ctx *tlv); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.