找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3030|回复: 20

tsl0922/padavan的源码到底要怎么编译。。。

[复制链接]
本帖最后由 xiaobei20001 于 2024-2-4 16:16 编辑

文件目录和其他大佬的不一样,按照readme 搭建环境,最后的make k2p 命令也是提示不对的(    make: *** No rule to make target 'K2P'.  Stop.)。。。不知道怎么搞了。


https://github.com/tsl0922/padavan


https://www.right.com.cn/forum/thread-8253646-1-1.html


搞定,仔细的阅读了readme 被我跳过的东西,然后我悟了。。。。

游客,如果您要查看本帖隐藏内容请回复




真是一言难尽,昨天弄了action自动编译之后就没管了,今天发现各种错误,首先环境少了ccache (手动加在那一大串环境安装里),然后里面很多插件的makefile是有问题的,我直接取消编译有问题的插件,然后xray我改成1.8.7版本(makefile里的hash也要改),结果下载解压里面go.mod的版本号不符合规范。最后好不容易编译完成了。。。最后一步又出错,心力交瘁,谁给说说又是哪出问题了。

  1.     image   
  2. [ -d /opt/rt-n56u/trunk/images ] || mkdir /opt/rt-n56u/trunk/images
  3. make ARCH=mips CROSS_COMPILE=mipsel-linux-musl- -C vendors image
  4. make[3]: Entering directory '/opt/rt-n56u/trunk/vendors'
  5. make -C /opt/rt-n56u/trunk/vendors/Ralink/. dir_v=/opt/rt-n56u/trunk/vendors/Ralink/. -f /opt/rt-n56u/trunk/vendors/vendors-common.mak image
  6. make[4]: Entering directory '/opt/rt-n56u/trunk/vendors/Ralink'
  7. ##############CREATE IMAGE#################
  8. mipsel-linux-musl-objcopy -O binary -R .note -R .comment -S /opt/rt-n56u/trunk/linux-4.4.x/vmlinux /opt/rt-n56u/trunk/images/zImage
  9. cd /opt/rt-n56u/trunk/images; rm -f /opt/rt-n56u/trunk/images/zImage.*; /opt/rt-n56u/trunk/tools/lzma/lzma e -a1 -d25 /opt/rt-n56u/trunk/images/zImage /opt/rt-n56u/trunk/images/zImage.lzma

  10. LZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03
  11. # Padded Kernel Image + Compressed Rootfs Size
  12. 10268703 /opt/rt-n56u/trunk/images/zImage.lzma
  13. #===========================================
  14. # Pack final image and write headers
  15. # For No padded, need write kernel size in image header
  16. # to correct mount partition in mtd drivers address
  17. img file: /opt/rt-n56u/trunk/images/XY-C1_4.4.198.9-100.trx
  18. Product ID:   XY-C1
  19. Created:      Sun Feb  4 07:39:33 2024
  20. Image Type:   MIPS Linux Kernel Image (lzma compressed)
  21. Data Size:    10268703 Bytes = 10028.03 kB = 9.79 MB
  22. Load Address: 0x81001000
  23. Entry Point:  0x8100A8E0
  24. Kernel Size:  0x0020FDC0
  25. Kernel Ver.:  4.4
  26. FS Ver.:      198.9
  27. make[4]: Leaving directory '/opt/rt-n56u/trunk/vendors/Ralink'
  28. make[3]: Leaving directory '/opt/rt-n56u/trunk/vendors'
  29. make[2]: Leaving directory '/opt/rt-n56u/trunk'
  30. make[1]: Leaving directory '/opt/rt-n56u'
  31. make: *** No rule to make target '0'.  Stop.
  32. Error: Process completed with exit code 2.
复制代码


我的恩山、我的无线 The best wifi forum is right here.
 楼主| | 显示全部楼层
仔细的阅读了readme 被我跳过的东西,然后我悟了。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
怎么自动编译啊!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

我之前是怎么都编译不成功,后来加了-Wno-error就可以了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

我也想学,还是自己编译的符合心意
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
又遇到问题了。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

学习学习,我也想学习一下编译固件。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

学习无止境。。支持学习分享。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

进来悟一下,谢谢~~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

大佬采用了现代化编译,插件可能有问题,所以我把所有插件都禁用了,编译没问题了

附件是我的云编译yaml文件,可以参考下




本帖子中包含更多资源

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

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

使用道具 举报

来看看啥情况、、、、、、
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

之前我也是github自动化编译不行,学习下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

之前我也是github自动化编译不行,学习下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

仔细的阅读了readme 被我跳过的东西
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来学习下,感谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-28 04:47

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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