| 1 | # goldcard: (Guhl and Nipqer) part of the commands are in http://www.thinkthinkdo.com/trac/project1/wiki/nipqer |
|---|
| 2 | # we might want to flash the pc10img with fastboot to avoid writing to the sdcard while it is golden |
|---|
| 3 | # BACKUP the sdcard prior to make it golden |
|---|
| 4 | |
|---|
| 5 | # 1. get the cid |
|---|
| 6 | cat /sys/class/mmc_host/mmc2/mmc2:*/cid |
|---|
| 7 | |
|---|
| 8 | # 2. reverse the cid, paste it into http://psas.revskills.de/?q=goldcard , get the img by e-mail |
|---|
| 9 | |
|---|
| 10 | # 3. temproot (fre3vo or psneuter) |
|---|
| 11 | |
|---|
| 12 | # 4. adb push goldcard.img /data/local/tmp/ |
|---|
| 13 | adb push busybox /data/local/tmp/ |
|---|
| 14 | adb shell chmod 755 /data/local/tmp/busybox |
|---|
| 15 | |
|---|
| 16 | # 5. get an img of the first 512 bytes of the sdcard, check the img for sanity: |
|---|
| 17 | adb shell |
|---|
| 18 | cd /data/local/tmp |
|---|
| 19 | dd if=/dev/block/mmcblk1 bs=512 count=1 of=512.img |
|---|
| 20 | ./busybox md5sum /data/local/tmp/512.img |
|---|
| 21 | dd if=/dev/block/mmcblk1 bs=512 count=1 | ./busybox md5sum |
|---|
| 22 | |
|---|
| 23 | # 6. write the goldcard.img, check the success of the flash: |
|---|
| 24 | dd bs=512 if=goldcard.img of=/dev/block/mmcblk1 |
|---|
| 25 | dd if=/dev/block/mmcblk1 bs=<size of goldcard.img in bytes> count=1 | ./busybox md5sum |
|---|
| 26 | ./busybox md5sum /data/local/tmp/goldcard.img |
|---|
| 27 | |
|---|
| 28 | # 7. move the 512.img to a safe location |
|---|
| 29 | cp 512.img /sdcard # (or adb pull /data/local/tmp/512.img) |
|---|
| 30 | |
|---|
| 31 | # 8. flash the ruu (fastboot) |
|---|
| 32 | |
|---|
| 33 | # 9. temproot (psneuter), push and chmod busybox as in 4. |
|---|
| 34 | |
|---|
| 35 | # 10. restore the original 512 bytes and check - same as p 6 but instead of goldcard.img, 512.img should be dd-ed in and md5ed. |
|---|
| 36 | dd bs=512 if=512.img of=/dev/block/mmcblk1 |
|---|
| 37 | dd if=/dev/block/mmcblk1 bs=512 count=1 | ./busybox md5sum # compare that with the md5 from 5. |
|---|
| 38 | |
|---|