yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] pof:
This is Des Crash-Proof SPL, which should be working with HTC Flasher although I have not tested this version specifically. The "Setting RUU Mode" takes some time (maybe 1 or 2 minutes). Have you waited long enough here? If yes please let me know and I'll try to test this SPL version myself to see why it's failing.

Yes, compile the x86 version from source, it should work on 64 bit AMD too.
[Windows Mobile Software Development] tuksedra:
to: pof..

i've let it "Setting RUU Mode" for 4 hrs but still going, so before went to work i have to turn it of.. mm.. any new development?..
[Windows Mobile Software Development] Cycomachead:
I haven't needed darwin ports in a while, but I will try to get it up and running tomorrow. If I get results I will post them.
[Windows Mobile Software Development] Zoolooc:
added Gentoo ebuilds

Hi there,

thanks pof for writing this utility, I added 2 Gentoo ebuilds for it to the Gentoo bug tracker, one for fetching the current HTCFlasher-20080615-2, and one for pulling the live SVN version. Gentoo folks ought to know how to use these and integrate them into their local overlay of the gentoo repository, just few hints:

the proper category for htc-flasher seems to be dev-embedded

both versions are masked, you should unmask either ~x86/~amd64 for the last release, or -* for SVN

the zenity dialog and the gnome menu entry depends on the gnome USE flag, you might also have to unmask gnome-extra/zenity as it is a dependency for this utility

Have phun and report back. I should not remind Gentoo users that this only grabs the sources and installs them, for any other (functionality-related) problems you should ask pof, of course ;).
[Windows Mobile Software Development] pof:
If you want to use it now upgrade your SPL version. If you don't want to upgrade, please wait some time until I can test why it fails with this SPL and fix it (I don't have a trinity now, but know someone who has one and can borrow it to me for the tests, so it can take a few time).

Thank you very much, I have subscribed myself :)
[Windows Mobile Software Development] pof:
This problem should be fixed in the SVN version, please download it from SVN and report if you're still having an endless loop here or now it works :)
[Windows Mobile Software Development] Shub-Niggurath:
This looks amazing, finally being able to flash on linux! Thanks pof! Also, thanks to Zoolooc for the ebuilds.

Having a bit of trouble however, im using gentoo (x86) but i dont appear to have /dev/ttyUSB0 in my devices. Also, the phone says serial and my dmesg output hasn't changed (lsusb doesn't have anything that looks right either). Getting a little worried as i just sent my kaiser back because the USB port stopped working. Will modprobing the ipaq module help? don't really wanna recompile my kernel unless its worth it. Any help would be much appreciated.

Thanks again.

Edit: Just tried in a windows machine and the bootloader recognises USB connections
[Windows Mobile Software Development] pof:
Yes, you need to load the ipaq module to get /dev/ttyUSB0 and serial connection to the device.
[Windows Mobile Software Development] tequilakid:
Do you know why I can't get device info from my Hermes?

SPL: 2.10 - Hard-SPL-V7

Rom: Binky11's v3.6 (WM6.1)

on Ubuntu 8.04

This happens using both the released version and the svn version.

I've been using this rom for a couple months as I have no windows boxes anywhere that I can flash a rom from so any help is greatly apprecated.

[] Verbose mode enabled
[] Using device '/dev/ttyUSB0'
[] Getting device info...

SEND: [info 2]
GET:
[
]
[] Can't find HTCS/HTCE block

SEND: [getdevinfo]
GET:
[
]
[] Can't find HTCS/HTCE block
[] Setting RUU mode, please wait............done

FSEND: [password BsaD5SeoA]
GET:
[
]
[] Can't find HTCS/HTCE block

FSEND: [getdevinfo]
GET:
[
]
[] Can't find HTCS/HTCE block
[!!] Your device can't be identified!

FSEND: [ruurun 0]

FSEND: [ruurun 0]
GET:
[
]

FSEND: [ResetDevice]

FSEND: [ResetDevice]
GET:
[
]
[Windows Mobile Software Development] pof:
Have you manually put the device in bootloader mode (tri-color screen) before running HTCFlasher?
[Windows Mobile Software Development] tequilakid:
Thanks. I feel pretty stupid now.
[Windows Mobile Software Development] tuksedra:
ok!.. i'll try it ...
[Windows Mobile Software Development] ralphffm44:
htc prophet with CID provdf12

Hello,

get device info delivers

[] Using device '/dev/ttyUSB0'

[] Getting device info...

[] CID: PROVDF12

.........done

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

what does that mean - and has anyone ever flashed an htc prophet (vpa compact s)

Greetings

Ralph
[Windows Mobile Software Development] pof:
HTC Prophet is not supported, it uses old NBF format. HTC Flasher only supports new devices using NBH format for ROM upgrades.
[Windows Mobile Software Development] Ameet:
can someone be kin to post the graphical gui version of this beautiful baby?
[Windows Mobile Software Development] Shub-Niggurath:
Hi again,

I am still unable to get this to work. I have recompiled my kernel with the ipaq module and verified that it loads. I also did the following (as directed in the kernel documentation)

ots-02 linux # mknod /dev/ttyUSB0 c 188 0
ots-02 linux # mknod /dev/ttyUSB1 c 188 1
ots-02 linux # mknod /dev/ttyUSB2 c 188 2
ots-02 linux # mknod /dev/ttyUSB3 c 188 3
ots-02 linux # lsmod
Module Size Used by
ipaq 33048 0
usbserial 27304 1 ipaq
rfcomm 25748 0
l2cap 21312 3 rfcomm
hci_usb 12444 0
bluetooth 44644 3 rfcomm,l2cap,hci_usb
fglrx 1508876 20
k8temp 5952 0

however, when i try to use the utility, i get a '/dev/ttyUSB0: no such device' error. Also, cat /dev/ttyUSB0 gives the same error but ls /dev/ttyUSB* -la shows all the devices. I even went so far as to include the generic usb serial driver.

There is still no change in lspci or lsusb but i have verified that the device works in windows through usb. I can't think of what else to try.:confused:
[Windows Mobile Software Development] pof:
@Shub-Niggurath:

Have you manually put the device in bootloader mode (tri-color screen) before running HTCFlasher?
[Windows Mobile Software Development] Shub-Niggurath:
yes, i have. I was wondering if i missed something in the kernel config?
[Windows Mobile Software Development] Cycomachead:
Mac Build Successful!!!!

Well I've got a successful CLI build running on my Mac. I compiled it using XCode on Leopard. I'm not 100% positive if it works on PPC but it should. Finder IS reporting it as universal. NOTE: I haven't actually flashed my phone yet but it runs fine.

Also what does the extract option do? Do a need an NBH file on my phone or will it do the actual rom?

I'd LOVE to get a GUI tool running but Fink and Macports (and darwinports) are each giving me trouble.

Oh yeah the file is in google code.

EDIT: I can't upload to google code cuz I'm not a member. So here a zip containing the file.

EDIT 2: See my next post for the problem. Besides a package installer would be way better anyway. :-)
[Windows Mobile Software Development] Cycomachead:
EASY Package Installer!!!

Ok, I've now created an easy package installer. This one sets the command as htcf. I've copied the docs into the package installer and edited so it applies to the Mac otherwise no changes have been made.

Does anyone know where to install man pages to?

MAJOR PROBLEM!!!!

Upon testing I realized OS X doesn't use /dev/ttyUSB0 for the device location. In fact I'm not sure what location it uses or if it sees a device at all. As a result I'm pulling both links and editing my previous post.
[Windows Mobile Software Development] Shub-Niggurath:
Finally got it working! Problem was usb devices not being refreshed after being unplugged then plugged back in. Don't suppose anyone knows how to fix that?
[Windows Mobile Software Development] pof:
YANG: Yet another NBH Generator

I have added support for generating NBH files, currently this is only on the SVN version, but will be included in the tarball release soon.

It is a separate application called "yang" (Yet Another NBH Generator). Command Line usage is as follows:

=== yang v1.0: Yet Another NBH Generator
=== (c) 2008 Pau Oliva Fora - pof @ XDA-Developers

Usage: yang [options]

options:
-F [filename] Output NBH filename
-f [file1,file2...] Comma separated list of input NB files
-t [type1,type2...] Comma separated list of input NB types
-s [chunksize] SignMaxChunkSize (64 or 1024)
-d [device] Device name (Model ID)
-c [CID] CID field
-v [version] Version number
-l [language] Language

Yang also has a gtkdialog based GUI, named yangGUI:

Enjoy :)
[Windows Mobile Software Development] PURESKILLZZZ:
I second what papa said .... Can you post a how to or send to me and ill gladly post a how to with pictures .....
[Windows Mobile Software Development] h4waii:
If you're unable to compile an application in *nix or OSX or even run a CLI application for Windows, you should really stick with the current tools and stop requesting spoon feeding.

I don't mean to be an ass but there's too many "help me help me" posts in here cluttering it up when this is supposed to be a sub-section for advanced devel.

@pof;

Again, excellent work, work perfectly and I commend you for moving tools to OSS.
[Windows Mobile Software Development] PURESKILLZZZ:
Listen mate . If there is a simple how-to them its easy for all . Thats the whole purpose of xda . Now I am far from a noob but I can ask what a noob may get flamed for . So yes a sweet how to would be excallent . Do you have a problem with that ??? And if there is a how-to then all the help me help me as you say would end .....
[Windows Mobile Software Development] h4waii:
The purpose of xda-developers is for...developers to discuss the XDA platform? Compiling an application is far from this. Again, that is why this thread is in the "Development and Hacking" sub-section and has an explicit request title - Please refrain from posting unless you're a software developer or hardcore techie.

You don't go to a Oakland A's forum and start talking about how to make the machines that make baseball bats do you? No.

If you want to sit in here and be a general nuisance to the very developers that are trying to help this community get ahead, be my guest, but don't complain when you feel the backlash.

Oh and P.S, having a huge post count doesn't automatically mean you're not a "noob".
[Windows Mobile Software Development] Cycomachead:
MayI post a question? (Wait I just did....)

Anyway, has anyone on a Mac used this to actually flash thw phone? Or has anyone running Tiger or Leopard been able to at least see the phone?

Also where do I install man files? If I ever get a working version I'd love to include man files.
[Windows Mobile Software Development] h4waii:
I do know what man pages will normally go in '/usr/share/local/man' or '/usr/share/man'.

As for flashing via OS X, I'm sure somebody can test it for you.
[Windows Mobile Software Development] PURESKILLZZZ:
Not even going to get into it with you . I have not gotten it to work properly in linux so I too wanted others input and if i get it down then I would write the clean and clear how to .... Thats is the xda way mate ....
[Windows Mobile Software Development] _andre_:
as Tequila in his post 59, HTCFlasher does not work properly with my Kaiser (KAIS130 SPL-3.28).

I got this:

=== HTCflasher v3.0

=== Open source RUU for HTC devices

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

[] Getting device info...

[] Verbose mode enabled

SEND: [info 2]

GET:

