现在的位置: 首页 > 综合 > 正文

[转]如何编译OpenWrt

2013年10月12日 ⁄ 综合 ⁄ 共 14417字 ⁄ 字号 评论关闭

原文:http://blog.chinaunix.net/uid-25890465-id-2497754.html

(!文末,附加人生如戏写的编译OPENWRT的TXT内容,可直接跳至末尾,有例子)

  Openwrt 官方正式的发行版是已编译好了的映像文件(后缀名bin或trx、trx2),此映像文件可从Openwrt官方网站的下载页面中轻松获取到,连接地址为 OpenWrt官方网站。这些编译好的映像文件是基于默认的配置设置,且只针对受支持的平台或设备的。因此,为什么要打造一个自己的映像文件,理由有以下四点:

您想拥有一个个性化的配置OpenWrt(彰显个性,在朋友圈子里显摆显摆,开个玩笑);
您想在实验性的平台上测试OpenWrt;
您参与测试或参与开发OpenWrt的工作;
或者,最简单的目的就是为了保持自己的Openwrt为最新版本;
  若想实现上述目的,其实很简单,按下述文字即可成功编译出一个您的Openwrt来。
准备工作
 在开始编译Openwrt之前需要您做些准备工作;与其他编译过程一样,类似的编译工具和编译环境是必不可少的:
 一个构建OpenWrt映像的系统平台,简单说就是准备一个操作系统(比如Ubuntu、Debian等);
 确保安装了所需的依赖关系库, (在debian系统中就是安装各种需要的软件包)
 OpenWrt源代码副本
 首先, 开机登陆到支持编译Openwrt的操作系统(废话了)。实体机或者虚拟机(Vmware 或者 Qemu)里的操作系统都行,这里推荐使用Linux系统。 bsd和mac osx系统也可以编,但不推荐,且未验证是否可编译成功。下文假定您使用的是Debian操作系统,使用 apt-get 来管理包. 替代的选择是 Ubuntu (分支 Kubuntu, Xubuntu 等即可)。
 第二步, 就是安装所需要的各种软件包, 包括编译器,解压工具,特定的库等. 这些工作可以简单的通过键入以下命令 (通常需要root 或者是 sudo 权限),以root权限安装下列软件包(可能并不完整,会有提示,提示缺少即装就可以了):
 32位(x86)请执行下列命令:
# apt-get install build-essential asciidoc binutils bzip2 gawk gettext \
  git libncurses5-dev libz-dev patch unzip zlib1g-dev
 
 64位(x86_64)请执行下列命令(多装了哪些库或软件包呢?请您仔细看一看哦):
# apt-get install build-essential asciidoc binutils bzip2 gawk gettext \
  git libncurses5-dev libz-dev patch unzip zlib1g-dev ia32-libs \
  lib32gcc1 libc6-dev-i386
 
 参考 本列表中 所列的编译环境所需要软件包或库。
 某些依赖的为库或软件包也许操作系统中已经安装过,此时apt-get会作出提示(提示您忽略或重新安装的),别紧张,放轻松些,编译Openwrt不会像编译DD-WRT那样难的(至少本人是体会到了编译DD-WRT的难)。
 最后下载一份完整的 Openwrt 源码到编译环境中。关于Openwrt的源代码下载,途径有二,一是通过 svn ,一是通过 git,建议使用 svn ,因为Openwrt主要以 svn 来维护Openwrt系统的版本。另外,请注意Openwrt中不同的分支版本,一个是用得较多的开发快照,俗称 trunk,二是稳定版,俗称 backfire。

安装Subversion
 若你想通过svn下载源代码,你需安装 Subversion。Subversion,或称SVN, 是OpenWrt的project中用来控制版本的系统,它非常类似的 CVS的界面和使用条款。 执行下述命令即可安装SVN,很容易的:

# apt-get install subversion
 
 Subversion安装完毕,通过SVN命令可获取得到一份OpenWrt纯净源代码。您还得创建一个目录以便存放获取得到的Openwrt源代码,要获取源代码你还得输入subversion命令来获取 (svn里这种操作称之为'check out') 。命令很简单的,继续看下去就能见到了,别着急,耐心点儿。

