(工事中) P-07C の仕込み関係
システムのバックアップとリカバリの手順
まずは shell root とかで昇格。ビルド 07.0951 なら、N-04C と同様の手順で取得できることを確認済み。
- install.batを実行⇒「*」⇒「2」
- 昇格後は「rm /data/local/tmp/*」でゴミを消しておく。
ROMのバックアップ
# mkdir /mnt/sdcard/p07c_dmp/
# cd /dev/mtd
# dd if=mtd0 of=/mnt/sdcard/p07c_dmp/mtd0.bin bs=4096
# dd if=mtd1 of=/mnt/sdcard/p07c_dmp/mtd1.bin bs=4096
# dd if=mtd2 of=/mnt/sdcard/p07c_dmp/mtd2.bin bs=4096
# dd if=mtd3 of=/mnt/sdcard/p07c_dmp/mtd3.bin bs=4096
# dd if=mtd4 of=/mnt/sdcard/p07c_dmp/mtd4.bin bs=4096
# dd if=mtd5 of=/mnt/sdcard/p07c_dmp/mtd5.bin bs=4096
# dd if=mtd6 of=/mnt/sdcard/p07c_dmp/mtd6.bin bs=4096
# dd if=mtd7 of=/mnt/sdcard/p07c_dmp/mtd7.bin bs=4096
# dd if=mtd8 of=/mnt/sdcard/p07c_dmp/mtd8.bin bs=4096
# dd if=mtd9 of=/mnt/sdcard/p07c_dmp/mtd9.bin bs=4096
# dd if=mtd10 of=/mnt/sdcard/p07c_dmp/mtd10.bin bs=4096
# dd if=mtd11 of=/mnt/sdcard/p07c_dmp/mtd11.bin bs=4096
# dd if=mtd12 of=/mnt/sdcard/p07c_dmp/mtd12.bin bs=4096
# dd if=mtd13 of=/mnt/sdcard/p07c_dmp/mtd13.bin bs=4096
# dd if=mtd14 of=/mnt/sdcard/p07c_dmp/mtd14.bin bs=4096
# dd if=mtd15 of=/mnt/sdcard/p07c_dmp/mtd15.bin bs=4096
# cat /proc/mtd >/mnt/sdcard/p07c_dmp/proc_mtd.log※userdata のように常に書き換えが行われているデバイスからも抜き出すので、イメージによっては抜き出したタイミングによって中身(ハッシュ値)が変化する事がある。特に mtd10.bin は抜き出す度にハッシュ値が変化するはず。
ちなみに、各イメージと中身の対応は以下の通り。
# cat /proc/mtd
dev: | size | erasesize | name |
---|---|---|---|
mtd0: | 00100000 | 00040000 | "X-Loader" |
mtd1: | 00100000 | 00040000 | "U-Boot" |
mtd2: | 00200000 | 00040000 | "StartUp" |
mtd3: | 01600000 | 00040000 | "misc1" |
mtd4: | 00600000 | 00040000 | "Recovery-kernel" |
mtd5: | 00500000 | 00040000 | "misc2" |
mtd6: | 00600000 | 00040000 | "kernel" |
mtd7: | 00580000 | 00040000 | "Recovery-main" |
mtd8: | 00580000 | 00040000 | "Recovery-backup" |
mtd9: | 1a280000 | 00040000 | "system" |
mtd10: | 13480000 | 00040000 | "userdata" |
mtd11: | 0db80000 | 00040000 | "cache" |
mtd12: | 00600000 | 00040000 | "Recovery-kernel-backup" |
mtd13: | 00780000 | 00040000 | "log" |
mtd14: | 00500000 | 00040000 | "misc4" |
mtd15: | 00500000 | 00040000 | "misc3" |
後はfastbootを使えば復元できるそうですが未確認。アップデートする前に shell root を取って実行しておくとよさげ。おそらくfastbootは利用できない。shell root が使える状態で flash_image するか cat で直接流し込むのがよさそう。試してないけど。
雑記
初期化
[戻る] + [電源]
愚痴
とりあえずパーティション(?)の切り方がおかしい。異議あり!
# df
Filesystem Size Used Free Blksize /dev 238M 32K 237M 4096 /mnt/asec 238M 0K 238M 4096 /mnt/obb 238M 0K 238M 4096 /log 7M 2M 5M 4096 /system 418M 366M 52M 4096 /data 308M 61M 247M 4096 /cache 219M 2M 217M 4096 /misc4 5M 1M 3M 4096 /data/DxDrm/fuse: Permission denied
/system を圧縮して上手いことパーティションが変更できたら、/data が増やせそうな予感。手順がよく分かんないけど。誰かおせーて!