yashsingh1/xdaforums huggingface dataset:
[Touch Diamond, MDA Compact IV ROM Development] maejrep:
Does not work on raph800:

root@htcraphael:~# cat /dev/smd0
cat: can't open '/dev/smd0': No such device
root@htcraphael:~# echo "AT" > /dev/smd0
-sh: cannot create /dev/smd0: No such device

[ 4.627507] smd_init()
[ 4.627568] smd_core_init()
[ 4.627659] smd_core_init() done
[ 4.627812] smd_alloc_channel() 'SMD_RPCCALL' cid=2, shared=e0110148
[ 4.628117] smd_alloc_channel() 'SMD_CONTROL' cid=5, shared=e010c120
[ 4.628361] smd_alloc_channel() 'SMD_DATA5' cid=11, shared=e0118198
[ 4.628636] smd_alloc_channel() 'SMD_DATA6' cid=12, shared=e011c1c0
[ 4.628850] smd_alloc_channel() 'SMD_DATA7' cid=13, shared=e01201e8
[ 4.629094] smd_alloc_channel() 'SMD_CS_A2M' cid=33, shared=e0114170

Also seeing:

# echo 1 > /sys/module/smd/parameters/debug_mask
...
[ 138.500355] smsm_set_interrupt_info 0 0 -> 2400432 0
[ 138.504384] smsm_set_sleep_duration 971 -> 1300
[ 138.508198] smsm_change_state a29
[ 138.510142] smsm_change_state 2829
[ 138.510142] smsm_change_state 929
[ 138.510142] <SM 00000929 00010d29>
[ 138.510142] <SM 00000929 00010d29>
[ 138.580355] smsm_set_interrupt_info 0 0 -> 2400432 0
[ 138.584231] smsm_set_sleep_duration 1300 -> 972
[ 138.587954] smsm_change_state a29
[ 138.590142] smsm_change_state 2829
[ 138.590142] smsm_change_state 929
[ 138.590142] <SM 00000929 00010d29>
[ 138.590142] <SM 00000929 00010d29>

If that helps any :x
[Touch Diamond, MDA Compact IV ROM Development] balsat:
I split my sdcard in 2, the first is a fat partition and the second is a ext3 for Linux.

The I unpacked the anstrom initrd on the ext3 partition, changed my default.txt for haret.exe to

set MTYPE 1910

set KERNEL zimage

set CMDLINE "root=/dev/mmcblk0p2 rootdelay=15 mem=96"

set RAMSIZE 0x6000000

set RAMADDR 0x100000000

bootlinux
[Touch Diamond, MDA Compact IV ROM Development] Untouchab1e:
And then what happened?
[Touch Diamond, MDA Compact IV ROM Development] balsat:
It boot up on a Linux shell, but i can't start android now because of a missing binderdev!

Merry Christmas
[Touch Diamond, MDA Compact IV ROM Development] lavender.t:
still confused ...

sorry for being late, dcordes. blame the holiday ... :)

i was really excited when i saw cr2's formula. but when i looked closer i had the same question as netripper that there was no where to derive the real freq or divisor value from those parameters. also tried the formula for 144kHz parameters but i found the A4 value was different from what i got from the code. i thought 3 shift values could be wrong (missed by 1).