编译流程
 编译专属于您的设备的特定Openwrt固件以一下五个步骤:
 通过Subversion命令获得源代码;
 更新(或安装) package feeds[package feeds无法确切翻译,待译吧);
 创建一个默认配置以检查编译环境是否搭建好了 (假如需要的话);
 用Menuconfig来配置即将编译生成的固件映像文件的配置项;
 最后开始编译固件;
下载源代码
 最后,下载一份完整的OpenWrt源代码。你可选择:
 下载稳定发行版,或
 下载开发版 (俗称"trunk"版)。
使用发行版的源码
 截止本文时, Openwrt公开发行的稳定版为 OpenWrt 10.03 "backfire"。此版本是最稳定的,但也许不包括最新更新的补丁或最新编写的出的新功能。
 下述代码即举例说明了通过svn从brandkfire获得backfire源代码(此版本意思是从trunk分支的补丁也在backfire版本中了,即包含修复补丁):

# mkdir OpenWrt/
# cd OpenWrt/
# svn co svn://svn.openwrt.org/openwrt/branches/backfire
 
注解: 上述svn命令将在当前目录创建一个 OpenWrt/backfire/ 子目录,此目录包含此命令获取到的源代码。
 您也可以通过下述命令,下载不含修复补丁的backfire的原版源码:
# svn co svn://svn.openwrt.org/openwrt/tags/backfire_10.03
 
使用开发版源代码
 当前的开发版本分支(trunk)已包含最新的实验补丁。此分支或许还突破了Openwrt原来所不支持的硬件设备的限制哦,惊喜的同时也有风险存在。因此,编译trunk版,慎之~

# mkdir OpenWrt/
# cd OpenWrt/
# svn co svn://svn.openwrt.org/openwrt/trunk/
 
 更多详细资料详见:
https://dev.openwrt.org/wiki/GetSource
.
跟进并更新源代码
 因Openwrt的源代码随时都会变动,故此命令将确保您所获取得到的源码的最新性。下述假设您用的是backfire版本的源码:
## Here, backfire is the directory name of the current release branch you're tracking
# cd OpenWrt/backfire/
# svn up
 
 'svn up' 命令用于更新SVN上更新了,但本地尚未更新的这部分源代码(本人实践证明此命令会将本地源码与SVN上的源码先比较,若SVN有更新才会下载更新的部分,很实用的一个命令)。如果未指定目标路径,则此命令将更新当前目录及当前目录的子目录内的源码。

Feeds下载
 Feeds即为包含到你的OpenWrt环境中的额外软件包的索引之类的。(feed译名很多,莫衷一是,至2008年底为止,还没有一个十分通用而备受认可的中文译名;所以此文当中我们用英文feed来称呼)。 最主要的Feeds有以下三个:

 'packages' - 路由的基本功能,
 'LuCI' - OpenWrt默认的GUI(WEB管理界面), 及
 'Xwrt' - 其他的GUI。
 一般情况,你至少需要含 'packages' 和 'LuCI'两个Feeds。
 下载完feeds之后, (为编译OpenWrt的recipies额外的预定义包) 您可以检查哪些feeds要包括在内。编辑在你的编译环境的根目录下的'feeds.conf.default'文件。
 然后使用下列命令开始下载(注:可能你需要先运行cd trunk进入trunk目录才能成功执行下列命令):
# ./scripts/feeds update -a
 
 在此之后,下载的软件包需要安装。亦即指的下边的命令啦。若路过下边的install命令则后续make menuconfig将无法成功执行!(注:可能你需要先运行cd trunk进入trunk目录才能成功执行下列命令):

# ./scripts/feeds install -a
 
 只需编辑Feeds的配置文件或运行更新命令,即可很方便地更新或添加新的实验性的packages到源码中并编译到OpenWrt固件去。
 注意:请老坛友及旧的新闻组成员们注意了,这一步取代了创建符号链接symlinks的老办法哦。
更新Feeds
 诸如此类源码,你得定期更新Feeds。 通过如上相同的命令:
# ./scripts/feeds update -a
# ./scripts/feeds install -a
 
 注意:若你清楚地知道你不需添加新的packages到menuconfig中去,那么你可在更新Feeds时跳过这一步。
生成配置
 You may not have to make configration always after updating sources and feeds, but making it ensures that all packages from source and feeds are correctly included in your build configuration.

Defconfig
 下一步是检查编译环境,若可进行编译则生成默认配置:
