• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root HTC Eris RUU won't run

Without wrecking your Windows (?) environment, or learning the ins and outs of dual-booting, or virtual machines, or any of that crap, a vast quantity of Unix command-line utilities are available by installing Cygwin on a Windows machine. It certainly gives you the flavor of old-fashioned Unix/Linux command line behaviors, and the installer does not force you to understand dependencies - if you can find the utility you want, it will pull in all dependencies. The only "tricks" you need to learn to use are:

1) All Windows drives are found underneath /cygdrive

For instance, C: => /cygdrive/c, D: => /cygdrive/d, et cetera.

Or and even better example might be "cd /cygdrive/c/sdk/platform-tools"

2) If you invoke any of the Cygwin utilities, use forward slash "/" as a directory separator when specifying file name paths - but if you are invoking a native windows program, use Windows (backwards slash "\") notation.

(As a matter of fact, the "hexdump" output I showed you in a previous post was generated under Windows - using a Cygwin shell)

eu1

Well I recently build from scratch dual boot hackintosh with Win 7 and Snow Leopard 10.6.7.
And last year I used VM too trying to install SL on my laptop although SL never worked on my laptop. So, if I have to do a quad boot, why not if the hardware is compatible!
Anyway enough with computers. Back to phones!

Huh! I get it! So, it's just a matter of installing Cygwin, use forward slash "/" with additional /cygdrive/c in cmd window, is that it?
If so, then I have all the tools necessary for tonight!
 
Huh! I get it! So, it's just a matter of installing Cygwin, use forward slash "/" with additional /cygdrive/c in cmd window, is that it?
If so, then I have all the tools necessary for tonight!

More or less. (I'm sure I am forgetting something that's probably important, 'cuz I started using Unix 29 years ago).

[ Edit ] If "hexdump" is not installed in the base installation, install the "cygutils" package or "util-linux" package underneath "Utilities" in the installer (setup.exe).

or, alternatively, you could go onto download.cnet.com and search for "binary editor" or "hex editor".

Just curious - did you use QPST, or just follow pkopalek's thread and manage all the Cricket customization stuff from within EPST on the Eris?

eu1
 
More or less. (I'm sure I am forgetting something that's probably important, 'cuz I started using Unix 29 years ago).
Wow 29 years! I touched a computer for the first time in my entire life in September 2000.

[ Edit ] If "hexdump" is not installed in the base installation, install the "cygutils" package underneath "Utilities" in the installer (setup.exe).

or, alternatively, you could go onto download.cnet.com and search for "binary editor" or "hex editor".
Anyway, the more the better!

Just curious - did you use QPST, or just follow pkopalek's thread and manage all the Cricket customization stuff from within EPST on the Eris?
I used QPST, and CDMA 2.7.
http://forum.xda-developers.com/showpost.php?p=6385141&postcount=1

+

http://forum.xda-developers.com/showpost.php?p=6393723&postcount=3
 
Sorry guys, the GF had dinner ready. (New York steaks au Poivre, roasted potatoes, wilted spinach... and there is a home-made apricot tart waiting for later. Nom nom nom. Good thing for you fellas I didn't have any wine :D ).

mmm sounds yummy :D

Sort of weird about the free space issues on scary's SD card - after all, the file is only 5 x 128 kB in size. Surely he had that much

Dunno what to tell you, except that the bootloader code is really primitive (for instance, it barfs on file names that don't conform to DOS 8.3 standards). Maybe there is something it doesn't like about the SD card, or the number of files in the root folder, or something like that. Fragmentation? (scotty85, I presume your card isn't partitioned, right?). You could try dropping the "-a" switch from the command - mebbe scotty has a bad eraseblock in his /misc

My SD card is a 8 GB, non-partitioned, almost full (300 MB free) card; 53 folders and 57 files in the root folder.

FWIW, a list of all of the OEM commands that the bootloader can accept are given by

fastboot oem ?

Some of them look downright dangerous, and I've never used them, but it should give scotty85 new ways to destroy his phone :eek: :D

whaaaa :eek:

:D:D

Others commands with more innocuous names, I've tried them without any arguments. (That's how I found out how "saveprt2sd" works - if you use the command

fastboot oem saveprt2sd

with no arguments, it will produce a bunch of INFO strings with mini-help for the command.


But, you guys are old hands - you already know that if you want a copy of your /misc partition, you can just boot up your recovery, and then in an ADB shell with your recovery running, do something like

adb shell mount /sdcard
adb shell dump_image /sdcard/miscprt.img
adb pull /sdcard/miscprt.img
adb shell umount /sdcard


I think your /misc dumps will look much like my pastebin example, although your "Main Version" string could be different, depending on the flashing history of your phone.


eu1

correct,my card isnt partitioned,and dropping the -a didnt do anything. :mad:

so i tried it in recovery and got this:
Code:
/ # mount /sdcard
mount /sdcard
/ # dump_image /sdcard/miscprt.img
dump_image /sdcard/miscprt.img
usage: dump_image partition file.img
/ # pull /sdcard/miscprt.img
pull /sdcard/miscprt.img
/sbin/sh: pull: not found
/ #

wtf? :confused: isnt there a tool i can flash in recovery that will show me back blocks? seem to remember seeing something on xda(prolly from eu1 :p)
 
so i tried it in recovery and got this:
Code:
/ # mount /sdcard
mount /sdcard
/ # dump_image /sdcard/miscprt.img
dump_image /sdcard/miscprt.img
usage: dump_image partition file.img
/ # pull /sdcard/miscprt.img
pull /sdcard/miscprt.img
/sbin/sh: pull: not found
/ #

wtf? :confused: isnt there a tool i can flash in recovery that will show me back blocks? seem to remember seeing something on xda(prolly from eu1 :p)


Holy smokes! eu1 made a mistake!

adb shell dump_image misc /sdcard/miscpart.img

and also note that the adb pull command is not a shell command.


eu1
 
Hello erisuser1
The phone has arrived and I just finished rooting it, installing Amon_RA recovery and flashing xtrROM5.0.1. I was about to flash it to cricket so that I could proceed with your request, then something popped into my mind. You know that the other Eris has a plan and is up and running on cricket. This one doesn't have plan! And I was wondering if the results it is going to produce will be helpful or what. Meaning, the results of what you want me to do, do they require a fully functional phone with carrier plan or it doesn't matter. And do I have to fully flash it (1. Talk and Text) and (2. MMS and Web)? I guess I will have to use my friends number, but when the time comes for a new number I will redo it! Let me know so that I could proceed!
 
Hello erisuser1
The phone has arrived and I just finished rooting it, installing Amon_RA recovery and flashing xtrROM5.0.1. I was about to flash it to cricket so that I could proceed with your request, then something popped into my mind. You know that the other Eris has a plan and is up and running on cricket. This one doesn't have plan! And I was wondering if the results it is going to produce will be helpful or what. Meaning, the results of what you want me to do, do they require a fully functional phone with carrier plan or it doesn't matter. And do I have to fully flash it (1. Talk and Text) and (2. MMS and Web)? I guess I will have to use my friends number, but when the time comes for a new number I will redo it! Let me know so that I could proceed!


Hmmmm,

Well, I don't know for sure, but I suspect that the phone does not need to be in communication with the carrier to program the phone.

Of course, the phone won't work correctly with the carrier, but I am only interested in whether the CID value in the /misc partition is altered by QPST/CDMAW.

I would try programming it identically to the other unit, dump the misc partition to a file, and then wipe the ROM and reinstall it.

What carrier is this phone going to be used with?

eu1
 
grrr so i just tried to mess with this again and heres what i get:

Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Scott>adb devices
List of devices attached
HT9CEHG00119    recovery


C:\Users\Scott>adb shell
/ # mount /sdcard
mount /sdcard
mount: mounting /dev/block/mmcblk0p1 on /sdcard failed: Device or resource busy
/ #

so i tried toggling the usb storage on,then back off in recovery and tried again:
Code:
/ # mount /sdcard
mount /sdcard
/ # dump_image misc /sdcard/miscpart.img
dump_image misc /sdcard/miscpart.img
/ # exit
exit

C:\Users\Scott>pull /sdcard/miscprt.img
'pull' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Scott>adb pull /sdcard/miscprt.img
remote object '/sdcard/miscprt.img' does not exist

C:\Users\Scott>

:mad:

any ideas?
 
Scotty,

I believe that the adb pull command requires a target filename:

adb pull /sdcard/miscprt.img scottys-miscprt.img

Try that, my man.

That should put the miscprt.img file (with whatever target filename you actually gave above) in your current directory on your PC.

Cheers!
 
grrr so i just tried to mess with this again and heres what i get:

Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Scott>adb devices
List of devices attached
HT9CEHG00119    recovery


C:\Users\Scott>adb shell
/ # mount /sdcard
mount /sdcard
mount: mounting /dev/block/mmcblk0p1 on /sdcard failed: Device or resource busy
/ #


if the SD card is not present - or is already mounted, or was USB exported to the PC you will get that error. (You are doing this with the recovery booted, right?)

so i tried toggling the usb storage on,then back off in recovery and tried again:
Code:
/ # mount /sdcard
mount /sdcard
/ # dump_image misc /sdcard/miscpart.img
dump_image misc /sdcard/miscpart.img
/ # exit
exit

C:\Users\Scott>pull /sdcard/miscprt.img
'pull' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Scott>adb pull /sdcard/misc[B]prt[/B].img
[B][COLOR=red]remote object '/sdcard/misc[/COLOR][COLOR=black]prt[/COLOR][COLOR=red].img' does not exist[/COLOR][/B]

C:\Users\Scott>

:mad:

any ideas?

don't mis-spell the file name. :p You can use a target name with ADB pull, but it is not necessary.

eu1
 
:mad:

Code:
C:\Users\Scott>adb shell
/ #  mount /sdcard
 mount /sdcard
/ # dump_image misc /sdcard/miscpart.img
dump_image misc /sdcard/miscpart.img
/ # exit
exit

C:\Users\Scott>adb pull /sdcard/miscprt.img scottys-miscprt.img
remote object '/sdcard/miscprt.img' does not exist
 
if the SD card is not present - or is already mounted, or was USB exported to the PC you will get that error. (You are doing this with the recovery booted, right?)



don't mis-spell the file name. :p You can use a target name with ADB pull, but it is not necessary.

eu1

whaaa :eek: i just cut and pasted,good sirs :D

ill try again in a sec
 
Scott,

eu1 was right re. your spelling...check it carefully, LOL (hint: you left out an "a").

Also, I do think adb pull does require a target (or at least my recently installed SDK's adb requires it).

You can also double-check that the dump_image command produced something while you are still in adb shell:

# ls -a -l /sdcard/miscpart.img

Cheers!
 
whaaa :eek: i just cut and pasted,good sirs :D

ill try again in a sec

My goodness, I made TWO mistakes between last night and early this morning. :eek: I'll go back and fix it to cover my tracks. :D

Corrected:
Code:
adb shell mount /sdcard
adb shell dump_image misc /sdcard/miscpart.img
adb pull /sdcard/miscpart.img
adb shell umount /sdcard
 
In case you are still missing it, I bolded the different spelling. miscpart.img when you dumped, miscprt.img when you tried to pull.

so i tried toggling the usb storage on,then back off in recovery and tried again:
Code:
/ # mount /sdcard
mount /sdcard
/ # dump_image misc /sdcard/[b]miscpart.img[/b]
dump_image misc /sdcard/miscpart.img
/ # exit
exit

C:\Users\Scott>pull /sdcard/miscprt.img
'pull' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Scott>adb pull /sdcard/[b]miscprt.img[/b]
remote object '/sdcard/miscprt.img' does not exist

C:\Users\Scott>

Do you see where you are missing the 'a'?
 
yay! victory is mine :D

Code:
dump_image /sdcard/miscpart.img
usage: dump_image partition file.img
/ # exit
exit

C:\Users\Scott>adb pull /sdcard/miscpart.img
1409 KB/s (655360 bytes in 0.454s)

C:\Users\Scott>

and miscpart.img is in fact on my sd card :)
 
Do you see where you are missing the 'a'?

It's not really his fault - I made a post last night where I spelled the file name "miscprt.img", and then another post this morning - trying to correct the missing "misc" partition name, and compounded the mistake by spelling the file name "miscpart.img". He was "cut-n-pasting" from the original when it got to the "adb pull" command.

That's what I get for posting things from my Eris while lying in bed at 5am. (Yeah, I live on the west coast).

eu1
 
My goodness, I made TWO mistakes between last night and early this morning. :eek: I'll go back and fix it to cover my tracks. :D

Corrected:
Code:
adb shell mount /sdcard
adb shell dump_image misc /sdcard/miscpart.img
adb pull /sdcard/miscpart.img
adb shell umount /sdcard

lol,i wondered if youd do a stealth-like ninja edit to cover your tracks(thats what ida done :D)

yes,doogald i figured it out when he posted tto spell the filename correctly above,lol... but ive been running back and forth from the grill to the puter so it took me a minute to find it ;)

now if could just get the fastboot command to work :eek:
 
That's what I get for posting things from my Eris while lying in bed at 5am. (Yeah, I live on the west coast).

LOL, I've suspected that for a long while now given some of your late night posts ;).

Hey, I'm still a little confused re. the adb pull target filename thing...

I used to be sure that adb pull did not require a target filename and created several posts to that effect.

Then, I had a user point-out that a target filename was required to make the command work. By then, I was using new-installed SDK's on a desktop and laptop. I've tried it several times tonight...I must give a target command or adb spits-out his whole syntax/help menu.

Here's my adb version information:

C:\android-sdk-windows\tools>adb version
Android Debug Bridge version 1.0.25

Confused...
 
now if could just get the fastboot command to work :eek:

I think the problem is in the DOS/FAT32 code inside the bootloader - it is probably very primitive code, judging from the fact that it barfs on anything but DOS 8.3 filenames, and in scary's case - only made it part way through a write before it squeaked about not being able to finish a cluster write.

Probably if you backed up your SD card and formatted it, the fastboot command would work, as there would be huge gobs of empty, contiguous space on the SD - and a clean, nearly empty VFAT32 table(s).

I think your hexdump of your "miscpart.img" is going to look identical to mine, up to a possible difference in the "Main Version" number. (You are on Verizon, right?)

eu1
 
LOL, I've suspected that for a long while now given some of your late night posts ;).

Hey, I'm still a little confused re. the adb pull target filename thing...

I used to be sure that adb pull did not require a target filename and created several posts to that effect.

Then, I had a user point-out that a target filename was required to make the command work. By then, I was using new-installed SDK's on a desktop and laptop. I've tried it several times tonight...I must give a target command or adb spits-out his whole syntax/help menu.

Here's my adb version information:

C:\android-sdk-windows\tools>adb version
Android Debug Bridge version 1.0.25

Confused...

I have 1.0.26 on my (native) Win7 x64 machine, and also in my Ubuntu 10.10 VM.

Win7 x64:
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\user>adb version
Android Debug Bridge version 1.0.26

C:\Users\user>adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
HT9AXXXXXXXX    device


C:\Users\user>adb pull /sdcard/miscpart.img
559 KB/s (655360 bytes in 1.143s)

C:\Users\user>

Give it a shot (with any file) and see if it works!
 
Give it a shot (with any file) and see if it works!

LOL...doh!

I know what it is!

Its the adb server on the remote end of the conversation--I was using my Droid X to do this :eek: :D ;) ("this" being testing the "adb pull" command).

Sorry for the confusion! But it does explain why it used to work on my Eris without the target filename ;).

Cheers!
 
huntdilan,

There is a small favor you could do me, if you don't mind. (It will add to community knowledge.) Remember how I was curious about whether or not QPST alters the /misc partition when you are doing the Cricket mods?

Finding out isn't too hard - I'll provide instructions below. Since you've already used fastboot once, we'll use fastboot again with a capability of the S-OFF bootloader. (Don't worry, it is harmless)

0) Before you begin, make sure there are no PB00IMG.zip files in the toplevel folder of your SD card.

1) Power the phone off

2) Power the phone on by holding Send+End simultanously.
You should see a screen which looks like the HBOOT screen, but instead it will say "FASTBOOT"

3) Plug the phone in to the computer.
You should see the phone screen change from "FASTBOOT" to "FASTBOOT USB"

