Linux / Android on HTC Diamond

Posted in MobilePhone by neemem on 11-01-2008.

在钻石机上也可以跑 了…哈哈…

参考以下:

First off credits goto all those working hard and having , people like: dcordes, netripper, druidu and all those I didnt mention!

I have just made this thread to get a , so that they dont have to read hundreds and hundreds of posts.

==========
IRC: #htc- @ Freenode
==========

Getting the kernel (taken from http://forum.xda-developers.com/show…84#post2269384 … credits to dwaradzyn):

Code:
mkdir ~/
cd ~/
git clone git://git.linuxtogo.org/home/groups/mobile-/kernel.git
cd kernel
git checkout -b htc-msm-2.6.25 origin/htc-msm-2.6.25
cd ..
wget http://www.codesourcery.com/gnu_toolchains/arm/portal/package2549/public/arm-none--gnueabi/arm-2008q1-126-arm-none--gnueabi-i686-pc--gnu.tar.bz2
tar xjf arm-2008q1-126-arm-none--gnueabi-i686-pc--gnu.tar.bz2
cd kernel
make htckaiser_defconfig ARCH=arm
export PATH=~//arm-2008q1/bin:$PATH
make zImage ARCH=arm CROSS_COMPILE=arm-none--gnueabi-

Now the file ~/-kernel/kernel/arch/arm/boot/zImage is ready to be put on your phone and you can boot it with haret’s newest version (1.5.2 works fine) … downloadable from: http://www.handhelds.org/~koconnor/haret/

Open your favourite text editor to create the file “DEFAULT.txt” and put the following in it:

Code:
set MTYPE 1910
set KERNEL zImage
set INITRD .bin
set RAMSIZE 0x5e
set RAMADDR 0x10000000
set cmdline "root=/dev/ram0 rp init=/init console=tty0 mem=94M"
bootlinux

Get the file .bin from http://h3po.de/public/diamond_android_0.8.zip and put it in the same directory as haret.exe, default.txt and zImage.

=====

Now the new points of attention are:

1. Touchscreen :

I have seen people talking about a red dot in the upper left corner, I have seen it once so far and didnt notice any major miss when using the dev tools > pointer locator … the only this malfunctioning is the x and that you need to double tab (or is this standard behaviour? It looks like it remembers the last pressed location). Also the onscreen keyboard is very flickery, minor issue should be easy to fix (during loading it looks like it is flickering on the readout of the touchscreen).

2. Hardware support:

Adding various support for hardware, to output sound and all other “required to call” fuctionality.

Also not forgetting to access internal memory, maybe the best workaround to loading a fully fledged is to make a minimal initrd to setup internal storage and from there load the rest. Should be much easier when it all gets incorporated into a ROM, instead of loading with haret … which poses serious problems regarding initrd loading and who wants WM6x/7 on his phone anyway when becomes usable. Loading from haret does make working with it for now a little easier. Maybe a GRUB like approach and loading straight from a filesystem (ROM or internal storage)?

==========

Some other request:

Pointers to OS sources or atleast a working 1.0 (latest branch?) initrd.

==========

General tips:

Going back to desktop: insert and remove stylus.
Selecting and opening, use double tabbing and mirror x for now.

Using onscreen keyboard: havent figured it out yet sadly.

=========

Ill try to update the post, also PLEASE people refrain yourself from posting in this thread … let’s make a good go at keeping it clean. If you do not intend to be working on getting / to work on the Diamond and family please post somewhere else. No harsh feelings, but threads getting cluttered with “Great work!” and “wehn iz really workn on me phone?” do mess things up by quite a bit.

DO NOT ASK FOR REQUESTS, focus is on the basics first … input, output and storage.

==========

Dont forget to check: http://wiki.xda-developers.com/index…e=RaphaelLinux

==========

, please post updated links / patches and all that would help us make progression.

Related posts:
Linux on Raphael and Diamond (maybe Android) -=® panosha ® =- Shine On 2.4 Light & Full –Diamond WWE ROM

One Response to “Linux / Android on HTC Diamond”

» You can leave a response or Trackback .

  1. neemem Says:

    for useful links

    Original thread (very bloated with comments and hard to dig through, dont let it happen here): http://forum.xda-developers.com/showthread.php?t=402002

    Complete working Android 0.8, “extract and run” ala Plug ‘n Pray: http://h3po.de/public/diamond_android_0.8.zip

    Wikipage: http://wiki.xda-developers.com/index…e=RaphaelLinux

    Haret: http://www.handhelds.org/~koconnor/haret/

    Howto for kernel building: http://forum.xda-developers.com/show…84#post2269384 (replace htc-msm with htc-msm-2.6.25)

    [Reply]

» Trackbacks/Pingbacks

Leave a Reply