# make defconfig
 
 若defconfig回显提示缺少软件包或编译库等依赖,则按提示安装所缺软件包或库等即可,不难的,细心点就行。
Menuconfig
 menuconfig是一个基于文本的工具,它处理选择的目标(需要还是不需要)、编译生成软件包(openwrt下是IPKG格式)以及内核选项(编译成模块还是内核)等等

# make menuconfig
 
 在你离开并保存配置文件(默认都是.config)后,将自动配置依赖关系,让你可以着手编译更新的固件。
 大众可通过'menuconfig'这一简单的图形化的配置环境,非常轻松地编译出专属您本人的OpenWrt固件。
 可以用'menuconfig',以开发的意图来编译OpenWrt的固件,为自己(个人)创造一个结构简单但是功能强大的环境。(上句实在难翻译,只能意译。并且也请大家都学习下编译OP固件,让以OP固件盈利的人丢掉那肮脏的饭碗!)
 Menuconfig或多或少有些难以说明的地方,即使是最专业的配置,也可以寻求帮助并加以解决。 需要你指定何种目标平台,要包含的package软件包和内核模块等均需要你指定,配置标准的过程中会包括修改:

 目标平台(即路由器何种架构,BCM呢还是AR均可选择)
 选择要包含的package软件包
 构建系统设置
 内核模块
 Target system is selected from the extensive list of supported platforms, with the numerous target profiles – ranging from specific devices to generic profiles, all depending on the particular device at hand. Package selection has the option of either
'selecting all package', which might be un-practical in certain situation, or relying on the default set of packages will be adequate or make an individual selection. It is here needed to mention that some package combinations might break the build process,
so it can take some experimentation before the expected result is reached. Added to this, the OpenWrt developers are themselves only maintaining a smaller set of packages – which includes all default packages – but, the feeds-script makes it very simple to
handle a locally maintained set of packages and integrate them in the build-process.
 假如你需要LuCI, 要到Administration 菜单里,在LuCI组件的子菜单下, 并选择: luci-admin-core, luci-admin-full, and luci-admin-mini组件包。
 假如你不需要PPP,你可到Network菜单下取消对它的选择,以便编译时不包含此组件。
 Menuconfig用法: 确保这些组件包是以 '*'星号标记而不是 'M'标记。
 如果你是以星号 '*'标记该组件包, 则该组件包将编译进最终生成的OpenWrt固件中。
 如果你仅以 'M'标记该组件包, 则该组件包将不会编译进最终生成的OpenWrt固件中。
 The final step before the process of compiling the intended image(s) is to exit 'menuconfig' – this also includes the option to save a specific configuration or load an already existing, and pre-configured, version.
 Exit and save.
Source Mirrors
 The 'Build system settings' include some efficient options for changing package locations which makes it easy to handle a local package set:

 Local mirror for source packages
 Download folder
 In the case of the first option, you simply enter a full URL to the web or ftp server on which the package sources are hosted. Download folder would in the same way be the path to a local folder on the build system (or network). If you have a web/ftp-server
hosting the tarballs, the OpenWrt build system will try this one before trying to download from the location(s) mentioned in the Makefiles . Similar if a local 'download folder', residing on the build system, has been specified. The 'Kernel modules' option
is required if you need specific (non-standard) drivers and so forth – this would typically be things like modules for USB or particular network interface drivers etc.

编译固件
 万事具备,只欠东风,通过下面简单的make命令来编译:
# make
 
在多核电脑中编译
 具有多核CPU处理器的电脑进行编译,使用下述参数可令编译过程加速。 常规用法为 <您cpu处理器的数目 + 1> – 例如使用3进程来编译 (即双核CPU), 命令及参数如下:

# make -j 3
 
后台编译
 若你在这个系统内编译OpenWrt的同时还处理其他,可以让闲置的I/O及CPU来在后台编译固件 (双核CPU):
# ionice -c 3 nice -n 20 make -j 2
 
编译简单的基本的软件包
 当你为OpenWrt开发或打包软件包,编译简单的基本的软件包可以很轻易地编译该软件包 (例如, 软件包cups):
# make package/cups/compile V=99
 
 一个在Feeds里的软件包大约是这样子的:
# make package/feeds/packages/ndyndns/compile V=99
 
编译错误
 如果因某种不知道的原因而编译失败,下面有种简单的方法来得知编译到底错在哪里了:
