test_invalid_undefined_parent.dtsi 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /*
  2. * Copyright (c) 2024, Arm Limited. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. *
  6. * This file provide a malformed CoT DT file that there
  7. * are image/certificate that points to invalid parent
  8. *
  9. */
  10. cot {
  11. manifests {
  12. compatible = "arm, cert-descs";
  13. cca_content_cert: cca_content_cert {
  14. root-certificate;
  15. image-id =<36>;
  16. antirollback-counter = <&cca_nv_ctr>;
  17. hw_config_hash: hw_config_hash {
  18. oid = "1.3.6.1.4.1.4128.2100.203";
  19. };
  20. soc_fw_config_hash: soc_fw_config_hash {
  21. oid = "1.3.6.1.4.1.4128.2100.604";
  22. };
  23. };
  24. plat_key_cert: plat_key_cert {
  25. root-certificate;
  26. image-id = <38>;
  27. signing-key = <&prot_pk>;
  28. antirollback-counter = <&non_trusted_nv_ctr>;
  29. plat_pk: plat_pk {
  30. oid = "1.3.6.1.4.1.4128.2100.1105";
  31. };
  32. };
  33. non_trusted_fw_content_cert: non_trusted_fw_content_cert {
  34. image-id = <NON_TRUSTED_FW_CONTENT_CERT_ID>;
  35. parent = <&wrong_parent>;
  36. signing-key = <&plat_pk>;
  37. antirollback-counter = <&non_trusted_nv_ctr>;
  38. nt_world_bl_hash: nt_world_bl_hash {
  39. oid = "1.3.6.1.4.1.4128.2100.1201";
  40. };
  41. nt_fw_config_hash: nt_fw_config_hash {
  42. oid = "1.3.6.1.4.1.4128.2100.1202";
  43. };
  44. };
  45. };
  46. images {
  47. compatible = "arm, img-descs";
  48. hw_config {
  49. image-id = <23>;
  50. parent = <&cca_content_cert>;
  51. hash = <&hw_config_hash>;
  52. };
  53. soc_fw_config {
  54. image-id = <25>;
  55. parent = <&cca_content_cert>;
  56. hash = <&soc_fw_config_hash>;
  57. };
  58. bl33_image {
  59. image-id = <5>;
  60. parent = <&non_trusted_fw_content_cert>;
  61. hash = <&nt_world_bl_hash>;
  62. };
  63. nt_fw_config {
  64. image-id = <27>;
  65. hash = <&nt_fw_config_hash>;
  66. };
  67. };
  68. };
  69. non_volatile_counters: non_volatile_counters {
  70. compatible = "arm, non-volatile-counter";
  71. #address-cells = <1>;
  72. #size-cells = <0>;
  73. cca_nv_ctr: cca_nv_ctr {
  74. id = <0>;
  75. oid = "1.3.6.1.4.1.4128.2100.3";
  76. };
  77. trusted_nv_ctr: trusted_nv_ctr {
  78. id = <0>;
  79. oid = "1.3.6.1.4.1.4128.2100.1";
  80. };
  81. non_trusted_nv_ctr: non_trusted_nv_ctr {
  82. id = <1>;
  83. oid = "1.3.6.1.4.1.4128.2100.2";
  84. };
  85. };
  86. rot_keys {
  87. swd_rot_pk: swd_rot_pk {
  88. oid = "1.3.6.1.4.1.4128.2100.1103";
  89. };
  90. prot_pk: prot_pk {
  91. oid = "1.3.6.1.4.1.4128.2100.1102";
  92. };
  93. };