【大飞】lede编译笔记(一):稳定版源码分支切换

作者:大飞 (wifisky)

注意:未经作者大飞授权,禁止本论坛再转发,禁止其它网站及论坛再转发,后果自负!

系统版本:UBUNTU 17.04 64位
下载地址:http://cn.ubuntu.com/download/

LEDE版本:17.01稳定版(需分支切换)
GIT地址:https://lede-project.org/docs/gu ... kstart-build-images

第一步、配置LEDE编译环境:

请“Google”或“百度”

第二步、GIT源码:

官方GIT源码命令:git clone https://git.lede-project.org/source.git lede
但我们可以起个自己的文件夹名,GIT命令如下:git clone https://git.lede-project.org/source.git K2_LEDE-STABLE-17.01
进入主文件夹(Home) 作者:大飞 原创,未经授权,禁止转载
点击鼠标右键,打开终端,输入以上命令,等待GIT源码到本地完成即可。▼

GIT完成后如图▼

完成后,可进入K2_LEDE-STABLE-17.01目录,打开feeds.conf.default查看,等会和切换到稳定版对比一下这个文件▼

第三步、LEDE稳定版源码分支切换命令:作者:大飞 原创,未经授权,禁止转载
GIT完成后终端命令进入源码目录:cd K2_LEDE-STABLE-17.01 ▼

输入查看分支命令:git branch -a ▼

切换分支命令(切换到LEDE17.01稳定版):git checkout lede-17.01 ▼

再次运行:git branch -a 查看分支是否切换成功。▼

再次打开:feeds.conf.default文件,效果如图:▼

第四步:下载安装feeds更新:

下载feeds:./scripts/feeds update -a ▼

安装feeds:./scripts/feeds install -a ▼

第五步:检测环境和添加包

运行:make defconfig ▼

第六步:配置LEDE编译参数:

运行:make menuconfig
此时进入LEDE图形配置界面。▼

剩下的保存,编译大家都懂的。
教程算不上,自己学习中的一点记录笔记而已,有不足的、错误的地方,请高手指教!

1 Like

Please, could you edit your post and translate everything in English (including the thread subject)?

1 Like

Sorry, I don't speak English very well!

We don't speak chinese very well.

I'm afraid, if you want to get help in this forum, you need to write in english.
With this universal language, you are reaching people all around the world, and answers in english are understood by people all around the world.

Even if your english is not that good, it will probably be better understood than automatic google translation.
Please create a new topic for this.

1 Like