CMCC RAX3000M CH EC 算力版刷机(中国移动 RAX3000M 算力版)刷机openwrt后的配置

刷机前面的工作参考:

CMCC RAX3000M CH EC 算力版 刷机流程参考这里上一篇

刷机

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 update

opkg install fdisk libblkid libfdisk 
opkg install blkid resize2fs
opkg install cfdisk

opkg 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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值