当前位置: 首页 > news >正文

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

 

回车确认

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


http://www.mrgr.cn/news/100397.html

相关文章:

  • 【STL】unordered_map
  • 毕业设计-基于机器学习入侵检测系统
  • 12.thinkphp验证
  • 毕业设计-基于深度学习的入侵检测系统
  • MYSQL 常用字符串函数 和 时间函数详解
  • RabbitMQ安装流程(Windows环境)
  • K8S Service 原理、图例——深度好文
  • 高性能服务器配置经验指南1——刚配置好服务器应该做哪些事
  • 详解最新链路追踪skywalking框架介绍、架构、环境本地部署配置、整合微服务springcloudalibaba 、日志收集、自定义链路追踪、告警等
  • 深入理解N皇后问题:从DFS到对角线优化
  • (六)RestAPI 毛子(外部导入打卡/游标分页/Refit/Http resilience/批量提交/Quartz后台任务/Hateoas Driven)
  • springboot应用使用shell脚本打包成部署压缩包(支持xjar)
  • 【深度学习】【目标检测】【Ultralytics-YOLO系列】YOLOV3核心文件common.py解读
  • git tag使用场景和实践
  • C语言HashTable基本理解
  • TCP专题
  • IT社团分析预测项目(pandas、numpy、sklearn)
  • Vue前端学习笔记
  • ​Stable Diffusion:Diffusion Model
  • FPGA设计 时空变换