.PHONY: clean install release release/osx release/linux
-nmrp-flash: nmrp.o tftp.o ethsock.o main.o
- $(CC) $(CFLAGS) -o nmrp-flash nmrp.o tftp.o ethsock.o main.o $(LIBS)
+nmrpflash: nmrp.o tftp.o ethsock.o main.o
+ $(CC) $(CFLAGS) -o nmrpflash nmrp.o tftp.o ethsock.o main.o $(LIBS)
nmrp.o: nmrp.c nmrpd.h
$(CC) $(CFLAGS) -c -o nmrp.o nmrp.c
$(CC) $(CFLAGS) -c -o main.o main.c
clean:
- rm -f nmrp.o tftp.o main.o ethsock.o nmrp-flash nmrp-flash.exe
+ rm -f nmrp.o tftp.o main.o ethsock.o nmrpflash nmrpflash.exe
-install: nmrp-flash
- install -m 755 nmrp-flash $(PREFIX)/bin
+install: nmrpflash
+ install -m 755 nmrpflash $(PREFIX)/bin
release/osx:
CFLAGS="-arch i686 -arch x86_64" make release
- cp nmrp-flash binaries/osx/
release/linux: release
- cp nmrp-flash binaries/linux/
+ cp nmrpflash binaries/linux/
-release: clean nmrp-flash
- strip nmrp-flash
+release: clean nmrpflash
+ strip nmrpflash
-nmrp-flash - Netgear Unbrick Utility
+nmrpflash - Netgear Unbrick Utility
====================================
This program uses Netgear's [NMRP protocol]
to flash a new firmware image to a compatible device. This utility has been
tested with a Netgear EX2700, but is likely to work on many others as well.
-### Using nmrp-flash
+### Using nmrpflash
Connect your Netgear router to your computer using a network cable.
Assign a static IP address to your computer (more specifically, to
can be listed using
````
-$ nmrp-flash -L
+$ nmrpflash -L
eth0 192.168.1.2 f2:11:a1:02:03:b1
````
-Now we can start `nmrp-flash`. The argument for the `-a` option needs
+Now we can start `nmrpflash`. The argument for the `-a` option needs
to be a *free* IP address from the same subnet as the one used by your
network interface. We'll use `192.168.1.254`. The firmware image file
can usually be downloaded directly from Netgear's FTP servers.
````
-$ nmrp-flash -i eth0 -a 192.168.1.254 -f EX2700-V1.0.1.8.img
+$ nmrpflash -i eth0 -a 192.168.1.254 -f EX2700-V1.0.1.8.img
Advertising NMRP server on eth0 ... /
Received configuration request from a4:2b:8c:00:00:01.
Sending configuration: ip 192.168.1.254, mask 255.255.255.0.
The repository includes a
[DevCpp](http://sourceforge.net/projects/orwelldevcpp/)
-project file (`nmrp-flash.dev`). Download the latest
+project file (`nmrpflash.dev`). Download the latest
[WinPcap Developer Pack](http://www.winpcap.org/devel.htm)
-and extract it into the root folder of the nmrp-flash sources.
+and extract it into the root folder of the nmrpflash sources.
/**
- * nmrp-flash - Netgear Unbrick Utility
+ * nmrpflash - Netgear Unbrick Utility
* Copyright (C) 2016 Joseph Lehner <joseph.c.lehner@gmail.com>
*
- * nmrp-flash is free software: you can redistribute it and/or modify
+ * nmrpflash is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * nmrp-flash is distributed in the hope that it will be useful,
+ * nmrpflash is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with nmrp-flash. If not, see <http://www.gnu.org/licenses/>.
+ * along with nmrpflash. If not, see <http://www.gnu.org/licenses/>.
*
*/
void usage(FILE *fp)
{
fprintf(fp,
- "Usage: nmrp-flash [OPTIONS...]\n"
+ "Usage: nmrpflash [OPTIONS...]\n"
"\n"
"Options (-a, -i and -f are mandatory):\n"
" -a <ipaddr> IP address to assign to target device\n"
"Example:\n"
"\n"
#ifndef NMRPFLASH_WINDOWS
- "$ sudo nmrp-flash -i eth0 -a 192.168.1.254 -f firmware.bin\n"
+ "$ sudo nmrpflash -i eth0 -a 192.168.1.254 -f firmware.bin\n"
#else
- "C:\\> nmrp-flash.exe -i net0 -a 192.168.1.254 -f firmware.bin\n"
+ "C:\\> nmrpflash.exe -i net0 -a 192.168.1.254 -f firmware.bin\n"
#endif
"\n"
- "nmrp-flash %s, Copyright (C) 2016 Joseph C. Lehner\n"
- "nmrp-flash is free software, licensed under the GNU GPLv3.\n"
- "Source code at https://github.com/jclehner/nmrp-flash\n"
+ "nmrpflash %s, Copyright (C) 2016 Joseph C. Lehner\n"
+ "nmrpflash is free software, licensed under the GNU GPLv3.\n"
+ "Source code at https://github.com/jclehner/nmrpflash\n"
"\n",
NMRPFLASH_VERSION
);
break;
case 'V':
- printf("nmrp-flash %s\n", NMRPFLASH_VERSION);
+ printf("nmrpflash %s\n", NMRPFLASH_VERSION);
val = 0;
goto out;
case 'v':
[Project]\r
-FileName=nmrp-flash.dev\r
-Name=nmrp-flash\r
+FileName=nmrpflash.dev\r
+Name=nmrpflash\r
Type=1\r
Ver=2\r
ObjFiles=\r
LogOutput=\r
LogOutputEnabled=0\r
OverrideOutput=0\r
-OverrideOutputName=nmrp-flash.exe\r
+OverrideOutputName=nmrpflash.exe\r
HostApplication=\r
UseCustomMakefile=0\r
CustomMakefile=\r
/**
- * nmrp-flash - Netgear Unbrick Utility
+ * nmrpflash - Netgear Unbrick Utility
* Copyright (C) 2016 Joseph Lehner <joseph.c.lehner@gmail.com>
*
- * nmrp-flash is free software: you can redistribute it and/or modify
+ * nmrpflash is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * nmrp-flash is distributed in the hope that it will be useful,
+ * nmrpflash is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with nmrp-flash. If not, see <http://www.gnu.org/licenses/>.
+ * along with nmrpflash. If not, see <http://www.gnu.org/licenses/>.
*
*/
/**
- * nmrp-flash - Netgear Unbrick Utility
+ * nmrpflash - Netgear Unbrick Utility
* Copyright (C) 2016 Joseph Lehner <joseph.c.lehner@gmail.com>
*
- * nmrp-flash is free software: you can redistribute it and/or modify
+ * nmrpflash is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * nmrp-flash is distributed in the hope that it will be useful,
+ * nmrpflash is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with nmrp-flash. If not, see <http://www.gnu.org/licenses/>.
+ * along with nmrpflash. If not, see <http://www.gnu.org/licenses/>.
*
*/
#define NMRPFLASH_OSX
#elif defined(__unix__)
#define NMRPFLASH_UNIX
-#warning "nmrp-flash is not fully supported on your operating system"
+#warning "nmrpflash is not fully supported on your operating system"
#endif
#ifndef NMRPFLASH_WINDOWS
/**
- * nmrp-flash - Netgear Unbrick Utility
+ * nmrpflash - Netgear Unbrick Utility
* Copyright (C) 2016 Joseph Lehner <joseph.c.lehner@gmail.com>
*
- * nmrp-flash is free software: you can redistribute it and/or modify
+ * nmrpflash is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * nmrp-flash is distributed in the hope that it will be useful,
+ * nmrpflash is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with nmrp-flash. If not, see <http://www.gnu.org/licenses/>.
+ * along with nmrpflash. If not, see <http://www.gnu.org/licenses/>.
*
*/