yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] ptheabstract:
anyone tried on os x powerpc?

hey guys, i got it compiled on my powerbook g4 (powerpc) with the zenity gui (macports) ....and im about to flash kavana's 6.1 to my excalibur we'll see how she goes!

hopefully i can scrap balls slow windows through qemu for running the ruu.

dopeness
[Windows Mobile Software Development] roger_s:
Actually I am not sure. I think the phone was not in it's bootloader mode but it was running windows. I gave up flashing the phone as I am not using windows at all, neither are my parents sister or neighbours :-) not joking. I tried vmware and winxp, but strange things happen there as well. when the phone is in bootloader mode (in vmware windows) it is recognized as and USB device, but the flash tool gives an comm error 216?

Regards,

Roger
[Windows Mobile Software Development] roger_s:
connect to ttyUSB0

Bus 007 Device 001: ID 0000:0000

Bus 006 Device 002: ID 04f2:b008 Chicony Electronics Co., Ltd

Bus 006 Device 001: ID 0000:0000

Bus 005 Device 003: ID 0bb4:0b03 High Tech Computer Corp.

Bus 005 Device 002: ID 045e:00e1 Microsoft Corp.

Bus 005 Device 001: ID 0000:0000

Bus 003 Device 001: ID 0000:0000

Bus 004 Device 001: ID 0000:0000

Bus 002 Device 001: ID 0000:0000

Bus 001 Device 001: ID 0000:0000

Find out your HTC device in the list (mines High Tech Computer Corp.). You will need to get the vendor and product ids, identified by the ID 0bb4:0b03 just before your device's name. The first one if the vendor id (0bb4 or 0x0bb4) and the second one is the product id (0b03 or 0x0b03).

5- Once you get the product and vendor ids, you need to load the ipaq kernel module, pointed to the HTC using this command:

sudo modprobe ipaq vendor=0x0bb4 product=0x0b03

Just replace the vendor and product ids with yours, but don't forget the 0x before them.

To make sure the ipaq is loaded correctly, type dmesg and you should see something like this:

[ 2290.820000] usb 5-1: new full speed USB device using uhci_hcd and address 4

[ 2290.992000] usb 5-1: configuration #1 chosen from 1 choice

[ 2656.256000] usbcore: registered new interface driver usbserial

