|  | 1 | = flashgc_x86 (by Guhl) based on flashgc (by scorgon)= | 
                          |  | 2 |  | 
                          |  | 3 | flashgc_x86 is a tool to create a goldcard for the HTC android phones on your linux x86 pc. It is mainly intended to be used together with a external card reader. | 
                          |  | 4 | The intention of the tool is to be able to create a goldcard for your phone in the case that you can not use the phone itself anymore (i.e. bootloops) but you know the CID of the sdcard. | 
                          |  | 5 |  | 
                          |  | 6 | It creates the goldcard image standalone and writes it either to a file or a block device that contains the micro-sdcard. | 
                          |  | 7 |  | 
                          |  | 8 | == License == | 
                          |  | 9 | flashgc_x86 is licensed under the GPL v3. | 
                          |  | 10 |  | 
                          |  | 11 | Its source code can be found at [https://github.com/guhl/flashgc_x86]. | 
                          |  | 12 |  | 
                          |  | 13 | '''Please respect the license'''! | 
                          |  | 14 |  | 
                          |  | 15 | == Mini How-To == | 
                          |  | 16 | * Download flashgc that is in the attachments of this page and copy it to your x86 PC running linux. | 
                          |  | 17 | * Put the sdcard in the card reader and determine its block device (usually /dev/sd<a..z>). | 
                          |  | 18 | * Find the CID of your sdcard i.e. by putting it into another phone and using a tool like GoldcardHelper. | 
                          |  | 19 | * Create and flash the goldcard image to the sdcard using a command like (assuming that you know the reversed CID and the device is /dev/sdb): | 
                          |  | 20 | {{{ | 
                          |  | 21 | ./flashgc_x86 --cid-reverse 6ebb0078dc87751030303030304d531b --out /dev/sdb | 
                          |  | 22 | }}} | 
                          |  | 23 |  | 
                          |  | 24 | == flashgc_x86 and its options == | 
                          |  | 25 |  | 
                          |  | 26 | {{{ | 
                          |  | 27 | flashgc usage: | 
                          |  | 28 | Usage: | 
                          |  | 29 | ./flashgc_x86 [options] | 
                          |  | 30 | Options: | 
                          |  | 31 | --help                          Print this help message and exit. | 
                          |  | 32 | --cid-file <cid file>           Read CID from file <cid file>. | 
                          |  | 33 | --cid-forward <cid>             Use the normal (not reversed) CID <cid>. | 
                          |  | 34 | --cid-reverse <reverse cid>     Use the already reversed CID <reverse cid>. | 
                          |  | 35 | --out <out file>                Write to file (or block device) <out file>. | 
                          |  | 36 | --backupfile <file>             Create a backup of the current MBR to file <file>. | 
                          |  | 37 | --restore <backup image>        Restore backup image to sd-card. | 
                          |  | 38 | --dumpgc                        Dump gold-card image to the file goldcard.img. | 
                          |  | 39 | }}} | 
                          |  | 40 |  | 
                          |  | 41 | '''Note''' | 
                          |  | 42 | Running flashgc_x86 without options will try to read the CID from file /sys/block/mmcblk1/device/cid, generate and install the goldcard image to location /dev/block/mmcblk1. |