i sent message to cr2 and hasnt been answered yet. :(

- lt
[Touch Diamond, MDA Compact IV ROM Development] dcordes:
Heya, I think it's better to drop a line in the channel. he frequently reads the logs.
[Touch Diamond, MDA Compact IV ROM Development] abc12345:
So what do we need to do to fix this?
[Touch Diamond, MDA Compact IV ROM Development] hah2110:
So how do I actually install android onto my fuze? The newest, working version... These threads are waayyy to cluttered to provide any real benefit.
[Touch Diamond, MDA Compact IV ROM Development] balsat:
which zImage, initrd and haret.exe do you use, what does your default.txt say?
[Touch Diamond, MDA Compact IV ROM Development] konsta819:
hah2110:

The point is, that this doesn't work. You can try hard, and waste other people's time in asking for help replicating the steps that have been taken up to the point at which the boot fails. Nothing at all right now will give you what you are looking for - not an android phone, or even something to play with the software for curiosity.

You are clearly not a skilled linux developer, and so as much as you'd like to help, the chances that you can contribute anything are incredibly limited. Right now you're just contributing to the 210 pages of clutter that make it hard for the real developers to do their thang.

Bear in mind the first line of the wiki. If you don't know what you're doing, you may brick your phone.

You were essentially told this in the first answer, which is why people by this point are irritated.
[Touch Diamond, MDA Compact IV ROM Development] liamhere:
thread clean...again

i said i was watching :p
[Touch Diamond, MDA Compact IV ROM Development] liamhere:
read read...and read some more

posts like this is why the thread is "cluttered"
[Touch Diamond, MDA Compact IV ROM Development] pest666:
Structure and focus..

Hi, there

I like many others have my diamond and would really love to get android running on it, I found this thread.. and whatta long list of questions.. whithout answers...

this thread is just a list of 120 pages of disrespect and the wiki is useless...

Im a developper myself and have been working on many projects and seen a lot of them die because of structure and focus problems.

lists grow longer and longer with nothing but complains. no really progress..

this is looking like one of these "projects"

so before giving up, bying an iphone, a mac go to a fancy cafe drinking laté and look like im important........

first,

is there a "real" project somewhere, or is there only this meaningless talk ??

whatabout taking an agile aproach, create a real project somewhere ??

where is the developers listed, who is doing what, what order should we fix what ??

why are there focus on the colors when the phone is useless. without the mic and speakers working?

i would love to see any of you guys go to work in a car without the engine, and even without the tires...

if this is fixed, a lot would start using it, interest will grow and maybe a community will appear..

second,

what is it people want ? is it android on the diamond or is it the penguin logo when booting ??

anyone know a project with android running on windows mobile ?

the diamond is born with windows and orig drivers.. maybe it is there we should focus.

im not a fan of the m$ corp and would love android running on linux. but it will take a while.. so until then maybe some of us could get it running on windows, and get focus on android.. or would this be i direct competition to this "project" ?

can android run on windows at all ?

/Happy New years,

David N.
[Touch Diamond, MDA Compact IV ROM Development] skiwithpete:
David N.,

http://wiki.xda-developers.com/index.php?pagename=RaphaelLinux
[Touch Diamond, MDA Compact IV ROM Development] sensorama:
this made my day.

:D
[Touch Diamond, MDA Compact IV ROM Development] pest666:
Hi, there

I like many others have my diamond and would really love to get android running on it, I found this thread.. and whatta long list of questions.. whithout answers...

this thread is just a list of 120 pages of disrespect and the wiki is useless...

Im a developper myself and have been working on many projects and seen a lot of them die because of structure and focus problems.

lists grow longer and longer with nothing but complains. no really progress..

this is looking like one of these "projects"

so before giving up, bying an iphone, a mac go to a fancy cafe drinking laté and look like im important........

first,

is there a "real" project somewhere, or is there only this meaningless talk ??

whatabout taking an agile aproach, create a real project somewhere ??

where is the developers listed, who is doing what, what order should we fix what ??

why are there focus on the colors when the phone is useless. without the mic and speakers working?

i would love to see any of you guys go to work in a car without the engine, and even without the tires...

if this is fixed, a lot would start using it, interest will grow and maybe a community will appear..

second,

what is it people want ? is it android on the diamond or is it the penguin logo when booting ??

anyone know a project with android running on windows mobile ?

the diamond is born with windows and orig drivers.. maybe it is there we should focus.

im not a fan of the m$ corp and would love android running on linux. but it will take a while.. so until then maybe some of us could get it running on windows, and get focus on android.. or would this be i direct competition to this "project" ?

/Happy New years,

David N.

answer myself.. ;)

