Changes between Version 2 and Version 3 of pierre_ja


Ignore:
Timestamp:
09/05/11 14:56:12 (14 years ago)
Author:
web1_pierre_ja
Comment:

goldcard and random things

Legend:

Unmodified
Added
Removed
Modified
  • pierre_ja

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