yashsingh1/xdaforums huggingface dataset:
[Touch Diamond, MDA Compact IV ROM Development] geh:
sazinas, netripper, thanks. I'm on the way !
[Touch Diamond, MDA Compact IV ROM Development] druidu:
How I bricked my device playing with nand flash

Ok, so I started playing with nand flash.

Tried to read from /dev/mtdblock0.

Conclusion is that you can't really read directly unless you make changes in the kernel. This is because by default Linux uses caching and will only make 512-byte requests. The driver only wants sizes a multiple of 2048 bytes. Opening /dev/mtdblock0 with O_DIRECT (which should bypass cache) gives invalid operation on read.

On the other hand, tried dumping /dev/mtd0 (which is a char device for accesing nand flash). First 2048 bytes are all 0xFF, so I'm guessing the driver's not reading correctly.

I also tried mounting /dev/mtdblock0 as Android's init does. DO NOT TRY IT unless you know what you are doing. After a lot of messages like:

msm_nand_read_oob %llx %x %x failed -64, corrected 0

(don't have the exact output, that's a paste from the printk)

It started at some point to do some erases (although I mounted as readonly so it shouldn't have touched the device), and after I restarted my device was bricked. With some help from cmonex on #xda-devs I managed to unbrick it (it seems I only had to reflash the OS image).

So, it is very important not to let the default Android init script mount /dev/mtdblock0 at this point because it will most likely brick it. (I mounted it myself, but at some point Android may do that if you boot it).
[Touch Diamond, MDA Compact IV ROM Development] sfjuocekr:
Could you please link us towards the sources and/or share yours?

I've been working with Linux since 1998 and eager to lay my hands on Android!

Now that the framebuffer has been fixed, lets get working on gathering data on the rest of the hardware.

Could someone point me to the sources and patches needed for the Android kernel to compile it myself and maybe even the OS sources?

So far it seems to work great, just lacking hardware support but with datasheets and some hardwork that would not be much of a problem. All in all someone please kick me on my way to the sources and patches, will be spending lonely nights on this ><
[Touch Diamond, MDA Compact IV ROM Development] sfjuocekr:
Found it, gonna compile a new thread with all the useful links and know hows to get things organized.

... first sleep ><

/edit: http://wiki.xda-developers.com/index.php?pagename=RaphaelLinux
[Touch Diamond, MDA Compact IV ROM Development] teddyen66:
.

oh wow....lucky it could be saved.
[Touch Diamond, MDA Compact IV ROM Development] NetRipper:
You're free to edit the RaphaelLinux page to make it more informative and point it to guides. That way we only need to point people to the RaphaelLinux wiki page instead of having multiple threads around.

[edit...]

And people, try not to mess with the /dev/mtd* nodes unless you really know what you're doing. Druidu's device was saved, but you may not be as fortunate.

Also note that the "internal storage" for Diamond devices is NOT on the NAND, so we do not really need to get NAND (=/dev/mtd*) working. It's probably more like a fixed SD card. Not sure if it is via the same interface as sd card on raphael though. We'll have to test that.
[Touch Diamond, MDA Compact IV ROM Development] sfjuocekr:
NetRipper, editing the wikipage is the right step forward but as Ive just stumbeled upon the thread and read it for two days now I came to the conclusion we needed to markup a correct list first. No point in updating the wiki with outdated info, hence I made the other thread to give us a headstart.

Also like you already mentioned, don't mess with the /dev/mtd* devices. I highly suspect the Diamond to have another form of storage, did anyone open his Diamond to check whats inside there (maybe pictures)?

/edit:

/dev/mtdblock0 looks like the area where WM6x is held.

Druidu, yours got bricked after trying some erasing. Can you simply put the phone back into bootloader and reflash a WM6x ROM? If so inhabiting this area for use as our filesystem is the best step forward. We will need a bootloader for that tho.

Also the module for NAND seems to have its malfunctions, tho it is working.

/edit:

Noticed that by toying around with the "Pointer Location", that it shows a yellow dot with the right x coordinates ... strange thing is that the y location of that dot looks calibrated to the bottom half of the screen.
[Touch Diamond, MDA Compact IV ROM Development] charm1718:
Sorry if this doesnt help but i came across this when i googled Androis OS on Raphael.

http://www.stdev.org/2008/11/01/GettingStartedWithAndroidOnTheHTCDiamond.aspx

I'm not a programmer, just someone who would like to test Android out on his Touch Pro
[Touch Diamond, MDA Compact IV ROM Development] genit:
Progress Update !

I'm new here! And I'm very much eager to port Android onto my HTC Diamond, not that the TouchFlo 3D isn't bad or anything, its a decent step covering up WM 6.1 UI in a friendlier package, that said, Android looks awesome from its potential standpoint, in the past week I've been reading this thread daily (meticulously in fact :D) , and am not keen on booting 0.8 on to my phone yet, for absolutely superficial reasons (UI is butt ugly) anyhow! I pose a couple of questions here just to satisfy my anticipation (if that makes any sense), plus I do have a bit of programming skills, emphasis on the BIT sections, by that I mean I know most of the Programming Languages, yet I admit that I'm a novice when it come to Linux and such, enough said.

Questions:

1.If I boot 0.8 and then restart will WM 6.1 boot normally?

2.Did anyone manage to get their hands on Android 1.0?

Thanks (and sorry for the babbling :P)
[Touch Diamond, MDA Compact IV ROM Development] keerttttt:
Can someone maybe try these steps and upload that zimage/initrd?
[Touch Diamond, MDA Compact IV ROM Development] marios96:
1. Yes, once you restart your phone, WM6.1 will boot normally...

2. There seems to be a limitation as to the size of image that haret is able to boot. But I'am sure someone is working on it...

Ofcourse all of this have been answered several times in this thread...
[Touch Diamond, MDA Compact IV ROM Development] kState:
this step is only way to same zImage that is postet already in this thread... nothing about initrd or androis os..... people like Netripper, cr2, Druidu, dcordes work on it. Problem is with kernel drivers -> not working sd card driver -> not posible to read android from sd. Android 0.8 is small, this is posible read as initrd, but 1.0 is bigger -> not posible read as initrd.. :)
[Touch Diamond, MDA Compact IV ROM Development] dexxa05:
i have build it but they don't work:

