From 1f3a435eb7cee0f38da3e546c3a20c1f4aaf03dd Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Mon, 2 Mar 2020 09:41:56 +0100 Subject: [PATCH] Update help text and readme --- README.md | 22 ++++++++++++++++------ main.c | 4 ++-- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index ee9e516..639bde1 100644 --- a/README.md +++ b/README.md @@ -13,16 +13,17 @@ Prebuilt binaries for Linux, ~OS X~ macOS and Windows are available ``` Usage: nmrpflash [OPTIONS...] -Options (-i and -f and/or -c are mandatory): +Options (-i, and -f or -c are mandatory): -a IP address to assign to target device - -A IP address to assign to interface + -A IP address to assign to selected interface + -B Blind mode (don't wait for response packets) -c Command to run before (or instead of) TFTP upload -f Firmware file -F Remote filename to use during TFTP upload -i Network interface directly connected to device -m MAC address of target device (xx:xx:xx:xx:xx:xx) -M Subnet mask to assign to target device - -t Timeout (in milliseconds) for regular messages + -t Timeout (in milliseconds) for NMRP packets -T Time (seconds) to wait after successfull TFTP upload -p Port to use for TFTP upload -R 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." -The router did not respond. Try rebooting the device and run `nmrpflash` again. -You could also try running `nmrpflash` with `-m` and specify your router's -MAC address. It's also possible that your device does not support the NMRP protocol. +The router did not respond. Always run `nmrpflash` in the following +manner: + +* 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." diff --git a/main.c b/main.c index 58afc56..cd1a81b 100644 --- a/main.c +++ b/main.c @@ -30,9 +30,9 @@ void usage(FILE *fp) fprintf(fp, "Usage: nmrpflash [OPTIONS...]\n" "\n" - "Options (-i, -f and/or -c are mandatory):\n" + "Options (-i, and -f or -c are mandatory):\n" " -a IP address to assign to target device\n" - " -A IP address to assign to seleted interface\n" + " -A IP address to assign to selected interface\n" " -B Blind mode (don't wait for response packets)\n" " -c Command to run before (or instead of) TFTP upload\n" " -f Firmware file\n" -- 2.25.1