From 2f9307bcda9db3d1913cf21773f66ea79e1fa27d Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Wed, 10 Feb 2016 18:40:34 +0100 Subject: [PATCH 1/4] Fix OSX compile error --- ethsock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethsock.c b/ethsock.c index d754653..36ffeb6 100644 --- a/ethsock.c +++ b/ethsock.c @@ -67,7 +67,7 @@ static inline bool sockaddr_get_hwaddr(struct sockaddr *sa, uint8_t *hwaddr) } #ifndef NMRPFLASH_LINUX - if (((struct sockaddr_dl*)addr)->sdl_type != IFT_ETHER) { + if (((struct sockaddr_dl*)sa)->sdl_type != IFT_ETHER) { return false; } src = LLADDR((struct sockaddr_dl*)sa); From 5a6883e92d9cd0505129703ef35a5a4a5bcb3b96 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Wed, 10 Feb 2016 18:47:15 +0100 Subject: [PATCH 2/4] Update README.md --- README.md | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 5d87210..60e755c 100644 --- a/README.md +++ b/README.md @@ -45,22 +45,12 @@ $ nmrpflash -L eth0 192.168.1.2 f2:11:a1:02:03:b1 ```` -A firmware image file can usually be downloaded directly from -Netgear's FTP servers: for the Netgear EX2700 for example, download -ftp://updates1.netgear.com/ex2700/ww/fileinfo.txt. At the top there -should be an entry like this: +A -``` -[Major1] -file=EX2700-V1.0.1.8.img -... -``` +A firmware image file can usually be downloaded directly from netgear. For +details on how to do this, see [here](#obtaining-firmware-images). -The download link for the latest firmware image for this device is thus: -ftp://updates1.netgear.com/ex2700/ww/EX2700-V1.0.1.8.img. Substitute -`ex2700` for your device (`wndr4300`, `wndr3700`, `r6100`, etc.). - -Now we can start `nmrpflash`. The argument for the `-a` option needs +Now we can `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`. Power on your device immediately after starting `nmrpflash`. @@ -111,3 +101,21 @@ project file (`nmrpflash.dev`). Download the latest [WinPcap Developer Pack](https://www.winpcap.org/devel.htm) and extract it into the root folder of the nmrpflash sources. +### Obtaining firmware images + +Firmware images can be downloaded directly from Netgear's FTP servers. +For the Netgear EX2700 for example, download +ftp://updates1.netgear.com/ex2700/ww/fileinfo.txt. At the top there +should be an entry like this: + +``` +[Major1] +file=EX2700-V1.0.1.8.img +... +``` + +The download link for the latest firmware image for this device is thus: +ftp://updates1.netgear.com/ex2700/ww/EX2700-V1.0.1.8.img. Substitute +`ex2700` for your device (`wndr4300`, `wndr3700`, `r6100`, etc.). If +neccessary, substitute `ww` (world-wide) for a specific region. + From 1c6179c8c8f13016727c7b5d4a11d98221445695 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Wed, 10 Feb 2016 18:47:37 +0100 Subject: [PATCH 3/4] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 60e755c..00af770 100644 --- a/README.md +++ b/README.md @@ -45,8 +45,6 @@ $ nmrpflash -L eth0 192.168.1.2 f2:11:a1:02:03:b1 ```` -A - A firmware image file can usually be downloaded directly from netgear. For details on how to do this, see [here](#obtaining-firmware-images). From 5a97a20da4fc8fa8833f76d378858c412283d80a Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Wed, 10 Feb 2016 18:48:55 +0100 Subject: [PATCH 4/4] Update README.md --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 00af770..115f264 100644 --- a/README.md +++ b/README.md @@ -45,12 +45,11 @@ $ nmrpflash -L eth0 192.168.1.2 f2:11:a1:02:03:b1 ```` -A firmware image file can usually be downloaded directly from netgear. For -details on how to do this, see [here](#obtaining-firmware-images). - Now we can `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`. Power on your device immediately +network interface. We'll use `192.168.1.254`. Firmware images can usually +be downloaded directly from netgear. For details on how to do this, see +[here](#obtaining-firmware-images). Power on your device immediately after starting `nmrpflash`. ````