http://dexxa05.free.fr/android/
[Touch Diamond, MDA Compact IV ROM Development] keerttttt:
Of course not, this is only the zImage, you also need a Initrd.
[Touch Diamond, MDA Compact IV ROM Development] Addicteddddd:
the wiki page is very helpful to read upon, instead of this bloated thread, thank you for keeping it up to date guys i cant wait to see the progress :)
[Touch Diamond, MDA Compact IV ROM Development] dexxa05:
Yes i know....

They stop to red dot...

This is the zImage from this tuto http://www.stdev.org/2008/11/01/GettingStartedWithAndroidOnTheHTCDiamond.aspx
[Touch Diamond, MDA Compact IV ROM Development] touch of jobo:
As this is my first post, let me start by expressing my awe for the work done so far so quickly. That is pretty hard core. I'm very impressed.

I got a Touch Pro last week and stumbled upon this thread trying to find whether I could put android on it.

Here is what I did and what happened:

I built a zImage following the recipe that charm1718 found.

http://www.stdev.org/2008/11/01/GettingStartedWithAndroidOnTheHTCDiamond.aspx

I used the set that keerttttt posted in post #588 (page 59) and put the newly built zImage in place.

It boots into android 0.8 and seems to work a bit better than the original zImage-clean-htc-msm-2.6.25 in keerttttts set.

I can launch the dev tools, enabling some debug output like # of processes, events, cpu load, ..