# make V=99 2>&1 |tee build.log |grep -i error
 
 上述编译命令意为:V99参数,将出错信息保存在build.log,生成输出完整详细的副本(with stdout piped to stderr),只有在屏幕上显示的错误。
 举例说明:
# ionice -c 3 nice -n 20 make -j 2 V=99 CONFIG_DEBUG_SECTION_MISMATCH=y 2>&1 \
  |tee build.log |egrep -i '(warn|error)'
 
 The above saves a full verbose copy of the build output (with stdout piped to stderr) in build.log and outputs only warnings and errors while building using only background resources on a dual core CPU.

一键编译
 即使用脚本来编译Openwrt固件。许多朋友编译Openwrt是用的脚本来编译的,详见:
https://forum.openwrt.org/viewtopic.php?id=28267

生成的固件在哪
 编译成功后所生成的固件文件位于bin目录下,可用如下命令查看:
# cd bin/
# ls */
 
清理
 编译OpneWrt时你可能需要一个清洁干净的编译环境。 以下操作有利用编译工作:
清洁
 清洁trunk/ 目录,在编译过程中使用“make clean”命令即可。 此命令将删除bin目录和build_dir目录下的所有文件及文件夹。
## See CAUTION below
# make clean
 
敬告: Make sure to move your compiled OpenWrt images to another location before issuing this command since it erases the contents of the "bin" directory (where the compiled OpenWrt images live).

Dirclean
 If you want to clean in addition to the build directories also the cross-compile tools (in toolchain directory), use the 'dirclean' make, which does the same as 'clean' and also deletes 'staging_dir' and 'toolchain' contents. 'Dirclean' is your basic
"Full clean" operation.
## See CAUTION below
# make dirclean
 
CAUTION: Make sure to move your compiled OpenWrt images to another location before issuing this command.

Distclean
 If complete cleaning of the build environment is required, then all it takes is 'make distclean'. It practically nukes everything you have compiled or configured and also deletes all downloaded feeds contents and package sources. Making distclean means
quite a lot downloading afterwards, so it should not be used lightly. 'Dirclean' is enough for most cases.

## See CAUTION below
# make distclean
 
CAUTION: In addition to all else, this will erase your build configuration (.config), your toolchain and all other sources. Use with care!
 There are numerous other functionalities in the OpenWrt build system, but the above should have covered some of the fundamentals.

Installing OpenWrt
 In comparison to the actual building of the desired image(s), the installation of the OpenWrt image can sometimes be a little, or more, of a challenge. It can be as simple as using the tools supplied by the manufacturer of the hardware (web interface
or recovery tools), over manually uploading a new firmware via tftp and rebooting, to doing extensive hardware modifications with the intent of enabling JTAG access. Though, generally installation is made possible via the bootloader (Redboot, Uboot etc.) or
simple copying onto a CompactFlash-card – all depending on the specific device.
 See
