projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Corrrected URL
[openwrt.git]
/
openwrt
/
target
/
utils
/
src
/
addpattern.c
diff --git
a/openwrt/target/utils/src/addpattern.c
b/openwrt/target/utils/src/addpattern.c
index
084ecf2
..
9962a67
100644
(file)
--- 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)
{
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);
}
exit(EXIT_FAILURE);
}
@@
-104,7
+104,7
@@
int main(int argc, char **argv)
hdr = (struct code_header *) buf;
memset(hdr, 0, sizeof(struct code_header));
hdr = (struct code_header *) buf;
memset(hdr, 0, sizeof(struct code_header));
- while ((c = getopt(argc, argv, "i:o:p:gbv:012")) != -1) {
+ while ((c = getopt(argc, argv, "i:o:p:gbv:012
4
")) != -1) {
switch (c) {
case 'i':
ifn = optarg;
switch (c) {
case 'i':
ifn = optarg;
@@
-136,6
+136,11
@@
int main(int argc, char **argv)
hdr->flags |= SUPPORT_INTEL_FLASH;
hdr->flags |= SUPPORT_5325E_SWITCH;
break;
hdr->flags |= SUPPORT_INTEL_FLASH;
hdr->flags |= SUPPORT_5325E_SWITCH;
break;
+ case '4':
+ /* V4 firmware sets the flags to 0x1f */
+ hdr->hw_ver = 0;
+ hdr->flags = 0x1f;
+ break;
default:
usage();
default:
usage();
This page took
0.028211 seconds
and
4
git commands to generate.