4) Try the "fastboot devices" command to see if your device is recognized.

5) run the following fastboot command:

C:\sdk\platform-tools>fastboot oem saveprt2sd misc -n miscpart.img -a

You should see output which looks like this:

Code:
                              ... INFOSaveImageToSD partition file name:misc
INFOSaveImageToSD output file name:miscpart.img
INFOCmd5 CMD_TIMEOUT
INFOsdcc_poll_status(): i=12
INFOCmd5 polling status timed out
INFOSD: CMD5 fail, rc=2 ..
INFOSD 2.0
INFOHC card
INFO Searching free data sectors....
INFO [SAVE2SD] 131072 bytes saved.
INFO [SAVE2SD] 262144 bytes saved.
INFO [SAVE2SD] 393216 bytes saved.
INFO [SAVE2SD] 524288 bytes saved.
INFO [SAVE2SD] 655360 bytes saved.
INFO [SAVE2SD] Done.
OKAY [  4.894s]
finished. total time: 4.895s
(6)
After that, you can restart your phone, either by pulling the battery, or by using the bootloader menus to navigate to HBOOT (Vol Down) -> Recovery (Vol Up) -> Reboot system now

The dumped image file will be at /sdcard/miscpart.img


Now, the dumped (misc partition) image file is binary, and in an undocumented format (possibly the HTC kernel sources might have some clues). Normally, a Unix-like tool called "hexdump" can be used to examine the file.

