diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-07-06 08:04:50 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-07-06 08:04:50 +0000 |
commit | 47453efcd46ad04bea1b235bab08ddef7802dbdc (patch) | |
tree | f4e4e28aadf58fb32e53f55460b64fe0445470e6 /tools/firmware-utils/src/buffalo-lib.h | |
parent | 236c920acade1cbd89acc2a9adbf8f4af45af20b (diff) | |
download | upstream-47453efcd46ad04bea1b235bab08ddef7802dbdc.tar.gz upstream-47453efcd46ad04bea1b235bab08ddef7802dbdc.tar.bz2 upstream-47453efcd46ad04bea1b235bab08ddef7802dbdc.zip |
tools/firmware-utils: allow to create buffalo image from two files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27473 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/firmware-utils/src/buffalo-lib.h')
-rw-r--r-- | tools/firmware-utils/src/buffalo-lib.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/firmware-utils/src/buffalo-lib.h b/tools/firmware-utils/src/buffalo-lib.h index 614438e789..ba8a508129 100644 --- a/tools/firmware-utils/src/buffalo-lib.h +++ b/tools/firmware-utils/src/buffalo-lib.h @@ -47,6 +47,28 @@ struct buffalo_tag { uint8_t unknown2[3]; } __attribute ((packed)); +struct buffalo_tag2 { + 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 len2; + uint8_t flag; + uint8_t unknown2[3]; +} __attribute ((packed)); + #define ENC_PRODUCT_LEN 32 #define ENC_VERSION_LEN 8 #define ENC_MAGIC_LEN 6 |