[
​

After 5mns, I decide to reset my pda and then the screen shows the rest of the messages.

So I learn that my device is CID lock.

But the tool can not identified my device (Can't find HTCS/HTCE block), including in RUU mode.

anyway thank you for the tool.

My workstation is a XP SP2.

cheers

Andre
[Windows Mobile Software Development] marvoh:
device not being detected on xp

hi, how do i know where my device is connected on windows xp so i can direct htcflasher to it, the phone is not being detected on the default \\.\WCEUSBS001
[Windows Mobile Software Development] _Nomad_:
Sorry... being a complete idiot... disregard this...
[Windows Mobile Software Development] mattk_r:
Hey pof - great work and thanks for the hard work on this project. I can't wait to try it out tomorrow and give it a good workout on my 32 bit XP box. (on my x64 Vista box :rolleyes: right now)

For anyone begging for someone to post a compiled exe - check the first post under downloads. He graciously posted a Win32 build.

Note to noobs: If you've never compiled you're own exe and you're attempting to build your own rom and flash you're (expensive) device, it isn't that hard. Simply need to give it a try - it ain't that difficult if you break down and read the instructions. Visual Studio Express is a free download and you can play around and make your own programs via tutorials - and even get the SDK for Windows Mobile devices to make CE apps. There's lots of other compilers out there too, but you gotta do some research, just like everyone else before you.
[Windows Mobile Software Development] the-equinoxe:
Cycomachead, have you tackled the tty problem yet?

I am relatively new to mac but I own both G4 (tiger) and intel iMacs (leopard) (and a G4 powerbook also leopard) plus I have several HTCs lying around (my Diamond and Elfin should be compatible, the universal and Wizard I doubt because of the older nb and nbf structure).

I am willing to test it on my Elfin (and my diamond if all works on the Elfin).
[Windows Mobile Software Development] Cycomachead:
Not yet. The problem is OS X can't see the phone.
[Windows Mobile Software Development] saillee:
Great work! pof!

Dose HTCFlasher support HTC Apache if I convert nbf format file to nbh format file?
[Windows Mobile Software Development] japanacc:
After 2 hour it's like flashing device , and at end I get this mesage

[] Using device '/dev/ttyUSB0'
[] Flash NBH file '/home/ubuntu/Desktop/RUU_signed.nbh'
[] Setting RUU mode, please wait............done
[] SPL auth result (T=True, F=False): Invalid password.

Done!

wich is the "pasword" and any idea how i get iti to work ??? :(:(
[Windows Mobile Software Development] adwinp:
This is for svn pulled 20080821

1: while launching yangGUI

which: no gtkdialog3 in (... bla bla bla paths)

A symlink to gtkdialog seems to fix the issue (latest installed version: 0.7.20)

2: gtkdialog: unrecognized option '--center'

(editing the yangGUI fixes the issue) - should be working OOB, since your looking for both gtkdialog or gtkdialog3...

3: you can remove -m32 from CFLAGS (for x86_64 with no multilib users); you generate valid x86_64 code, so that's ok.

4: [!!] tempfile.dbh is not a valid .dbh file

[] Extract NBH file '/mnt/Aiz3n/x/WWE_1.90.707.1_52.33.25.17_1.02.25.19.nbh'

A.
[Windows Mobile Software Development] adwinp:
Now I see; you are just wrapping for wine.

O_o
[Windows Mobile Software Development] hceylan:
No serial over USB

Hi,

I am tring to test the tool on Fedora 2.6.26.2-2.fc8 #1 SMP Sat Aug 9 12:27:10 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux...

I boot my new Diamond in to boot loader mode and it says "serial" on the screen.

But as soon as I connect the device to my laptop it turns to USB and there is no /dev/ttyUSBxxx created.

Am I missing sth?

Cheers,

Ceylan
[Windows Mobile Software Development] shamus:
I'm trying to compile source under ubuntu64 with amd-64 and this is what I get can anyone help?

nrg@rapid:~/HTCFlasher-20080806$ sudo make

cd src && make all

make[1]: Entering catalog `/home/nrg/HTCFlasher-20080806/src'

cc -Wall -m32 -c -o nbhextract.o nbhextract.c

In file included from /usr/include/features.h:354,

from /usr/include/stdio.h:28,

from nbhextract.c:13:

/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory

make[1]: *** [nbhextract.o] Error 1

make[1]: Leaving catalog `/home/nrg/HTCFlasher-20080806/src'

make: *** [all] Error 2

What I understand it looks for stubs32 not 64 version anyway what package contains stubs?
[Windows Mobile Software Development] japanacc:
I give UP on my device this flasher just dont work , is probably some hardwarefailure !!! this utilitu work only in about 50% of all broken devices , but at the end that is something ......:confused:

Loks like work

at the end give me this:confused:

Hermes 200 nogsm mesage on screen , nothing changed !!!

Somebody have this problem ????.....Any help !!!!!
[Windows Mobile Software Development] pof:
No, the current version won't work with HTC Apache's bootloader, sorry.

HTCFlasher 3.x only works with HTC Hermes SPL versions 2.x, it won't work on Hermes SPL-1.x. Use the old "Hermflasher" for this.

Thanks for your other suggestions, will fix in following svn updates when I have some time. Regarding this, I think it's a partition related issue, do not run it on fat32 partition.

HTC Diamond USB-Serial connection is different from other HTC devices, it doesn't work with the current linux 'ipaq' driver. Still don't know how to fix this myself.

It's on "libc6-dev".
[Windows Mobile Software Development] japanacc:
Thanhs for Your answer !!! :p
[Windows Mobile Software Development] analyzer.x:
Hello Pof,

When you say your future release will support older NBF format does that mean, any device that uses this format will wok?

I hope so, I mean HP uses NBF file format to update the rom in the PDA. I believe alot of us still have PDA's that are using the NBF file format.

Is there any other utility that may currently support the NBF file format?

Thank you
[Windows Mobile Software Development] Zoolooc:
Updated Gentoo ebuilds

Hello,

for those who want this htc flasher suite on gentoo, I've updated the ebuilds in the Gentoo bugtracker, where for simplicity, I alternatively attached a complete archive with them (also in the other bug entry this depends on, with the lcab ebuild which was also missing on Gentoo.

@pof:

Do you know how to write those *.desktop files in order to have them in a submenu of their own on the Gnome menu? If that's not achievable, what do you think of prefixing the menu entries for LRK and YANG with HTC: , and avoid full paths, as executables should be in the PATH, and icons installed in the distribution-specific place like in the patch attached with the ebuilds?

Keep up the good work

Lucian

P.S. As mentioned in my older post, if someone actually tests these ebuilds on Gentoo, please report installation problems, as of for functionality, you know whom to ask ;)...
[Windows Mobile Software Development] ivanmmj:
I'm using Ubuntu now and it just sits there at Setting RUU Mode. I've only left it waiting for about 5 minutes. I have a HardSPL'd Herald and I'm running Ubuntu 8.04 x86 on my laptop. Btw, the RUU Mode on the phone DOES start up after about a minute but the Flasher doesn't seem to see that it has switched.
[Windows Mobile Software Development] PURESKILLZZZ:
Well I also havent had this working but have moved onto a different way of flashing while on linux .. Using Virtual MAchine ...
[Windows Mobile Software Development] ivanmmj:
hehe. I, normally, flash through the SD as it bypasses the size requirements that the Herald ROM has. I was hoping to find that the HTCFlasher would be able to bypass these requirements so that others could use this to flash my ROMs.
[Windows Mobile Software Development] ranj9119:
what the hell is this? can u solve it pof? plz

Google

Error

Forbidden

Your client does not have permission to get URL /p/htc-flasher/ from this server.
[Windows Mobile Software Development] vcovca:
HTC S730 doesn't flash...

I have a problem with my just bought HTC S730.

I wrot this to HTC:

My HTC S730 does not start up. I've tried to reset the device by holding the power and the 2 softbuttons and perform an factory reset but still no go. The device looks like it's booting but as soon as the progressbar -after the config.sys-message appears it freezed at approx. 16% and shuts down again. On the top screen there is a little X marked through the battery so it seems there is no battery connected but actually there is. I think the battery is not charging. I've tried using the adapter and with a USB-cable too but still no go.

HTC needs a Proof of Purchase... I don't have it!

Try flashing the damn machine with Linux, doens't work.

The guy who sold me the phone doesn't answer the phone anymore...

Please help! I feel pretty F**KED. Payed €130 for it...

I know this is a developer forum... sorry for any off topic stuff.........

Gr.

Robbie
[Windows Mobile Software Development] asmugone:
Problems with this under linux mint

I plug my phone in after installing the ubuntu package, program works fine but the phone isnt in the place its looking for in /dev/

I can see the the device with lsusb but dont know how to find the /dev/ mount point, any help please?
[Windows Mobile Software Development] roger_s:
Same thing here

Ubuntu 8.04

Installed HTCflasher util

When trying to get device info it says: /dev/ttyUSB0: No such file or directory

Device is in bootloader mode

LSUSB output:

Bus 005 Device 001: ID 0000:0000

Bus 004 Device 003: ID 0bb4:0a15 High Tech Computer Corp.

Bus 004 Device 001: ID 0000:0000

Bus 003 Device 002: ID 046d:c024 Logitech, Inc.

Bus 003 Device 001: ID 0000:0000

Bus 002 Device 001: ID 0000:0000

Bus 001 Device 001: ID 0000:0000
[Windows Mobile Software Development] Trekvogel:
I compiled the source on OS X but I can't connect. OS X doesn't have /dev/ttyUSB*. What port do I use or won't it work at all in OS X?
[Windows Mobile Software Development] shamus:
could someone tell me please what should I do now to make it compile?

nrg@rapid:~/HTCFlasher-20080806$ make

cd src && make all

make[1]: Entering directory `/home/nrg/HTCFlasher-20080806/src'

cc -Wall -m32 -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.2.3/libgcc.a when searching for -lgcc

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/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/nrg/HTCFlasher-20080806/src'

make: *** [all] Error 2
[Windows Mobile Software Development] ivanmmj:
It can't find lgcc... so install lgcc.
[Windows Mobile Software Development] ivanmmj:
You paid this much for a phone that didn't boot?

I don't know much about that phone, but have you tried to simply set it to bootloader mode and reflash it with the manufacturer's firmware.
[Windows Mobile Software Development] shamus:
could you please tell me what package contains lgcc because apt-get or synaptic can not find it?

Edit: Never mind I found it needs gcc-multilib
[Windows Mobile Software Development] vcovca:
I tried about everything.

Had a deal with the previous owner... he would take it back if it didn't function..

I can't reach the guy anymore.
[Windows Mobile Software Development] vcovca:
IT boots now, but it seems that the phone thinks the battery is empty...
[Windows Mobile Software Development] shamus:
So after successful compile process and install under ubuntu hardy heron x64 I flashed my Herm200 device with new radio firmware but flashing process stopped at 36% and device went into brick mode :) fortunately I managed to recover it with windows ruu and the same radio flash.
[Windows Mobile Software Development] adwinp:
lol, the IT crowd would be thrilled to learn about the *new* LGCC compiler.

^.^

That's a good one. Made me lol quite well.

;]
[Windows Mobile Software Development] rammkp:
hi roger_s and trekvogel

Not sure if you got it working in linux.

Try HTCFlasher -i -D /dev/ttyUSB1.

I am using OpenSUSE 11 and my hermes was identified at /dev/ttyUSB1.

Thanks

Ram
[Windows Mobile Software Development] Trekvogel:
Thanks but that won't work in OS X. /dev/ttyUSB1 doesn't exist. Don't know what is in OS X.
[Windows Mobile Software Development] roger_s:
I now have it working on USB0, sort of, but it says it doesn't recognize the device. it is an HTC diamond.
[Windows Mobile Software Development] Trekvogel:
Interesting, could you explain how you (sort of) got it to work?