Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| zh:docs:guide-developer:quickstart-build-images [2018/10/13 10:18] – lujimmy | zh:docs:guide-developer:quickstart-build-images [2020/01/05 09:57] – 同步英文版本更新 lujimmy | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== 固件构建快速入门 ====== | ====== 固件构建快速入门 ====== | ||
| - | 这是一个关于如何构建您自己第一个**快照版**OpenWrt固件的简短指南。它没有掩饰任何陷阱,但如果一切顺利,提供了一个快速的方法。实现相同目标的替代指南有: | + | 这是一个关于如何构建您自己第一个**快照版**OpenWrt固件的简短指南,如果您想编译一个**稳定版**使用[[docs: |
| + | 它没有掩饰任何陷阱,但如果一切顺利,提供了一个快速的方法。实现相同目标的替代指南有: | ||
| [[docs: | [[docs: | ||
| [[docs: | [[docs: | ||
| Line 7: | Line 8: | ||
| {{page> | {{page> | ||
| - | First we need to make sure the dependencies are installed (for Debian/ | + | 首先,我们需要确认所有的依赖软件已安装。下面以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 zip time | sudo apt-get install libncurses5-dev gawk gettext unzip file libssl-dev wget zip time | ||
| </ | </ | ||
| - | + | 接下来,使用以下命名获取OpenWrt的源代码: | |
| - | Get the LEDE source code: | + | |
| < | < | ||
| git clone https:// | git clone https:// | ||
| Line 25: | Line 23: | ||
| 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 40: | Line 34: | ||
| </ | </ | ||
| - | Afterwards, the images can be found in ./ | + | 完成以后,固件可以在目录 |
| - | + | * 以 *-factory.bin | |
| - | * The *-factory.bin | + | * 以 *-sysupgrade.bin |
| - | * The *-sysupgrade.bin | + | |
| - | + | ||
| - | Notes: | + | |
| - | | + | 备注: |
| - | * For faster compiling, use '' | + | |
| - | * Change settings with '' | + | * 如需快速编译,可使用'' |
| - | * You can include custom files in your image by placing them in ''< | + | * 使用 |
| + | * 您可以将固件中的自定义文件放入目录''< | ||