Giter Site home page Giter Site logo

Comments (19)

causlayer avatar causlayer commented on September 12, 2024 1

I think I've got it!

nmrpflash-0.9.21-10-ga045438-macos.zip

sudo /Users/slayer/Downloads/nmrpflash -i en10 -f /Users/slayer/Documents/Software/MacBook/openwrt/package/openwrt-bcm53xx-generic-netgear_r8000-squashfs.chk -vv
Password:
Adding 10.164.183.252 to interface en10.
Advertising NMRP server on en10 ... -
Received configuration request from 28:80:88:2a:59:21.
Sending configuration: 10.164.183.253/24.
Received upload request without filename.
Using remote filename 'openwrt-bcm53xx-generic-netgear_r8000-squashfs.chk'.
Uploading openwrt-bcm53xx-generic-netgear_r8000-squashfs.chk ... Drained 0 packet(s) from rx buffer in 201 ms
OK (30539834 b)
Waiting for remote to respond.
Received keep-alive request (29).
Remote finished. Closing connection.
Reboot your device now.

from nmrpflash.

jclehner avatar jclehner commented on September 12, 2024 1

Awesome! Thanks a lot for testing this!

from nmrpflash.

jclehner avatar jclehner commented on September 12, 2024 1

Fixed in version 0.9.22.

from nmrpflash.

jclehner avatar jclehner commented on September 12, 2024

Does using the previous version fix your issue?

from nmrpflash.

pauliuspetk avatar pauliuspetk commented on September 12, 2024

Hi, I am having the exact same issue. Running the latest version of Npcap (1.77); ticked the 'restrict Npcap driver usage to administrators' and 'install in WinPcap compatible mode' checkboxes when installing. Running nmrpflash as Administrator.

Tried both v0.9.21 and v0.9.20, no difference v0.9.20 works fine, only v0.9.21 is failing. Tried with pressing the reset button and without.

D:\r8000>nmrpflash.exe -i net22 -f openwrt-23.05.0-rc4-bcm53xx-generic-netgear_r8000-squashfs.chk -vvv
  {F6xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxAE}: Type=6, Name=Ethernet
Waiting for Ethernet connection (Ctrl-C to skip).
Adding 10.164.183.252 to interface net22.
Advertising NMRP server on net22 ... /
Received configuration request from a0:63:91:aa:bb:cc.
Sending configuration: 10.164.183.253/24.
Received upload request without filename.
Using remote filename 'openwrt-23.05.0-rc4-bcm53xx-generic-netgear_r8000-squashfs.chk'.
Uploading openwrt-23.05.0-rc4-bcm53xx-generic-netgear_r8000-squashfs.chk ... << WRQ(openwrt-23.05.0-rc4-bcm53xx-generic-netgear_r8000-squashfs.chk, octet)
>> ACK(0)
Drained 10 packet(s) from rx buffer
<< DATA(1)
>> ACK(0)
>> ACK(0)
<< DATA(1)
<< DATA(1)
<< DATA(1)
<< DATA(1)
Timeout while waiting for ACK(1).

D:\r8000>nmrpflash.exe -i net22 -vvv -f R8000-V1.0.4.76_10.1.82.chk
  {F6xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxAE}: Type=6, Name=Ethernet
Waiting for Ethernet connection (Ctrl-C to skip).
Adding 10.164.183.252 to interface net22.
Advertising NMRP server on net22 ... |
Received configuration request from a0:63:91:aa:bb:cc.
Sending configuration: 10.164.183.253/24.
Received upload request without filename.
Using remote filename 'R8000-V1.0.4.76_10.1.82.chk'.
Uploading R8000-V1.0.4.76_10.1.82.chk ... << WRQ(R8000-V1.0.4.76_10.1.82.chk, octet)
>> ACK(0)
Drained 10 packet(s) from rx buffer
<< DATA(1)
>> ACK(0)
>> ACK(0)
<< DATA(1)
<< DATA(1)
<< DATA(1)
<< DATA(1)
Timeout while waiting for ACK(1).

from nmrpflash.

pauliuspetk avatar pauliuspetk commented on September 12, 2024

v0.9.20 is works fine after all, only v0.9.21 is failing.

Here are the serial logs from both versions:

