Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision Next revisionBoth sides next revision | ||
| zh:docs:guide-developer:quickstart-build-images [2017/07/25 03:15] – created liangjia | zh:docs:guide-developer:quickstart-build-images [2020/01/05 09:57] – 同步英文版本更新 lujimmy | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== 快速编译向导 | + | ====== |
| + | 这是一个关于如何构建您自己第一个**快照版**OpenWrt固件的简短指南,如果您想编译一个**稳定版**使用[[docs: | ||
| + | 它没有掩饰任何陷阱,但如果一切顺利,提供了一个快速的方法。实现相同目标的替代指南有: | ||
| + | [[docs: | ||
| + | [[docs: | ||
| - | This is a very short guide on how to compile your first firmware. | ||
| - | It does not cover any pitfalls, but provides a quick way if everything goes well. | ||
| - | First we need to make sure the dependencies are installed (for Debian/ | + | {{page> |
| + | 首先,我们需要确认所有的依赖软件已安装。下面以Debian/ | ||
| < | < | ||
| sudo apt-get install subversion g++ zlib1g-dev build-essential git python rsync man-db | sudo apt-get install subversion g++ zlib1g-dev build-essential git python rsync man-db | ||
| - | sudo apt-get install libncurses5-dev gawk gettext unzip file libssl-dev wget | + | sudo apt-get install libncurses5-dev gawk gettext unzip file libssl-dev wget zip time |
| </ | </ | ||
| - | + | 接下来,使用以下命名获取OpenWrt的源代码: | |
| - | 拉取 LEDE 源代码命令: | + | |
| < | < | ||
| - | git clone https:// | + | git clone https:// |
| - | cd lede | + | cd openwrt |
| ./ | ./ | ||
| ./ | ./ | ||
| - | make defconfig | ||
| make menuconfig | make menuconfig | ||
| </ | </ | ||
| - | + | 最后一个命令将打开一个菜单,如果您想为" | |
| - | The last command will open a menu. | + | |
| - | + | ||
| - | If you want to build images for the " | + | |
| * " | * " | ||
| * " | * " | ||
| - | Select exit and save your settings. | + | 然后选择退出并保存设置。现在我们就可以开始使用以下命令构建固件了,该过程将持续一段时间: |
| - | Now build images. That may take some time: | + | |
| < | < | ||
| Line 38: | Line 34: | ||
| </ | </ | ||
| - | Afterwards, the images can be found in ./ | + | 完成以后,固件可以在目录 |
| - | + | * 以 *-factory.bin | |
| - | The *-factory.bin | + | * 以 *-sysupgrade.bin |
| - | The *-sysupgrade.bin | + | |
| - | + | ||
| - | 注意: | + | |
| - | + | ||
| - | * For recompiling the images, just execute make again. | + | |
| - | * This will now be much faster as well. | + | |
| - | * Change settings with //make menuconfig// | + | |
| - | * Files placed into a directory called files, will be placed into the root file system of the images. E.g. files/ | + | |
| + | 备注: | ||
| + | * 如需重新编译固件,再次执行'' | ||
| + | * 如需快速编译,可使用'' | ||
| + | * 使用 '' | ||
| + | * 您可以将固件中的自定义文件放入目录''< | ||