diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-08-13 12:38:47 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-08-13 12:38:47 +0000 |
commit | b5e7f55f977311f6aa3829a90e00f5d9104b10ee (patch) | |
tree | 04694142803a9fad4c5cec5852af46ac4181cea7 /openwrt/target/utils | |
parent | 56829f82c5583e6c467362da7fc8150d81e37b39 (diff) | |
download | mtk-20170518-b5e7f55f977311f6aa3829a90e00f5d9104b10ee.zip mtk-20170518-b5e7f55f977311f6aa3829a90e00f5d9104b10ee.tar.gz mtk-20170518-b5e7f55f977311f6aa3829a90e00f5d9104b10ee.tar.bz2 |
add updates from whiterussian to head
SVN-Revision: 1626
Diffstat (limited to 'openwrt/target/utils')
-rw-r--r-- | openwrt/target/utils/src/addpattern.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/openwrt/target/utils/src/addpattern.c b/openwrt/target/utils/src/addpattern.c index 084ecf2..5298f7b 100644 --- a/openwrt/target/utils/src/addpattern.c +++ b/openwrt/target/utils/src/addpattern.c @@ -76,7 +76,7 @@ void usage(void) __attribute__ (( __noreturn__ )); void usage(void) { - fprintf(stderr, "Usage: addpattern [-i trxfile] [-o binfile] [-p pattern] [-g] [-b] [-v v#.#.#] [-{0|1|2}]\n"); + fprintf(stderr, "Usage: addpattern [-i trxfile] [-o binfile] [-p pattern] [-g] [-b] [-v v#.#.#] [-{0|1|2|4}]\n"); exit(EXIT_FAILURE); } @@ -136,6 +136,11 @@ int main(int argc, char **argv) hdr->flags |= SUPPORT_INTEL_FLASH; hdr->flags |= SUPPORT_5325E_SWITCH; break; + case '4': + /* V4 firmware sets the flags to 0x1f */ + hdr->hw_ver = 1; + hdr->flags = 0x1f; + break; default: usage(); |