猫盘刷x3p和群晖nas

一、TTL大法

连接TTL终端,并插上U盘,捅菊花上电启动
首先将x3p的full.bin文件刷入spi flash
reset重启刷入X3P

1
bubt full.bin spi usb

修改mac地址,例如:4C:65:A8:A1:2B:3C

1
2
3
[root@ones~]# root Etech12
mount -o remount,rw /
vi /etc/init.d/S21wire

然后升级最新的系统

群晖NAS也一样的方法,重点在于full.bin或flash-imag.bin
OK,X3p可以开吃

二、DD大法

DS119J

1
2
3
4
dd if="full.bin" of=/dev/mtdblock0 bs=1 skip=0 count=$((0xc8000))
dd if="full.bin" of=/dev/mtdblock1 bs=1 skip=$((0x000c8000)) count=$((0x00004000))
dd if="full.bin" of=/dev/mtdblock2 bs=1 skip=$((0x000cc000)) count=$((0x00434000))
dd if="full.bin" of=/dev/mtdblock3 bs=1 skip=$((0x00500000)) count=$((0x00300000))

DS119J to DS120J

1
2
3
4
dd if="full.bin" of=/dev/mtdblock0 bs=1 skip=0 count=$((0x000d5000))
dd if="full.bin" of=/dev/mtdblock1 bs=1 skip=$((0x000d5000)) count=$((0x00306000))
dd if="full.bin" of=/dev/mtdblock2 bs=1 skip=$((0x003db000)) count=$((0x00410000))
dd if="full.bin" of=/dev/mtdblock3 bs=1 skip=$((0x007eb000)) count=$((0x00010000))

三、TOOLS&&uboot其他操作

1
2
echo 0 > /sys/class/thermal/cooling_device0/cur_state  #关闭风扇
echo 1 > /sys/class/thermal/cooling_device0/cur_state #打开风扇

在新uboot里从U盘根目录中刷入uboot

1
bubt flash-image.bin spi usb

在新uboot里从tftp中刷入uboot

1
2
3
setenv ipaddr 192.168.1.100 #设定本机ip
setenv serverip 192.168.1.2 #设定tftp服务器ip
bubt flash-image.bin spi tftp

在新uboot里改变启动顺序

1
2
setenv boot_targets "usb sata mmc0" #默认为usb->mmc0->sata
saveenv