just read the "what is android"

........
[Touch Diamond, MDA Compact IV ROM Development] pest666:
David N.,

Wow.. nice pictures.. love them.. yes....

..my mom can crete a wiki with nice pictures...

i WAS interested in participating.. but. it seems i have to read 120 pages "read the wiki", and then look at some nice pictures, boot up my diamond with a precompiled binary, and have no use of my phone..... Why would a developer be interested participating in a project, with nowhere to start and only grumpy comments.
[Touch Diamond, MDA Compact IV ROM Development] ermin15:
What would you suggest us to do. Maybe a forum? Here are enough non-devs who are willing to donate a bit time to help.
[Touch Diamond, MDA Compact IV ROM Development] pest666:
Project

my exp on this project is not that deep i actually trying to do some modifications so im able to compile the kernel on a mac. but im just about to just reboot into linux..

as i undestand it, its a branch on the linuxtogo ??

linuxtogo has a lot of projects running:

http://projects.linuxtogo.org/

maybe register a project there ?

or a trac somewhere.

A wiki/forum is not enough.
[Touch Diamond, MDA Compact IV ROM Development] skiwithpete:
Check IRC Freenode channel HTC-Linux... this is IF you're still interested.
[Touch Diamond, MDA Compact IV ROM Development] mdrobnak:
I was actually looking for this exact information..it's not in the wiki, or the front page of xda-dev...

I think I shall add this to the Wiki.

-Matt

EDIT: I take that back, it is in the first line..I feel dumb now. :-)
[Touch Diamond, MDA Compact IV ROM Development] sensorama:
Sorry for my quick post... was and still is at work so its quite hard to follow the thread at times...

Doesnt have... wich was perfectly mentioned in espens post.

carry on. :o
[Touch Diamond, MDA Compact IV ROM Development] espenfjo:
Hehe, this is funny.

GETRAWFRAMEBUFFER method gives me offset 0x1686a000 for the FB

The GAPI method gives 0x16844800

And GETGXINFO method gives me the same as GAPI.

http://wiki.xda-developers.com/index.php?pagename=DiamondMemoryMap gives 0x1666a000.

Anyone can shed some light on this?

EDIT: Sadly none of the offsets fixes my previous problems with the FB.
[Touch Diamond, MDA Compact IV ROM Development] premy:
Espenfjo,

I'm facing the same issues as you on my Diamond.

However, when you do a pdump 0x1666a000 0x96000, and then feed the output into gimp, you definitely get what's on the screen.

So I would tend to think that 0x1666a000 is correct.
[Touch Diamond, MDA Compact IV ROM Development] flibblecx:
Indeed, if you move the code that clears the frame buffer to before the 'Go Go Go' part it does indeed clear the FB and print to it.

This is probably not much help.

I will continue to do some debugging and find out what is causing it to apparently crash before clearing the FB during a normal run.
[Touch Diamond, MDA Compact IV ROM Development] espenfjo:
Ok, i cant seem to make any progress on harets FB. Tried about everything :)

Someone should start looking at linux instead, and just hope that haret actually runs through all the preloader code and executes linux.
[Touch Diamond, MDA Compact IV ROM Development] parazitu22:
New here to the forum, but i've been reading for a while. I don't have a lot of programming skills, but I wish to thank all of the members here who work so hard on this.

Looks like google has released a new SDK v.0.9

http://code.google.com/android/download_list.html
[Touch Diamond, MDA Compact IV ROM Development] dave94o:
Hey guys if you need some help from the people who made the hackint0sh(maybe it will help you) then I can get some information from them,because i know these people and i can talk to them at anytime,so if you need anything just tell me
[Touch Diamond, MDA Compact IV ROM Development] Global_Inferno:
Well spotted, from the sounds of the release notes this could be the last sweep of MAJOR changes to the API.
[Touch Diamond, MDA Compact IV ROM Development] mikesch261:
by the way who want Linux or that android Google spyware Crap

is there a Navigation Software for it !?

don't think so

every Software from google got tons of Spyware and Backdoors so why would anyone with a little bit of brain install a crao like this !?
[Touch Diamond, MDA Compact IV ROM Development] liamhere:
do you really know what you are talking about?

some how i don't think so.
[Touch Diamond, MDA Compact IV ROM Development] gebruikershaes:
the release notes say there is no bluetooth added to that release. wich is a shame :(
[Touch Diamond, MDA Compact IV ROM Development] Smokuevo:
someone please make it happen!!!
[Touch Diamond, MDA Compact IV ROM Development] Global_Inferno:
Maybe once the first HTC Android-based phone comes out, we can rip the OS from that? Or HTC will offer an alternative? Never know..
[Touch Diamond, MDA Compact IV ROM Development] parazitu22:
i am a total noob, but I was just wondering why it is more difficult to get android working on the diamond then on the vogue. is it just because it doesn't have an SD card?
[Touch Diamond, MDA Compact IV ROM Development] espenfjo:
I dont know why, but there could be several reasons.

Very different hardware with less publically information about it.

The core developers not moving over to the Diamond yet.

Time.

Etc..

I have as you might have noticed looked into making this happen, but im no expert neither with C, hardware or Linux programming.

I just want to help the persons capable of such things.

But it doesnt seem like they are here? :\

Im really stuck now, no FB in the preloader, and no FB when/if Linux starts, tried using VSFB from athena but no luck.
[Touch Diamond, MDA Compact IV ROM Development] NikPraskaton:
I think the same thing about Microsoft (windows mobile) too ;) lol
[Touch Diamond, MDA Compact IV ROM Development] Global_Inferno:
Well I am a C++ programmer by trade, but the problem is, while I know a fair bit about Linux... The Diamond's software and hardware are completely :O to me..
[Touch Diamond, MDA Compact IV ROM Development] rjpearce:
Hi chaps,

I've read the thread and would like to help. (I'd love to see android on the diamond).

I sent an email to the lists.arm.linux mailgroup about support the the MSM7201A (the chipset for the diamond)..

I got the following response from Brian Swetland:

> > Can anyone confirm if the Qualcomm MSM7201A chipset is supported in

> > kernel v2.6.25 (on the latest GIT repository) ?

> >

> > I notice from here:

> > http://lists.arm.linux.org.uk/lurker/message/20071108.075502.4ff93ee7.html

> > That MSM7200A was supported from Nov 2007. Does this include all MSM7K

> > models?

There is quite a bit of MSM7201A support in the patches available in the

git tree from git.android.com (check out the msm-2.6.25 branch, for

example). The first couple patches are in the mainline 2.6.25, but

that's about it -- we need to clean up stuff and start submitting more

of this for review to the lakml, and hopefully see more complete msm7k

support in later mainline kernels.

Expect to see some new patchsets sent to the lakml in the near future.

I know there are folks working on 7225 and 8k as well.

Brian

---

I dont know if this is any use for your chaps, but is it worth compiling with the latest kernel from google? and then creating a new boot image, just an idea (not my area of expertise!). Happy to help out anyway i can ;)

-Rich
[Touch Diamond, MDA Compact IV ROM Development] andrewloh:
http://www.youtube.com/watch?v=quwXY3w26wg

The Andorid 0.9 SDK r1 Beta is quite impressive. If anyone would port it to HTC Diamond, that would be excellent.
[Touch Diamond, MDA Compact IV ROM Development] Global_Inferno:
It's shouldn't need "porting", simply intergrating with the Touch Diamonds drivers and hardware.
[Touch Diamond, MDA Compact IV ROM Development] pest666:
haret

Is there somewhere yet another wiki maybe.. with a haret/linload/android guide, like the build guide. i have been looking arround and yet again I need to find some post in the middle of a 200 posts thread just to get near to an undestanding of what is needed..

I see netripper supplying a lot of exe's but to build one for the diamond myself. ?

how do "stupid little me" do it without having to hardreset 250 times before getting it right??

the "Linux on Raphael and Diamond" wiki could have a usefull link like Research with a sub page getting started howto.

- prereq

- build the kernel

- howto create the exe with/without linload, loadlin or whatever its called

- etc......

/D
[Touch Diamond, MDA Compact IV ROM Development] pest666:
I was actually looking for this exact information..it's not in the wiki, or the front page of xda-dev...

I think I shall add this to the Wiki.

-Matt

Dont fell that, when you have to filter one line out, its easy to miss. I did it to

I dont know how updates to the wiki is managed ? is it anarchy or ?

If i want to add some small diamond specific howtos as subpages I just do it or ? i should think not ??
[Touch Diamond, MDA Compact IV ROM Development] mdrobnak:
A Wiki is designed to be updated by it's users - I bolded the information for IRC, for instance. You can add new pages as you feel fit...

-Matt
[Touch Diamond, MDA Compact IV ROM Development] skiwithpete:
That made my day

:)
[Touch Diamond, MDA Compact IV ROM Development] timmy1980:
I am following this thread but do not really have the know how to make any real contribution. All credit to those who do. I just noticed this and wondered if it may be of any help. More than likely I am barking up the wrong tree but just thought I'd run it past those who DO know what they are talking about!

http://xdaforums.com/showthread.php?t=463779
[Touch Diamond, MDA Compact IV ROM Development] abc12345:
is the structure the same as in other htc roms?
[Touch Diamond, MDA Compact IV ROM Development] amandeepphull:
I've downloaded the file (20081204-01_raph_diam_android_v0.8) and placed it in the Internal Storage (The 4GB storage part), Used the File Explorer to find the file. Launched the file, but it doesent load!

How long am I expected to wait for the kernel to load etc.?

Thanks!
[Touch Diamond, MDA Compact IV ROM Development] Willis111:
So, if I go by what you wrote you open file explorer, run haret and then just wait. Try hitting the run button and if that generates any errors post them here.

Edit: also there was a problem/solution posted a few pages back. Make sure your device is setup for active sync.
[Touch Diamond, MDA Compact IV ROM Development] touch of jobo:
Is this useful?

http://www.phonewreck.com/wiki/index.php?title=HTC_Touch_Pro

-Jobo
[Touch Diamond, MDA Compact IV ROM Development] amandeepphull:
Cheers Willis, I shall look into this tomorrow, I have a Massive Financial accounts project in and wanted to test android to take time out :D lol. I will report back tomorrow hopefully!

My Diamond was not set up for activesync at the time (no connection or Sync Partnerships).

When you say Set up for activesync, do you mean I have to execute HaRET while activesync is connected or do you mean, i simply have to make an activesync connection with my laptop, then i can disconnect and try Android?

Regards,

Aman

Quick Edit: My error is:

NET: Registered to protocol family 1

NET: Registered to protocol family 17

clock_late_init() disabled 17 unused clocks

drivers/rtc/hctosys.c: unable to open rtc dev

ice (rtc0) <- I know it's device (rtc0), but i just typed it as it appreared

trout_pwrsink_set:sTUB!

trout_pwrsink_set:sTUB!

trout_pwrsink_set:sTUB!

trout_pwrsink_set:sTUB!

END - no further commands came up.

I'll do some more reading on this tomorrow!

EDIT again: I managed to get it to work by connecting to activesync and following on screen instructions :D
[Touch Diamond, MDA Compact IV ROM Development] lavender.t:
android 1.0 on diamond -- proof of concept

