CMCC RAX3000M CH EC 算力版刷机(中国移动 RAX3000M 算力版)刷机
刷机前面的工作参考:
https://blog.csdn.net/asdcls/article/details/147434218
刷机
eMMC Flash instructions:
1. SSH to RAX3000M, and backup everything, especially 'factory' part.
('data' partition can be ignored, it's useless.)
2. Write new GPT table:
dd if=openwrt-mediatek-filogic-cmcc_rax3000m-emmc-gpt.bin of=/dev/mmcblk0 bs=512 seek=0 count=34 conv=fsync
3. Erase and write new BL2:
echo 0 > /sys/block/mmcblk0boot0/force_ro
dd if=/dev/zero of=/dev/mmcblk0boot0 bs=512 count=8192 conv=fsync
dd if=openwrt-mediatek-filogic-cmcc_rax3000m-emmc-preloader.bin of=/dev/mmcblk0boot0 bs=512 conv=fsync
4. Erase and write new FIP:
dd if=/dev/zero of=/dev/mmcblk0 bs=512 seek=13312 count=8192 conv=fsync
dd if=openwrt-mediatek-filogic-cmcc_rax3000m-emmc-bl31-uboot.fip of=/dev/mmcblk0 bs=512 seek=13312 conv=fsync
5. Set static IP on your PC:
IP 192.168.1.254, GW 192.168.1.1
6. Serve OpenWrt initramfs image using TFTP server.
7. Cut off the power and re-engage, wait for TFTP recovery to complete.
8. After OpenWrt has booted, perform sysupgrade.
9. Additionally, if you want to have eMMC recovery boot feature:
(Don't worry! You will always have TFTP recovery boot feature.)
dd if=openwrt-mediatek-filogic-cmcc_rax3000m-initramfs-recovery.itb of=/dev/mmcblk0p4 bs=512 conv=fsync
1. SSH to RAX3000M, and backup everything, especially 'factory' part.
('data' partition can be ignored, it's useless.)
SSH 登录到 RAX3000M, and 备份数据, 特别是 'factory' 部分.
('data' 分区可以忽略,基本没有啥用)
2.Write new GPT table:
写入新的GPT分区表
dd if=/tmp/openwrt-24.10.1-mediatek-filogic-cmcc_rax3000m-emmc-gpt.bin of=/dev/mmcblk0 bs=512 seek=0 c
ount=34 conv=fsync
3. Erase and write new BL2:
擦除并写入新的BL2:
echo 0 > /sys/block/mmcblk0boot0/force_ro
dd if=/dev/zero of=/dev/mmcblk0boot0 bs=512 count=8192 conv=fsync
dd if=/tmp/openwrt-24.10.1-mediatek-filogic-cmcc_rax3000m-emmc-preloader.bin of=/dev/mmcblk0boot0 bs=512 conv=fsync
4. Erase and write new FIP:
擦除并写入新的FIP:
dd if=/dev/zero of=/dev/mmcblk0 bs=512 seek=13312 count=8192 conv=fsync
dd if=/tmp/openwrt-24.10.1-mediatek-filogic-cmcc_rax3000m-emmc-bl31-uboot.fip of=/dev/mmcblk0 bs=512 seek=13312 conv=fsync
5. Set static IP on your PC:
电脑设置静态IP:
IP 192.168.1.254, 网关地址:192.168.1.1
6. Serve OpenWrt initramfs image using TFTP server.
电脑端启动tftpd服务端, 改为电脑可见模式,关闭防火墙
固件的名字需要改成这个才可以被找到。
openwrt-mediatek-filogic-cmcc_rax3000m-initramfs-recovery.itb
7. Cut off the power and re-engage, wait for TFTP recovery to complete.
路由器断电,重新插电,重启 (不进入可以断电按reset键,再插电后再松开按键)
8. After OpenWrt has booted, perform sysupgrade.
重启后,执行sysupgrade 动作。
you can use ssh:
ssh root@192.168.1.1 "cat > /tmp/openwrt-24.10.1-mediatek-filogic-cmcc_rax3000m-squashfs-sysupgrade.itb" < openwrt-24.10.1-mediatek-filogic-cmcc_rax3000m-squashfs-sysupgrade.itb
(Also ensure you have set a non-null password for your device root account.)
# Flash firmware sysupgrade -v /tmp/openwrt-24.10.1-mediatek-filogic-cmcc_rax3000m-squashfs-sysupgrade.itb
[OpenWrt Wiki] Upgrading OpenWrt firmware using CLI
开始的时候,我没有执行8. After OpenWrt has booted, perform sysupgrade.
重启后配置信息会丢失。系统是存储临时文件中没有持久化的
9. Additionally, if you want to have eMMC recovery boot feature:
(Don't worry! You will always have TFTP recovery boot feature.)
dd if=openwrt-mediatek-filogic-cmcc_rax3000m-initramfs-recovery.itb of=/dev/mmcblk0p4 bs=512 conv=fsync
刷新后,
http://192.168.1.1/
登录,默认密码为空,直接进入
system>software
点击updatelist可以相当于执行opkg update,更新软件列表
然后filter中可以过滤,比如安装主题theme,语言包比如chinese等。
network>wireless
可以设置无线(master模式)
也可以设置无线中继 scan中连接无线wifi 设置为client模式
扩容使用eMMc的存储空间,默认刷机后使用了很少一部分空间,扩展空间下面操作有风险
opkg updateopkg install fdisk libblkid libfdisk opkg install blkid resize2fs opkg install cfdiskopkg install openssh-sftp-server
安装一些软件
blkid fidsk -l /dev/mmcblk0
备份数据
#路由器执行 tar -czvf /tmp/overlay.tar.gz /overlay
#电脑上面备份 scp root@192.168.1.1:/tmp/overlay.tar.gz .
cfdisk
cfidsk /dev/mmcblk0
输入R
回车 确认
输入W
yes回车确认
输入T
![]()
回车确认
W
yes 回车
Q 退出
reboot
# df -h Filesystem Size Used Available Use% Mounted on /dev/root 5.3M 5.3M 0 100% /rom tmpfs 242.9M 1.4M 241.5M 1% /tmp /dev/fitrw 435.4M 60.0M 375.4M 14% /overlay overlayfs:/overlay 435.4M 60.0M 375.4M 14% / tmpfs 512.0K 0 512.0K 0% /dev
还需要修改/dev/fitrw
# df -h Filesystem Size Used Available Use% Mounted on /dev/root 5.3M 5.3M 0 100% /rom tmpfs 242.9M 1.4M 241.5M 1% /tmp /dev/fitrw 435.4M 60.0M 375.4M 14% /overlay overlayfs:/overlay 435.4M 60.0M 375.4M 14% / tmpfs 512.0K 0 512.0K 0% /dev
修改cfdisk /dev/fitrw
cfdisk /dev/fitrw
y
N
回车确认
W
yes 回车
Q 退出
可选-可以将之前的备份copy回/overlay
reboot
重新登录查看分区大小,已经修改
# df -h Filesystem Size Used Available Use% Mounted on /dev/root 5.3M 5.3M 0 100% /rom tmpfs 242.9M 400.0K 242.5M 0% /tmp /dev/fitrw 57.5G 713.5M 56.8G 1% /overlay overlayfs:/overlay 57.5G 713.5M 56.8G 1% / tmpfs 512.0K 0 512.0K 0% /dev
后续有再学习后更新。
参考:
固件下载:
https://firmware-selector.openwrt.org/?version=24.10.1&target=mediatek%2Ffilogic&id=cmcc_rax3000m
mediatek: add CMCC RAX3000M support by 1715173329 · Pull Request #13513 · openwrt/openwrt