Giter Site home page Giter Site logo

Comments (14)

jclehner avatar jclehner commented on September 12, 2024 1

finally got something!

On which LAN port?

I tried playing with my network settings and managed to get further again, with the same error message.

Do you remember what you changed exaclty?

# sudo nmrpflash -i eth1 -f firmware.img   

Always use -vv for now.

Waiting for Ethernet connection (Ctrl-C to skip).
Advertising NMRP server on eth1 ... -
Received configuration request from c8:9e:43:e4:89:4f.
Sending configuration: 10.164.183.253/24.
Received upload request without filename.
Uploading firmware.img ... 

and then it just hangs while the router goes into its setup.

A Wireshark capture of this exchange would be incredibly useful!

from nmrpflash.

jclehner avatar jclehner commented on September 12, 2024 1

Thanks. I see two issues here:

  1. While your router acknowledges the TFTP upload requests, these responses are not processed by nmrpflash. Is there a firewall running on Kali? You might have to disable that!

  2. The above issue should cause nmrpflash to print a timeout message. Can you try either version 0.9.21 and 0.9.20?

from nmrpflash.

dtpeters avatar dtpeters commented on September 12, 2024

I knew I should've waited. Still not working but I got it to build on Kali.

from nmrpflash.

jclehner avatar jclehner commented on September 12, 2024

Also the homebrew installed binary needs sudo permissions [...]

Both binaries need sudo permissions (i.e. root). Did the linux binary (from the releases section) not print an error message when run without sudo?

[...] but can't resolve the path to the binary and thus refuses to run.

Please show the exact error message.

following the directions with two different brand new routers I get either an "Error: Ethernet cable is unplugged" or if I ctrl-c past that

Have you tried different Ethernet ports?

from nmrpflash.

dtpeters avatar dtpeters commented on September 12, 2024

Thank you for the quick response! I'll switch over to the machine to cut and paste your error messages, but I'm able to sniff the connection with wireshark and maybe I'm just missing the window for Uboot? I can see the utility sending the advertisiments and then the netgear stack wake up and use the connection for its own sequence.
I have indeed tried different ethernet ports, same results.
And yes, both binaries needed root, that was my poor communication.

from nmrpflash.

jclehner avatar jclehner commented on September 12, 2024

A wireshark dump file of the session could be useful! Either attach it here, or send me an email!

from nmrpflash.

dtpeters avatar dtpeters commented on September 12, 2024

Your suggestion to try different ethernet ports was the right one, I thought you meant on the client device, not on the router. I did that, got to a failed upload and then netgear took over again.
Trying again I now get this error message.

Waiting for Ethernet connection (Ctrl-C to skip).
rtnl_addr_add: Unspecific failure

from nmrpflash.

jclehner avatar jclehner commented on September 12, 2024

Your suggestion to try different ethernet ports was the right one

Which Ethernet port(s) worked, and which didn't?

I did that, got to a failed upload and then netgear took over again.

What was the exact output of nmrpflash? Please re-run with -vv, and always post the full output of the commands you ran.

from nmrpflash.

dtpeters avatar dtpeters commented on September 12, 2024

Brand new router, the internet port (the blue one)
Command:
sudo nmrpflash -i eth0 -f openwrt-23.05.0-ramips-mt76x8-netgear_r6080-squashfs-factory.img -vv

Temporarily disabling NetworkManager on interface.
Waiting for Ethernet connection (Ctrl-C to skip).
Error: Ethernet cable is unplugged.

Nothing captured by wireshark

from nmrpflash.

dtpeters avatar dtpeters commented on September 12, 2024

Same message on the other port, i.e. LAN port #1

from nmrpflash.

dtpeters avatar dtpeters commented on September 12, 2024

finally got something!

I tried playing with my network settings and managed to get further again, with the same error message.

# sudo nmrpflash -i eth1 -f firmware.img   
Waiting for Ethernet connection (Ctrl-C to skip).
Advertising NMRP server on eth1 ... -
Received configuration request from c8:9e:43:e4:89:4f.
Sending configuration: 10.164.183.253/24.
Received upload request without filename.
Uploading firmware.img ... 

and then it just hangs while the router goes into its setup.

from nmrpflash.

dtpeters avatar dtpeters commented on September 12, 2024

I've sent you an email with wireshark captures of two sessions, both reproducing the behavior. Thank you so much for taking the time to look into this.

from nmrpflash.

dtpeters avatar dtpeters commented on September 12, 2024

I'll have a look at both of these suggestions this week and update accordingly. Thank you for taking so much time, it is sincerely appreciated.

from nmrpflash.

dtpeters avatar dtpeters commented on September 12, 2024

Update time! I removed the most recent version of nmrpflash, built and installed the 0.9.20 version, which worked! On the first try too. I used LAN port # 1 on the router, no problems. Also openwrt has a note on this devices page to say that the filesystem might not be up, but it was. Fully ready to go after the flashing. Thank you again for taking the time to investigate this. I am happy to do some follow up testing with the other devices, checking log files or a BPF based tool on the most recent version to see why it in particular is giving users a hardtime on this specific device. I'll send along any thing that might look interesting.

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.