Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision Next revisionBoth sides next revision | ||
| zh-tw:doc:howto:generic.flashing [2015/04/26 07:17] – fix link theoradicus | zh-tw:doc:howto:generic.flashing [2018/03/03 20:55] – ↷ Links adapted because of a move operation bobafetthotmail | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Installing OpenWrt (generic) ====== | ||
| + | The Installation of OpenWrt is quite device specific. A detailed procedure should be found on the device-pages in this wiki: [[toh: | ||
| + | {{page> | ||
| + | |||
| + | :!: If your attempt to install OpenWrt fails, [[docs: | ||
| + | |||
| + | :!: This HowTo is VERY generic. You cannot just use it, but you have to adapt values and other stuff to you hardware | ||
| + | |||
| + | Generally, you have three options: | ||
| + | * **'' | ||
| + | * **'' | ||
| + | * **'' | ||
| + | |||
| + | ===== Four Methods ===== | ||
| + | There are four ways to install OpenWrt on a device: | ||
| + | |||
| + | ==== 1. via original firmware ==== | ||
| + | Open the WebUI of the //original firmware// with your web browser and install the OpenWrt firmware image file using the //" | ||
| + | |||
| + | **'' | ||
| + | |||
| + | |||
| + | ==== 2. via Bootloader and Ethernet port ==== | ||
| + | To facilitate exactly this, namely to allow flashing of a firmware, most if not all [[docs: | ||
| + | |||
| + | * the preset IP address in the bootloader (this is not necessarily the same IP address the device has after it has booted the original firmware!) | ||
| + | * which of the above protocols is used | ||
| + | * whether the bootloader acts as client or as server | ||
| + | * the preset port number for the service, if not [[wp> | ||
| + | * the interface you need to connect to | ||
| + | * possibly a user name and a password to login | ||
| + | * it is useful to know the **time window** you have after starting the device to obtain a connection to it, e.g. a 1 sec time windows 5 sec after start | ||
| + | |||
| + | Once you know all of the above parameters, you may proceed: | ||
| + | - install the corresponding software on your PC (i.e. in case the bootloader contains a FTP-server, you need a FTP-client) | ||
| + | - read the manual pages for that software! e.g. '' | ||
| + | - give your PC a static IP address in the same network as pre-configured in the bootloader | ||
| + | - connect your PC with the correct port | ||
| + | - power cycle the device | ||
| + | |||
| + | - obtain a connection to the bootloader | ||
| + | - follow specific procedures to overwrite original firmware with OpenWrt firmware file | ||
| + | - **<color red>Do not overwrite or alter the bootloader</ | ||
| + | |||
| + | **'' | ||
| + | **'' | ||
| + | |||
| + | |||
| + | === Specific Howtos === | ||
| + | * -> [[docs: | ||
| + | * -> [[docs: | ||
| + | * -> [[docs: | ||
| + | |||
| + | ==== 3. via Bootloader and Serial port ==== | ||
| + | * -> [[docs: | ||
| + | |||
| + | ==== 4. via JTAG ==== | ||
| + | -> [[docs: | ||
| + | |||
| + | |||
| + | ---- | ||
| + | ==== 5. install a ramdisk-image into main memory ==== | ||
| + | This step shows you howto upload a new ramdisk image to the device. The existing firmware on the flash remains unchanged! You require a working serial cable to do the ramdisk upload. | ||
| + | |||
| + | - specifically select the RAMDISK option to make OpenWrt Buildroot create a ramdisk-image for you to upload | ||
| + | - connect an ethernet cable between your computer and one of the LAN ports (doesn' | ||
| + | - connect your serial cable to the header on the WNDR3700 and set your local terminal program (eg. minicom) to | ||
| + | * 115200 bps 8N1 | ||
| + | * no software flow control | ||
| + | * no hardware flow control. | ||
| + | - set your computer' | ||
| + | - set up a TFTP server on your local computer to respond to requests on the 192.168.0.10 interface. Make sure that the ramdisk image (openwrt-ar71xx-uImage-lzma.bin) is in the directory used by the TFTP server. | ||
| + | - Fix the header for the ramdisk image so that it's recognized by the u-Boot firmware. Use the wndr3700.c program that was posted by *aorlinsk* on the forums here http:// | ||
| + | * <code bash> | ||
| + | ./wndr3700 openwrt-ar71xx-uImage-lzma.bin openwrt-fixed.out | ||
| + | </ | ||
| + | - power up the board. When it gets to the message asking you to press any key to interrupt the normal bootup sequence, press a key on the serial console (or just hold down the enter key from first bootup until you get to a prompt): | ||
| + | - enter the following into the serial console:< | ||
| + | setenv ipaddr 192.168.0.1 | ||
| + | setenv serverip 192.168.0.10 | ||
| + | setenv bootargs ' | ||
| + | tftpboot 80800000 openwrt-fixed.out | ||
| + | bootm | ||
| + | </ | ||
| + | - The system should boot! | ||
| + | |||
| + | Concrete examples: [[toh/ | ||
| + | |||
| + | |||
| + | ---- | ||
| + | Don't forgett to consult the other [[doc: | ||
| + | ---- | ||