Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision Next revisionBoth sides next revision | ||
| zh-cn:doc:howto:generic.flashing [2015/05/06 10:55] – fix link theoradicus | zh-cn:doc:howto:generic.flashing [2018/03/03 20:24] – ↷ Links adapted because of a move operation | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== 安装OpenWrt(通用) ====== | ||
| + | 安装OpenWrt的方法往往是依设备本身而定的。在这个wiki页面[[toh: | ||
| + | |||
| + | {{page> | ||
| + | |||
| + | :!: 如果你在安装OpenWrt的时候失败了,那么[[docs: | ||
| + | |||
| + | :!: 本篇说明是非常泛泛而言的,你不能只是照本宣科地照着做,你必须根据你的硬件来做出相应的调整。 | ||
| + | |||
| + | 通常来说,你有三种选择: | ||
| + | * **'' | ||
| + | * **'' | ||
| + | * **'' | ||
| + | |||
| + | ===== 四种方法 ===== | ||
| + | 有四种方法可以把OpenWrt安装在一个设备上: | ||
| + | |||
| + | ==== 1. 通过原始固件 ==== | ||
| + | 通过你的浏览器打开// | ||
| + | |||
| + | **'' | ||
| + | |||
| + | |||
| + | ==== 2. 通过Bootloader和网口 ==== | ||
| + | 正是为了便于这方面, | ||
| + | |||
| + | * bootloader的预设IP地址 (启动到系统后的ip和BL的ip不一定相同哦!) | ||
| + | * 使用的是以上那种协议 | ||
| + | * bootloader是做客户端还是服务端 | ||
| + | * 预设服务的端口号, | ||
| + | * 接口要连上 | ||
| + | * 可能需要用户名和密码进行登录 | ||
| + | * 了解设备启动后连接的**时间点**是很有用的, | ||
| + | |||
| + | 一旦你明白了上面的参数,你就可以接着一下操作: | ||
| + | - 在你的电脑上安装相应的软件 (即在本案中bootloader内置了FTP-server, | ||
| + | - 阅读该软甲你的手册! 比如 '' | ||
| + | - 给你的电脑设置一个与bootloader相同网段的静态ip | ||
| + | - 用正确的端口连接你的电脑 | ||
| + | - 通电 | ||
| + | |||
| + | - 与bootloader取得连接 | ||
| + | - 按具体情况用openwrt固件来覆盖原来的固件 | ||
| + | - **<color red> | ||
| + | |||
| + | **'' | ||
| + | **'' | ||
| + | |||
| + | |||
| + | === 具体的操作 === | ||
| + | * -> [[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! | ||
| + | |||
| + | ---- | ||
| + | |||
| + | |||
| + | ===== After installation of OpenWrt ===== | ||
| + | ==== Back to original firmware ==== | ||
| + | -> [[docs: | ||
| + | |||
| + | ==== OpenWrt Sysupgrade ==== | ||
| + | -> [[docs: | ||
| + | |||
| + | ==== OpenWrt Failsafe ==== | ||
| + | -> [[docs: | ||