v0.9.20: (succeeded just fine, stays at the bootloader shell after flashing, need to power cycle to boot into the new firmware)

CFE for Foxconn Router R8000 version: v1.0.8
Build Date: Fri May 30 15:03:06 CST 2014
Init Arena
Init Devs.
Boot up from NAND flash...
Bootcode Boot partition size = 524288(0x80000)
DDR Clock: 800 MHz
Info: DDR frequency set from clkfreq=1000,*800*
et2: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 7.14.43.2 (r474543)
CPU type 0x0: 1000MHz
Tot mem: 262144 KBytes

Device eth0:  hwaddr A0-63-91-AA-BB-CC, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
CONF-REQ sent...Waiting for CONF-ACK...
Recv DEV-REGION(0x0000) ST-UP(0x00000000)
Device eth0:  hwaddr A0-63-91-AA-BB-CC, ipaddr 10.164.183.253, mask 255.255.255.0
        gateway not set, nameserver not set
TFTP-UL-REQ sent...Waiting for TFTP-WRQ...
Reading :: Done. 8912954 bytes read
Programming...done. 1048576 bytes written
KEEP-ALIVE-REQ sent...Waiting for KEEP-ALIVE-ACK...
done. 1048576 bytes written
KEEP-ALIVE-REQ sent...Waiting for KEEP-ALIVE-ACK...
done. 1048576 bytes written
KEEP-ALIVE-REQ sent...Waiting for KEEP-ALIVE-ACK...
done. 1048576 bytes written
KEEP-ALIVE-REQ sent...Waiting for KEEP-ALIVE-ACK...
done. 1048576 bytes written
KEEP-ALIVE-REQ sent...Waiting for KEEP-ALIVE-ACK...
done. 1048576 bytes written
KEEP-ALIVE-REQ sent...Waiting for KEEP-ALIVE-ACK...
done. 1048576 bytes written
KEEP-ALIVE-REQ sent...Waiting for KEEP-ALIVE-ACK...
done. 1048576 bytes written
KEEP-ALIVE-REQ sent...Waiting for KEEP-ALIVE-ACK...
done. 524346 bytes written
done. 8912954 bytes written
Skip writing CHK checksum for nflash.
Device eth0:  hwaddr A0-63-91-DB-34-94, ipaddr 10.164.183.253, mask 255.255.255.0
        gateway not set, nameserver not set
CLOSE-REQ sent...Waiting for CLOSE-ACK...
CFE>

v0.9.21: (throws a 'Timeout occured' quickly, around the same time the first '>> ACK(0)' is printed by app, and after failing to flash continues to boot existing image)

CFE for Foxconn Router R8000 version: v1.0.8
Build Date: Fri May 30 15:03:06 CST 2014
Init Arena
Init Devs.
Boot up from NAND flash...
Bootcode Boot partition size = 524288(0x80000)
DDR Clock: 800 MHz
Info: DDR frequency set from clkfreq=1000,*800*
et2: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 7.14.43.2 (r474543)
CPU type 0x0: 1000MHz
Tot mem: 262144 KBytes

Device eth0:  hwaddr A0-63-91-AA-BB-CC, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
CONF-REQ sent...Waiting for CONF-ACK...
Recv DEV-REGION(0x0000) ST-UP(0x00000000)
Device eth0:  hwaddr A0-63-91-AA-BB-CC, ipaddr 10.164.183.253, mask 255.255.255.0
        gateway not set, nameserver not set
TFTP-UL-REQ sent...Waiting for TFTP-WRQ...
Reading :: Failed.: Timeout occured
Upgrade firmware failed!
Device eth0:  hwaddr A0-63-91-AA-BB-CC, ipaddr 10.164.183.253, mask 255.255.255.0
        gateway not set, nameserver not set
TFTP-UL-REQ sent...Waiting for TFTP-WRQ...
Reading :: Failed.: Timeout occured
Upgrade firmware failed!
Device eth0:  hwaddr A0-63-91-AA-BB-CC, ipaddr 10.164.183.253, mask 255.255.255.0
        gateway not set, nameserver not set