In mine (a Verizon phone), the Verizon CID ("VZW__001") appears 5 times within the partition - at the very beginning (byte 0), and then every 128 kB offset thereafter:

Code:
$ hexdump -C miscpart.img | grep VZW
00000000  56 5a 57 5f 5f 30 30 31  00 00 00 00 00 00 00 00  |VZW__001........|
00020000  56 5a 57 5f 5f 30 30 31  00 00 00 00 00 00 00 00  |VZW__001........|
00040000  56 5a 57 5f 5f 30 30 31  00 00 00 00 00 00 00 00  |VZW__001........|
00060000  56 5a 57 5f 5f 30 30 31  00 00 00 00 00 00 00 00  |VZW__001........|
00080000  56 5a 57 5f 5f 30 30 31  00 00 00 00 00 00 00 00  |VZW__001........|
I don't know if you are familiar with Unix/Linux tools like "hexdump" or "strings". If you want, we could arrange for you to drop the file someplace - it contains zero private information, so far as I am aware. Either that or you could just look at the first couple of bytes in the file using an editor that tolerates binary files.

Here's what mine looks like - it is almost all null (0) bytes, with string data in it - see the following pastebin: HTC Droid Eris (Verizon) /misc hexdump - Pastebin.com

It appears that information is replicated every 128 kB (which makes sense because the Eris' flash memory has "eraseblock" size which is 128 kB - if one eraseblock is marked bad, the others are still available.

Anyway, congrats on the phone rescue. I hope you will consider doing the above (harmless) experiment.

eu1

Okay, here below are the results! I didn't experience any difficulties.

Picture 2.jpg

Results 1.jpg

The phone is fully flashed to cricket with no plan or just being there as the phone.

Originally Posted by erisuser1 #208
What carrier is this phone going to be used with?

eu1

So far I don't know either!

Let me know what you think about the results
 
Okay, here below are the results! I didn't experience any difficulties.

Thanks! Apparently, it (QPST/CDMAW) doesn't modify /misc

Crap... now that I think of it, Cricket is a Verizon network re-seller, are they not? (That is, the carrier network is actually Verizon, but all other services such as Voice Mail, SMS, MMS, dialing features, etc are provided by Cricket... I wonder if the CID actually *would* change in this particular case)

The phone is fully flashed to cricket with no plan or just being there as the phone.

So far I don't know either!

Let me know what you think about the results

The result is that nothing changed in /misc. If you want to "undo" the Cricket stuff, I think it should be sufficient to use the Android 2.1 menus to perform a "factory reset". (I'm on Gingerbread, so I can't remember if it is under Settings-> Privacy, or Settings -> Security). Either that or you could just re-flash the xtrSENSE ROM.


Thanks for the assistance

eu1
 
Back
Top Bottom