spent some time in the holiday and finally got android 1.0 running in my diamond. not really a usable system 'cause as you may have already found out by reading the thread or working on porting that many functions in the kernel still need to be fixed. just did this as a proof of concept -- yes we are getting closer and yes you still need to use patience. :)

some notes on pulling in android 1.0:

1. diamond's built-in mmc cannot be partitioned (at this time). it is not because of linux btw. the problem is WM will not be able to recognize the partitioned mmc in diamond. and unfortunately i still need to use my WM phone before android is fully ready. so i built the system.img and userdata.img as ext2 fs and mount them via loopback devices.

i also tried enabling the mtd + yaffs2 support in the kernel and loopback the ready-made android images. however i was having trouble making the loopback work with yaffs2 and didnt have time to track down. so just took the easy path to use ext2 instead.

2. if we start from our own "init" (for sake of debugging) instead of android's "init", the busybox mdev cannot be used. android "init" also takes care of /dev file system (as well as /proc /sys, etc). running mdev will have confliction and the java vm cannot be launched successfully. without mdev, we have to create a minimal set of devices first (tty, pts, loop, mmcblk, ...) statically to run our telnetd and mount the images.

3. make sure the /data image is big enuf. in the beginning i used only 8MB and the java vm just couldnt launch. the error messages all looked to be corrupted jar files. took me quite some troubleshooting time to find out it was indeed disk full and enlarged the image to 64M. also make sure the tree under /data has permission 0771 'cause files will be created there. on the other hand the /system can be mounted RO.

4. logcat is very useful.

attached the pictures of my diamond running android 1. if you really want to try the images and have a place for other people to share please let me know and i'll upload the big image files as well as the initrd. :)

cheers !

- lt
[Touch Diamond, MDA Compact IV ROM Development] keerttttt:
Hi lavender, great news. You can post the files on my webhost if you want. I have a internet address with enough bandwith and speed.

PM Me.
[Touch Diamond, MDA Compact IV ROM Development] balsat:
Hmmm thats strange... I have partitioned my mmc in linux (fdisk), just remember to keep the first partition a vfat for Windows.

I got 2 partitions the first is a 2gb vfat and the second is a 2gb ext2, windows can read the vfat, and Linux read booth
[Touch Diamond, MDA Compact IV ROM Development] skiwithpete:
Great news Lavender!!!
[Touch Diamond, MDA Compact IV ROM Development] Willis111:
I've got a bit of hosting space available. PM'd you the info.
[Touch Diamond, MDA Compact IV ROM Development] maejrep:
I used haret to dump a0 and a4 (on raph800), and I see:

HaRET(27)# pdump 0xa86000a0 0x08
a0 a4
a86000a0 | 0001fff4 fff50b44 | ....D...
{ ..., 0x20000 - 0xc , 0xfff50b44, ... }

Does this mean anything at all? I still don't know what the frequencies should be, but I noticed that those values weren't listed in your data structures.
[Touch Diamond, MDA Compact IV ROM Development] Untouchab1e:
Fantastic work Lavender. I run a web hosting service, so if you need a place to host your files or whatever, just let me know and Il set something up ;)
[Touch Diamond, MDA Compact IV ROM Development] :
Android 0.8 Error message

Hi i tried this

and it gave me the following error. maybe it means something to you

drivers/rtc/htcosys.c unable to open rtc device (rtc0)
trout_pwrsink_set:STUB!
[Touch Diamond, MDA Compact IV ROM Development] Untouchab1e:
Lavender is the real deal ;) Dont worry!

Anyhow, I was thinking.. This thread is about Linux and Android on the Diamond, and I feel its currently really messy considering people here are also working on porting Android to the Raphael. Maybe we should organize this a bit? Make a separate raphael thread or something?

Cheers!
[Touch Diamond, MDA Compact IV ROM Development] sblop:
Im glad to hear :-)
[Touch Diamond, MDA Compact IV ROM Development] abc12345:
I was thinking that too