[ 2656.256000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/usb-serial.c: USB Serial support registered for generic

[ 2656.256000] usbcore: registered new interface driver usbserial_generic

[ 2656.256000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/usb-serial.c: USB Serial Driver core

[ 2656.268000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/usb-serial.c: USB Serial support registered for PocketPC PDA

[ 2656.268000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/ipaq.c: USB PocketPC PDA driver v0.5

[ 2656.268000] ipaq 5-1:1.0: PocketPC PDA converter detected

[ 2656.268000] usb 5-1: PocketPC PDA converter now attached to ttyUSB0

[ 2656.268000] ipaq 5-1:1.1: PocketPC PDA converter detected

[ 2656.272000] usb 5-1: PocketPC PDA converter now attached to ttyUSB1

[ 2656.272000] usbcore: registered new interface driver ipaq

Your modem is now available using the ttyUSB0 device.
[Windows Mobile Software Development] rammkp:
checksum error

I am getting CHECKSUM ERROR when flashing a new rom. I tried flashing CRC's 14.1 rom. I got the below error. After this the phone resets and comes back to the bootloader.

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

~/hermes> HTCFlasher -F RUU_Signed.nbh -D /dev/ttyUSB3

=== HTCflasher v3.1

=== Open source RUU for HTC devices

=== (c) 2007-2008 Pau Oliva Fora

[] Flash NBH file 'RUU_Signed.nbh'

[] Using device '/dev/ttyUSB3'

[] Setting RUU mode, please wait............done

[] SPL auth result (T=True, F=False): T

98% [####################################################################--]

[!!] CHECKSUM ERROR

00000: 43 68 65 63 6b 73 75 6d 20 65 72 72 6f 72 2c 20 |Checksum error, |

00010: 62 75 66 66 65 72 3d 30 78 38 36 41 46 39 42 33 |buffer=0x86AF9B3|

00020: 34 2c 20 69 6e 70 75 74 3d 30 78 37 43 34 39 45 |4, input=0x7C49E|

00030: 30 44 34 0d 0a 52 65 20 73 6e 65 64 20 70 61 63 |0D4..Re sned pac|

00040: 6b 65 74 0d 0d 0a 48 54 43 53 01 80 03 00 01 00 |ket...HTCS......|

00050: 00 00 a7 ff 94 7a 48 54 43 45 00 00 00 00 00 00 |.....zHTCE......|

Done!

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

I tried different roms including Pdaviet, MRH, etc. And am getting the same CHECKSUM ERROR with all roms. So right now my hermes is bricked.

Incidently last time I flashed Manilla 2d with HTCFlasher and it worked. Now even that is not working.

I have Hard SPL 2.10 Olipro and IPL-1.04.

Below is the output for 'info 8'

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

Cmd>info 8

info 8

Block 0x0(0) is Reversed block

Block 0x1(1) is Reversed block

Block 0x2(2) is Reversed block

Block 0x3(3) is Reversed block

Block 0x4(4) is Reversed block

Block 0x5(5) is Reversed block

Block 0x6(6) is Reversed block

Block 0x7(7) is Reversed block

Block 0x8(8) is Reversed block

Block 0x9(9) is Reversed block

Block 0xA(10) is Reversed block

Block 0xB(11) is Reversed block

Block 0xC(12) is Reversed block

Partition[0], type=0x20, start=0x2, total=0x18FE

Partition[1], type=0x23, start=0x1900, total=0x1900

Partition[2], type=0x25, start=0x3200, total=0x12000

Partition[3], type=0x4, start=0x15200, total=0x25600

CE Total Length(with sector info) = 0x2AE9000

CE CheckSum Length(without sector info) = 0x2A40000

--------------------------------------------
[Windows Mobile Software Development] Keland44:
could this be used to storage a rom onto the storage card and install the rom via storage card
[Windows Mobile Software Development] DaveShaw:
No, Read the Wiki for info on Flashing Via Storage Card.

EDIT,

I suppose YANG can generate an NBH file that you can put on your SD Card and flash that.

Ta

Dave
[Windows Mobile Software Development] Keland44:
Thanks Dave
[Windows Mobile Software Development] Narkaulov:
Compiling on 64 bit linux

I apologise if this has already been mentioned, but I was able to compile by changing the CFLAGS -m32 option to -m64 in the Makefile in both src/ and RomKitchen/. The only problem I am having now is getting udev to create a USB Serial device instead of an RNDIS device. Just thought I would share.

Narkaulov

Fedora Core 9
[Windows Mobile Software Development] PURESKILLZZZ:
Are you using linux or mac os ??? LInux has virtual machine which works flawlessly if you configure it correctly mate ....
[Windows Mobile Software Development] neophyte.vii:
pof,, you totally rock. Thanks for this.

I can also verify 64-bit linux required a modification of the Makefile in /src
[Windows Mobile Software Development] dorinvlas:
I have a problem with flashing mine... I get CERTIFICATE ERROR

see next:

and one try to flash it:

the greatest soft for HTC pda's...!!! thank you pof !

P.S. if this will work for my trinity to it will be great :)
[Windows Mobile Software Development] absynth1234:
Hmm,

when i run my diamond in this bootloader mode(tricolour) , then ipaq fails with

this error message:

ipaq: probe of 1-1:1.0 failed with error -5

rest seems ok :

[ 9238.852242] usb 1-1: new full speed USB device using uhci_hcd and address 14

[ 9238.919623] usb 1-1: configuration #1 chosen from 1 choice

[ 9238.933441] ipaq 1-1:1.0: PocketPC PDA converter detected

any suggestions ?

maybe someone had the same problem and already know an answer :D

However, i will google tomorrow ,maybe i find something :)
[Windows Mobile Software Development] asmugone:
problems flashing tmobi

boot loader is 4.10.00002

spl is same,

when i try to flash a rom it goes to the status bar and hangs at 0, the flasher only shows a small sliver of bar at the very beggining adn then stops. any help would be appreciated!!!
[Windows Mobile Software Development] eraser1:
Ok guys.....but All it's near a great falls......................be quiet.....

In first not all XP can read the download application file and nobody tell exactly why..,

second if someone have a complete funcional flashing experience with it please post it with step by step description for the specific mode, rom and spl.

I think it's better....
[Windows Mobile Software Development] kpshamilsagar:
thanks man....its a very gud work...
[Windows Mobile Software Development] pashaa:
anyone have compiled this for win32?
[Windows Mobile Software Development] DaveShaw:
Yes but not with the GUI. Who needs the GUI anyway :)

Download cygwin and the gcc package and I think there's a few more (The cygwin default "make" is the Borland one, that bites).

Ta,

Dave
[Windows Mobile Software Development] pashaa:
can u tell me howto compile step by step?

or give me your compiled this flasher?

:)

many thanks
[Windows Mobile Software Development] DaveShaw:
I'll explain the steps, because I'm in a good mood :) (and every should learn cygwin :p)

Download Cygwin (google it).

Run the setup and click "Next" until you get to "Select Packages".

Under the Devel Node select the following packages by clicking where it say's "Skip" (it will change to a version number):

* gcc-g++: C++ compiler

* make: The GNU version of the 'make' utility.

Keep clicking Next to complete the install.

Now download the Code Tarball from Pof's google code site and extract the contects into C:\Cygwin\usr\

Fire up Cygwin and cd to /usr/HTCFlasher-20080806 and type make.

The built binary will be in /usr/HTCFlasher-20080806/scr, you will also need cygwin1.dll from the C:\cygwin\bin folder.

Ta

Dave
[Windows Mobile Software Development] kokotas:
Hey guys!

I've compiled the HTCflasher under windows XP.

In order to test the HTCflasher:

I placed inside one folder [HTCflasher , cygwin1.dll & RUU_Signed.nbh] ,

entered bootloader on my phone

&connected to the pc via usb.

Could anyone give me a hint about which %device% to use under Win XP?

HTCflasher [B]-D %device%[/B] -F RUU_Signed.nbh

Regards!
[Windows Mobile Software Development] DaveShaw:
IIRC

\\.\WCEUSBSH001

Note 1 might be 2 or 3, check in Device Manager.

Ta

Dave
[Windows Mobile Software Development] pashaa:
thanks can u send some link for gcc-g++: C++ compiler and make: The GNU version of the 'make' utility ?
[Windows Mobile Software Development] DaveShaw:
When you are installing Cygwin (Running the Setup.exe from cygwin.org) you get to a select packages page. They are both under the "Devel" node.

Ta

Dave
[Windows Mobile Software Development] pashaa:
thanks thanks

other moderators dont answer my question

can u answer this?

i need all mtty commands,do you have?

howto extract .nb and nb0 files?

is rom update utility for i900 like ruu.exe? or another tools?(only tool without flash file)

thanks again
[Windows Mobile Software Development] DaveShaw:
1) There is no list of MTTY Commands. MTTY is a program that allows access to the phone's console (you can use Putty or QMAT to get the same access). The commands you issue to the bootloader vary from device to device. There are many wiki pages that cover the commands for the devices, some are the same, some arn't.

2) Use Pof's NBHExtract to dump .NBH files into their .NB file parts.

3) I don't know anything about the Omnia, try asking over at MoDaCo.

Also, please try to keep this on Topic, PM me or start a new thread in the correct forum (in Q&A is you can ask about anything) if you are still stuck ;)

Ta

Dave
[Windows Mobile Software Development] burkay:
Hey all, I need some help.

I am trying to connect to my Hermes under Ubuntu 8.10.

The problem is the device is recognized as an etherhet modem and not a USB device.

Here is lsusb:

Bus 001 Device 004: ID 0bb4:0b04 High Tech Computer Corp. Hermes / TyTN / T-Mobile MDA Vario II / O2 Xda Trion

Here is dmesg:

[ 3178.496034] usb 1-4: new full speed USB device using ohci_hcd and address 4

[ 3178.755489] usb 1-4: configuration #1 chosen from 1 choice

[ 3179.052881] usbcore: registered new interface driver cdc_ether

[ 3179.185347] rndis_host 1-4:1.0: RNDIS_MSG_QUERY(0x00010202) failed, -47

[ 3179.198740] eth0: register 'rndis_host' at usb-0000:00:02.0-4, RNDIS device, 80:00:60:0f:e8:00

[ 3179.199576] usbcore: registered new interface driver rndis_host

[ 3179.229482] usbcore: registered new interface driver rndis_wlan

[ 3194.096021] eth0: no IPv6 routers present

what am I supposed to do at this point? ttyUSB0 doesn't even exist.
[Windows Mobile Software Development] burkay:
I got past this problem. It was about turning of advanced network functionality. But now I receive a device unknown error. Info 2 doesn't return anything.
[Windows Mobile Software Development] burkay:
I got over this problem by connecting to the device in bootloader mode. The device was then recognized correctly. However, I tried flashing two different roms and in both cases, the phone was stuck in the boot process. After both flashes, the htcflasher gave me a CHECKSUM ERROR. I had to set 16 0, ResetDevice after both flashes. I tried flashing the same roms under windows and both worked fine.

I am using Ubuntu 8.10.
[Windows Mobile Software Development] urs_marcel27:
Got here Htc P3300. Phone power on and remains hooked with T Mobile window screen. In background i can see IPL 1.13.0001 SPL 1.13.0000 GSM 02.49.90 and OS 1.28.0.0 How can i revive this unit because with original software give this error invalid vender id?
[Windows Mobile Software Development] theromanone:
64-bit Intrepid here.

Unpacked the .tar.gz file, and changed the /src and /romkitchen makefile's CFLAGS to 64. This is what I got, and still cannot install this program :(

:

julian@julian-laptop:~$ cd /home/julian/HTCFlasher

julian@julian-laptop:~/HTCFlasher$ ./configure

bash: ./configure: No such file or directory

julian@julian-laptop:~/HTCFlasher$ make

cd src && make all

make[1]: Entering directory `/home/julian/HTCFlasher/src'

cc -Wall -m64 -c -o nbhextract.o nbhextract.c

cc -Wall -m64 -c -o utils.o utils.c

cc -Wall -m64 -c -o io.o io.c

cc -Wall -m64 -c -o crc32.o crc32.c

cc -Wall -m64 -c -o flasher.o flasher.c

cc -Wall -m64 -c -o info.o info.c

cc -Wall -m64 -c -o prompt.o prompt.c

cc -Wall -m64 -c -o nbh.o nbh.c

cc -Wall -m64 -c -o main.o main.c

cc -Wall -m64 -m32 nbhextract.o utils.o io.o crc32.o flasher.o info.o prompt.o nbh.o main.o -o HTCFlasher

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.2/libgcc.a when searching for -lgcc

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.2/libgcc.a when searching for -lgcc

/usr/bin/ld: cannot find -lgcc

collect2: ld returned 1 exit status

make[1]: *** [all] Error 1

make[1]: Leaving directory `/home/julian/HTCFlasher/src'

make: *** [all] Error 2
[Windows Mobile Software Development] supermorph:
i do have a good excuse for my absent minded checking,

i have just recovered from being violently sick for the past 2 nights, in my defence i was using this site as my re-arm/focus/drive to recovery (or diversion to wellbeing hehe)

so i can thank everyone for that,

===end of reasoning====

:D i basically extracted the folder and went strait to src folder not thinking about if there was a make file in the root of extracted folder. i admit i should of checked this, but i can say when things was running, it ran well,

(libraries are not really an issue related to this as a compilation error,

due to i have a 64bit ubuntu and the deb files & source coding was compiled/linked against i386, and x86 32bit libs

so its my fault initially for not having those libs beforehand)

just a quick question (or two :p),

1a) what is required ot use the nbf files / nbf based phones?

1b) and can someone dis-assemble the dll-files for each mobile ruu and make compatible code to save legalities?
[Windows Mobile Software Development] supermorph:
in responce

i posted two things below, they are for ubuntu 64bit

alls u need to do my friend is really upgrade your ubuntu to the 9.10 (or higher if available) version using synaptics, thats if what it has on them doesnt work as is.

they do work, even if i did have made minor mistakes, it definatley works.

i have successfully installed them onto ubuntu 64 (jaunty 9.10)

my mistakes was basically compiling each folder with the make files instead of the makefile in the root of the extracted folder, which is still technically do-able,

more of a force of habit than a mistake for me :->
[Windows Mobile Software Development] jojo2009:
hi, where can i download yangGUI ?

or is it not possible under XP ?
[Windows Mobile Software Development] DaveShaw:
Not possible as far as I know. Unless you can find cygwin packages for the GUI pof used.

What's wrong with command line? :p

Or just use htcrt if you want a GUI.

Ta

Dave
[Windows Mobile Software Development] jojo2009:
hello dave & all how knows what to do....:confused:

i just want to kick the radio rom out of a shipped german rom and

with the cmd screen i have no idea to do it ?

i could extract the rom and now i want to build a new without GSMxxxx.nb -

can u explane how to do it ?

Or is there a better way to do it ?
[Windows Mobile Software Development] DaveShaw:
Yang can't extract stuff. It only put's it back together.

Try using NBHExtract to extract the nb files from the NBH and then htcrt to put them back together.

Ta

Dave
[Windows Mobile Software Development] jojo2009:
Yang gui ???

:eek:

Now im astonished :eek: Who knows excactly how "YANG " works ...

I opened the nbh rom with young.exe and yang put the nb & bmp files in the

same folder... ;) But there must be more information about this tool :confused:

With GUI it looks so easy to use ...?

But now i try with htcrt...
[Windows Mobile Software Development] jojo2009:
THANK U

Unbelievable whats possible today - i made it with yang (extracting)

and with htcrt (building) and it works.....

But why it is so complicated to find infos how programs work :confused:

Even dave didn´t know that yang -X extracts the nbh file :eek:

But at least and with a lot of time......
[Windows Mobile Software Development] DaveShaw:
Hehe, I forgot it did that.

I always use NBHExtract I might start using yang -X it's less characters :)

With most command line apps just run them and they list there params.

pof's wiki page for YANG lists the params also: http://code.google.com/p/htc-flasher/wiki/YANG

The values for re-construction depend on your device. It's either guess work or look in one of the existing kitchens to see what other people use.

Most guys us NBMerge instead of YANG, so it's as hard as finding the NBmerge call.

Personally, I like yang - I use it when cooking my ROM's :)

Dave
[Windows Mobile Software Development] casaman:
Hey pof,

I'm using a HTC Diamond on ubuntu 8.10 amd x64. When i connect my phone the ipaq module loads and it creates the /dev/ttyUSB0 device, but when connecting my phone in bootloader mode i get the following error:

822.936243] usb 6-2: new full speed USB device using uhci_hcd and address 3

[ 823.088708] usb 6-2: configuration #1 chosen from 1 choice

[ 823.091367] ipaq 6-2:1.0: PocketPC PDA converter detected

[ 828.089345] ipaq: probe of 6-2:1.0 failed with error -5

any ideas?
[Windows Mobile Software Development] ivanmmj:
Does anyone know if this also imposes the 50mb file size requirement (52,000kb) that the default RUU imposes?

EDIT: Nevermind... I asked this a LONG time ago. lol

I'm gonna try it in a few minutes and report back with the answer.
[Windows Mobile Software Development] leosedf:
Any notes on running htcflasher on slax? www.slax.org

I have installed it but it doesn't run.
[Windows Mobile Software Development] Z3rO`:
Any news on OS X flashing? I got it to compile, but can't find the proper entry in /dev/ for my phone. DMESG is of no help, since there is no change when I plug in my device.

Neither in WinMo nor in bootloader mode.

Thanks in advance.
[Windows Mobile Software Development] edkmho:
prof,

First of all, thank you very much for all the effort you put into this excellent application.

I have just installed your application into Ubuntu Jaunty from the deb file. Unfortunately I was not able to do anything at all with this application, not even get device info. Hope you could lend a helping hand.

Whenever i run the get device infor this is the message i got:

[] Using device '/dev/ttyUSB0'

[] Getting device info...

.........done

[!!] Your device can't be identified!

My phone is a Dopod 810 is that why i could not use this application. Please help. Thanks.
[Windows Mobile Software Development] ivanmmj:
Make sure the device is in bootloader.
[Windows Mobile Software Development] edkmho:
ivanmmj,

indeed you are right. It is my stupidity.

Anyway, thank you very much. It is all working great now.
[Windows Mobile Software Development] edkmho:
i have encountered problem when i tried to flash using this software. Nothing can be flash at all. Please help.

The error message is as below :

[] Using device '/dev/ttyUSB0'

[] Flash NBH file '/media/Data/Downloads/hardspl_130/RUU_signed.nbh'

.........done

[] SPL auth result (T=True, F=False): T

[!!] CERTIFICATE ERROR

00000: 49 6d 61 67 65 20 43 65 72 74 20 69 73 20 65 72 |Image Cert is er|

00010: 72 6f 72 0d 0d 0a 43 6c 65 61 72 20 4e 42 48 20 |ror...Clear NBH |

00020: 74 61 67 0d 0d 0a 57 72 69 74 65 20 4e 61 6e 64 |tag...Write Nand|

00030: 20 53 75 63 63 65 73 73 0d 0d 0a 48 54 43 53 02 | Success...HTCS.|

00040: 80 06 00 00 00 00 00 92 0e 6a 1c 48 54 43 45 00 |.........j.HTCE.|

00050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

Done!
[Windows Mobile Software Development] Fusel Wusel:
Wanted to try this under Ubuntu 9.04 with my Touch HD (Blackstone). While running normaly under WinMobile HTCFlasher can establish a connection and also flash something to the device (With no effect at all).

When in Bootloader, I cannot connect it, because the connection via /dev/ttyUSB0 fails. Any suggestions?
[Windows Mobile Software Development] Noiz:
I've had the same problem. I even tried flashing via XP in a VirtualBox, but it refuses to let me attach the phone when it's in the bootloader. Says something about "Failed to create a proxy device for the USB device."

I think I'm going to have to admit defeat and use my girlfriend's laptop. :(
[Windows Mobile Software Development] Fusel Wusel:
Yep, same problem. I think I gonna use my parents laptop for this...
[Windows Mobile Software Development] leosedf:
It finally works for me in Debian lenny. Great app.
[Windows Mobile Software Development] flashedmytiltblind:
Trying to flash my Kaiser.

Everything seems to be working, it detects the phone.

It begins the flashing and then stalls at 1% while the phone shows 0%. Any idea of what's going on? Thanks.

[] Flash NBH file '/home/linux/Desktop/Solacev3.1/RUU_signed.nbh'
[] Setting RUU mode, please wait............done
[] SPL auth result (T=True, F=False): T
1% [----------------------------------------------------------------------]
[Windows Mobile Software Development] jordz:
I have the same problem, the certificate error.

The only thing I've done is compiled it with -m64 for x86_64, instead of the normal -m32.

Edit: Fixed it, flashed Hard Spl 1.30 Olipro + HTC_Trinity_SIM_CID_Unlock_v1 again, it's all working now :)
[Windows Mobile Software Development] frenchy128:
Thank you for speaking up.. :)

Frenchy

Rogers GSM/EDGE - Timmins, Ont.

HTC Dream - 1.5 (Cupcake) - Rooted
[Windows Mobile Software Development] crt60:
So this is only for Linux?
[Windows Mobile Software Development] crobs808:
um, lol...where the windows executable or installer? less than 1% of the population uses linux.

thanks
[Windows Mobile Software Development] adwinp:
1: you use windows? try the standard RUU.exe

2: OT, but hey: nov. 2008 stats showed ~ 7.18% of global population uses linux-based OS

If you wanna whine about it, do your homework first.