找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: momo1***

编译lede的fast path时cherry-pick报错bad revision

[复制链接]
 楼主| 发表于 2017-8-20 11:03 | 显示全部楼层
safehorse 发表于 2017-8-19 22:49
ipt-tproxy 和iptables tproxy这两个东西安装不上去吗?这两个加上另外一个ip,也不行吗

只有iptables-mod-tproxy失败
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-8-20 11:04 | 显示全部楼层
jorison 发表于 2017-8-19 09:30
不要,冲突。十字补丁

感谢大神的抛砖引玉,我把path的编译代码修改好适用于17.01了

点评

兄弟,怎么修改啊,我也想用17.01编译,用master编译的很多插件都用不上,内核太新了  详情 回复 发表于 2017-8-20 14:40
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-8-20 14:40 | 显示全部楼层
momo123456 发表于 2017-8-20 11:04
感谢大神的抛砖引玉,我把path的编译代码修改好适用于17.01了

兄弟,怎么修改啊,我也想用17.01编译,用master编译的很多插件都用不上,内核太新了

点评

不想改源码的话就把patches-4.4文件夹改为hack-4.4,然后创建一个hack-4.9的文件夹和一个config-4.9的文件。,上面大神那句sed 命令不再需要输入。如果失败的话我可以提供修改后的补丁  详情 回复 发表于 2017-8-20 15:01
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-8-20 15:01 | 显示全部楼层
wzw860326 发表于 2017-8-20 14:40
兄弟,怎么修改啊,我也想用17.01编译,用master编译的很多插件都用不上,内核太新了

不想改源码的话就把patches-4.4文件夹改为hack-4.4,然后创建一个hack-4.9的文件夹和一个config-4.9的文件。,上面大神那句sed 命令不再需要输入。如果失败的话我可以提供修改后的补丁

点评

config-4.9这个文件是空文件?  详情 回复 发表于 2017-8-20 16:11
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-8-20 16:11 | 显示全部楼层
momo123456 发表于 2017-8-20 15:01
不想改源码的话就把patches-4.4文件夹改为hack-4.4,然后创建一个hack-4.9的文件夹和一个config-4.9的文 ...

config-4.9这个文件是空文件?

点评

路径在target/linux/generic/  详情 回复 发表于 2017-8-20 16:21
4.9是对应mastet版本的,如果你用17.01分支,那么就不会有4.9版本的相关文件。补丁为4.4和4.9都做了修补。如果目标文件不全那么就会打补丁失败。所以要创建一个目标文件让他继续运行。实际上我们只用到4.4相关的内容  详情 回复 发表于 2017-8-20 16:16
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-8-20 16:16 | 显示全部楼层
wzw860326 发表于 2017-8-20 16:11
config-4.9这个文件是空文件?

4.9是对应mastet版本的,如果你用17.01分支,那么就不会有4.9版本的相关文件。补丁为4.4和4.9都做了修补。如果目标文件不全那么就会打补丁失败。所以要创建一个目标文件让他继续运行。实际上我们只用到4.4相关的内容,所以空文件也没问题,只要补丁能正常运行不报错
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-8-20 16:21 | 显示全部楼层
wzw860326 发表于 2017-8-20 16:11
config-4.9这个文件是空文件?

路径在target/linux/generic/

点评

试了下,要报错 Patch failed! Please fix /home/allan/lede/target/linux/ar71xx/patches-4.4/310-lib-add-rle-decompression.patch! Makefile:24: recipe for target '/home/allan/lede/build_dir/target-mips_  详情 回复 发表于 2017-8-20 18:09
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-8-20 18:09 | 显示全部楼层
本帖最后由 wzw860326 于 2017-8-20 18:23 编辑
momo123456 发表于 2017-8-20 16:21
路径在target/linux/generic/

试了下,要报错
patching file lib/Makefile
Hunk #1 FAILED at 110.
1 out of 1 hunk FAILED -- saving rejects to file lib/Makefile.rej
patching file include/linux/rle.h
patching file lib/rle.c
Patch failed!  Please fix /home/allan/lede/target/linux/ar71xx/patches-4.4/310-lib-add-rle-decompression.patch!
Makefile:24: recipe for target '/home/allan/lede/build_dir/target-mips_24kc_musl-1.1.16/linux-ar71xx_generic/linux-4.4.83/.prepared_6d86047c16e9d19fd2d8c3f84667e111' failed
make[4]: *** [/home/allan/lede/build_dir/target-mips_24kc_musl-1.1.16/linux-ar71xx_generic/linux-4.4.83/.prepared_6d86047c16e9d19fd2d8c3f84667e111] Error 1
make[4]: Leaving directory '/home/allan/lede/target/linux/ar71xx'
Makefile:13: recipe for target 'compile' failed
make[3]: *** [compile] Error 2
make[3]: Leaving directory '/home/allan/lede/target/linux'
target/Makefile:22: recipe for target 'target/linux/compile' failed
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory '/home/allan/lede'
target/Makefile:17: recipe for target '/home/allan/lede/staging_dir/target-mips_24kc_musl-1.1.16/stamp/.target_compile' failed
make[1]: *** [/home/allan/lede/staging_dir/target-mips_24kc_musl-1.1.16/stamp/.target_compile] Error 2
make[1]: Leaving directory '/home/allan/lede'
/home/allan/lede/include/toplevel.mk:198: recipe for target 'world' failed
make: *** [world] Error 2

