wiki:pierre_ja

Version 3 (modified by web1_pierre_ja, 13 years ago) (diff)

goldcard and random things

pierre_ja

# goldcard: (Guhl and Nipqer) part of the commands are in http://www.thinkthinkdo.com/trac/project1/wiki/nipqer

# we might want to flash the pc10img with fastboot to avoid writing to the sdcard while it is golden # BACKUP the sdcard prior to make it golden

# 1. get the cid

cat /sys/class/mmc_host/mmc2/mmc2:*/cid

# 2. reverse the cid, paste it into http://psas.revskills.de/?q=goldcard , get the img by e-mail

# 3. temproot (fre3vo or psneuter)

# 4. adb push goldcard.img /data/local/tmp/

adb push busybox /data/local/tmp/ adb shell chmod 755 /data/local/tmp/busybox

# 5. get an img of the first 512 bytes of the sdcard, check the img for sanity:

adb shell cd /data/local/tmp dd if=/dev/block/mmcblk1 bs=512 count=1 of=512.img ./busybox md5sum /data/local/tmp/512.img dd if=/dev/block/mmcblk1 bs=512 count=1 | ./busybox md5sum

# 6. write the goldcard.img, check the success of the flash:

dd bs=512 if=goldcard.img of=/dev/block/mmcblk1 dd if=/dev/block/mmcblk1 bs=<size of goldcard.img in bytes> count=1 | ./busybox md5sum ./busybox md5sum /data/local/tmp/goldcard.img

# 7. move the 512.img to a safe location

cp 512.img /sdcard # (or adb pull /data/local/tmp/512.img)

# 8. flash the ruu (fastboot)

# 9. temproot (psneuter)

# 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.

dd bs=512 if=512.img of=/dev/block/mmcblk1 dd if=/dev/block/mmcblk1 bs=512 count=1 | ./busybox md5sum # compare that with the md5 from 5.

Attachments (17)