Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
View Poll Results: What would you like best on your HTC HD2 ?
Windows Phone 7 206 15.20%
GNU/Linux and Android 1,083 79.93%
I'm happy with the shipped HD2 operating system 66 4.87%
Voters: 1355. You may not vote on this poll

 
Post Reply+
Tip us?
 
foyaeman
Old
#351  
Member
Thanks Meter 0
Posts: 43
Join Date: Jun 2009
Quote:
Originally Posted by Sheraz150 View Post
Ah that makes sense. So it is possible to boot android, but not be able to use it lol? It would still be impressive.
According to what dcordes just posted, yes I guess it is possible to boot Android albiet missing certain drivers. Not sure which ones are working and which aren't, but it would be a fun POC (like the linux video player) .
 
dcordes
Old
(Last edited by dcordes; 19th May 2010 at 09:00 PM.)
#352  
dcordes's Avatar
Elite Recognized Developer - OP
Thanks Meter 240
Posts: 703
Join Date: Nov 2007

 
DONATE TO ME
If you want to try android I recommend grabbing some image files for nexus one as a start along with the kernel and other files from my hd2 media player build.

Google don't care for conformity so they use the yaffs2 file system that's not in mainline. At least they provide a C program called unyaffs which is useful to extract the images.
This will get you system.img files.
Additionally you need to to look at boot.img . This has kernel and an initrd.cpio.gz with init scripts and the strange busybox mutation (again no conformity. why not using busybox? it's ridiculous they obfuscate everything for no reason) to prepare the android start. There is some perl script out there called unpack-bootimg.pl which is helpful.
Soon as you got everything extracted and started looking at what the init.rc script in the initrd.gz does you will notice it tries to mount the system and data image files from nand. We don't have that so you have to work your way around this. e.g. use my angstrom builds for the mdia player to mount a repacked system.img loopfile or extract system to some sd partition. afterwards execute the android init . maybe modify the android initr.rc .

edit: btw thanks for the pointer with the bravo kernel.
What I do
* port Linux (kernel) to HTC phones like the hd2
* document everything about development and make it easily available
* provide non-Android distros for Linux enabled HTC phones for more diversity
Publicly accessible tech wiki htc-linux.org
My personal twitter
dcordes
 
erikvario
Old
#353  
erikvario's Avatar
Senior Member
Thanks Meter 11
Posts: 322
Join Date: Jan 2009
Location: kaatsheuvel
Quote:
Originally Posted by Crash1983 View Post
I don't think the ramt rick is causing the trouble.

Phones with the same setup (Same ROM, same Radio) show a different behavior.

Assuming that there are no differences in hardware, the problem has to be a little thing we all forgot. So we have to compare.

Could the boot loader be a reason? I am using HSPL 2.08 and have no success....
i don't think so,
cause we load another bootloader and close the wm that will access the radio or something like that

but that's only what i think with things i learned on this kinds of threads


my phones:
Galaxy SII

Sensation damaged

HD2 sold

MDA vario in box with custom rom

sony ericsson w300i brother broke it 2 time WSOD

lg l342i now somewhere in a box (dead)

nokia 3410 somewhere in box.

siemens s35i (dunno where it is)
 
Finezt
Old
#354  
Finezt's Avatar
Member
Thanks Meter 0
Posts: 70
Join Date: Jan 2010
Location: Paramaribo
Quote:
Originally Posted by dcordes View Post
If you want to try android I recommend grabbing some image files for nexus one as a start along with the kernel and other files from my hd2 media player build.

Google don't care for conformity so they use the yaffs2 file system that's not in mainline. At least they provide a C program called unyaffs which is useful to extract the images.
This will get you system.img files.
Additionally you need to to look at boot.img . This has kernel and an initrd.cpio.gz with init scripts and the strange busybox mutation (again no conformity. why not using busybox? it's ridiculous they obfuscate everything for no reason) to prepare the android start. There is some perl script out there called unpack-bootimg.pl which is helpful.
Soon as you got everything extracted and started looking at what the init.rc script in the initrd.gz does you will notice it tries to mount the system and data image files from nand. We don't have that so you have to work your way around this. e.g. use my angstrom builds for the mdia player to mount a repacked system.img loopfile or extract system to some sd partition. afterwards execute the android init . maybe modify the android initr.rc .

edit: btw thanks for the pointer with the bravo kernel.
Wow i'm really lost right there
Can u clearify the one and other
maybe u can provide us a progressive scheme as most of us don't know where to start
(At least I ain't and I follow this daily)
 
newshaggy
Old
(Last edited by newshaggy; 19th May 2010 at 10:06 PM.)
#355  
Member
Thanks Meter 1
Posts: 32
Join Date: Feb 2010
Default would you recommend

would it make sense to try some of the haret based images that are known to work on other devices to see how far it gets... although cant think of any wm devices with similiar specs to the hd2 with android working through haret.

ps) most likely wishful thinking, cant be that easy.
 
TonyCubed
Old
#356  
Senior Member
Thanks Meter 23
Posts: 224
Join Date: Mar 2010
Don't take offence to this, but if you don't understand what he means then you shouldn't bother. The actual developers are working hard to get this working as it is and he's calling on more developers to try and help. If you don't know whats going on by following the thread, you will most likely get lost doing this.
 
tdh_andy
Old
#357  
Junior Member
Thanks Meter 1
Posts: 14
Join Date: Nov 2008
Quote:
Originally Posted by Finezt View Post
Wow i'm really lost right there
Can u clearify the one and other
maybe u can provide us a progressive scheme as most of us don't know where to start
(At least I ain't and I follow this daily)
In a nutshell: unpack stuff from google build of nexus one rom. edit stuff in it so it knows where to look for things(nexus one looks for stuff in internal memory -ROM- but we work on the SD card). Repack everything for haret and try...if some drivers are missing or some settings are wrong you may not get much.
For example when the GUI loads it may not display anything because of different screens.
Like you would take a linux machine(desktop) with a xorg.conf file and put another monitor on it with different refresh rates supported, different color depths and so on, the monitor will not support the default xorg.conf settings and may not display anything. But in modern distros X knows how to do autodetect an do stuff right.
In an emebeded OS usually you don't have things like hardware autodetect because you don't change hardware, so any setting in the nexus one files that doesn't match with HD2 hardware will give problems and will need tracking and solving. It may not be as easy as he makes it sound...or we could just be lucky and have everything(that has a driver in the kernel) working right the first try.
 
Finezt
Old
#358  
Finezt's Avatar
Member
Thanks Meter 0
Posts: 70
Join Date: Jan 2010
Location: Paramaribo
Alright thanks I'm going to try this
* download the unayffs
* download a original nexus one rom
* extract the boot.img from the .zip file
* put these files included the latest kernal ( the one with 20mb )
* than try to start if don't i'll play with the settings maybe I could figure it out
then i'll let you know
Correct me if I'm doing something wrong
 
jubeh
Old
#359  
jubeh's Avatar
Senior Member
Thanks Meter 15
Posts: 1,259
Join Date: Mar 2009
give me a list of files that must be edited in an android build (I'm thinking mostly having to edit init.rc and init.device.rc to match the new filesystem), the changes I have to make (new mount points), and instructions on how to make the system, userdata, and ramdisk images haret uses, and I'll test a build and post if it works.

I'm something of an android dev, but up to now I've only worked with an android device (dream/sapphire) which is pretty no-nonsense about what you have to do (flash-mount boot.img to boot, system.img to system, and data.img to userdata.img), plus the mount points are pretty much unchanged coming from AOSP.

I guess I'll have a look at the rhodium builds and see how much they differ from an actual android device's build. Something I remember from poking at it is that the images (system, userdata) are no longer yaffs but something else.

I'll check.
Best reference thread ever: Learn to compile your own AOSP build (for sapphire, but applies to dream too)
 
lstrike
Old
#360  
Senior Member
Thanks Meter 1
Posts: 118
Join Date: Apr 2006
I understand that we are currently in POC stages albeit pretty far along thank to all involved. My question is ultimately when this becomes stable down the road and is running Android will we be running this on internal memory and not sd cards?

 
Post Reply+
Tags
android, connection, development, hd2, hd2 android, htc android, kernel, linux, ubuntu
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...