点评

你这是在编译固件时出错,还是打补丁出错?如果是编译时出错,证明patches-4.4这个包不能动,我把修改后的补丁发给你  详情 回复 发表于 2017-8-20 18:43
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-8-20 18:43 | 显示全部楼层
wzw860326 发表于 2017-8-20 18:09
试了下,要报错
patching file lib/Makefile
Hunk #1 FAILED at 110.

你这是在编译固件时出错,还是打补丁出错?如果是编译时出错,证明patches-4.4这个包不能动,我把修改后的补丁发给你

点评

编译时出错,麻烦发下补丁吧,谢谢了,我把企鹅号PM你了  详情 回复 发表于 2017-8-20 18:57
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-8-20 18:57 | 显示全部楼层
momo123456 发表于 2017-8-20 18:43
你这是在编译固件时出错,还是打补丁出错?如果是编译时出错,证明patches-4.4这个包不能动,我把修改后 ...

编译时出错,麻烦发下补丁吧,谢谢了,我把企鹅号PM你了

点评

你可能要删掉source文件夹重新配置过了,附件解压掉就行  详情 回复 发表于 2017-8-20 19:18
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-8-20 19:18 | 显示全部楼层
wzw860326 发表于 2017-8-20 18:57
编译时出错,麻烦发下补丁吧,谢谢了,我把企鹅号PM你了

你可能要删掉source文件夹重新配置过了,附件解压掉就行

本帖子中包含更多资源

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

×

点评

大大 您修改后的这个补丁在17014下咋用喃? 直接patch吗?  详情 回复 发表于 2018-2-17 08:42
感谢大佬啊,运行成功了。顺便问一句 这个内核日志错误[ 15.316514] mt7603e: probe of 0000:01:00.0 failed with error -22 [ 15.325434] mt76x2e 0000:02:00.0: ASIC revision: 76120044 [ 15.331912] m  详情 回复 发表于 2017-9-3 20:57
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-9-3 20:57 | 显示全部楼层
momo123456 发表于 2017-8-20 19:18
你可能要删掉source文件夹重新配置过了,附件解压掉就行

感谢大佬啊,运行成功了。顺便问一句 这个内核日志错误[   15.316514] mt7603e: probe of 0000:01:00.0 failed with error -22
[   15.325434] mt76x2e 0000:02:00.0: ASIC revision: 76120044
[   15.331912] mt76x2e 0000:02:00.0: EEPROM data check failed: 7603
[   15.338591] mt76x2e 0000:02:00.0: Invalid MAC address, using random address a2:7b:76:e9:3b:d0
[   15.371588] mt76x2e 0000:02:00.0: ROM patch already applied
[   15.378344] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
[   15.383861] mt76x2e 0000:02:00.0: Build: 1
[   15.387936] mt76x2e 0000:02:00.0: Build Time: 201507311614____
有解决方法吗?wifi无法运行

点评

你eeprom丢失了吧,要不就是估计型号不对  详情 回复 发表于 2017-9-3 21:07
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-9-3 21:07 | 显示全部楼层
哈哈哈哈哈1 发表于 2017-9-3 20:57
感谢大佬啊,运行成功了。顺便问一句 这个内核日志错误[   15.316514] mt7603e: probe of 0000:01:00.0 ...

你eeprom丢失了吧,要不就是固件型号不对

点评

谢谢大佬的帮助,改了dts后mt7603e和mt76x2e都能启动了;问题是2g和5g的mac地址给改成一样了。。 log: [ 12.622102] mt7603e 0000:01:00.0: ASIC revision: 76030010 [ 14.728193] mt7603e 0000:01:00.0  详情 回复 发表于 2017-9-3 22:58
可能是的待会 mtd写个eeprom看看  详情 回复 发表于 2017-9-3 21:48
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-9-3 21:48 | 显示全部楼层
momo123456 发表于 2017-9-3 21:07
你eeprom丢失了吧,要不就是固件型号不对

可能是的待会 mtd写个eeprom看看
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-9-3 22:58 | 显示全部楼层
momo123456 发表于 2017-9-3 21:07
你eeprom丢失了吧,要不就是固件型号不对

谢谢大佬的帮助,改了dts后mt7603e和mt76x2e都能启动了;问题是2g和5g的mac地址给改成一样了。。
log:
[   12.622102] mt7603e 0000:01:00.0: ASIC revision: 76030010
[   14.728193] mt7603e 0000:01:00.0: Firmware Version: _mt7603mp
[   14.733985] mt7603e 0000:01:00.0: Build Time: 20151020155902
[   14.761096] firmware init done
[   14.961355] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   14.968230] mt76x2e 0000:02:00.0: ASIC revision: 76120044
[   14.974674] mt76x2e 0000:02:00.0: EEPROM data check failed: 7603
[   15.001164] mt76x2e 0000:02:00.0: ROM patch already applied
[   15.010449] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
[   15.016029] mt76x2e 0000:02:00.0: Build: 1
[   15.020117] mt76x2e 0000:02:00.0: Build Time: 201507311614____
[   15.041155] mt76x2e 0000:02:00.0: Firmware running!
[   15.047141] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-25 19:00

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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