TFTP-UL-REQ sent...Waiting for TFTP-WRQ...
Reading :: Failed.: Timeout occured
Upgrade firmware failed!
Device eth0:  hwaddr A0-63-91-AA-BB-CC, ipaddr 10.164.183.253, mask 255.255.255.0
        gateway not set, nameserver not set
TFTP-UL-REQ sent...Waiting for TFTP-WRQ...
Reading :: Failed.: Timeout occured
Upgrade firmware failed!
Device eth0:  hwaddr A0-63-91-AA-BB-CC, ipaddr 10.164.183.253, mask 255.255.255.0
        gateway not set, nameserver not set
TFTP-UL-REQ sent...Waiting for TFTP-WRQ...
Reading :: Failed.: Timeout occured
Upgrade firmware failed!
Device eth0:  hwaddr A0-63-91-AA-BB-CC, ipaddr 10.164.183.253, mask 255.255.255.0
        gateway not set, nameserver not set
CONF-REQ sent...Waiting for CONF-ACK...
CONF-REQ sent...Waiting for CONF-ACK...
CONF-REQ sent...Waiting for CONF-ACK...
CONF-REQ sent...Waiting for CONF-ACK...
CONF-REQ sent...Waiting for CONF-ACK...
CONF-REQ sent...Waiting for CONF-ACK...
Checking crc...Loader:raw Filesys:raw Dev:nflash0.os File: Options:(null)
Loading: .

from nmrpflash.

pauliuspetk avatar pauliuspetk commented on September 12, 2024

On an unrelated note, PSA:
current OpenWRT release 23.05.0 and current (as of today) snapshot (r24112-67e465b32e) images both (soft) brick the Netgear R8000, because Ethernet is broken (no packets in or out of any port after booting into OS). Other bcm53xx devices are also affected. Since WiFi is not enabled by default, recovery can be done by flashing a different firmware using nmrpflash v0.9.20 (or a later fixed version).
OpenWRT 23.05.0-rc2 and older work fine. Wait until this issue is fixed before updating to something newer.

from nmrpflash.

jclehner avatar jclehner commented on September 12, 2024

@Gitfoe @pauliuspetk Can you test this version, and verify that it fixes your issue?

(removed)

from nmrpflash.

pauliuspetk avatar pauliuspetk commented on September 12, 2024

I won't be able to touch that router for a while, but will check when able. Hopefully @Gitfoe can verify sooner. Thank you!

from nmrpflash.

causlayer avatar causlayer commented on September 12, 2024

I have an R8000 router, but unfortunately I don’t have a windows system, I have a macbook.

from nmrpflash.

jclehner avatar jclehner commented on September 12, 2024

@causlayer try this:

(removed)

from nmrpflash.

causlayer avatar causlayer commented on September 12, 2024

@causlayer try this:

(removed)

-> % nmrpflash -L
en0              192.168.1.106    78:4f:43:8d:b0:47
p2p0             0.0.0.0          0a:4f:43:8d:b0:47
awdl0            0.0.0.0          0a:57:51:0d:5d:e3
llw0             0.0.0.0          0a:57:51:0d:5d:e3
en5              0.0.0.0          ac:de:48:00:11:22
en10             192.168.1.205    88:d7:f6:db:bd:8e
bridge0          0.0.0.0          82:dc:88:41:44:00
en1              0.0.0.0          82:dc:88:41:44:00
en2              0.0.0.0          82:dc:88:41:44:04
en3              0.0.0.0          82:dc:88:41:44:01
en4              0.0.0.0          82:dc:88:41:44:05
slayer@slayer [21时09分15秒] [~]
-> % sudo /Users/slayer/Downloads/nmrpflash -i en10 -f /Users/slayer/Documents/Software/MacBook/openwrt/package/openwrt-bcm53xx-generic-netgear_r8000-squashfs.chk
Password:
Waiting for Ethernet connection (Ctrl-C to skip).
Advertising NMRP server on en10 ... /
Received configuration request from 28:80:88:2a:59:21.
Sending configuration: 10.164.183.253/24.
Received upload request without filename.
Uploading openwrt-bcm53xx-generic-netgear_r8000-squashfs.chk ... | Timeout while waiting for ACK(1).

from nmrpflash.

jclehner avatar jclehner commented on September 12, 2024

Have you tried the previous version yet?

from nmrpflash.