http://wiki.openwrt.org/doc/howto/installing
for the specifics.
固件编译示例
 ———–幸福的分割线:随文附上【人生如戏】写的编译OPENWRT的TXT—————————-
 前言:很多玩家都想自行编译OP固件,但是很多教程都语焉不详,本人综合了其他教程做了点总结,这里非常感谢以往发教程的玩家。编译固件不需要什么很深奥的知识,但是要求起码能看懂英文,会使用SSH、WINSCP软件,了解OP的那些功能是由哪个软件包提供。
 一。安装ubuntu,具体安装流程可以百度谷歌,这里不详细描述。 桌面版、服务器版都可以,因为都是命令行操作,推荐使用服务器版本(这里需要注意的是一定要32位的系统,64位的系统也可以编译,但是有些莫名其妙的问题,具体原因未知)。 服务器版本安装时有个功能选项,选择安装SSH服务就可以了,其他功能完全可以不安装,因为用不到。 op官方不推荐虚拟机,但是本人用虚拟机也没什么大问题,有条件的还是用真实电脑来编译吧。
 二。ubuntu下OP编译环境需要安装很多组件,很多教程都是一道命令一起安装,其实这样会有一些组件没有装上的,所以还是老实的一个一个装吧。所有命令全部为SSH登陆后操作。
 升级组件包
 sudo apt-get update
 安装编译需要的组件
 sudo apt-get install gcc
 sudo apt-get install g++
 sudo apt-get install binutils
 sudo apt-get install patch
 sudo apt-get install bzip2
 sudo apt-get install flex
 sudo apt-get install bison
 sudo apt-get install make
 sudo apt-get install autoconf
 sudo apt-get install gettext
 sudo apt-get install texinfo
 sudo apt-get install unzip
 sudo apt-get install sharutils
 sudo apt-get install subversion
 sudo apt-get install libncurses5-dev
 sudo apt-get install ncurses-term
 sudo apt-get install zlib1g-dev
 sudo apt-get install subversion
 sudo apt-get install git
 sudo apt-get install gawk
 sudo apt-get install asciidoc
 sudo apt-get install libz-dev
 每一行回车后都会马上检测安装或升级那个组件,官方WIKI用的是单一条命令,本人分开了,因为这样更容易查看每一个组件的安装是否成功。下载东西之前会有提示本次要下载多少M的东西,问是否的,按y然后回车让它下载就行了。当中最后面的asciidoc组件是需要下载400多MB东西的,慢慢等了。
 三。开始编译前做些必要的步骤 新建一个openwrt目录
 mkdir openwrt
 注:WIKI中是OpenWrt,O和W是大写,请WINDOWS用户注意区分大小写! 进入openwrt目录
 cd openwrt
 下载官网源码到本地
 svn checkout svn://svn.openwrt.org/openwrt/trunk
 添加trunk目录权限
 sudo chmod -R 777 trunk
 四。编译流程。 编译完成的固件会保存在/openwrt/trunk/bin目录下面,可用WINSCP登陆上去提取。
 进入trunk目录
 cd openwrt/trunk
 更新最新源码
 ./scripts/feeds update -a
 安装最新源码
 ./scripts/feeds install -a
 更新版本号
 svn up
 进入编译组件包菜单
 make menuconfig
 恢复默认编译环境
 make defconfig
 开始编译
 make V=99
 编译完成后清除之前的编译作业(使用这个命令前,记得把编译好的固件备份出来,不然会被删除掉,切记)
 make clean
 其中make menuconfig会有一个编译管理器,在里面可以选择型号、OP功能组件,需要用到方向键、回车键、空格键。方向键是移动光标,回车键是确认,空格键是选择(在选项框按下空格键,*号是编译进固件,M是编译但是不编译进固件)。
 1.选择CPU型号
 Target System—–Atheros AR71xx/AR7240/AR913x/AR934x
 2.选择路由型号
 Target Profile—-TP-LINK TL-MR3420 v1
 3.添加luci
 LuCI—>Collections—– <*> luci
 4.添加luci的中文语言包
 LuCI—>Translations—- <*> luci-i18n-chinese
 5.添加DDNS
 LuCI—>Applications —> <*>luci-app-ddns.
 6.添加USB挂载
 Base system —> <*>block-mount
 7.添加硬盘格式支持
 Kernel modules —> Filesystems —> <*> kmod-fs-ext4
 8.添加UTF8编码
 Kernel modules —> Native Language Support —> <*> kmod-nls-utf8
 9.添加USB扩展支持
 Kernel modules —> USB Support —> <*> kmod-usb-storage-extras.
 110.添加自动挂载工具
 Utilities —> Filesystem —> <*> badblocks
 11.添加复位键支持
 Utilities —> <*> restorefactory
 12.添加一键开关无线
 Utilities —> <*> wifitoggle
 最简单的,只需要选正面两项,其余默认即可: 1、 Target System—–选择编译类型
 2、 Target Profile—-选择编译路由型号
 添加功能时尽量依靠依赖包,比如添加ddns时,只需要在luci选项里面选择luci-app-ddns,编译管理器会自动加上ddns-scripts及其他依赖库文件。

MR3420的4M固件编译方法
 下面举个简单例子:
 编译一个mr3420的固件
 1.Target System—–选择Atheros AR71xx/AR7240/AR913x/AR934x
 2.Target Profile—-选择TP-LINK TL-MR3420 v1
 3.LuCI—-选择Collections—– <*> luci
 4.LuCI—-选择Translations—-<*> luci-i18n-chinese
 5.Exit—-Yes
 6.开始编译make V=99,最后会得到一个4M的带中文luci的mr3420固件。
