Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
toh:ubiquiti:ubiquiti_wa_cfg_partition [2018/06/22 17:19] – ↷ Page moved from ubiquiti_wa_cfg_partition to toh:ubiquiti:ubiquiti_wa_cfg_partition tmomastoh: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 ''/var/etc/persistent'' Ubiquiti WA devices contain a cfg mtd patition. It uses a proprietary format and holds device configuration as well as the contents of ''/var/etc/persistent''
  
-==== 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    magic          length          |  crc          unknown  |  id            |  padding   +^ name    magic          length          |  crc          unknown     |  id            |  padding     
-^ offset |  0x00          |  0x04            |  0x08        |  0x0c     |  0x10          |  0x11      +^ offset |  0x00          |  0x04            |  0x08        |  0x0c        |  0x10          |  0x14        
-^ length |  0x04          |  0x04            |  0x04        |  0x04     |  0x01          |  0x03      +^ length |  0x04          |  0x04            |  0x04        |  0x04        |  0x04          |  0x04        
-^ usage  |  header magic  |  payload length  |  crc32?      |  unknwon  |  config id      padding?  +^ usage  |  header magic  |  payload length  |  crc32       |  unknown     |  config id                  
-^ value  |  0x12345678    |                  |              |           |  0x01 or 0x02  |  0x00      |+^ value  |  0x12345678    |                  |              |                             |  0x00000000  |
  
-===id=== +==== id ==== 
-Seen values: 0x010x02 +Seen values: 0x010000000x02000000 
-Seems to identify the config currently in use, config with 0x01 is current config+Seems to identify the config currently in use, config with 0x01000000 is backup config
  
 +==== crc ====
 +CRC32 of zlib deflated textual device config
  
-====Payload format===+==== unknown ===
 +The two most significant bytes seem to be always 0.
  
-The payload is zlib compressed and consits of the concatenation of textual device config and the tared and gziped folder /var/etc/persistent+^  Seen values (lower 16 bit)  ^^^ 
 +^            hex      binary              ^ 
 +^ device a  |  0x2831  |  0b0010100111101000 
 +^ device b  |  0x29e8  |  0b0010101011010100 
 +^ device c  |  0x2ad4  |  0b0010100000110001 
 + 
 +===== Payload format ===== 
 + 
 +The payload is zlib compressed and consists of the concatenation of textual device config and the tared and gziped folder ''/var/etc/persistent''
  
  • Last modified: 2019/06/20 07:35
  • by tsys