Update help text and readme
This commit is contained in:
parent
da9700c71d
commit
1f3a435eb7
2 changed files with 18 additions and 8 deletions
22
README.md
22
README.md
|
|
@ -13,16 +13,17 @@ Prebuilt binaries for Linux, ~OS X~ macOS and Windows are available
|
||||||
```
|
```
|
||||||
Usage: nmrpflash [OPTIONS...]
|
Usage: nmrpflash [OPTIONS...]
|
||||||
|
|
||||||
Options (-i and -f and/or -c are mandatory):
|
Options (-i, and -f or -c are mandatory):
|
||||||
-a <ipaddr> IP address to assign to target device
|
-a <ipaddr> IP address to assign to target device
|
||||||
-A <ipaddr> IP address to assign to interface
|
-A <ipaddr> IP address to assign to selected interface
|
||||||
|
-B Blind mode (don't wait for response packets)
|
||||||
-c <command> Command to run before (or instead of) TFTP upload
|
-c <command> Command to run before (or instead of) TFTP upload
|
||||||
-f <firmware> Firmware file
|
-f <firmware> Firmware file
|
||||||
-F <filename> Remote filename to use during TFTP upload
|
-F <filename> Remote filename to use during TFTP upload
|
||||||
-i <interface> Network interface directly connected to device
|
-i <interface> Network interface directly connected to device
|
||||||
-m <mac> MAC address of target device (xx:xx:xx:xx:xx:xx)
|
-m <mac> MAC address of target device (xx:xx:xx:xx:xx:xx)
|
||||||
-M <netmask> Subnet mask to assign to target device
|
-M <netmask> Subnet mask to assign to target device
|
||||||
-t <timeout> Timeout (in milliseconds) for regular messages
|
-t <timeout> Timeout (in milliseconds) for NMRP packets
|
||||||
-T <timeout> Time (seconds) to wait after successfull TFTP upload
|
-T <timeout> Time (seconds) to wait after successfull TFTP upload
|
||||||
-p <port> Port to use for TFTP upload
|
-p <port> Port to use for TFTP upload
|
||||||
-R <region> Set device region (NA, WW, GR, PR, RU, BZ, IN, KO, JP)
|
-R <region> Set device region (NA, WW, GR, PR, RU, BZ, IN, KO, JP)
|
||||||
|
|
@ -93,9 +94,18 @@ C:\> net start npf
|
||||||
|
|
||||||
###### "No response after 60 seconds. Bailing out."
|
###### "No response after 60 seconds. Bailing out."
|
||||||
|
|
||||||
The router did not respond. Try rebooting the device and run `nmrpflash` again.
|
The router did not respond. Always run `nmrpflash` in the following
|
||||||
You could also try running `nmrpflash` with `-m` and specify your router's
|
manner:
|
||||||
MAC address. It's also possible that your device does not support the NMRP protocol.
|
|
||||||
|
* Turn off the router.
|
||||||
|
* Run `nmrpflash`.
|
||||||
|
* Turn on the router.
|
||||||
|
|
||||||
|
If that still doesn't work, you can try "blind mode", which can be
|
||||||
|
invoked using `-B`. Note that you also have to specify your router's
|
||||||
|
mac address using `-m xx:xx:xx:xx:xx:xx`.
|
||||||
|
|
||||||
|
It's also possible that your device does not support the NMRP protocol.
|
||||||
|
|
||||||
###### "Timeout while waiting for ACK(0)/OACK."
|
###### "Timeout while waiting for ACK(0)/OACK."
|
||||||
|
|
||||||
|
|
|
||||||
4
main.c
4
main.c
|
|
@ -30,9 +30,9 @@ void usage(FILE *fp)
|
||||||
fprintf(fp,
|
fprintf(fp,
|
||||||
"Usage: nmrpflash [OPTIONS...]\n"
|
"Usage: nmrpflash [OPTIONS...]\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Options (-i, -f and/or -c are mandatory):\n"
|
"Options (-i, and -f or -c are mandatory):\n"
|
||||||
" -a <ipaddr> IP address to assign to target device\n"
|
" -a <ipaddr> IP address to assign to target device\n"
|
||||||
" -A <ipaddr> IP address to assign to seleted interface\n"
|
" -A <ipaddr> IP address to assign to selected interface\n"
|
||||||
" -B Blind mode (don't wait for response packets)\n"
|
" -B Blind mode (don't wait for response packets)\n"
|
||||||
" -c <command> Command to run before (or instead of) TFTP upload\n"
|
" -c <command> Command to run before (or instead of) TFTP upload\n"
|
||||||
" -f <firmware> Firmware file\n"
|
" -f <firmware> Firmware file\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue