diff options
| author | Ping-Ke Shih <[email protected]> | 2023-08-01 10:11:23 +0800 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2023-08-03 15:04:11 +0300 |
| commit | 12b1a12548eb31812f0a6128a0796d1656e2abb2 (patch) | |
| tree | 9e5be7d4b14bcc434dc8e59834924c20baf03bb1 /tools/perf/scripts/python | |
| parent | 1b073b350d24b9481f0dffea9e9dec05c838098a (diff) | |
wifi: rtw89: add firmware parser for v1 format
A firmware with v1 format contains many sections to download. Add parser to
read section type, target address, length, checksum and so on, and then
download the section to WiFi CPU with proper location.
The additional dynamic header length named dynamic_hdr_len is used to
skip content of dynamic header containing compiler flags of firmware, which
can help to determine variant firmware build, but currently rtw89 only
use single one variant. So, just skip the content.
The layout of a WiFi CPU firmware with v1 format looks like:
+---------------------------------------+
| Header (12 words) |
+---------------------------------------+
| Section header 1 (4 words) |
| Section header 2 (4 words) |
| Section header 3 (4 words) |
| ... |
+---------------------------------------+
| Dynamic header (variable length) |
+---------------------------------------+
| Data used & pointed by section |
| ... |
+---------------------------------------+
Signed-off-by: Ping-Ke Shih <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions