找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 14854|回复: 45

怎么把Lean大源码的插件用到openwrt官方的源码上进行编译?

[复制链接]
发表于 2019-7-21 13:55 | 显示全部楼层 |阅读模式
本帖最后由 1689饭饭 于 2019-7-21 17:53 编辑

git clone https://github.com/coolsnowwolf/lede  大雕的源码
git clone -b lede-17.01 https://github.com/openwrt/openwrt.git官方源码


我现在下了2个源码,我想把大雕插件的源码弄到官方的源码上面去编译,不知道要怎么弄
求大佬们指教下,谢谢!


直接复制lean文件过去报错

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-7-21 14:03 | 显示全部楼层
只选择编译插件 编译完成后在官方的上面去安装这样不行吗?

点评

就是想方便点,编译好后,一次性都在里面了  详情 回复 发表于 2019-7-21 14:05
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-7-21 14:05 | 显示全部楼层
jc78256 发表于 2019-7-21 14:03
只选择编译插件 编译完成后在官方的上面去安装这样不行吗?

就是想方便点,编译好后,一次性都在里面了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-7-21 15:23 | 显示全部楼层
Lean文件夹复制过去

点评

直接这样复制过去确定有用?我上次复制过去编译的时候出错  详情 回复 发表于 2019-7-21 17:43
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-7-21 15:23 | 显示全部楼层
我也想编译里面的插件哈,可是像S-S R+什么的好像只有编译出一个luci-app……
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-7-21 17:43 | 显示全部楼层
丰花 发表于 2019-7-21 15:23
Lean文件夹复制过去

直接这样复制过去确定有用?我上次复制过去编译的时候出错
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-7-22 00:30 | 显示全部楼层
报错你也要贴出来报错什么啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-7-22 00:54 | 显示全部楼层
本帖最后由 jlytzy2 于 2019-7-22 00:59 编辑

首先呢,你要先下载两个源码一个是大佬的,一个是官方原版的。
下载官方固件:git clone https://github.com/openwrt/openwrt
下载大佬这个源码  git clone https://github.com/coolsnowwolf/lede
cd lede
选择这个时间节点  git checkout 2915c44a11ca0ee40b51ff5d9c18a0da1951e170

更新软件包   ./scripts/feeds update -a     

安装软件包  ./scripts/feeds install -a   

进入目录   cd package

改名目录lean为openwrt-S-S R      mv lean/ openwrt-S-S R

查看时间节点   git branch -a

改变时间节点为最新    git checkout master

再次更新  ./scripts/feeds update -a   

再次安装  ./scripts/feeds install -a

拷贝刚刚改名的目录到openwrt官方目录,目录名lean: cp -r openwrt-S-S R/ ~/openwrt/package/lean


拷贝lede/package/network/config/firewall/里的makefile文件及patches文件夹到openwrt下面的同目录里,覆盖openwrt官方的

cd openwrt

更新源码   ./scripts/feeds update -a   

安装更新   ./scripts/feeds install -a
make menuconfig   你会看到S-S R pluss

make V=99
ok就是这样。

ssh登录

echo 0xDEADBEEF > /etc/config/google_fu_mode

reboot
修改主机名和S-S R-plus彩蛋,openwrt/package/lean/default-settings/f
iles/zzz-default-settings,  在zzz文件中uciset system.@system[0].timezone=CST-8后增加
uci setsystem.@system[0].hostname=Openwrt-x86

   Openwrt-x86可以改为你想要的名字
解封S-S R彩蛋,在该文件exit 0 上方适当的位置加上下列命令,安装后可以直接看到S-S R-plus
echo 0xDEADBEEF >/etc/config/google_fu_mode



点评

感谢热心大佬指点,openwrt官方固件+lean插件  发表于 2019-10-26 12:55
Configuring luci-i18n-firewall-zh-cn. Configuring ppp-mod-pppoe. Collected errors: * check_data_file_clashes: Package dnsmasq-full wants to install file /home/box/openwrt/build_dir/target-mipsel_2  详情 回复 发表于 2019-7-22 23:18
这样操作之后在编译的过程还是出现这样的错误[attachimg]298897[/attachimg]  详情 回复 发表于 2019-7-22 14:48
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-7-22 14:48 | 显示全部楼层
jlytzy2 发表于 2019-7-22 00:54
首先呢,你要先下载两个源码一个是大佬的,一个是官方原版的。
下载官方固件:git clone https://github.c ...

这样操作之后在编译的过程还是出现这样的错误

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-7-22 23:18 | 显示全部楼层
jlytzy2 发表于 2019-7-22 00:54
首先呢,你要先下载两个源码一个是大佬的,一个是官方原版的。
下载官方固件:git clone https://github.c ...

Configuring luci-i18n-firewall-zh-cn.
Configuring ppp-mod-pppoe.
Collected errors:
* check_data_file_clashes: Package dnsmasq-full wants to install file /home/box/openwrt/build_dir/target-mipsel_24kc_musl/root-ramips/etc/hotplug.d/ntp/25-dnsmasqsec
        But that file is already provided by package  * dnsmasq
* check_data_file_clashes: Package dnsmasq-full wants to install file /home/box/openwrt/build_dir/target-mipsel_24kc_musl/root-ramips/etc/init.d/dnsmasq
        But that file is already provided by package  * dnsmasq
* check_data_file_clashes: Package dnsmasq-full wants to install file /home/box/openwrt/build_dir/target-mipsel_24kc_musl/root-ramips/usr/lib/dnsmasq/dhcp-script.sh
        But that file is already provided by package  * dnsmasq
