Images¶
Would be nice to have firmware images containing board id which is verified before flashing.
The cmake scripts should produce this. Arena knows the board id. It can be added to the generated cmake file which is included.
Kokon could provide the make target for the image.
- xml file
- base64 encoded binary blob
An image file could contain multiple images. For example canswitch should automatically flash the correct version according to the variant/used controller.
Or even all images of an squeezer run.
- Board ID; HW-Variant has different board id because different build; solder variant is in eeprom
Multiple files for single node¶
- Multimedia may be available for external flash.
- Board code
- Firmware version
- Component
- 0: main
- 1: external media flash
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.
<?xml>
<kokon>
<device articleId="0x0200">
<compnent co="0" variant="bringup">
<articlecode>0x02000001</articlecode>
<data></data>
</compnent>
<compnent co="1">
<articlecode>0x02000001</articlecode>
<articlecode>0x02000002</articlecode>
<articlecode>0x02000101</articlecode>
<data></data>
</compnent>
</kokon>
kokonPackager mainswitch.kkp --articleId 0x0200 --component 1 --articles 0x02000001,0x02000003 --binary mainswitch.bin
kokonPackager mainswitch.kkp --articleId 0x0200 --component 1 --articles 0x02000001,0x02000003 --variant=bringup --binary mainswitch_bringup.bin
Von Maximilian Seesslen vor 2 Monaten aktualisiert · 7 Revisionen