Linux / Android on HTC Diamond
Posted in MobilePhone by neemem on 11-01-2008.在钻石机上也可以跑 android了…哈哈…
参考以下:
First off credits goto all those working hard and having sleepless nights, people like: dcordes, netripper, druidu and all those I didnt mention!
I have just made this thread to get developers a kickstart, so that they dont have to read hundreds and hundreds of posts.
==========
IRC: #htc-linux @ Freenode
==========
Getting the kernel (taken from http://forum.xda-developers.com/show…84#post2269384 … credits to dwaradzyn):
mkdir ~/android cd ~/android git clone git://git.linuxtogo.org/home/groups/mobile-linux/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-linux-gnueabi/arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 tar xjf arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 cd kernel make htckaiser_defconfig ARCH=arm export PATH=~/android/arm-2008q1/bin:$PATH make zImage ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
Now the file ~/android-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:
set MTYPE 1910 set KERNEL zImage set INITRD android.bin set RAMSIZE 0x5e set RAMADDR 0x10000000 set cmdline "root=/dev/ram0 rp init=/init console=tty0 mem=94M" bootlinux
Get the file android.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 calibration:
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 calibration when using the dev tools > pointer locator … the only this malfunctioning is the x inversion 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 Android 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 Android 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 Android 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 Linux / Android to work on the Diamond and family please post somewhere else. No harsh feelings, but threads getting cluttered with “Great work!” and “wehn iz android 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
==========
Developers, please post updated links / patches and all that would help us make progression.
Related posts:- Nginx的Rewrite设置及示例
- 谷歌浏览器 Chrome 发布 Linux 版本即将跟进
- 多服务器的日志合并统计——apache日志的cronolog轮循
- Pidgin 登陆MSN 失败解决方案 -使用wlm协议
- 安装cronolog,格式化Apache的日志文件
- Manila Customizer - Customize Clocks, Icons, Sliders etc
- Linux on Raphael and Diamond (maybe Android)
- -=® panosha ® =- Shine On 2.4 Light & Full –Diamond WWE ROM
- iTunes发布新版本 为2.2固件做准备?
- 一款可爱的放气球的休闲游戏

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]