* check_data_file_clashes: Package dnsmasq-full wants to install file /home/box/openwrt/build_dir/target-mipsel_24kc_musl/root-ramips/usr/sbin/dnsmasq
        But that file is already provided by package  * dnsmasq
* check_data_file_clashes: Package dnsmasq-full wants to install file /home/box/openwrt/build_dir/target-mipsel_24kc_musl/root-ramips/usr/share/acl.d/dnsmasq_acl.json
        But that file is already provided by package  * dnsmasq
* check_data_file_clashes: Package dnsmasq-full wants to install file /home/box/openwrt/build_dir/target-mipsel_24kc_musl/root-ramips/usr/share/dnsmasq/dhcpbogushostname.conf
        But that file is already provided by package  * dnsmasq
* check_data_file_clashes: Package dnsmasq-full wants to install file /home/box/openwrt/build_dir/target-mipsel_24kc_musl/root-ramips/usr/share/dnsmasq/rfc6761.conf
        But that file is already provided by package  * dnsmasq
* opkg_install_cmd: Cannot install package dnsmasq-full.
* check_data_file_clashes: Package dnsmasq-full wants to install file /home/box/openwrt/build_dir/target-mipsel_24kc_musl/root-ramips/etc/hotplug.d/ntp/25-dnsmasqsec
        But that file is already provided by package  * dnsmasq
* check_data_file_clashes: Package dnsmasq-full wants to install file /home/box/openwrt/build_dir/target-mipsel_24kc_musl/root-ramips/etc/init.d/dnsmasq
        But that file is already provided by package  * dnsmasq
* check_data_file_clashes: Package dnsmasq-full wants to install file /home/box/openwrt/build_dir/target-mipsel_24kc_musl/root-ramips/usr/lib/dnsmasq/dhcp-script.sh
        But that file is already provided by package  * dnsmasq
* check_data_file_clashes: Package dnsmasq-full wants to install file /home/box/openwrt/build_dir/target-mipsel_24kc_musl/root-ramips/usr/sbin/dnsmasq
        But that file is already provided by package  * dnsmasq
* check_data_file_clashes: Package dnsmasq-full wants to install file /home/box/openwrt/build_dir/target-mipsel_24kc_musl/root-ramips/usr/share/acl.d/dnsmasq_acl.json
        But that file is already provided by package  * dnsmasq
* check_data_file_clashes: Package dnsmasq-full wants to install file /home/box/openwrt/build_dir/target-mipsel_24kc_musl/root-ramips/usr/share/dnsmasq/dhcpbogushostname.conf
        But that file is already provided by package  * dnsmasq
* check_data_file_clashes: Package dnsmasq-full wants to install file /home/box/openwrt/build_dir/target-mipsel_24kc_musl/root-ramips/usr/share/dnsmasq/rfc6761.conf
        But that file is already provided by package  * dnsmasq
* opkg_install_cmd: Cannot install package luci-app-S-S R-plus.
package/Makefile:65: recipe for target 'package/install' failed
make[2]: *** [package/install] Error 255
make[2]: Leaving directory '/home/box/openwrt'
package/Makefile:104: recipe for target '/home/box/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_install' failed
make[1]: *** [/home/box/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/box/openwrt'
/home/box/openwrt/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2

编译到这里的时候出错了,有空的时候指点下,谢谢!

点评

去选dnsmasq,选dnsmasq-full  详情 回复 发表于 2019-7-23 16:43
rm -rf ./tmp && rm -rf .config 重新再来  详情 回复 发表于 2019-7-23 09:33
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-7-23 08:05 | 显示全部楼层
我也正想问。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-7-23 08:55 | 显示全部楼层
lean最新的代码已经包含了S-S R,用我的办法
同时克隆lede和openwrt源码,以下的命令根据自己的路径修改
1. rsync -avzP  /home/openwrt/data/lede.git/package/lean /home/openwrt/data/openwrt/package
2.修改openwrt目录下的feeds.conf.default文件其中luci部分修改为src-git luci https://github.com/coolsnowwolf/luci
不修改也可以编译,只不过lean的luci是旧版,在opnwrt新版的luci上编译出来布局有问题,修改后没有问题
我已经编译出来了

点评

感谢这位大佬的指点,openwrt官方固件+lean插件 编译  发表于 2019-10-26 13:13
能不能把你具体的操作些详细点,谢谢  详情 回复 发表于 2019-7-23 13:16
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-7-23 09:33 | 显示全部楼层
1689饭饭 发表于 2019-7-22 23:18
Configuring luci-i18n-firewall-zh-cn.
Configuring ppp-mod-pppoe.
Collected errors:

rm -rf ./tmp && rm -rf .config
重新再来

点评

借楼请问下挂载USB,不能显示中文文件夹怎么办?是编译的时候漏选了什么吗  详情 回复 发表于 2019-7-23 12:06
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-7-23 12:06 | 显示全部楼层
jlytzy2 发表于 2019-7-23 09:33
rm -rf ./tmp && rm -rf .config
重新再来

借楼请问下挂载USB,不能显示中文文件夹怎么办?是编译的时候漏选了什么吗

点评

administrator---Navi Language---utf8 lean大源码,make menuconfig中,印象中是这个,编译虚机关机,现在没法查,试找找  详情 回复 发表于 2019-7-23 15:52
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-7-23 13:16 | 显示全部楼层
zyjiad 发表于 2019-7-23 08:55
lean最新的代码已经包含了S-S R,用我的办法
同时克隆lede和openwrt源码,以下的命令根据自己的路径修改
...

能不能把你具体的操作些详细点,谢谢

点评

具体操作看这里https://www.bandwh.com/net/38.html 实际只需要按我的修改两步就可以了。  详情 回复 发表于 2019-7-23 15:23
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-26 16:13

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表