Images » Historie » Version 7
Maximilian Seesslen, 18.11.2024 18:42
1 | 1 | Maximilian Seesslen | h1. Images |
---|---|---|---|
2 | |||
3 | Would be nice to have firmware images containing board id which is verified before flashing. |
||
4 | The cmake scripts should produce this. Arena knows the board id. It can be added to the generated cmake file which is included. |
||
5 | Kokon could provide the make target for the image. |
||
6 | |||
7 | * xml file |
||
8 | * base64 encoded binary blob |
||
9 | |||
10 | An image file could contain multiple images. For example canswitch should automatically flash the correct version according to the variant/used controller. |
||
11 | Or even all images of an squeezer run. |
||
12 | 2 | Maximilian Seesslen | |
13 | * Board ID; HW-Variant has different board id because different build; solder variant is in eeprom |
||
14 | 3 | Maximilian Seesslen | |
15 | h2. Multiple files for single node |
||
16 | |||
17 | * Multimedia may be available for external flash. |
||
18 | * Board code |
||
19 | * Firmware version |
||
20 | * Component |
||
21 | ** 0: main |
||
22 | ** 1: external media flash |
||
23 | |||
24 | When flashing node X, it gets an board code, e.g 0x02000001. For this board code, there must be one main file for component 0. But there may be an file for 0x0200FFFF. |
||
25 | 1 | Maximilian Seesslen | |
26 | 5 | Maximilian Seesslen | <pre><code class="xml"> |
27 | 3 | Maximilian Seesslen | <?xml> |
28 | <kokon> |
||
29 | 7 | Maximilian Seesslen | <device articleId="0x0200"> |
30 | 6 | Maximilian Seesslen | <compnent co="0" variant="bringup"> |
31 | 3 | Maximilian Seesslen | <articlecode>0x02000001</articlecode> |
32 | <data></data> |
||
33 | </compnent> |
||
34 | <compnent co="1"> |
||
35 | <articlecode>0x02000001</articlecode> |
||
36 | <articlecode>0x02000002</articlecode> |
||
37 | <articlecode>0x02000101</articlecode> |
||
38 | <data></data> |
||
39 | </compnent> |
||
40 | 4 | Maximilian Seesslen | </kokon> |
41 | 1 | Maximilian Seesslen | </code></pre> |
42 | 7 | Maximilian Seesslen | |
43 | kokonPackager mainswitch.kkp --articleId 0x0200 --component 1 --articles 0x02000001,0x02000003 --binary mainswitch.bin |
||
44 | kokonPackager mainswitch.kkp --articleId 0x0200 --component 1 --articles 0x02000001,0x02000003 --variant=bringup --binary mainswitch_bringup.bin |