- 👋 Hi, I’m @TurBoTse
- 👀 I’m interested in ...
- 🌱 I’m currently learning ...
- 💞️ I’m looking to collaborate on ...
- 📫 How to reach me ...
turbotse / padavan-build Goto Github PK
View Code? Open in Web Editor NEWPadavan 固件自动编译
Padavan 固件自动编译
希望添加文件校验
那些 dns 什么的,都是不是默认外国的? h大和c大都是**的,海外党不方便。
.yml
.config
.sh
/public/XX.sh
/public/XX.config
之间的关系以及优先级别是如何的?
如果他们之前存在冲突会导致编译失败吗?
//现在的问题是,我选上了插件,但是编译出来的固件里面没有
//如smartdns、adh、zeri、SSR plus等等都没有,光秃秃的
构建设备:AC2100(RM2100)
Padavan源码地址:https://github.com/vb1980/Padavan-KVR
参考教程:https://www.right.com.cn/forum/thread-8104907-1-1.html
make[3]: 进入目录“/opt/padavan/trunk/user/miniupnpd/miniupnpd-2.3.0”
/opt/padavan/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc -mips32r2 -march=mips32r2 -mtune=1004kc -c -Os -fomit-frame-pointer -pipe -Dlinux -D__linux__ -Dunix -DEMBED -I/opt/padavan/trunk/stage/include -Wall -Wno-trigraphs -Wno-strict-aliasing -Wno-format-security -fno-tree-slsr -fno-aggressive-loop-optimizations -Wno-pointer-sign -Wno-unused -fno-strict-aliasing -fno-common -D_GNU_SOURCE -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement -ffunction-sections -fdata-sections -fvisibility=hidden -DUSE_LIBNFNETLINK -I/opt/padavan/trunk/user/iptables/iptables-1.8.7/include -D_GNU_SOURCE -I. -DMINIUPNPD_GIT_REF="main-6231cafd6" miniupnpd.c -o miniupnpd.o
miniupnpd.c:51:10: fatal error: cap-ng.h: No such file or directory
#include <cap-ng.h>
^~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:170:miniupnpd.o] 错误 1
make[3]: 离开目录“/opt/padavan/trunk/user/miniupnpd/miniupnpd-2.3.0”
make[2]: *** [Makefile:16:all] 错误 2
make[2]: 离开目录“/opt/padavan/trunk/user/miniupnpd”
make[1]: *** [Makefile:251:all] 错误 2
make[1]: 离开目录“/opt/padavan/trunk/user”
make: *** [Makefile:202:user_only] 错误 2
root@mmp:/opt/padavan/trunk#
参考本仓库大佬Aticons的脚本修改的乌班图本地编译脚本,在编译中出现了这个错误始终无法解决,大佬有时间给指点下谢谢啦
请问编译好的固件在哪儿呢?
找不到 public 文件夹下修改后的配置文件
Copy custom modify
ls -lh public
for m in $targets; do if [ ! -f public/$m.sh ]; then echo "public/$m.sh 未找到"
for m in $targets; do if [ ! -f public/$m.sh ]; then echo "public/$m.sh 未找到"
else
if [ -f public/$m.sh ]; then cp -f public/$m.sh $work_dir; echo "$m.sh 拷贝成功"; fi; fi; done; \
for m in $targets; do if [ ! -f public/$m.config ]; then echo "public/$m.config 未找到"
else
if [ -f public/$m.config ]; then cp -f public/$m.config $config_dir/$m.config; echo "$m.config 已修改"; fi; fi; done; \
if [ -f public/public.sh ]; then cp -f public/public.sh $work_dir; fi
if [ -d hanwckf/config ]; then cp -f hanwckf/config/* $work_dir; fi
if [ -d hanwckf/scripts ]; then cp -f hanwckf/scripts/* $work_dir; fi
if [ -d hanwckf/modify ]; then cp -rf hanwckf/modify/* $work_dir; fi
cd $work_dir
for m in $targets; do if [ -f $m.config ]; then echo "拷贝 $m.config"; cp -f ./$m.config $config_dir/$m.config; fi; done; \
for m in $targets; do if [ -f public.sh ]; then echo "执行 public.sh"; sh ./public.sh; fi; if [ -f $m.sh ]; then echo "执行 $m.sh"; sh ./$m.sh; fi; done; \
shell: /usr/bin/bash -e {0}
env:
images_dir: /opt/images
build_dir: /opt/rt-n56u
work_dir: /opt/rt-n56u/trunk
custom_modify: true
src_git: https://github.com/hanwckf/rt-n56u.git
config_dir: /opt/rt-n56u/trunk/configs/templates
toolchain_dir: /opt/rt-n56u/toolchain-mipsel/toolchain-3.4.x
toolchain_pkg: mipsel-linux-uclibc.tar.xz
toolchain_url: https://github.com/TurBoTse/padavan-toolchain/releases/download/v1.0
ENABLED_CFG: # CONFIG_FIRMWARE_CPU_SLEEP
CONFIG_FIRMWARE_INCLUDE_LANG_CN
CONFIG_FIRMWARE_INCLUDE_VLMCSD
CONFIG_FIRMWARE_INCLUDE_TTYD
CONFIG_FIRMWARE_INCLUDE_WIREGUARD
DISABLED_CFG: CONFIG_FIRMWARE_INCLUDE_RPL2TP
CONFIG_FIRMWARE_INCLUDE_OPENVPN
CONFIG_FIRMWARE_INCLUDE_SCUTCLIENT
CONFIG_FIRMWARE_INCLUDE_GDUT_DRCOM
CONFIG_FIRMWARE_INCLUDE_DOGCOM
CONFIG_FIRMWARE_INCLUDE_MINIEAP
CONFIG_FIRMWARE_INCLUDE_NJIT_CLIENT
CONFIG_FIRMWARE_INCLUDE_NAPT66
CONFIG_FIRMWARE_INCLUDE_MENTOHUST
CONFIG_FIRMWARE_INCLUDE_SHADOWSOCKS
CONFIG_FIRMWARE_INCLUDE_SSSERVER
CONFIG_FIRMWARE_INCLUDE_SOFTETHERVPN_SERVER
CONFIG_FIRMWARE_INCLUDE_SOFTETHERVPN_CLIENT
CONFIG_FIRMWARE_INCLUDE_SOFTETHERVPN_CMD
CONFIG_FIRMWARE_INCLUDE_DNSFORWARDER
build_variant: mt7621
targets: K2P-5.0
public/K2P-5.0.sh 未找到
public/K2P-5.0.config 未找到
total 20K
-rw-r--r-- 1 runner docker 7.1K Apr 28 01:01 PSG1218.config
-rw-r--r-- 1 runner docker 1.5K Apr 28 01:01 PSG1218.sh
-rw-r--r-- 1 runner docker 432 Apr 28 01:01 README.md
-rw-r--r-- 1 runner docker 2.3K Apr 28 01:01 public.sh
默认配置 编译失败
集成插件直接把n改成y保存编译就行了嘛
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.