|
|
dccfa6 |
diff --git a/fxload.8 b/fxload.8
|
|
|
dccfa6 |
index 71dcdf4..36e63b9 100644
|
|
|
dccfa6 |
--- a/fxload.8
|
|
|
dccfa6 |
+++ b/fxload.8
|
|
|
dccfa6 |
@@ -30,6 +30,7 @@ fxload \- Firmware download to EZ-USB devices
|
|
|
dccfa6 |
.BI "[ \-v ]"
|
|
|
dccfa6 |
.BI "[ \-D " devpath " ]"
|
|
|
dccfa6 |
.BI "[ \-I " hexfile " ]"
|
|
|
dccfa6 |
+.BI "[ \-2 ]"
|
|
|
dccfa6 |
.BI "[ \-t " type " ]"
|
|
|
dccfa6 |
.BI "[ \-c " config " ]"
|
|
|
dccfa6 |
.BI "[ \-s " loader " ]"
|
|
|
dccfa6 |
@@ -41,6 +42,7 @@ fxload \- Firmware download to EZ-USB devices
|
|
|
dccfa6 |
.br
|
|
|
dccfa6 |
.B fxload
|
|
|
dccfa6 |
.BI "[ \-V ]"
|
|
|
dccfa6 |
+.BI "[ \-? ]"
|
|
|
dccfa6 |
.SH "DESCRIPTION"
|
|
|
dccfa6 |
.B fxload
|
|
|
dccfa6 |
is a program which downloads firmware to USB devices based on
|
|
|
dccfa6 |
@@ -116,6 +118,9 @@ are also available.
|
|
|
dccfa6 |
.B "\-V"
|
|
|
dccfa6 |
Identifies the version of fxload being invoked, and exits
|
|
|
dccfa6 |
without performing other actions.
|
|
|
dccfa6 |
+.TP
|
|
|
dccfa6 |
+.B "\-?"
|
|
|
dccfa6 |
+Show usage.
|
|
|
dccfa6 |
.PP
|
|
|
dccfa6 |
Note that when downloading firmware that renumerates,
|
|
|
dccfa6 |
there's no point in changing the device permissions
|
|
|
dccfa6 |
@@ -155,6 +160,9 @@ As a last step when loading firmware,
|
|
|
dccfa6 |
normally overwrites this second stage loader
|
|
|
dccfa6 |
with parts of the firmware residing on-chip.
|
|
|
dccfa6 |
.TP
|
|
|
dccfa6 |
+.BI "\-2"
|
|
|
dccfa6 |
+Same as "-t fx2".
|
|
|
dccfa6 |
+.TP
|
|
|
dccfa6 |
.BI "\-t " type
|
|
|
dccfa6 |
Indicates which type of microcontroller is used in the device;
|
|
|
dccfa6 |
type may be one of
|
|
|
dccfa6 |
diff --git a/main.c b/main.c
|
|
|
dccfa6 |
index 6845cd0..4af3ade 100644
|
|
|
dccfa6 |
--- a/main.c
|
|
|
dccfa6 |
+++ b/main.c
|
|
|
dccfa6 |
@@ -163,13 +163,17 @@ int main(int argc, char*argv[])
|
|
|
dccfa6 |
usage:
|
|
|
dccfa6 |
fputs ("usage: ", stderr);
|
|
|
dccfa6 |
fputs (argv [0], stderr);
|
|
|
dccfa6 |
- fputs (" [-vV] [-t type] [-D devpath]\n", stderr);
|
|
|
dccfa6 |
+ fputs (" [-?] [-v] [-V] [-t type] [-2] [-D devpath]\n", stderr);
|
|
|
dccfa6 |
fputs ("\t\t[-I firmware_hexfile] ", stderr);
|
|
|
dccfa6 |
fputs ("[-s loader] [-c config_byte]\n", stderr);
|
|
|
dccfa6 |
fputs ("\t\t[-L link] [-m mode]\n", stderr);
|
|
|
dccfa6 |
fputs ("... [-D devpath] overrides DEVICE= in env\n", stderr);
|
|
|
dccfa6 |
fputs ("... device types: one of an21, fx, fx2\n", stderr);
|
|
|
dccfa6 |
fputs ("... at least one of -I, -L, -m is required\n", stderr);
|
|
|
dccfa6 |
+ fputs ("... -v: increase verbosity\n", stderr);
|
|
|
dccfa6 |
+ fputs ("... -V: print version\n", stderr);
|
|
|
dccfa6 |
+ fputs ("... -2: same as '-t fx2'\n", stderr);
|
|
|
dccfa6 |
+ fputs ("... -?: this help\n", stderr);
|
|
|
dccfa6 |
return -1;
|
|
|
dccfa6 |
}
|
|
|
dccfa6 |
|