causlayer avatar causlayer commented on September 12, 2024

Have you tried the previous version yet?

The previous version was fine, I tried it before。

from nmrpflash.

jclehner avatar jclehner commented on September 12, 2024

Please post the output of

-> % sudo /Users/slayer/Downloads/nmrpflash -i en10 -f /Users/slayer/Documents/Software/MacBook/openwrt/package/openwrt-bcm53xx-generic-netgear_r8000-squashfs.chk -vv

from nmrpflash.

causlayer avatar causlayer commented on September 12, 2024
sudo /Users/slayer/Downloads/nmrpflash -i en10 -f /Users/slayer/Documents/Software/MacBook/openwrt/package/openwrt-bcm53xx-generic-netgear_r8000-squashfs.chk -vv
Password:
Adding 10.164.183.252 to interface en10.
Advertising NMRP server on en10 ... |
Received configuration request from 28:80:88:2a:59:21.
Sending configuration: 10.164.183.253/24.
Received upload request without filename.
Using remote filename 'openwrt-bcm53xx-generic-netgear_r8000-squashfs.chk'.
Uploading openwrt-bcm53xx-generic-netgear_r8000-squashfs.chk ... Drained 10 packet(s) from rx buffer
| Timeout while waiting for ACK(1).

from nmrpflash.

jclehner avatar jclehner commented on September 12, 2024

Please try this version, and run both nmrpflash -L and the previous command, and post the output of both:

(removed)

from nmrpflash.

causlayer avatar causlayer commented on September 12, 2024

Please try this version, and run both nmrpflash -L and the previous command, and post the output of both:

nmrpflash-0.9.21-6-g4a814f3-macos.zip

% nmrpflash -L
en0              10.0.0.14        78:4f:43:8d:b0:47
p2p0             0.0.0.0          0a:4f:43:8d:b0:47
awdl0            0.0.0.0          0a:57:51:0d:5d:e3
llw0             0.0.0.0          0a:57:51:0d:5d:e3
en5              0.0.0.0          ac:de:48:00:11:22
en10             169.254.244.201  88:d7:f6:db:bd:8e
bridge0          0.0.0.0          82:dc:88:41:44:00
en1              0.0.0.0          82:dc:88:41:44:00
en2              0.0.0.0          82:dc:88:41:44:04
en3              0.0.0.0          82:dc:88:41:44:01
en4              0.0.0.0          82:dc:88:41:44:05

% sudo /Users/slayer/Downloads/nmrpflash -i en10 -f /Users/slayer/Documents/Software/MacBook/openwrt/package/openwrt-bcm53xx-generic-netgear_r8000-squashfs.chk -vv
Adding 10.164.183.252 to interface en10.
Advertising NMRP server on en10 ... \
Received configuration request from 28:80:88:2a:59:21.
Sending configuration: 10.164.183.253/24.
Received upload request without filename.
Using remote filename 'openwrt-bcm53xx-generic-netgear_r8000-squashfs.chk'.
Uploading openwrt-bcm53xx-generic-netgear_r8000-squashfs.chk ... Drained 10 packet(s) from rx buffer in 39987 ms
| Timeout while waiting for ACK(1).

% sudo /Users/slayer/Downloads/nmrpflash1 -i en10 -f /Users/slayer/Documents/Software/MacBook/openwrt/package/openwrt-bcm53xx-generic-netgear_r8000-squashfs.chk -vv
Adding 10.164.183.252 to interface en10.
Advertising NMRP server on en10 ... /
Received configuration request from 28:80:88:2a:59:21.
Sending configuration: 10.164.183.253/24.
Received upload request without filename.
Using remote filename 'openwrt-bcm53xx-generic-netgear_r8000-squashfs.chk'.
Uploading openwrt-bcm53xx-generic-netgear_r8000-squashfs.chk ... OK (30539834 b)
Waiting for remote to respond.
Received keep-alive request (29).
Remote finished. Closing connection.
Reboot your device now.

from nmrpflash.

jclehner avatar jclehner commented on September 12, 2024

I think I've got it!

nmrpflash-0.9.21-10-ga045438-macos.zip

or

nmrpflash-0.9.21-10-ga045438-win32.zip

from nmrpflash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.