MR3420的8M固件编译方法
 五。进阶设置。
 用WINSCP登陆
 1.在路径 /trunk/tools/firmware-utils/src/mktplinkfw.c 这个文件里边有个“fw max len”,默认3c0000是4M的,请改成7c0000 (这一步把固件最大限制改成8M),如果是16mflash,请改成fc0000(最大限制改成16m)。
 2、修改target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr841n.c(找相应文件)
4M:
 41 .name = "u-boot",
 42 .offset = 0,
 43 .size = 0x020000,
 44 .mask_flags = MTD_WRITEABLE,
 45 }, {
 46 .name = "kernel",
 47 .offset = 0x020000,
 48 .size = 0x140000,
 49 }, {
 50 .name = "rootfs",
 51 .offset = 0x160000,
 52 .size = 0x290000,
 53 }, {
 54 .name = "art",
 55 .offset = 0x3f0000,
 56 .size = 0x010000,
 57 .mask_flags = MTD_WRITEABLE,
 58 }, {
 59 .name = "firmware",
 60 .offset = 0x020000,
 61 .size = 0x3d0000,
 62 }
 63 };
8M::
 41 .name = "u-boot",
 42 .offset = 0,
 43 .size = 0x020000,
 44 .mask_flags = MTD_WRITEABLE,
 45 }, {
 46 .name = "kernel",
 47 .offset = 0x020000,
 48 .size = 0x140000,
 49 }, {
 50 .name = "rootfs",
 51 .offset = 0x160000,
 52 .size = 0x690000,
 53 }, {
 54 .name = "art",
 55 .offset = 0x7f0000,
 56 .size = 0x010000,
 57 .mask_flags = MTD_WRITEABLE,
 58 }, {
 59 .name = "firmware",
 60 .offset = 0x020000,
 61 .size = 0x7d0000,
 62 }
 63 };
16M::
 41 .name = "u-boot",
 42 .offset = 0,
 43 .size = 0x020000,
 44 .mask_flags = MTD_WRITEABLE,
 45 }, {
 46 .name = "kernel",
 47 .offset = 0x020000,
 48 .size = 0x140000,
 49 }, {
 50 .name = "rootfs",
 51 .offset = 0x160000,
 52 .size = 0xe90000,
 53 }, {
 54 .name = "art",
 55 .offset = 0xff0000,
 56 .size = 0x010000,
 57 .mask_flags = MTD_WRITEABLE,
 58 }, {
 59 .name = "firmware",
 60 .offset = 0x020000,
 61 .size = 0xfd0000,
 62 }
 63 };
8M::
 0x000000000000-0x000000020000 : "u-boot"
 0x000000020000-0x000000160000 : "kernel"
 0x000000160000-0x0000007f0000 : "rootfs"
 0x000000620000-0x0000007f0000 : "rootfs_data"
 0x0000007f0000-0x000000800000 : "art"
 0x000000020000-0x0000007f0000 : "firmware"
4M::
 0x000000000000-0x000000020000 : "u-boot"
 0x000000020000-0x000000160000 : "kernel"
 0x000000160000-0x0000003f0000 : "rootfs"
 0x000000304000-0x0000003f0000 : "rootfs_data"
 0x0000003f0000-0x000000400000 : "art"
 0x000000020000-0x0000003f0000 : "firmware"
16M::
 0x000000000000-0x000000020000 : "u-boot"
 0x000000020000-0x000000160000 : "kernel"
 0x000000160000-0x000000ff0000 : "rootfs"
 0x000000380000-0x000000ff0000 : "rootfs_data"
 0x000000ff0000-0x000001000000 : "art"
 0x000000020000-0x000000ff0000 : "firmware"
 如想节省编译时间可自行下载以下dl压缩包,编译时就不需要花时间在线下载了: 20110512新增:dl压缩包(国内网速真是快呀)
http://u.115.com/file/dnahsytg
# dl.rar
 把原来的DL删掉,复制过去。然后恢复默认编译环境 make defconfig 需要连续几个恢复: 进入编译组件包菜单 make menuconfig 也要恢复默认 进入编译组件包菜单 make menuconfig Reset to defaults
 然后继续 make clean make defconfig
 全部恢复后再 ./scripts/feeds update -a 安装最新源码 ./scripts/feeds install -a 更新版本号 svn up 进入编译组件包菜单 make menuconfig
 开始编译 make V=99

抱歉!评论已关闭.