FORUMS
Remove All Ads from XDA

Linux / Android on Diamond

649 posts
Thanks Meter: 87
 
By sfjuocekr, Senior Member on 1st November 2008, 06:44 AM
Post Reply Email Thread
People that only want to use Android, and have NO clue about Linux or programming PLEASE REFRAIN FROM POSTING HERE


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
==========

READ: http://linuxtogo.org/~lgorris/kaiser-bootkit/README.txt

Getting the kernel (taken from http://forum.xda-developers.com/show...84#post2269384 ... credits to dwaradzyn): (UPDATED, new ARM toolchain and now working)

Code:
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/package3382/public/arm-none-eabi/arm-2008q3-39-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
tar xvjf arm-2008q3-39-arm-none-eabi-i686-pc-linux-gnu.tar.bz2\?lite\=arm
cd kernel
make htcraphael_defconfig ARCH=arm
export PATH=~/android/arm-2008q3/bin:$PATH
make zImage ARCH=arm CROSS_COMPILE=arm-none-eabi-
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:

Code:
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://linuxtogo.org/~lgorris/kaiser-bootkit/ and put it in the same directory as haret.exe, default.txt and zImage.

Is the android.bin in http://h3po.de/public/diamond_android_0.8.zip the same? (Havent checked)

=====

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.
 
 
1st November 2008, 06:45 AM |#2  
OP Senior Member
Thanks Meter: 87
 
Donate to Me
More
//placeholder 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)
1st November 2008, 06:52 AM |#3  
OP Senior Member
Thanks Meter: 87
 
Donate to Me
More
// placeholder for points that need attention


1. Touchscreen input, calibration and sensitivity.
2. Latest sources to build our own initrd for Android OS.
3. Storage accessibility.
1st November 2008, 08:57 AM |#4  
liamhere's Avatar
Retired Senior Moderator
Flag Birmingham U.K
Thanks Meter: 4
 
More
Question question???
why not put this in the thread that is already running on this ????

why on earth does it need a new thread?
1st November 2008, 09:29 AM |#5  
Senior Member
Flag Sirmione (BS)
Thanks Meter: 0
 
More
only a question : if I try this Android on my Diamond , the WM6.1 will be delete ? or I can have it also?


P.S.
sorry for my bad english
1st November 2008, 09:40 AM |#6  
liamhere's Avatar
Retired Senior Moderator
Flag Birmingham U.K
Thanks Meter: 4
 
More
Quote:
Originally Posted by yuco91

only a question : if I try this Android on my Diamond , the WM6.1 will be delete ? or I can have it also?


P.S.
sorry for my bad english

beware.....you can brick your phone if you don't know what you are doing!
1st November 2008, 09:53 AM |#7  
Senior Member
Flag Sirmione (BS)
Thanks Meter: 0
 
More
Quote:
Originally Posted by liamhere

beware.....you can brick your phone if you don't know what you are doing!

ok, but you not have aswered at my questions .....
1st November 2008, 09:56 AM |#8  
crystal_clear's Avatar
Senior Member
Thanks Meter: 0
 
More
this sounds quite interesting...
Android, is a serious alternative now to Windows o/s, yes?

What are the selling points compared to windows???

Why are there not clear and concise instructions on how to install android???

Does android offer the use of the line 2 facility like 6.1?

I notice the huge Hype with the launch of the G1 phone, can someone offer some screen shots of what it looks like on the diamond please???

cheers
1st November 2008, 10:06 AM |#9  
zmob123's Avatar
Senior Member
Thanks Meter: 0
 
More
What???? Look I love Mobile phones, Ive bought every high end phone scince the Nokia 8800, but this is way beyond my pay grade, can you ell me how to do this? Im a junkie for utilities and Roms, and etc, but this is really past my skill level. Ive searched and read the thread but I can't get past the first stage. Please help me out, I really want to learn.
1st November 2008, 10:09 AM |#10  
ryousuke's Avatar
Senior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by liamhere

why not put this in the thread that is already running on this ????

why on earth does it need a new thread?

cause 581 pages is hard to follow... and OP has sumarized it well...


Quote:
Originally Posted by zmob123

What???? Look I love Mobile phones, Ive bought every high end phone scince the Nokia 8800, but this is way beyond my pay grade, can you ell me how to do this? Im a junkie for utilities and Roms, and etc, but this is really past my skill level. Ive searched and read the thread but I can't get past the first stage. Please help me out, I really want to learn.

dont bother usable android version isnt ready for general use (yet)...
1st November 2008, 10:35 AM |#11  
crystal_clear's Avatar
Senior Member
Thanks Meter: 0
 
More
not ready?
so how ready currently is it???

and do we have the choice of looking at screen shots???

does it support multi lines?

Was wm6.1 ready? - questionable!
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes