|
35 | 35 |
|
36 | 36 | extern const uint8_t ESP32_bootloader_bin[]; |
37 | 37 | extern const uint32_t ESP32_bootloader_bin_size; |
| 38 | +extern const uint8_t ESP32_bootloader_bin_md5[]; |
38 | 39 | extern const uint8_t ESP32_hello_world_bin[]; |
39 | 40 | extern const uint32_t ESP32_hello_world_bin_size; |
| 41 | +extern const uint8_t ESP32_hello_world_bin_md5[]; |
40 | 42 | extern const uint8_t ESP32_partition_table_bin[]; |
41 | 43 | extern const uint32_t ESP32_partition_table_bin_size; |
| 44 | +extern const uint8_t ESP32_partition_table_bin_md5[]; |
42 | 45 |
|
43 | 46 | extern const uint8_t ESP32_S2_bootloader_bin[]; |
44 | 47 | extern const uint32_t ESP32_S2_bootloader_bin_size; |
| 48 | +extern const uint8_t ESP32_S2_bootloader_bin_md5[]; |
45 | 49 | extern const uint8_t ESP32_S2_hello_world_bin[]; |
46 | 50 | extern const uint32_t ESP32_S2_hello_world_bin_size; |
| 51 | +extern const uint8_t ESP32_S2_hello_world_bin_md5[]; |
47 | 52 | extern const uint8_t ESP32_S2_partition_table_bin[]; |
48 | 53 | extern const uint32_t ESP32_S2_partition_table_bin_size; |
| 54 | +extern const uint8_t ESP32_S2_partition_table_bin_md5[]; |
49 | 55 |
|
50 | 56 | extern const uint8_t ESP32_S3_bootloader_bin[]; |
51 | 57 | extern const uint32_t ESP32_S3_bootloader_bin_size; |
| 58 | +extern const uint8_t ESP32_S3_bootloader_bin_md5[]; |
52 | 59 | extern const uint8_t ESP32_S3_hello_world_bin[]; |
53 | 60 | extern const uint32_t ESP32_S3_hello_world_bin_size; |
| 61 | +extern const uint8_t ESP32_S3_hello_world_bin_md5[]; |
54 | 62 | extern const uint8_t ESP32_S3_partition_table_bin[]; |
55 | 63 | extern const uint32_t ESP32_S3_partition_table_bin_size; |
| 64 | +extern const uint8_t ESP32_S3_partition_table_bin_md5[]; |
56 | 65 |
|
57 | 66 |
|
58 | 67 |
|
59 | 68 | extern const uint8_t ESP8266_bootloader_bin[]; |
60 | 69 | extern const uint32_t ESP8266_bootloader_bin_size; |
| 70 | +extern const uint8_t ESP8266_bootloader_bin_md5[]; |
61 | 71 | extern const uint8_t ESP8266_hello_world_bin[]; |
62 | 72 | extern const uint32_t ESP8266_hello_world_bin_size; |
| 73 | +extern const uint8_t ESP8266_hello_world_bin_md5[]; |
63 | 74 | extern const uint8_t ESP8266_partition_table_bin[]; |
64 | 75 | extern const uint32_t ESP8266_partition_table_bin_size; |
| 76 | +extern const uint8_t ESP8266_partition_table_bin_md5[]; |
65 | 77 |
|
66 | 78 | extern const uint8_t ESP32_H4_bootloader_bin[]; |
67 | 79 | extern const uint32_t ESP32_H4_bootloader_bin_size; |
| 80 | +extern const uint8_t ESP32_H4_bootloader_bin_md5[]; |
68 | 81 | extern const uint8_t ESP32_H4_hello_world_bin[]; |
69 | 82 | extern const uint32_t ESP32_H4_hello_world_bin_size; |
| 83 | +extern const uint8_t ESP32_H4_hello_world_bin_md5[]; |
70 | 84 | extern const uint8_t ESP32_H4_partition_table_bin[]; |
71 | 85 | extern const uint32_t ESP32_H4_partition_table_bin_size; |
| 86 | +extern const uint8_t ESP32_H4_partition_table_bin_md5[]; |
72 | 87 |
|
73 | 88 | extern const uint8_t ESP32_H2_bootloader_bin[]; |
74 | 89 | extern const uint32_t ESP32_H2_bootloader_bin_size; |
| 90 | +extern const uint8_t ESP32_H2_bootloader_bin_md5[]; |
75 | 91 | extern const uint8_t ESP32_H2_hello_world_bin[]; |
76 | 92 | extern const uint32_t ESP32_H2_hello_world_bin_size; |
| 93 | +extern const uint8_t ESP32_H2_hello_world_bin_md5[]; |
77 | 94 | extern const uint8_t ESP32_H2_partition_table_bin[]; |
78 | 95 | extern const uint32_t ESP32_H2_partition_table_bin_size; |
| 96 | +extern const uint8_t ESP32_H2_partition_table_bin_md5[]; |
79 | 97 |
|
80 | 98 | extern const uint8_t ESP32_C2_bootloader_bin[]; |
81 | 99 | extern const uint32_t ESP32_C2_bootloader_bin_size; |
| 100 | +extern const uint8_t ESP32_C2_bootloader_bin_md5[]; |
82 | 101 | extern const uint8_t ESP32_C2_hello_world_bin[]; |
83 | 102 | extern const uint32_t ESP32_C2_hello_world_bin_size; |
| 103 | +extern const uint8_t ESP32_C2_hello_world_bin_md5[]; |
84 | 104 | extern const uint8_t ESP32_C2_partition_table_bin[]; |
85 | 105 | extern const uint32_t ESP32_C2_partition_table_bin_size; |
| 106 | +extern const uint8_t ESP32_C2_partition_table_bin_md5[]; |
86 | 107 |
|
87 | 108 | extern const uint8_t ESP32_C3_bootloader_bin[]; |
88 | 109 | extern const uint32_t ESP32_C3_bootloader_bin_size; |
| 110 | +extern const uint8_t ESP32_C3_bootloader_bin_md5[]; |
89 | 111 | extern const uint8_t ESP32_C3_hello_world_bin[]; |
90 | 112 | extern const uint32_t ESP32_C3_hello_world_bin_size; |
| 113 | +extern const uint8_t ESP32_C3_hello_world_bin_md5[]; |
91 | 114 | extern const uint8_t ESP32_C3_partition_table_bin[]; |
92 | 115 | extern const uint32_t ESP32_C3_partition_table_bin_size; |
| 116 | +extern const uint8_t ESP32_C3_partition_table_bin_md5[]; |
93 | 117 |
|
94 | 118 | extern const uint8_t ESP32_C6_bootloader_bin[]; |
95 | 119 | extern const uint32_t ESP32_C6_bootloader_bin_size; |
| 120 | +extern const uint8_t ESP32_C6_bootloader_bin_md5[]; |
96 | 121 | extern const uint8_t ESP32_C6_hello_world_bin[]; |
97 | 122 | extern const uint32_t ESP32_C6_hello_world_bin_size; |
| 123 | +extern const uint8_t ESP32_C6_hello_world_bin_md5[]; |
98 | 124 | extern const uint8_t ESP32_C6_partition_table_bin[]; |
99 | 125 | extern const uint32_t ESP32_C6_partition_table_bin_size; |
| 126 | +extern const uint8_t ESP32_C6_partition_table_bin_md5[]; |
100 | 127 |
|
101 | 128 | void get_example_binaries(target_chip_t target, example_binaries_t *bins) |
102 | 129 | { |
103 | 130 | if (target == ESP8266_CHIP) { |
104 | 131 | bins->boot.data = ESP8266_bootloader_bin; |
105 | 132 | bins->boot.size = ESP8266_bootloader_bin_size; |
| 133 | + bins->boot.md5 = ESP8266_bootloader_bin_md5; |
106 | 134 | bins->boot.addr = BOOTLOADER_ADDRESS_V0; |
107 | 135 | bins->part.data = ESP8266_partition_table_bin; |
108 | 136 | bins->part.size = ESP8266_partition_table_bin_size; |
| 137 | + bins->part.md5 = ESP8266_partition_table_bin_md5; |
109 | 138 | bins->part.addr = PARTITION_ADDRESS; |
110 | 139 | bins->app.data = ESP8266_hello_world_bin; |
111 | 140 | bins->app.size = ESP8266_hello_world_bin_size; |
| 141 | + bins->app.md5 = ESP8266_hello_world_bin_md5; |
112 | 142 | bins->app.addr = APPLICATION_ADDRESS; |
113 | 143 | } else if (target == ESP32_CHIP) { |
114 | 144 | bins->boot.data = ESP32_bootloader_bin; |
115 | 145 | bins->boot.size = ESP32_bootloader_bin_size; |
| 146 | + bins->boot.md5 = ESP32_bootloader_bin_md5; |
116 | 147 | bins->boot.addr = BOOTLOADER_ADDRESS_V0; |
117 | 148 | bins->part.data = ESP32_partition_table_bin; |
118 | 149 | bins->part.size = ESP32_partition_table_bin_size; |
| 150 | + bins->part.md5 = ESP32_partition_table_bin_md5; |
119 | 151 | bins->part.addr = PARTITION_ADDRESS; |
120 | 152 | bins->app.data = ESP32_hello_world_bin; |
121 | 153 | bins->app.size = ESP32_hello_world_bin_size; |
| 154 | + bins->app.md5 = ESP32_hello_world_bin_md5; |
122 | 155 | bins->app.addr = APPLICATION_ADDRESS; |
123 | 156 | } else if (target == ESP32S2_CHIP) { |
124 | 157 | bins->boot.data = ESP32_S2_bootloader_bin; |
125 | 158 | bins->boot.size = ESP32_S2_bootloader_bin_size; |
| 159 | + bins->boot.md5 = ESP32_S2_bootloader_bin_md5; |
126 | 160 | bins->boot.addr = BOOTLOADER_ADDRESS_V0; |
127 | 161 | bins->part.data = ESP32_S2_partition_table_bin; |
128 | 162 | bins->part.size = ESP32_S2_partition_table_bin_size; |
| 163 | + bins->part.md5 = ESP32_S2_partition_table_bin_md5; |
129 | 164 | bins->part.addr = PARTITION_ADDRESS; |
130 | 165 | bins->app.data = ESP32_S2_hello_world_bin; |
131 | 166 | bins->app.size = ESP32_S2_hello_world_bin_size; |
| 167 | + bins->app.md5 = ESP32_S2_hello_world_bin_md5; |
132 | 168 | bins->app.addr = APPLICATION_ADDRESS; |
133 | 169 | } else if (target == ESP32H2_CHIP) { |
134 | 170 | bins->boot.data = ESP32_H2_bootloader_bin; |
135 | 171 | bins->boot.size = ESP32_H2_bootloader_bin_size; |
| 172 | + bins->boot.md5 = ESP32_H2_bootloader_bin_md5; |
136 | 173 | bins->boot.addr = BOOTLOADER_ADDRESS_V1; |
137 | 174 | bins->part.data = ESP32_H2_partition_table_bin; |
138 | 175 | bins->part.size = ESP32_H2_partition_table_bin_size; |
| 176 | + bins->part.md5 = ESP32_H2_partition_table_bin_md5; |
139 | 177 | bins->part.addr = PARTITION_ADDRESS; |
140 | 178 | bins->app.data = ESP32_H2_hello_world_bin; |
141 | 179 | bins->app.size = ESP32_H2_hello_world_bin_size; |
| 180 | + bins->app.md5 = ESP32_H2_hello_world_bin_md5; |
142 | 181 | bins->app.addr = APPLICATION_ADDRESS; |
143 | 182 | } else if (target == ESP32C2_CHIP) { |
144 | 183 | bins->boot.data = ESP32_C2_bootloader_bin; |
145 | 184 | bins->boot.size = ESP32_C2_bootloader_bin_size; |
| 185 | + bins->boot.md5 = ESP32_C2_bootloader_bin_md5; |
146 | 186 | bins->boot.addr = BOOTLOADER_ADDRESS_V1; |
147 | 187 | bins->part.data = ESP32_C2_partition_table_bin; |
148 | 188 | bins->part.size = ESP32_C2_partition_table_bin_size; |
| 189 | + bins->part.md5 = ESP32_C2_partition_table_bin_md5; |
149 | 190 | bins->part.addr = PARTITION_ADDRESS; |
150 | 191 | bins->app.data = ESP32_C2_hello_world_bin; |
151 | 192 | bins->app.size = ESP32_C2_hello_world_bin_size; |
| 193 | + bins->app.md5 = ESP32_C2_hello_world_bin_md5; |
152 | 194 | bins->app.addr = APPLICATION_ADDRESS; |
153 | 195 | } else if (target == ESP32C3_CHIP) { |
154 | 196 | bins->boot.data = ESP32_C3_bootloader_bin; |
155 | 197 | bins->boot.size = ESP32_C3_bootloader_bin_size; |
| 198 | + bins->boot.md5 = ESP32_C3_bootloader_bin_md5; |
156 | 199 | bins->boot.addr = BOOTLOADER_ADDRESS_V1; |
157 | 200 | bins->part.data = ESP32_C3_partition_table_bin; |
158 | 201 | bins->part.size = ESP32_C3_partition_table_bin_size; |
| 202 | + bins->part.md5 = ESP32_C3_partition_table_bin_md5; |
159 | 203 | bins->part.addr = PARTITION_ADDRESS; |
160 | 204 | bins->app.data = ESP32_C3_hello_world_bin; |
161 | 205 | bins->app.size = ESP32_C3_hello_world_bin_size; |
| 206 | + bins->app.md5 = ESP32_C3_hello_world_bin_md5; |
162 | 207 | bins->app.addr = APPLICATION_ADDRESS; |
163 | 208 | } else if (target == ESP32C6_CHIP) { |
164 | 209 | bins->boot.data = ESP32_C6_bootloader_bin; |
165 | 210 | bins->boot.size = ESP32_C6_bootloader_bin_size; |
| 211 | + bins->boot.md5 = ESP32_C6_bootloader_bin_md5; |
166 | 212 | bins->boot.addr = BOOTLOADER_ADDRESS_V1; |
167 | 213 | bins->part.data = ESP32_C6_partition_table_bin; |
168 | 214 | bins->part.size = ESP32_C6_partition_table_bin_size; |
| 215 | + bins->part.md5 = ESP32_C6_partition_table_bin_md5; |
169 | 216 | bins->part.addr = PARTITION_ADDRESS; |
170 | 217 | bins->app.data = ESP32_C6_hello_world_bin; |
171 | 218 | bins->app.size = ESP32_C6_hello_world_bin_size; |
| 219 | + bins->app.md5 = ESP32_C6_hello_world_bin_md5; |
172 | 220 | bins->app.addr = APPLICATION_ADDRESS; |
173 | | - |
174 | 221 | } else if (target == ESP32S3_CHIP) { |
175 | 222 | bins->boot.data = ESP32_S3_bootloader_bin; |
176 | 223 | bins->boot.size = ESP32_S3_bootloader_bin_size; |
| 224 | + bins->boot.md5 = ESP32_S3_bootloader_bin_md5; |
177 | 225 | bins->boot.addr = BOOTLOADER_ADDRESS_V1; |
178 | 226 | bins->part.data = ESP32_S3_partition_table_bin; |
179 | 227 | bins->part.size = ESP32_S3_partition_table_bin_size; |
| 228 | + bins->part.md5 = ESP32_S3_partition_table_bin_md5; |
180 | 229 | bins->part.addr = PARTITION_ADDRESS; |
181 | 230 | bins->app.data = ESP32_S3_hello_world_bin; |
182 | 231 | bins->app.size = ESP32_S3_hello_world_bin_size; |
| 232 | + bins->app.md5 = ESP32_S3_hello_world_bin_md5; |
183 | 233 | bins->app.addr = APPLICATION_ADDRESS; |
184 | 234 | } else { |
185 | 235 | abort(); |
|
0 commit comments