|
发表于 2020-1-5 12:07:56
|
显示全部楼层
本帖最后由 HK$ 于 2020-1-5 12:39 编辑
2 B- ~$ e8 c* b. {; E. H
( ?' `! r5 L5 E W4 s2 |他的脚本主要是这么刷的:
) {' U* B& Y$ ?9 r) I% I% h! @1 j8 A* y9 Z) k. s* k5 C) j
- send_msg "start writing mdt0"
0 T: X" F3 K. i4 a$ B - dd if="full.bin" of=/dev/mtdblock0 bs=1 skip=0 count=$((0xc8000))0 A! {& V H0 v# W7 Z
- on_error_exit "write mtd0 failed"+ ?0 F$ x4 W I6 X5 F9 I) g
- send_msg "start writing mdt1"
2 |: k3 h% }, D" M! Z - dd if="full.bin" of=/dev/mtdblock1 bs=1 skip=$((0x000c8000)) count=$((0x00004000))
9 t: S5 N0 \" @; E2 z$ ` - on_error_exit "write mtd1 failed"
0 n8 {/ T2 w, H4 d: M4 H - send_msg "start writing mdt2"0 j x' j& J# G( v/ h G
- dd if="full.bin" of=/dev/mtdblock2 bs=1 skip=$((0x000cc000)) count=$((0x00434000)) y$ Z* T5 N0 X1 x, p' L3 t# R2 `
- on_error_exit "write mtd2 failed"
, d, q* ?9 b7 T) K) E - send_msg "start writing mdt3"
( x x3 l' P* H' l \* d4 Q - dd if="full.bin" of=/dev/mtdblock3 bs=1 skip=$((0x00500000)) count=$((0x00300000))
) E. {* H$ w$ H4 ` - on_error_exit "write mtd3 failed"
复制代码
% m9 d2 @; _" E& G看了下应该可以用脚本刷 |
|