]>
Commit | Line | Data |
---|---|---|
56f243dc SG |
1 | // SPDX-License-Identifier: GPL-2.0+ |
2 | /* | |
3 | * Devicetree for capsule generation through binman | |
4 | */ | |
5 | ||
6 | /dts-v1/; | |
7 | ||
8 | #include <sandbox_efi_capsule.h> | |
9 | ||
10 | / { | |
11 | binman: binman { | |
12 | multiple-images; | |
13 | }; | |
14 | }; | |
15 | ||
16 | &binman { | |
17 | itb { | |
18 | filename = UBOOT_FIT_IMAGE; | |
19 | ||
20 | fit { | |
21 | description = "Automatic U-Boot environment update"; | |
22 | #address-cells = <2>; | |
23 | ||
24 | images { | |
25 | u-boot-bin { | |
26 | description = "U-Boot binary on SPI Flash"; | |
27 | compression = "none"; | |
28 | type = "firmware"; | |
29 | arch = "sandbox"; | |
30 | load = <0>; | |
31 | text { | |
32 | text = "u-boot:New"; | |
33 | }; | |
34 | ||
35 | hash-1 { | |
36 | algo = "sha1"; | |
37 | }; | |
38 | }; | |
39 | u-boot-env { | |
40 | description = "U-Boot environment on SPI Flash"; | |
41 | compression = "none"; | |
42 | type = "firmware"; | |
43 | arch = "sandbox"; | |
44 | load = <0>; | |
45 | text { | |
46 | text = "u-boot-env:New"; | |
47 | }; | |
48 | ||
49 | hash-1 { | |
50 | algo = "sha1"; | |
51 | }; | |
52 | }; | |
53 | }; | |
54 | }; | |
55 | }; | |
56 | ||
57 | capsule1 { | |
56f243dc SG |
58 | filename = "Test04"; |
59 | efi-capsule { | |
60 | image-index = <0x1>; | |
61 | image-guid = SANDBOX_FIT_IMAGE_GUID; | |
62 | ||
63 | blob { | |
64 | filename = UBOOT_FIT_IMAGE; | |
65 | }; | |
66 | }; | |
67 | }; | |
68 | ||
d350b79e | 69 | capsule2 { |
56f243dc SG |
70 | filename = "Test05"; |
71 | efi-capsule { | |
72 | image-index = <0x1>; | |
73 | image-guid = SANDBOX_INCORRECT_GUID; | |
74 | ||
75 | blob { | |
76 | filename = UBOOT_FIT_IMAGE; | |
77 | }; | |
78 | }; | |
79 | }; | |
80 | ||
d350b79e | 81 | capsule3 { |
56f243dc SG |
82 | filename = "Test104"; |
83 | efi-capsule { | |
84 | image-index = <0x1>; | |
85 | fw-version = <0x5>; | |
86 | image-guid = SANDBOX_FIT_IMAGE_GUID; | |
87 | ||
88 | blob { | |
89 | filename = UBOOT_FIT_IMAGE; | |
90 | }; | |
91 | }; | |
92 | }; | |
93 | ||
d350b79e | 94 | capsule4 { |
56f243dc SG |
95 | filename = "Test105"; |
96 | efi-capsule { | |
97 | image-index = <0x1>; | |
98 | fw-version = <0x2>; | |
99 | image-guid = SANDBOX_FIT_IMAGE_GUID; | |
100 | ||
101 | blob { | |
102 | filename = UBOOT_FIT_IMAGE; | |
103 | }; | |
104 | }; | |
105 | }; | |
106 | ||
d350b79e | 107 | capsule5 { |
56f243dc SG |
108 | filename = "Test13"; |
109 | efi-capsule { | |
110 | image-index = <0x1>; | |
111 | image-guid = SANDBOX_FIT_IMAGE_GUID; | |
112 | private-key = CAPSULE_PRIV_KEY; | |
113 | public-key-cert = CAPSULE_PUB_KEY; | |
114 | monotonic-count = <0x1>; | |
115 | ||
116 | blob { | |
117 | filename = UBOOT_FIT_IMAGE; | |
118 | }; | |
119 | }; | |
120 | }; | |
121 | ||
d350b79e | 122 | capsule6 { |
56f243dc SG |
123 | filename = "Test14"; |
124 | efi-capsule { | |
125 | image-index = <0x1>; | |
126 | image-guid = SANDBOX_FIT_IMAGE_GUID; | |
127 | private-key = CAPSULE_INVAL_KEY; | |
128 | public-key-cert = CAPSULE_INVAL_PUB_KEY; | |
129 | monotonic-count = <0x1>; | |
130 | ||
131 | blob { | |
132 | filename = UBOOT_FIT_IMAGE; | |
133 | }; | |
134 | }; | |
135 | }; | |
136 | ||
d350b79e | 137 | capsule7 { |
56f243dc SG |
138 | filename = "Test114"; |
139 | efi-capsule { | |
140 | image-index = <0x1>; | |
141 | fw-version = <0x5>; | |
142 | image-guid = SANDBOX_FIT_IMAGE_GUID; | |
143 | private-key = CAPSULE_PRIV_KEY; | |
144 | public-key-cert = CAPSULE_PUB_KEY; | |
145 | monotonic-count = <0x1>; | |
146 | ||
147 | blob { | |
148 | filename = UBOOT_FIT_IMAGE; | |
149 | }; | |
150 | }; | |
151 | }; | |
152 | ||
d350b79e | 153 | capsule8 { |
56f243dc SG |
154 | filename = "Test115"; |
155 | efi-capsule { | |
156 | image-index = <0x1>; | |
157 | fw-version = <0x2>; | |
158 | image-guid = SANDBOX_FIT_IMAGE_GUID; | |
159 | private-key = CAPSULE_PRIV_KEY; | |
160 | public-key-cert = CAPSULE_PUB_KEY; | |
161 | monotonic-count = <0x1>; | |
162 | ||
163 | blob { | |
164 | filename = UBOOT_FIT_IMAGE; | |
165 | }; | |
166 | }; | |
167 | }; | |
168 | }; |