The pointer position app shows the touch screen is mirrored but otherwise accurate. The on screen keyboard is waaay off. When i drag the stylus around, I see which key is highlighted in red. This way I can use the home key to get back to the desktop. (I dont think I got the red key highlighting with the original zImage in keerttttts set.)

Some stuff I noticed:

- typing on the keyboard is off, as described above,

- When 'in' an app, not on the desktop, (so you have the dark background) dragging the stylus around 'draws' in little yellow pixels about 1/4th up (and of course mirrored).

- I have to tap twice. When I tap on the screen, it registers the click on the position of the last click. For clicking on an icon (or anything that sits in place) thats merely inconvenient and sometimes unpredictable but for popup menus (like some of the options in 'development settings') it just doesn't work..

- sometimes i get the 'power options' dialog seemingly out of nowhere and the only option is to turn off the radio (i dont know how to get back from screen blank or power down). These yellow pixels flicker in sync with the keyboard. (I think that 'about 1/4th up' may be the same factor by which the keyboard is off...)

For now I will read/play/tinker around some more and update when I find anything shocking.

Thanks and keep up the good work!

-Jobo
[Touch Diamond, MDA Compact IV ROM Development] ermin15:
Everyone is welcome contributing to the wiki. Just scroll down and hit the edit-button.
[Touch Diamond, MDA Compact IV ROM Development] lifegrasp:
I have a full G1 rom .nbh file ... would that help?
[Touch Diamond, MDA Compact IV ROM Development] TripleQ:
How big is it?
[Touch Diamond, MDA Compact IV ROM Development] Riel:
Is any other phone-developsystem available like Opie a.o.?
[Touch Diamond, MDA Compact IV ROM Development] druidu:
Just post it somewhere and link it, can't be bad to have one :)
[Touch Diamond, MDA Compact IV ROM Development] Toug:
I think it coud be useful if some drivers can be picked up from it.
[Touch Diamond, MDA Compact IV ROM Development] NetRipper:
As far as I have seen so far from Android dumps (a partial .rar some time ago), only the wifi driver was included as module instead of compiled into the kernel. The kernel, except for some less-important drivers (i.e. Camera, which as far as I know is different from Diamond/Raphael anyway) is available anyway.

Of course a proper dump may contain some more interesting information, so please do post the link. :)
[Touch Diamond, MDA Compact IV ROM Development] livefastdiefun87:
Can we get a brief update every so often as to whats gone on rather than keep reading previous posts. What do we have up until this point. Progress report please :D
[Touch Diamond, MDA Compact IV ROM Development] NetRipper:
Check wiki in my signature. It's where progress is kept (unless things have happened I don't know about).
[Touch Diamond, MDA Compact IV ROM Development] alx5962:
I compiled the kernel yesterday according to http://www.stdev.org/2008/11/01/GettingStartedWithAndroidOnTheHTCDiamond.aspx,

but after 2 trys and 1 hour of loading, I'm always stuck at the 'red eyes' screen...

I even tried to use flight mode but no help.
[Touch Diamond, MDA Compact IV ROM Development] NetRipper:
Change the "set CMDLINE" line in default.txt to read mem=96M instead of 64M.
[Touch Diamond, MDA Compact IV ROM Development] alx5962:
wonderful! thank you

android booted in few seconds!
[Touch Diamond, MDA Compact IV ROM Development] keerttttt:
Android 0.8 i suppose?
[Touch Diamond, MDA Compact IV ROM Development] sibbor:
Have anyone here recived the ROM dump in NBH format from lifegrasp - or anyone else for that matter - yet? Kinda curious about it.

Brought my USB cable for my Diamond to the work today, so I'm up for testing! Just had to test out Android 0.8, and I'm very pleased to see some progress. The "slider" worked, so did the buttons and the dialpad. Got some screen flickering due to the onscreen keyboard though.

And as always: keep up to good work guys!

