Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
openwrt:reflash_wo_usb [2014/09/06 04:46]
matthias [using Python & Linux] changed url to auto.install images
openwrt:reflash_wo_usb [2017/12/16 06:44]
comap89 [Reflash in Failsafe-Mode using netcat] Typo.
Line 46: Line 46:
  
  
-===== Reflash in Failsafe-Mode using netcat ​===== +===== Reflash in Failsafe-Mode using Netcat ​===== 
-Your box gets messed up? Sometimes it is only possible to recover it during failsafe mode. But how can you get the image to your box?+Your box gets messed up? Sometimes it is only possible to recover it during failsafe mode. But how can you put the firmware ​image file to your box?
  
-I read about something called ​netcat. The detailed [[http://​techtinkering.com/​2013/​03/​25/​using-netcat-to-create-ad-hoc-links-between-applications-and-machines/?​utm_source=feedburner&​utm_medium=feed&​utm_campaign=Feed%3A+TechTinkering+%28TechTinkering%29|HowTo]] does not fit well, because the most images lack the server support. After some test, I found outthat you can turn it around.+I read about something called ​Netcat. The detailed [[http://​techtinkering.com/​2013/​03/​25/​using-netcat-to-create-ad-hoc-links-between-applications-and-machines/?​utm_source=feedburner&​utm_medium=feed&​utm_campaign=Feed%3A+TechTinkering+%28TechTinkering%29|HowTo]] does not fit well, because the most images lack the server support. After some test, I found out that you can turn it around.
  
-This method works if your computer is linux. If you don't have linux as OS, try a live version of it.. i.e. [[http://​grml.org|grml]].+This method works if your computer is Linux. If you don't have Linux as OS, try a live version of iti.e. [[http://​grml.org|grml]].
  
-To transfer a file to your router (The following assumesthat you already have access via failsafe-mode):​+To transfer a file to your router (The following assumes that you already have access via failsafe-mode):​
  
-**On the computer** check what you IP is (ifconfig). Then we are starting a Server and pipe the image file into it. After it is done, it will generate a hash-value.+**On the computer** check what you IP is (command: ​ifconfig). Then we are starting a Server and pipe the image file into it. After it is done, it will generate a hash-value.
  
   # cat openwrt....bin | nc -l 3333 && md5sum openwrt....bin   # cat openwrt....bin | nc -l 3333 && md5sum openwrt....bin
   ​   ​
-(sometimes (on my gentoo-box it was) the command is)+(sometimes (on my Gentoo-box it was) the command is)
  
   # cat openwrt....bin | nc -l -p 3333  -X   &&​ md5sum openwrt....bin ​   # cat openwrt....bin | nc -l -p 3333  -X   &&​ md5sum openwrt....bin ​
   ​   ​
  
-**On the router** we connect to the Server(on the Router can the filename be shorter, different)+**On the router** we connect to the Server (on the Router can the filename be shorter, different):
  
   # cd /tmp   # cd /tmp
Line 70: Line 70:
   # md5sum openwrt....bin   # md5sum openwrt....bin
   ​   ​
-Compare the hash value of both outputs, if they are equal proceed with flashing.+Compare the hash value of both outputs, if they are equal then proceed with flashing.