Install openwrt on dir-300




















The most important rule of thumb you need to follow is that while there is any kind of firmware upgrade is in process, do NOT switch off the router. If a firmware upgrade gets interrupted the router can take permanent damage.

I performed the following on my test computer that runs a bit version of Windows Telnet client — I used the open source Putty. Files needed Get these files before you start the process, because once you start it you may not have internet connection unless you have another router. Having the latest factory image at hand is also a good idea, although not required. Telnet in to the router using Putty on port Steps 2 to 6 shown from above Success!

This router is rather difficult to brick as it has some protection against not suitable firmware. However, if you do manage to make it unresponsive all is not lost. The OpenWrt forums are a great starting point. Finally I ended up opening the router as in I removed its case and created a connection to its serial interface.

With the serial cable properly attached see the label I added to the PCB for extra safety I could now observe what really was going on in the router.

When booting up the rooter I could see all the messages it spit out on the serial port. At the next boot I chose 1 and used tftp to upload the original firmware. At this stage the router was running the original firmware from memory — switching the router off would make it forget this. However, this was enough for me to get in to the emergency firmware upload page:.

On this page I was able to upload the original firmware to the router and restore its workings to factory default. Back to square one. At least I could continue to try other ways knowing that I can get back to this any time.

Tftpd32 — an open source, lightweight tftp client Firefox browser — I also tried Edge, Internet Explorer and Chrome, they did not work. Hardware tools used. So after factory flash don't reboot, just write the sysupgrade.

The normal web interface might complain about invalid image files and thus not work as seen with vendor firmware version 2. Use the emergency web interface. NOTE: Routers with new firmwares do not accept the current image through the emergency room and are therefore not flashable this way.

To circumvent this, you should downgrade u-boot before flashing. Using curl instead of web browser may be worth trying. Can be flashed from Emergency Mode with install file. This means you have to add the line above and build OpenWrt from the sources.

As of August Debian 8 Jessie will work, latest versions will fail due to perl incompatibility. NOTE: New D-Link firmwares may contain new u-boot bootloader, so you may have problems with installing via emergency web interface. With this you can upload firmware if you accidently locked yourself out of the router or broke the installed firmware. Download links see above. If you're flashing from the original D-Link firmware, use the factory builds.

NOTE: Use the correct build for your hardware version! This can be found on the router itself or on the box it came in. NOTE: Disable any other interfaces present on your computer before proceeding, as example wireless interfaces, to minimize confusion. If you can't connect via your browser connect via SSH to If upload page times out or router restarts, use curl instead, i.

If you have already installed a version of OpenWrt and you wish to upgrade your installation you can use sysupgrade. PCB top:. PCB bottom:. Note: Since Chaos Calmer Set up your Internet connection, configure wireless etc. Get a root shell and issue these commands: bash Ss PM The basic procedure of using a tftp client to upload a new firmware to your router: Unplug the power to your router. Plug the Ethernet connection from your computer acting as tftp client into a LAN port on your model.

See your model's OpenWrt wiki devicepage for details on which port to use. Give it the router's address specific to model and bootloader, see your model's wiki page. Plug-in your router while having the tftp client running and constantly probing for a connection. The tftp client will receive an ack from the bootloader and starts sending the firmware. Please be patient , the reflashing occurs after the firmware has been transferred. In most cases the router will automatically reboot itself.

Some models do not reboot so wait at least 15 minutes before power cycling them. Note that the bootloader usually does not use the IP address or MAC address stored in nvram , it will revert to a bootloader default instead. See your model's wiki documentation for specifics. This is a requirement to make TFTP work on computers where the local link is brought up too late and is usually simpler than trying to force the link to stay up instead. Sometimes it helps to have a preconfigured arp entry to increase your changes of catching the tftp window.

As a single command-line: atftp --trace --option "timeout 1" --option "mode octet" --put --local-file openwrt-xxx-x. Some devices will also respond to ping while others do not. Address: Your bootloaders IP address. Server is the IP address of your bootloader tftp server.

Open a command window cmd. Plug in your Windows network interface into the appropriate port on the device you will be flashing. Static IP your wired Ethernet interface to an appropriate IP address on the same network as your bootloaders network. Example: Your bootloader has an IP of Disable Windows media sensing shouldn't be necessary if you have a switch in the middle.

Flash usually takes a few minutes. See your device's OpenWrt wiki devicepage for specifics. You will probably want to re-enable Windows media sensing and revert your other network changes.

Invalid Password The firmware has booted and you're connected to a password protected tftp server contained in the firmware, not the bootloader's tftp server. Timeout Ping to verify the router is online Try a different tftp client some are known not to work properly Timeout Ping to the router works NetworkManager Linux may still be running causing autosense.

Try again with manual configuration. This website uses cookies.



0コメント

  • 1000 / 1000