Closed hugueskamba closed 3 years ago
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. Internal Jira reference: https://jira.arm.com/browse/IOTOSM-3387
cc @ARMmbed/team-cypress
We are currently implementing new CI for testing CMake-based builds. I recall we had to do something in CI to make this file present.
@jamesbeyond How did we get this target building in our other CI before?
We are currently implementing new CI for testing CMake-based builds. I recall we had to do something in CI to make this file present.
@jamesbeyond How did we get this target building in our other CI before?
Build tool complains file is missing, it is because unlike other mbed targets, some cypress targets will require some extra steps to generate the policy and key files before it start builds, the required steps are:
The required targets are:
I see two options that'd help this UX:
@jamesbeyond I did:
cd targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT064B0S2_4343W/
cysecuretools -t cy8ckit-064b0s2-4343w init
cysecuretools -t cy8ckit-064b0s2-4343w create-keys
Here are the policy files generated:
user at HOST in /path/to/mbed-os/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT064B0S2_4343W on master [!]
$ l policy/
total 64
drwxr-xr-x 6 user 1399503260 192B 23 Feb 18:10 .
drwxr-xr-x 15 user 1399503260 480B 23 Feb 18:11 ..
-rw-r--r-- 1 user 1399503260 5.4K 23 Feb 18:10 policy_multi_CM0_CM4_smif_swap.json
-rw-r--r-- 1 user 1399503260 5.4K 23 Feb 18:10 policy_multi_CM0_CM4_swap.json
-rw-r--r-- 1 user 1399503260 5.2K 23 Feb 18:10 policy_single_CM0_CM4_smif_swap.json
-rw-r--r-- 1 user 1399503260 5.2K 23 Feb 18:10 policy_single_CM0_CM4_swap.json
The file policy_single_CM0_CM4.json
is still missing
@hugueskamba, what version of cysecuretools are you running when using those commands? Thanks, Ian
@hugueskamba, please install cysecuretools 2.1.0 e.g. pip install cysecuretools==2.1.0
@hugueskamba, what version of cysecuretools are you running when using those commands? Thanks, Ian
Hi, This is the version I am currently running:
$ cysecuretools version
Package:
CySecureTools: 3.0.0
CyBootloader:
PSoC64 1M: 2.0.0.3257
PSoC64 2M: 2.0.0.3345
PSoC64 512K: 2.0.0.3257
@hugueskamba, please install cysecuretools 2.1.0 e.g. pip install cysecuretools==2.1.0
With version 2.1.0
I get the following files:
$ l policy/
-rw-r--r-- 1 user 1399503260 4.9K 23 Feb 21:11 policy_multi_CM0_CM4.json
-rw-r--r-- 1 user 1399503260 4.9K 23 Feb 21:11 policy_multi_CM0_CM4_smif.json
-rw-r--r-- 1 user 1399503260 4.7K 23 Feb 21:11 policy_single_CM0_CM4.json
-rw-r--r-- 1 user 1399503260 4.7K 23 Feb 21:11 policy_single_CM0_CM4_smif.json
Thanks
@jamesbeyond will you be adding the extra steps in the CI to fix the CMake test build failure?
The CI is now configuring the environment correctly to build artefacts for the board.
Description of defect
The
CY8CKIT064B0S2_4343W
Mbed target does not successfully build as the post build operation cannot complete. Signing the image requires a policy file (policy_single_CM0_CM4.json
) which is currently missing from the repository.Target(s) affected by this defect ?
CY8CKIT064B0S2_4343W
Toolchain(s) (name and version) displaying this defect ?
ARM
orGCC_ARM
What version of Mbed-os are you using (tag or sha) ?
mbed-os-6.7.0
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
How is this defect reproduced ?
Run the following command:
mbed compile -t ARM -m CY8CKIT064B0S2_4343W
Result: