Git Product home page Git Product logo

actions-rax3000m-emmc's Introduction

闭源驱动 | 开源驱动

Actions-rax3000m-emmc

使用 GitHub Actions 在线编译定制 CMCC RAX3000M eMMC version 的 immortalwrt-mt798x 固件

固件特性

使用 hanwckf 大佬的 immortalwrt-mt798x 项目仓库,'openwrt-21.02' 分支源码编译,无线使用 mtwifi 原厂无线驱动,内核版本 5.4.x

项目详情:immortalwrt-mt798x项目介绍

固件默认选中软件包 f2fsck, losetup, mkf2fs, kmod-fs-f2fs, kmod-mmc, luci-app-ksmbd, luci-i18n-ksmbd-zh-cn, ksmbd-utils

添加集成软件包 cfdisk, htop, openssl-util, kmod-fuse, kmod-usb-net-ipheth, kmod-usb-net-rndis, luci-app-argon-config, luci-app-autoreboot, luci-app-diskman, luci-app-ksmbd, luci-app-nlbwmon, luci-app-openclash, luci-app-openvpn, luci-app-ttyd, luci-app-upnp, luci-app-usb-printer, luci-app-zerotier, luci-theme-argon 等并预置 openclash 内核

加入由 1715173329 天灵 使用 js 重写,237大佬 适配硬件 QoS 的 luci-app-eqos-mtk

使用说明

在 Actions 选择该工作流手动点击 Run workflow 执行编译,等待固件编译完成上传至 releases 发布即可下载

配置说明

  • 默认 LAN IP 已更改为 192.168.6.1,可在 scripts/diy.sh 处修改

  • 需要取消集成或添加其他软件包可在 configs/rax3000m-emmc_mtksdk.config 处参考注释内容自行修改或添加配置选项

  • 默认构建使用 OpenWrt 原生 luci 无线控制界面,如需使用 MTK SDK 无线控制界面 (luci-app-mtk) 请在 Run workflow 时取消勾选 “Use mtwifi-cfg”,或在 workflow 配置文件中将 USE_MTWIFI_CFGdefault: true 的 true 改为 false,重新编译刷入使用

  • 默认构建 eeprom 替换为 H3C NX30 Pro 提取版本(来自 237大佬 提取)以增大无线功率,原厂 eeprom 无线信号 2.4G: 23dBm, 5G: 22dBm;替换 nx30pro_eeprom 后 2.4G: 25dBm, 5G: 24dBm。如需恢复使用默认 eeprom 请在 Run workflow 时取消勾选 “Use nx30pro eeprom”,或在 workflow 配置文件中将 USE_NX30PRO_EEPROMdefault: true 的 true 改为 false,重新编译刷入使用

    eMMC 设备读取 eeprom 方式与 nand 闪存设备不同,所以修改方式也不同。其他设备包括 CMCC RAX3000M nand 版本若希望使用高功率 eeprom 可直接改用 237 的 https://github.com/padavanonly/immortalwrt-mt798x 仓库源码编译,或参考 https://github.com/padavanonly/immortalwrt-mt798x/commit/32ccfa4af7cd8eb6193c0394a06f5d32ac49c1f7 进行修改

  • 默认使用 26 MHz 闪存频率,52 MHz 下闪存读写速率相较 26 MHz 下翻倍,可达到 40MB/s 以上,但部分机器因闪存体质差异,使用 52 MHz 闪存频率固件可能会出现 I/O 报错 (dmesg | grep error 查看),无法正常使用,甚至可能无法启动,你可以在 Releases 处查找不同闪存频率固件。自行构建 52 MHz 版本需要在 Run workflow 时勾选 “Use 52MHz max-frequency”,或在 workflow 配置文件中将 USE_52MHZdefault: false 的 false 改为 true,重新编译刷入使用

如何刷入

参考 https://t.me/nanopi_r2s/637 刷入单分区版 GPT BL2 FIP, 再通过 custom U-Boot 刷写 sysupgrade.bin 固件

已增加 CMCC RAX3000M eMMC 版 U-Boot,GPT BL2 FIP 刷入方式如下:

dd if=mt7981-cmcc_rax3000m-emmc-gpt.bin of=/dev/mmcblk0 bs=512 seek=0 count=34 conv=fsync
echo 0 > /sys/block/mmcblk0boot0/force_ro
dd if=/dev/zero of=/dev/mmcblk0boot0 bs=512 count=8192 conv=fsync
dd if=mt7981-cmcc_rax3000m-emmc-bl2.bin of=/dev/mmcblk0boot0 bs=512 conv=fsync
dd if=/dev/zero of=/dev/mmcblk0 bs=512 seek=13312 count=8192 conv=fsync
dd if=mt7981-cmcc_rax3000m-emmc-fip.bin of=/dev/mmcblk0 bs=512 seek=13312 conv=fsync

对应 ImmortalWrt CMCC RAX3000M eMMC version (custom U-Boot layout)、Q-WRT、及其他 eMMC 单分区版固件。

路由器进入 uboot 需要手动设置本机 IP 192.168.1.100 网关 192.168.1.1 DNS 192.168.1.1, 新版 custom U-Boot 已支持 DHCP,浏览器输入 192.168.1.1 进入 Web-UI 刷写固件,所有文件可在 https://firmware.download.immortalwrt.eu.org/uboot/mediatek 获取

注意事项

此分区布局默认不创建 eMMC 闪存最后一块 56G 大分区,你需要使用 cfdisk /dev/mmcblk0 为最后一块剩余空闲容量手动创建 /dev/mmcblk0p7 分区并通过 mkfs.ext4 格式化以挂载使用,此后更新刷入其他固件则无需再进行相同操作,固件可以自动挂载

Credits

License

MIT © P3TERX

actions-rax3000m-emmc's People

Contributors

angelacooljx avatar

Stargazers

 avatar  avatar  avatar  avatar Corz avatar  avatar herryking avatar karl lao avatar  avatar Makazeu avatar  avatar 徐艺扬 avatar  avatar  avatar Json Woo avatar lol avatar  avatar QXY avatar  avatar  avatar  avatar  avatar  avatar  avatar Junli avatar Shima Rin avatar littlefan avatar  avatar Raudience avatar Raphael avatar Michael Pan avatar 东子 avatar  avatar  avatar Hs_Yeah avatar  avatar  avatar  avatar BusDriver avatar HsiChien avatar  avatar jqtmviyu avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

Json Woo avatar  avatar  avatar

actions-rax3000m-emmc's Issues

关于rax3000m NAND版的替换eeprom的问题

我目前在使用nand版本(128M闪存)的rax3000m。
在已经在fork中正常编译出无线正常的nand版本的固件后,我发现无线功率没有提高。
我查看了工作流的文件,并在替换eeprom的步骤里添加了这样一行:
sed -i 's/rax3000m-emmc/rax3000m-nand/' openwrt/target/linux/mediatek/mt7981/base-files/lib/preinit/90_extract_caldata
试图把型号修改为nand版本。 但是失败了,没有变化。
全网好像没有这方面的资料,237大佬也是直接放出固件。

如果您有时间的话希望能点拨一下,或者介绍一下这个替换eeprom的原理和步骤,感激不尽!

OPK安装软件很慢,很多软件安装不成功。

23.05.0-rc4版本的安装软件很快,但这个snapshots版本安装软件很慢,还有很多软件安装不上或提示kernel_5.15和软件要求的版本不一至如DOCKER。
就算是如提示安装好"kernel_5.15.*_aarch64_cortex-a53.ipk" 后DOCKER也安装不上。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.