Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. todo: explain upgrade procedure.
  2.  
  3. goto: www.openwrt.org
  4. find the "bin"/firmware file corresponding to your device (if supported).
  5.  
  6. note:
  7. There seems to always be TWO version of openWRT available: *Factory and *Sysupgrade.
  8. The *Factory version is needed only when flashing from stock-manufacturer firmware TO openWRT.
  9. *Factory needs to be special because stock-manufacturer have some checks built-in so that no wrong firmware is swallowed by the device and turns it into a brick. (it's a baby-DRM scheme?)
  10. Once openWRT is installed, the *Sysupgrade version is then used to upgrade openWRT to newer versions of itself.
  11.  
  12. On the original web GUI of the device got to "firmware update".
  13. select the downloaded file from openWRT (*Factory) and click update/brick button.
  14. guess and wait for flashing to finish.
  15.  
  16. change the ip address of the computer to something in the 192.168.1.2-254 (netmask:255.255.255.0) range.
  17. example: 192.168.1.2
  18.  
  19. it CANNOT be 192.168.1.1, which is the default ip-address of the newly flashed openWRT running device.
  20.  
  21. connect the computer via ethernet DIRECTLY to the openWRT device.
  22.  
  23. on computer, in a terminal / command-line, enter:
  24. ssh root@192.168.1.1
  25. press enter-keyboard at password prompt.
  26.  
  27. enter:
  28. passwd
  29. and enter new password for openWRT device. (maybe write it down?)
  30.  
  31. next configure ip-address, dns and gateway for openWRT device so it can be in the right place on the network.
  32. example:
  33. uci set network.lan.gateway=192.168.0.1
  34. uci set network.lan.dns=8.8.8.8 (super-spy Google DNServer)
  35. uci set network.lan.ipaddr=192.168.0.100
  36.  
  37. to make the above settings "stick" also enter:
  38. uci commit
  39.  
  40. now it's time to reboot the device:
  41. reboot
  42. wait a few minutes for the device to reboot.
  43.  
  44. Next remove the device from ethernet cable (and power) and connect it in the right place on the network.
  45. Also reset the ip-address of the computer to original ip and connect computer to original network.
  46. -
  47. to install a sane configuration interface in the year 2018+ do following:
  48.  
  49. connect to device again:
  50. ssh root@192.168.0.100
  51. enter the newly set password.
  52.  
  53. check setting for gateway and dns:
  54. ping 192.168.0.1
  55. ping 8.8.8.8
  56.  
  57. if both of above worked, shown by ping reply times, continue:
  58. opkg update
  59. opkg install luci
  60.  
  61. this will update repositories(?) and fetch a web-browser user-interface (webserver: uhttpd) to configure the device.
  62.  
  63. to run the web-config-interface, type:
  64. /etc/init.d/uhttpd start and hit enter-keyboard.
  65.  
  66. the web-configuration interface should now be available via "http://192.168.0.100" in any browser that can connect to the openWRT device via ethernet.
  67.  
  68. to make the web-configuration interface stick around thru reboots, "enable" the interface via:
  69. /etc/init.d/uhttpd enable
  70.  
  71. link: https://openwrt.org/docs/guide-quick-start/webadmingui
  72. link: https://openwrt.org/faq/before_installation
  73. link: https://openwrt.org/faq/after_installation
  74. link: https://wiki.openwrt.org/doc/uci
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement