yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] nevets032:
No space left on device.

Hi,

I am having an issue when it comes to using dd to write the goldcard.img to raw data.

Here are the steps i've taken.

* Used the terminal emulator to find the CID and generate a free gold card via the internet (thanks) file size was 384 bytes.

* Formatted the sd card using the line "format E: /FS:FAT32 /A:4096"

* Opened cygwin as admin and changed to the directory where goldcard.img is located

Now when i attempt to use "dd if=goldcard.img of=/dev/sdc bs=384" I receive the message "No space left on device" and the process fails.

I used cat /proc/partitions to make sure i was pointing in the right direction am i missing something with Cygwin?

I have tried this method using two cards a 1gig sandisk and a 2gig kingston with the same results.

Hope i've covered all the bases.

Steve.
[G1 Android Development] Max Littlemore:
Thanks Viper, but still no luck. Can you check these numbers and see what if they are right?

Output from "cat /sys/.../cid" on a terminal on the phone:

035344535530324780201c7325007712

Reversed:

12770025731c20804732305553445303

What I put in the generator:

00770025731c20804732305553445303

Also, I tried dd on an unmounted card and it breaks the FAT32 format, neither the phone or laptop can mount it. When I do it on a mounted card the format is fine, but I get the "Not Allow" message.

I even tried:

~$dd if=/dev/sdb1 of=./fat2g

~$tail --byte=+385 > fat_end

~$cat goldcard fat_end > final_image

~$dd if=./final_image of=/dev/sdb1

No luck - I end up with an unmountable card :confused:

Any ideas? I'd love to nail this and write a simple linux howto for others.
[G1 Android Development] viperbjk:
Do NOT write to the partition but to the RAW sectors of the card. /dev/sdb1 won't work, only /dev/sdb will. and UNMOUNT /dev/sdb before writing with dd. See discussion in this thread.

Cya,

Viper BJK
[G1 Android Development] Max Littlemore:
Thanks Viper :D

Attention to detail lacks late at night.... It works!

I'll post a full linux howto soon.
[G1 Android Development] freeheel3r:
I tried following everything in this thread -- getting the CID from the terminal, reversing it, generating the image online, copying the image and the .nbh file to the phone, but I keep getting the "not allow" message.

I'm guessing just copying the .img file isn't the way to go...since I'm on windows again, I don't have dd... any alternative?

btw I have the german G1
[G1 Android Development] hazeline:
Hi, you cannot directly copy the goldcard.img into the sd card, it will not work. You can try using Cygwin to dd the img into the sd card. However i am not sure how to use cygwin to dd, i am currently waiting for max littlemore to post the how to.
[G1 Android Development] ringieringie:
how to easy write to raw sectors using XP!!!!

Yo peoples,

after weeks of trying to downgrade my rc9 to rc7. i finally figured a way to easily write to the raw sectors in xp without using unmount, cygwin and things like that. use at own risk!!!!

- download terminal on your g1.

- type: cat /sys/class/mmc_host/mmc1/mmc1:*/cid

- reverse in qmat

- change the first 2 numbers or letters to 00

- create goldcard from Viper BJK website (thanks man:))

- format sd card to fat32

- download HxD Hex Editor and install

- open program and go to "extra" and then "open disk"

- choose physical disk and then the removable disk. that is the same as your memory card. I've you don`t know with one it is. just remove the card and restart the program and you will see witch one is disappeared.

- uncheck open as readonly !!!!!!!

- go to "extra" again and the open disk image.

- open the goldcard.img witch you have created from Viper BJK website.

- press ok (512 is fine) en then "select all" and "copy"

- go to the removable disk tab and select offset 00000000 till offset 00000170 go to "edit" and then past write.

- save it

- now copy dreaming.nbh to the root off your memorycard.

- turn of your phone and restart by holding the camera and the power button.

Hope this will help you.....

grtz C.C.
[G1 Android Development] freeheel3r:
<3

thank you, that worked perfectly =)
[G1 Android Development] nevets032:
Not having much luck with this method. After I write the goldcard.img with HxD windows asks me to format the card again before i copy dreaming.nbh over.
[G1 Android Development] ringieringie:
I had the same problem first. when you open the disk in HxD, make sure you choose the physical disk instead of the logical disk. I think the physical disk is for the raw sectors.

good luck
[G1 Android Development] nevets032:
The card only appears under the logical disk selection. I've tried with two cards, same results.
[G1 Android Development] hazeline:
OMG, Thank You so much ringieringie. This method works successfully for me. whoa finally i can do alot of stuff for my phone. :) Cool man!

Thank You ViperBJK for your goldcard generator, without it, it is not possible.

It also seems like the method cannot work for the sd card supplied by the phone, Transcend card 1G also gets the dialog saying your card is not formatted, do u want to format now after the hex editing. However after trying out with Kingston 1G card, i managed to copy over the DREAIMG.img over without the dialog. I am not sure whether it is the card problem or some brands just cannot work.
[G1 Android Development] ringieringie:
I can`t tell you what the problem is. I tried with 2 cardreaders and they both worked. Also C: is visible (hard disk 1) As physical drive.
[G1 Android Development] pvansoest:
Excellent! Dutch phone rooted using C.C. method!

Worked like a charm using hexeditor, i noticed some strange data in the first sectors, so i suspected a bad image, redid the cid with :

Terminal Emulator:

cat /sys/class/mmc_host/mmc1/mmc1:*/cid > /sdcard/cid.txt

QMAT:

byte-wise reverse the serial string using QMAT: Cryptoanalysis Tools/Crypto Toolbox, enter serial in the box left of the "reverse string" button, click button, copy reversed serial string

replaced the first 2 bytes with 00's:

copied and pasted it into: http://revskills.de/pages/goldcard.html

got the new image, and used the rest of the info.

FYI: I used a Transend 2GB

Time to have fun now :)
[G1 Android Development] nevets032:
Turns out it was the PC, tried it on my laptop and i can now see the card under physical. Still getting the format issue so i guess my goldcard.img isn't right.

The cid output from the phone is 02544d5341303247039c3f4bdd008aa4

I then reverse it using qmat to a48a00dd4b3f9c0347323041534d5402

and 00 the first two so i get 008a00dd4b3f9c0347323041534d5402

Am i messing the CID up?
[G1 Android Development] ringieringie:
I think your cid and goldcard is fine. Since you over copied it to the logical drive you might damaged your sd card. I had that problem and solved it by formatting it using mac osx (windows could't format it anymore).

I used a 2gb memorex microsd.
[G1 Android Development] RDilus:
Please can some one help me :'(

still get the 28 bull**** code :(
[G1 Android Development] nevets032:
Hmm i'm still able to format it with windows but ill see if i can find a mac or linux PC to format it.
[G1 Android Development] Pascal257:
hey,

so I tried ringieringie's method and I really like the idea, but its not working for me. I keep ketting "Not Allow" trying to flash. I noticed that after copying the nbh file the first sector is rewritten with the fat32-stuff.

ëX.MSDOS5.0...~......ø..?.ÿ......€í.A;..........................€.)J*ä²NO NAME FAT32 3ÉŽÑ¼ô{ŽÁŽÙ½.|ˆN.ŠV@´A»ªUÍ.r..ûUªu.öÁ.t.þF.ë-ŠV@´.Í.s.¹ÿÿŠñf.¶Æ@f.¶Ñ€â?÷â†ÍÀí.Af.·Éf÷áf‰Føƒ~..u8ƒ~*.w2f‹F.fƒÀ.».€¹..è+.é,.*ú}´}‹ð¬„Àt.<ÿt.´.»..Í.ëî*û}ëå*ù}ëà˜Í.Í.f`€~...„ .fj.fP.Sfh....´BŠV@‹ôÍ.fXfXfXfXë3f;Før.ùë*f3Òf.·N.f÷ñþÂŠÊf‹ÐfÁê.÷v.†ÖŠV@ŠèÀä..Ì¸..Í.fa.‚uÿ.Ã..f@Iu”ÃBOOTMGR