EDIT: I've now also tested the .exe from the wiki (20081103 experimental) and it works out just like above.
[Touch Diamond, MDA Compact IV ROM Development] drhades:
Yo, can somebody post the default.txt file for android 0.8 when i click it, it just opens.
[Touch Diamond, MDA Compact IV ROM Development] BDWN:
Right click, save file/page as?
[Touch Diamond, MDA Compact IV ROM Development] sibbor:
Oops, nvm...
[Touch Diamond, MDA Compact IV ROM Development] Addicteddddd:
real good job so far, i've sticky'd the wiki page and keep checking back for updates, will be coming on irc soon :]
[Touch Diamond, MDA Compact IV ROM Development] touch of jobo:
Ok, from looking at the touchscreen driver code, I am a little bit wiser than the other day... (just a little bit)

The virtual keyboard being off yet usable was due to calibration. Apparently, I accidentally calibrated the touchscreen to 1/4 of the screen height, whereas before I hadnt calibrated it at all... :o (The recipe is: tap anywhere to start calibration process, then tap top-left, then bottom-right. Be careful not to double tap or drag.)

I did 2 small changes to the driver code:

1: to un-mirror the screen

- input_report_abs(msm_ts_dev,ABS_X,absx);

+ input_report_abs(msm_ts_dev,ABS_X,calib_xmin + calib_xmax - absx);

(this does not cope with tapping outside the calibrated area)

2: to not have to tap twice (the 1st tap would get registered on the previous position)

report ABS_X, ABS_Y, BTN_TOUCH (in this order) rather than BTN_TOUCH, ABS_X, ABS_Y

That 2nd change makes it possible to tap on a popup menu without the 1st click outside canceling it: :cool:

EDIT: zImage

-Jobo
[Touch Diamond, MDA Compact IV ROM Development] michbeck100:
Did you already commit your changes into the git? I'm eager to test this myself ;-)

EDIT: Found the lines by myself. Will try this now.

EDIT2: Works fine! It's a shame that Android 1.0 is not working yet. There's not much to do in 0.8 :-(
[Touch Diamond, MDA Compact IV ROM Development] NetRipper:
Nice job. Let me test that tonight and see if I can commit it.
[Touch Diamond, MDA Compact IV ROM Development] sazinas:
One of the few videos showing Android on my HTC Touch Diamond

and how its usability
[Touch Diamond, MDA Compact IV ROM Development] sibbor:
I want this too, but haven't get any experince with compiling Android/drivers... Care to help ;)? Looks briliant!!
[Touch Diamond, MDA Compact IV ROM Development] michbeck100:
Attached you will find the diff containing the changes you have to make.

Then follow the instructions in the wiki.

In the end you should have a your own zImage, which has to be referred to in the default.txt of haret.
[Touch Diamond, MDA Compact IV ROM Development] Scribe:
Hi guys,

I'm interested in trying android out on my Touch Pro, does anybody know if this is possible?

Also where are we up to with the development? ie what have we got and what are the limitations to fully working android?

Many Thanks
[Touch Diamond, MDA Compact IV ROM Development] touch of jobo:
If you want help with having this too, I added a link to the resulting zImage.

If you want help building your own zImage from source, browse back through this thread and/or the wiki.

(That's where I found all I know...)

-Jobo
[Touch Diamond, MDA Compact IV ROM Development] CensoReDdD:
#1: to un-mirror the screen

- input_report_abs(msm_ts_dev,ABS_X,absx);

+ input_report_abs(msm_ts_dev,ABS_X,calib_xmin + calib_xmax - absx);

(this does not cope with tapping outside the calibrated area)

#

Does it works fine? On my Diamond the left part of screen does not answering on touchings anymore. And the right part are still responds, but still not correctly.

P.S. i've downloaded touch of jobo's zImage
[Touch Diamond, MDA Compact IV ROM Development] NetRipper:
You probably have to align the screen properly. When booted, tap the screen once, then the top left corner, then the lower right corner.

The new calculation uses the calibration info, so you'll need to calibrate it.
[Touch Diamond, MDA Compact IV ROM Development] druidu:
Try this: http://git.linuxtogo.org/?p=groups/...it;h=f3d355055b9c557f1868e7aeee07a77fdf1eb86a

Can't test it as Android 0.8 seems to hang, maybe some kernel options are not right, but it should work much better (still calibrate with one tap then one tap upper-left then one tap lower-right).
[Touch Diamond, MDA Compact IV ROM Development] jamesd256:
Good news! You can run the FULL Android on your Touch Pro!

The limitations are;

o You have to buy a G1 and secure it to the front of your Touch pro with tape

o G1's are really ugly

Seriously though, please have a look here:

You might want to have a tiny read of the thread as well.
[Touch Diamond, MDA Compact IV ROM Development] sazinas:
If only you could read anything else but the last post...

Click here for an updated wiki.

Edit:I wish I could read the last post... :S
[Touch Diamond, MDA Compact IV ROM Development] keerttttt:
Wow, really nice job, touchscreen works great now and it looks much faster with the correct touch method!

Great!
[Touch Diamond, MDA Compact IV ROM Development] qetuR:
Hmm.. Strange, I cant launch the latest .exe on my phone. Comes up an error message. But I could load the "old" 0.8 Android. Do I need to have the .exe in the folder?
[Touch Diamond, MDA Compact IV ROM Development] NikPraskaton:
Ive got some problems with latest version too.. The on screen keyboard on the top of the screen keeps "blinking" all the time preventing me to tap any buttons on Android.. :)
[Touch Diamond, MDA Compact IV ROM Development] Toug:
Android 1.0 cannot be load yet as there is a size limitation of the bin loaded by Haret.
[Touch Diamond, MDA Compact IV ROM Development] Howell:
Can someone post an updated zImage or LinLoad so I can test the new touchscreen driver on my Diamond please ? The latest EXE works fine except the "mirror" bug ;)

