diff options
author | FUKAUMI Naoki <naobsd@gmail.com> | 2017-01-29 01:05:54 +0900 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2017-01-31 10:55:02 +0100 |
commit | 7faee1bc9f9ede0e23de19d6156dc8d769431bb3 (patch) | |
tree | 1a29ef2ce5644eaf7d569b6073603cb23ac3793a /tools/firmware-utils/src/buffalo-lib.h | |
parent | bc32f7deb57706e6235ec82ed0e2637c63deadff (diff) | |
download | upstream-7faee1bc9f9ede0e23de19d6156dc8d769431bb3.tar.gz upstream-7faee1bc9f9ede0e23de19d6156dc8d769431bb3.tar.bz2 upstream-7faee1bc9f9ede0e23de19d6156dc8d769431bb3.zip |
firmware-utils: improve tools for Buffalo DHP series
some of Buffalo DHP series use slightly different trx magic, buffalo-enc,
buffalo-tag, and factory image begin with 'bgn'.
this patch adds support for building those images.
Signed-off-by: FUKAUMI Naoki <naobsd@gmail.com>
Diffstat (limited to 'tools/firmware-utils/src/buffalo-lib.h')
-rw-r--r-- | tools/firmware-utils/src/buffalo-lib.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/firmware-utils/src/buffalo-lib.h b/tools/firmware-utils/src/buffalo-lib.h index ba8a508129..7eb9bf5398 100644 --- a/tools/firmware-utils/src/buffalo-lib.h +++ b/tools/firmware-utils/src/buffalo-lib.h @@ -69,6 +69,26 @@ struct buffalo_tag2 { uint8_t unknown2[3]; } __attribute ((packed)); +struct buffalo_tag3 { + unsigned char product[TAG_PRODUCT_LEN]; + unsigned char brand[TAG_BRAND_LEN]; + unsigned char ver_major[TAG_VERSION_LEN]; + unsigned char ver_minor[TAG_VERSION_LEN]; + unsigned char region_code[2]; + uint32_t region_mask; + unsigned char unknown0[2]; + unsigned char language[TAG_LANGUAGE_LEN]; + unsigned char platform[TAG_PLATFORM_LEN]; + unsigned char hwv[TAG_HWVER_LEN]; + unsigned char hwv_val[TAG_HWVER_VAL_LEN]; + uint8_t unknown1[24]; + + uint32_t total_len; + uint32_t crc; + uint32_t len1; + uint32_t base2; +} __attribute ((packed)); + #define ENC_PRODUCT_LEN 32 #define ENC_VERSION_LEN 8 #define ENC_MAGIC_LEN 6 |