This is written from offset 0 to 170. I could now remove the card, try it with the phone and I would get "Not Allow". Rewriting the goldcard.img after copying the file would destroy the partition and the phone wouldn't be able to read the image.

I have no idea how to continue...

I'm using a 8GB SDHC-Card with an adapter on my notebooks cardreader. I also tried it with the phone connected via USB, but it didn't work either.

greetings,

Pascal

Edit:

I tried it with Vista and XP and both rewrote the first sector.

I followed the instructions one by one.
[G1 Android Development] ghrayfahx:
Europe?

I've seen some conflicting info, but this place seems to be the most definitive. Has anyone successfully installed custom firmware on a european G1? I am an American living in Germany so I have the Qwertz G1, and would really like to have JF or something equivalent on my phone. I however REALLY don't want to brick my phone just cos I wanted stereo blutooth and such. (Note, however, I am very comfortable with hacking my equipment, almost every gadget I own now has a voided warranty & features not originally intended. Heh)
[G1 Android Development] ghrayfahx:
Hey, sorry about my ignorance. I read back through other posts more carefully, and saw that yes, it can and has been done. I now am the proud owner of a JesusFreked German G1. It still retains the proper keymapping as well. Z is still Z,and Y is still Y. Thanks to all who provided tutorials on here. You were all very helpful.
[G1 Android Development] darkmachine:
Hi is it possible to root?

firmware 1.1

baseband Version:

62.33.20.08U_1.22.14.11

Kernel Version:

2.6.25-01845-g85d4f0d

android-build@apa27 #27

Build number:

kila_eu-user 1.1 TMI-RC9 128600

ota-rel-keys,release-keys
[G1 Android Development] ghrayfahx:
That's what I had up until I rooted it with these instructions, so yes.
[G1 Android Development] thephoneguy65:
Working on australian model - here are the steps

Here are the steps (after so weeks of trying) to root an Australian HTC Dream (from Optus) - of course it should work on other UK models too...

* insert Kingston 2GB sd card into G1

* open Terminal Emulator on G1 (can download from Market)

* type: ls /sdcard (to verify it was founded and i could see files on card)

* type: cd /sys/class/mmc_host/mmc1/mmc1:1234 (that's right, it was literally '1234' is this correct? - but it worked)

* type: cat cid > /sdcard/cid.txt

* exit Terminal and eject card from G1

* (UNREVERSED: 02544d5341303247039c6792f0008cd2)

* open qmat on my vista machine, go 'Cryptoanalysis Tools' then 'Crypto Toolbox'

* select HTC from the dropdown (don't know if this matters) then paste the 02544d5341303247039c6792f0008cd2 into the box and click 'Reverse String' - result is (REVERSED: d28c00f092679c0347323041534d5402)

* Write two 00's in replace of the string... (ZEROED: 008c00f092679c0347323041534d5402) - why was this part never mentioned in first tutorial?

* open Free Goldcard site (thanks Viper BJK!!), enter my email and 008c00f092679c0347323041534d5402 to the online goldcard generator and click 'Continue'.

* insert card into Vista machine using cheap Ritmo cardreader right click Format, as FAT32, 4096 bytes, Volume label (blank), Quick Format (yes Quick Format, does that matter?) - then eject card.

* boot up linux (eeebuntu 2.0) then insert card into EEEPC 901 netbook's built-in cardreader and download goldcard.img from my email address (goldcard.img MD5=32815d8c524ed9d90c4ce7996e897bc1).

* download RC7 from http://koushikdutta.blurryfox.com/G1/DREAMIMG-RC7.zip - and extract to linux netbook

* in linux terminal, type: cp DREAIMG.NBG /media/disk/ (to copy the NBG file to the newly FAT32 formatted sd card that i just inserted into linux)

* type: umount /dev/sdd1

* type: dd if=goldcard.img of=/dev/sdd (result: 0+1 records in, 0+1 records out, 384 bytes (384 B) copied)

* pull out sd card (now goldcard!) from netbook and insert into g1

* hold camera button and turn g1 on

* SUCCESS! - it asks me to press power button again to update image, so press it and it downgrades.

Thank you for all your help on this forum, and especially thanks to Viper BJK, you can expect a donation from me soon!!!
[G1 Android Development] Pascal257:
it finally worked. I tried it with the 2GB SanDisk SDcard and it didn't rewrote the FAT32 stuff and I was able to write the goldimg and then flash the dreaimg.nbh

thank you very much!
[G1 Android Development] laohor:
Thank you for making the above possible, apprectiate that a lot, however if just because of some jokers or idiots who tried to hack your server and enter email for fun you closed down the free service it will be rather unwise as they are definately not those who need your valuable service to the public and they are definatly are trying to disrupt your true effort to the community and by closeing your service, you are fufilling what they are expecting you to do :) i am one who appreciate your hard work and effort :)
[G1 Android Development] joadchob:
Booatloader in root phones