It would be also great to add a part on the Wiki to tell what works or not in the current release.

Ex : with OK/NOK/Partial status

BOOT : OK

Touchscreen : Partial (mirror)

PHONE : ?

SMS : ?

Wifi : ?

BlueTooth : ?

etc...
[Touch Diamond, MDA Compact IV ROM Development] jaapschaap:
This will be SO awesom, i just booted it and it looks great only mirrortouch and flashing keybord... But i quess thats a matter of time!

Someone how can put the mirror fix in a easy install launcher (don't know the name... edit: LinLoad shizzle :)).
[Touch Diamond, MDA Compact IV ROM Development] koboldx:
One page back, first post. Is it SO hard to _read_ the stuff the developers post?

It's really annoying to read the same kind of questions every day.

Cheers

Edit: Howell: I see, point taken.
[Touch Diamond, MDA Compact IV ROM Development] ermin15:
Nice idea. You are very welcome to help out with the wiki. Just open it, scroll down and hit the Edit-button.
[Touch Diamond, MDA Compact IV ROM Development] gebruikershaes:
Oh pleeease let us all have fully functional android on our diamonds before xmas :D:DD:
[Touch Diamond, MDA Compact IV ROM Development] Riel:
omg stop that pathetic whining about finishing it :S
[Touch Diamond, MDA Compact IV ROM Development] Howell:
FYI : I do read ALL posts (from the very first of this topic 'til now) BUT as the post following the post you refer to was asking IF it works I thought the "mirror" correction was NOT implemented in the zImage provided... My mistake...

I will... once I get a mirror bug free image (I will in a few minutes) and can play with it :D

I just wanted to know if my idea was interresting or not before working on it ;)

It will be my (little) contribution to this wonderful work :D
[Touch Diamond, MDA Compact IV ROM Development] Howell:
OK the zImage provided works on my DIAM100 :D Thanks alot ;)

Wiki work and tests in progress...
[Touch Diamond, MDA Compact IV ROM Development] sazinas:
Is there a linload version of the new zImage?

