[Touch GSM ROM Development] Zagaulo:
I made a mistake when writing the last post, The right Linux command was not "dmesg" but hal-device. I am sorry to all readers XDA Goldcard.

<dsixda> please update your wiki after testing. see example here

--------------------------------------------------------

Some corrections

--------------------------------------------------------

In the folowing we will talk about SD card, in reel we use SD card adapter for a mini SD card 1Go (and work also for SDHC card).

This method is tested with a SD/MMC card reader usins PCI controller. (exp Laptop HP Pavillon ZVxxxx)

to chek de PCI device connected tape : $> lspci

Mass storage controller: Texas Instruments PCIxx21 Integrated FlashMedia Controller

for chek all usb device connected tape $> lsusb

I am not sure hal-device can help you to extract the CID, basically when the SD card reader is connect using USB adapter.

See the driver library and check for mmc.h file or mmc_spi.h

the communication protocol of SEND_CID function is achieved in Serial mode i think :(

Having the live CD ubuntu version 9.10 "Karmic Koala" available here

Step 1

+ Run ubuntu from CD

+When loading linux is finished, open a terminal => go to [Start / Accessories / Terminal]

+ Insert your SD card,

+ Change to administrator mode by the command (it's optional)

$> sudo -s

Step 2

The key command and alternative of wich presented in the WIKI Efl goldcard is : hal-device

ubuntu@ubuntu$ hal-device

ubuntu@ubuntu$ hal-device | grep mmc

A little part of what we can see on the screen :

---------------------------------------------------------------

linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:14.4/0000:03:04.3/tifm_sd0:3/mmc_host/mmc3/mmc3:e624/block/mmcblk0/mmcblk0p1' (string)

block.device = '/dev/mmcblk0p1' (string)

storage.drive_type = 'sd_mmc' (string)

linux.subsystem = 'mmc' (string)

mmc.rca = 58916 (0xe624) (int)

mmc.cid = '0334455655303156211111111f0075e1' (string)

mmc.csd = '002600325f5983c83156211111111f0e' (string)

info.linux.driver = 'mmcblk' (string)

mmc.type = 'SD' (string)

mmc.scr = '0225000000000000' (string)

mmc.vendor = 'Unknown (3)' (string)

mmc.oem = 'Unknown (21316)' (string)

mmc.date = '10/2007' (string)

mmc.hwrev = 8 (0x8) (int)

mmc.fwrev = 0 (0x0) (int)

mmc.serial = 272118175 (0x1038319f) (int)

info.subsystem = 'mmc' (string)

linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:14.4/0000:03:04.3/tifm_sd0:3/mmc_host/mmc3/mmc3:e624' (string)

info.parent = '/org/freedesktop/Hal/devices/pci_104c_8033_mmc_host' (string)

info.udi = '/org/freedesktop/Hal/devices/pci_104c_8033_mmc_host_mmc_card_rca58916' (string)

3: udi = '/org/freedesktop/Hal/devices/pci_104c_8033_mmc_host'

mmc_host.host = 1 (0x1) (int)

44: udi = '/org/freedesktop/Hal/devices/pci_104c_8034_mmc_host'

linux.subsystem = 'mmc_host' (string)

info.capabilities = { 'mmc_host' } (string list)

------------------------------------------------------------

So to refine the research of the famous CID, we proceed by a search using a keyword = "mmc.cid", see the following command:

ubuntu@ubuntu$ hal-device | grep mmc.cid

The result is displayed in the terminal screen as following in one line:

mmc.cid = '0334455655303156211111111f0075e1' (string)

Step 3

As I said above this result does not give the CID in the right direction is slightly inverted with letters are interchanged in pairs.To follow it exactly what it says in the wiki i.e:

+ Open QMAT, go to Cryptoanalysis Tools, then Crypto Toolbox, and enter the string at the bottom where it says "Reverse String". Press the button and you will get your actual Card ID.

Step 4

And generate the goldcard image under "goldcard.img" name into c:\itsutilsbin directory

Step 5

Return to the windows OS and format the SD card :

console-dos> format <sddrive:> /FS:FAT32 /A:4096

Step 6

Write this image on your SD card, a part of this image parste the boot sector of the SD card it's magic :o)

console-dos> psdwrite <sddrive:> goldcard.img 0 0x120

Step 7

You have to follow the wiki now ..