Hey guys how are you going, i red the thread time ago and i finally rooted my G1, i have a european version but using goldcard and the tips, you gave me i could root my phone, and know i have

62.33.20.08H_1.22.12.29

2.6.25-01843-gfea26b0

jesusfreke@AndroidDev #1

killa-user 1.1 PLAT-RC33 126986

ota-rel-keys,release-key

So seems that everything was working fine for me i also installed mutitouch in my G1, but now i wanna do other things like change my boot image or allocate my programs into my SD card, and also install cupcake. But i got stuck at that point. Thing is that i wanna change my SPL(boot), to the hardSPL, so i allocate the update.zip in my SD card and then i turned off my phone, and turned on using camera button and power, and got into boot loader, but a difference than other times, that i got "not allow" now it just said checking and then "not image file" and came back to the screen that said "serial 0", and when i tried to press back key, ALT + L, ALT + S or any key it didn't response, so i don't know whats the problem or if i have to the process with the goldcard again. Does anyone know a solution for that problem?

Thank you for your time.

Jose Chancafe

Lima- Peru
[G1 Android Development] tulamidan:
Hi,

just to make sure: The CID I enter, is the original like the cat /sys/class/mmc_host/mmc1/mmc1:*/cid command will give me?

Or do I have to change the CID (like posted here http://xdaforums.com/showpost.php?p=3642044&postcount=4) before generating the goldcard?

I tried both version, both didn't work.

This is what I did apart from that:

Whiped my phone with power+home ->recovery mode, Alt+W ->whiped

Got the CID of my card using windows and the ADB Shell and the command: cat /sys/class/mmc_host/mmc1/mmc1:*/cid

This gave me this number: 0353445355303247804126b60d008b46

I reversed it manually and added 0's -> 00468b000db62641804732305553445303

Took this number and used the online generator to get my goldcard.img

Formated the SD card with fat32 and /A:4096

Copied DREAIMG.NBH (Rc29) to SD

Booted linux and dd if=goldcard.img of=/dev/sdd (tried both with mounted and unmounted)

Card in phone, power+cam ->not allowed + a red number 28002 ->Bootloader an nothing

Help anyone?
[G1 Android Development] nevets032:
I've finally managed to downgrade the phone and now I've hit another bump so to speak. When i attempt to sign into the Google servers for the first time I receive (after a minute or so) "There is a problem communicating with the google servers". I'm on the Optus network in Australia, am i just suffering from bad reception or do i need to do something else? I used the image from thephoneguy65's post.

Thanks.

UPDATE: Problem solved, i just had to enter the APN settings for Optus.
[G1 Android Development] tulamidan:
Made it!

Don't add the 00 to the beginning of the reversed string and it works!
[G1 Android Development] alon7:
i reversed the string of the cid in qmat and then created a goldcard on the free website.

what should i do now ? just transfer it into the flashcard with the .NBH file?

THanks.
[G1 Android Development] thephoneguy65:
You need to mount it to the SD card, not just copy it.

Read my instructions i posted here:

http://xdaforums.com/showthread.php?p=3697294#post3626568
[G1 Android Development] HockeyDadNinja:
Hi all,

I've read this thread end to end (took a while). I have a bricked US G1 with original SPL. I can still use it to load official nbh files. I have a DREADIAG.nbh that is for a different CID. Using this goldcard method should I be able to load this image to diagnose my G1?

Thanks.
[G1 Android Development] HockeyDadNinja:
The answer would be YES. I have successfully loaded a DREADIAG.nbh for a different CID. Now, some stuff in there didn't work as expected, and the service manual if a bit short on info in that area. Also, it seems to work with RUU for some things. I'll have to grab a windows box tomorrow and see what I can do there.

Thanks for the goldcard.img!
[G1 Android Development] maxisma:
I've done it! :)

1. Read the CID with Terminal Emulator: cat /sys/class/mmc_host/mmc1/mmc1:*/cid > /sdcard/cid.txt

2. Connect your G1 and look for the cid.txt on the sdcard.

3. Reverse the CID with QMAT.

4. Generate the goldcard.img with the website given by viper (THX!)

5. Booted up Ubuntu 8.10 (Live CD)

6. Connected the G1 with inserted Fat32 a:4096 sdcard. ( do this under windows via cmd: format F: /FS:FAT32 /A:4096)

7. Allowed the USB Connection on the G1. Opened the File Browser in Ubuntu and clicked on the orange button (looks like an eject button) for the g1 to unmount it.

8. Used dd for writing the goldcard.img: (goldcard.img is on the desktop)

cd Desktop

dd if=goldcard.img of=/dev/sdb

9. Pull the USB-cable out of the g1 and push it in again and alllow the usbconnection on the g1.

10. Now copy the UK RC7 NBH to it.

11. Unmount the G1 via eject button in ubuntus file browser

12. Disconnect the g1 from pc.

13. Shut down the g1. Reboot it while holding the camera button.

14. Let the g1 check the nbh. If result is "not allowed" do 1-13 again.

15. Press the power button to start downgrade to rc7.

16. Reboot the g1 (follow the instructions on g1s display!)

17. Now you are on RC7! Follow the instructions by moneytoo posted in first post to aplly hardspl and upgrade to latest jesusfreke firmware (modded cupcake with multitouch, just gooogle for jesusfreke)
[G1 Android Development] marcpnut:
hey guys i've been trying to root my g1 alot of times now but i keep getting not allow. after doing every step correct.

tried with a 2gb sandisk and an 8gb transcend card.

both gave me the cid 1c5356555344202010048c47e0008cc6

is that normal or not?

i did reverse the cid and still didnt work.

i guess these cards dont work for downgrading or am i jumpin g to conclusions to fast?

i have a dutch g1 but i guess that aint the problem since more of those have been rooted. i would like to know if its true that these cards wont work.

ty for helping
[G1 Android Development] maxisma:
Where do you read out the cid?

G1 or cardreader?

Try it with the G1 and Terminal emulator.
[G1 Android Development] marcpnut:
i did it with terminal that couldnt be the problem
[G1 Android Development] phoenixlau:
there is a problem with my goldcard generation.

I read out the CID of my 2G sandisk by terminal emulator, which is

035344535530324780022de1080092a4

while I use qmat to reverse it turn to be

42a098010de22007824035335453435

I follow some instructions to use 00 replace the the first two digits, which should be

00a098010de22007824035335453435

but when I input 00a098010de22007824035335453435 as CID in Viper's website, it told me wrong CID. Have I done somethings wrong or should I change another Micro SD?

hope Viper can help me, I need to upgrade to other version, because I can not input asian, and it's very important for me.
[G1 Android Development] phoenixlau:
I also try to get goldcard by another MicroSD which is kingstone 512M, the CID is 02544d53443531322884025a88006ca4

And I reverse the CID to 00a0680a82540882213534334d54425 by qmat. but I still get the wrong message "Please enter a valid cid."

any limitation on MicroSD?
[G1 Android Development] maxisma:
Try it without reversing.
[G1 Android Development] phoenixlau:
After wrote img to SD with Hxd, computer was freezing while coping DREAIMG.nbh to SD. file table has corrupted.
[G1 Android Development] Gabiru:
Thank you for all members of the community for their feedback so far.

I have searched through most pages in this thread and did a bunch of searches in the forum for my specific problem, no luck so far. Hence my post.

I managed to get the CID, get the goldcard.img by e-mail (thanks to creator!) and write the DREAIMG to disk.

Using Ubuntu Live CD, I then tried using dd to write the goldcard to the boot sectors of my micro sd.

The result is the following:

ubuntu@ubuntu:~/Desktop$ umount /dev/sdd1

umount: /dev/sdd1 is not mounted (according to mtab)

ubuntu@ubuntu:~/Desktop$ dd if=goldcard.img of=/dev/sdb

dd: opening `/dev/sdb': Permission denied

Can anyone provide feedback?

Also, I am using a HTC Dream bought in Italy (thus with the Italian/French config), is it still safe to use the goldcard method to root it?

Edit: sudo'ing the command did the trick

ubuntu@ubuntu:~$ cd Desktop

ubuntu@ubuntu:~/Desktop$ sudo dd if=goldcard.img of=/dev/sdb

0+1 records in

0+1 records out

384 bytes (384 B) copied, 0,0191449 s, 20,1 kB/s

Still not sure whether I should do this on my Italian phone though...
[G1 Android Development] Gabiru:
Update:

I took my chances, tried to update with Goldcard and got the same error message I always get:

First it says stuff like checking checksum/signature etc.

Then:

Model ID incorrect.

Update fail.

Some additional info, this is the serial I got:

03534453553032478002800a53009252

Converted with Qmat to

529200530a8002804732305553445303

Then deleted first 2 digits

009200530a8002804732305553445303

I tried with both the converted and the one with the 2 first digits deleted. Both turned up the same error.
[G1 Android Development] dirty_:
Hi there:)

First it is important, that you KNOW what you are typing in on any console, just to reassure that. (If you dont, i dont understand why you think you need a rooted g1)

second, rethink yor post:

You are first unmouting sdd1 and then trying to dd to sdb ???

Very dangerous and likely to be bricking your Computer;)

If you type "mount" in at the terminal you will see the mounted partitions.

I would have a look at tht output always before dding and before / after mounting :D
[G1 Android Development] maxisma:
For me, i HAD to unmount! It didn't work without unmounting!

SO i unmounted and dded to sdb. It worked.
[G1 Android Development] Gabiru:
@ dirty_

I know more or less what I'm writing in the console yes. I unmounted first, because virtually all tutorials/descriptions in this topic do so. Then I use dd, which enables me to write raw data in the boot sectors of my sd card. Max that can go wrong at this point is getting my sd card fried, which isn't much of a problem.

Anyway, looks like the goldcard method doesn't work for the Italian/French phones.

I have rooted my phone using tuts on French and Italian websites now. Getting HardSpl doesn't work though, now looking for an easy way to update to Cupcake.
[G1 Android Development] viperbjk:
For sure not true :)

035344535530324780022de1080092a4

becomes

a4920008e12d02804732305553445303

using qmat. Thus 00920008e12d02804732305553445303 is the right one you will need.

Cya,

Viper BJK
[G1 Android Development] viperbjk:
That might be due to some specific roms. But afaik all european models are the same. Please tell us what spl/rom versions shouldn't work so that we can add it or check for validity.

Cya,

Viper BJK