Or if there isn't, can someone write the commands to run it from the non-linload version (the one with the .txt)

Thanks!
[Touch Diamond, MDA Compact IV ROM Development] daniel.bigred:
I agree with Sazinas, I've tried to edit the default.txt & change the kernel to the new zImage but it won't go past the initial loading page (i don't get to see the Duck icon).

Please could one of the more experienced users check on the scripting involved
[Touch Diamond, MDA Compact IV ROM Development] raymondw:
http://en.wikipedia.org/wiki/Tux

penguin ;)
[Touch Diamond, MDA Compact IV ROM Development] daniel.bigred:
Can i second this? I tried to change the Kernel in the default.txt but Android now freezes on boot, after Haret has closed but before the loading page with the duck icon.

please can somebody post a script file to use?

Please excuse the previous post, I was experiencing connection problems... Gotta love AFRICA!
[Touch Diamond, MDA Compact IV ROM Development] michbeck100:
Attached you will find my changed default.txt. Just have a look a line 6 ;-).

However, if your kernel image wasn't compiled as described in the wiki, haret won't be able to start Android.
[Touch Diamond, MDA Compact IV ROM Development] jaapschaap:
@michbeck100: With your config it stops even earlier (in the commandline part of booting) after row:

Console handoverL boot [htc_fb-1] real [tt

Its pretty weird, the android.bin of 19Mb doesn't work smooth and i can't do anything. With the larger one i can do everything only mirrored and because it is to big to load with the zImage that has a fix :S (more then 24Mb together)

This sucks bigtime, cause i'm a linux noobie and don't know what to do ;)
[Touch Diamond, MDA Compact IV ROM Development] michbeck100:
Make sure you have all files, the default.txt refers to, in place. If you used a different initrd before just change the line accordingly. Maybe your android.bin is not working.
[Touch Diamond, MDA Compact IV ROM Development] jaapschaap:
It wasn't broke for shure, but i'm at work now and check out later and hope to fix it :) The times it booted and i was able to do something where verry nice (looks super :D) So now i want to go futher...

EDIT: SUPER, the linload versien is there to :D So everyone, look in the wiki and you got the easy way to get it running with the good touch drivers! Thanks to netripper!!!

http://wiki.xda-developers.com/index.php?pagename=RaphaelLinux
[Touch Diamond, MDA Compact IV ROM Development] nashmage:
Has anyone been able to make progress on any of the sprint diamonds to try and catch them up to the point of the gsms? or do we still have no idea what to do with the cdma phones?
[Touch Diamond, MDA Compact IV ROM Development] biktor_gj:
Maybe I'm wrong, but the Touch Dual CDMA (HTC Vogue) uses a Qualcomm MSM7200 with the CDMA chipset, and they've been able to make it work. I guess the main issue is that there's no gsm chipset, and it may crash because the gsm driver is trying to initialize something it doesn't even understand... If you can grab the sources elsewhere and see how CDMA drivers work, you can build your custom kernel using bits of this and that,the rest of the kernel (except you know, display module, camera etc) should be pretty much the same...

Take a look at this post to see where they got: http://xdaforums.com/showthread.php?t=382265

Or this site: http://it029000.massey.ac.nz/vogue/

I can't help much more since I don't own either a Diamond or a Vogue (waiting for a GSM diamond to start here) sorry...
[Touch Diamond, MDA Compact IV ROM Development] neilson:
Is there a thread for Android development on the HTC Touch Pro(GSM and/or CDMA)? I can't find one.
[Touch Diamond, MDA Compact IV ROM Development] jay_zhead:
Touch PRO = Raphael. This is your relevant thread, and the related wiki as well.
[Touch Diamond, MDA Compact IV ROM Development] sazinas:
The HTC Touch Pro is the same pretty much as the HTC Touch Diamond. When u go to the wiki you'll see that the development is on both the Raphael(Touch Pro) and the Diamond.:D