Skip to content

基于 GitHub Actions 专为 Cudy TR3000 自动编译 immortalwrt 固件项目,支持 SN 2544 新 flash 设备。

License

Notifications You must be signed in to change notification settings

weekdaycare/immortalwrt-mt7981-cudy-tr3000

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

定制教程 | 刷写教程


immortalwrt 源码

编译自 https://github.com/padavanonly/immortalwrt-mt798x-6.6 ,兼容 Cudy Tr3000 128M 新 flash


大分区 ubootmod 固件

本仓库默认编译的 ubootmod 固件为 112M 分区,若你想编译 122M 分区固件,请将 diy-part2.sh 中取消以下注释:

# set ubi to 122M
# sed -i 's/reg = <0x5c0000 0x7000000>;/reg = <0x5c0000 0x7a40000>;/' target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1-ubootmod.dts

DHCP 三分区 uboot

编译自 https://github.com/weekdaycare/bl-mt798x-dhcpd 感谢大佬开源,兼容新 flash

支持原厂 ubi 大小 64MB,扩容 ubi 分区 112MB,最大 ubi 分区 122MB


USB 供电控制

上游的最新源码已经打开了默认供电,具体可以见这条 commit

若你想关闭 USB 供电执行命令

echo 0 > /sys/class/gpio/modem_power/value

恢复供电执行命令

echo 1 > /sys/class/gpio/modem_power/value

第三方软件包


SSH 连接 Action

可以通过 ssh 连接到 Action 工作流来配置 menuconfig


编译注意事项

GitHub Actions 存储有限,大型软件包(如 sing-box 或 alist)建议使用预编译方式,而不是源码编译,即在编译过程中加入已经编译好现成软件包。否则你应该会碰到超长编译时间 + 超出 Action 储存。示例:

# 创建存储二进制文件的目录
BIN_DIR="$GITHUB_WORKSPACE/openwrt/files/usr/bin"
mkdir -p "$BIN_DIR"

# -------- 下载并解压 xray-core ARM64 -------
echo "Downloading xray-core..."
curl -L -o xray.zip https://github.com/XTLS/Xray-core/releases/download/v25.10.15/Xray-linux-arm64-v8a.zip
unzip -o xray.zip -d "$BIN_DIR"
chmod +x "$BIN_DIR/xray"
rm xray.zip

# -------- 下载并解压 sing-box ARM64 -------
echo "Downloading sing-box..."
curl -L -o sing-box.tar.gz https://github.com/SagerNet/sing-box/releases/download/v1.12.12/sing-box-1.12.12-linux-arm64.tar.gz
TMP_DIR=$(mktemp -d)
tar -xzf sing-box.tar.gz -C "$TMP_DIR"
mv "$TMP_DIR"/sing-box-1.12.12-linux-arm64/sing-box "$BIN_DIR"/sing-box
chmod +x "$BIN_DIR/sing-box"
rm -rf "$TMP_DIR"
rm sing-box.tar.gz

Credits


License

MIT © P3TERX

About

基于 GitHub Actions 专为 Cudy TR3000 自动编译 immortalwrt 固件项目,支持 SN 2544 新 flash 设备。

Topics

Resources

License

Stars

Watchers

Forks

Languages