Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| toh:ubiquiti:ubiquiti_wa_cfg_partition [2018/07/08 02:05] – [Layout] tsys | toh:ubiquiti:ubiquiti_wa_cfg_partition [2018/07/17 05:35] – [id] tsys | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Ubiquiti cfg partition ===== | + | ====== Ubiquiti cfg partition |
| Ubiquiti WA devices contain a cfg mtd patition. It uses a proprietary format and holds device configuration as well as the contents of ''/ | Ubiquiti WA devices contain a cfg mtd patition. It uses a proprietary format and holds device configuration as well as the contents of ''/ | ||
| - | ==== Layout ==== | + | ===== Layout |
| The config partition can store multiple configurations. | The config partition can store multiple configurations. | ||
| Each configuration starts with a 24 byte header: | Each configuration starts with a 24 byte header: | ||
| - | ^ Ubiquiti cfg header ^^^^^^^ | + | ^ Ubiquiti cfg header |
| - | ^ name | + | ^ name |
| - | ^ offset | 0x00 | 0x04 | 0x08 | 0x0c | + | ^ offset | 0x00 | 0x04 | 0x08 | 0x0c | 0x10 |
| - | ^ length | 0x04 | 0x04 | 0x04 | 0x04 | + | ^ length | 0x04 | 0x04 | 0x04 | 0x04 | 0x04 |
| - | ^ usage | header magic | payload length | + | ^ usage | header magic | payload length |
| - | ^ value | 0x12345678 | + | ^ value | 0x12345678 |
| - | ===id=== | + | ==== id ==== |
| - | Seen values: | + | Seen values: |
| - | Seems to identify the config currently in use, config with 0x01 is current | + | Seems to identify the config currently in use, config with 0x01000000 |
| - | ===crc=== | + | ==== crc ==== |
| CRC32 of zlib deflated textual device config | CRC32 of zlib deflated textual device config | ||
| + | ==== unknown ==== | ||
| + | The two most significant bytes seem to be always 0. | ||
| - | ====Payload format=== | + | ^ Seen values (lower 16 bit) ^^^ |
| + | ^ | ||
| + | ^ device a | 0x2831 | ||
| + | ^ device b | 0x29e8 | ||
| + | ^ device c | 0x2ad4 | ||
| - | The payload is zlib compressed and consits | + | ===== Payload format ===== |
| + | |||
| + | The payload is zlib compressed and consists | ||