yashsingh1/xdaforums huggingface dataset:
[HD2 Android Q&A, Help & Troubleshooting and Genera] Tigrouzen:
Now i tryed change script in initrd init script then i have ( i cut mmcblk line and some thing to test on script) :

Freeing init memory 104K

Failed to executed /init file...

And reboot..

Im sure its in this file init script its the last probleme will have to find, because in this file its enumarated the mmcblk (sdcard) hardware, maybe its not correct.

Maybe im faulse.. :

#!/bin/sh

echo "Welcome to Vogue Linux"

PATH=./:/bin:/sbin:/scripts

export PATH

LD_LIBRARY_PATH=/lib

export LD_LIBRARY_PATH

mkdir -m 0755 /proc

mount -t proc proc /proc

mkdir -m 0755 /sys

mount -t sysfs sys /sys

#Configure Devices

fail() {

echo "Failed: $1"

/bin/hush

}

echo "Please wait..."

sleep 5 ( i try on finish mi init on this line..and then i got failed executed /init.)

MAKEDEVS

for i in 1 2 3 4 5

do

if [ ! -e /sys/block/mmcblk0 ] ; then

echo "Waiting for SD Card..."

sleep 2

MAKEDEVS

fi

done

if [ ! -e /sys/block/mmcblk0 ] ; then

echo "Trying fsck on the SD card"

dosfsck -y /dev/block/mmcblk0

fi

partition=mmcblk0p1

# Try unpartitioned card

if [ ! -e /sys/block/mmcblk0/$partition ] ; then

partition=mmcblk0

fi

if [ ! -e /sys/block/mmcblk0 ] ; then

echo "/sys/block/mmcblk0 not found, type 'exit' to retry"

/bin/hush

fi

partition=mmcblk0p1

# Try unpartitioned card

if [ ! -e /sys/block/mmcblk0/$partition ] ; then

partition=mmcblk0

fi

mkdir -m 0777 /sdcard

mount -t vfat -o fmask=0000,dmask=0000,rw,flush,noatime,nodiratime /dev/block/$partition /sdcard

[ $? -eq 0 ] || fail "Failed to mount the SD card. Cannot continue."

if [ -e /sdcard/android/rootfs.sqsh ]; then

root="/sdcard/android/rootfs.sqsh"

SQUASHFS=1

elif [ -e /sdcard/android/rootfs.img ] ; then

root="/sdcard/android/rootfs.img"

SQUASHFS=0

elif [ -e /sdcard/rootfs.sqsh ]; then

root="/sdcard/rootfs.sqsh"

SQUASHFS=1

elif [ -e /sdcard/rootfs.img ]; then

root="/sdcard/rootfs.img"

SQUASHFS=0

else

fail "Failed to find rootfs on SD Card. You need to unzip a rootfs zip file to the root of your SD card."

fi

echo "Found rootfs image, mount : $root"

mkdir -m 0755 /rfs

losetup /dev/block/loop2 $root

[ $? -eq 0 ] || fail "Failed to mount rootfs on SD Card."

if [ $SQUASHFS = "0" ]; then

#e2fsck -y /dev/block/loop2

mount -t ext2 -o noatime,nodiratime,sync,ro /dev/block/loop2 /rfs

[ $? -eq 0 ] || fail "Failed to mount rootfs"

else

mount -t squashfs -o noatime,nodiratime,sync,ro /dev/block/loop2 /rfs

[ $? -eq 0 ] || fail "Failed to mount rootfs"

fi

#mkdir -m 0755 /rfs/dev

if [ ! -e /rfs/dev ]; then

echo "RootFS /dev folder not found !"

/bin/hush

fi

mount -t tmpfs -o size=100K tmpfs /rfs/dev

cp -a /dev/* /rfs/dev

echo "Cleaning up..."

umount -l /proc

umount -l /sys

# start network

# ifconfig lo up

# ifconfig usb0 192.168.10.100 netmask 255.255.255.0 up

# route add default gw 192.168.10.1 usb0

# telnetd -l /bin/hush

echo "Switching to rootfs..."

exec switch_root /rfs /init
[HD2 Android Q&A, Help & Troubleshooting and Genera] Skywalker74:
Shouldn't we see this message "Welcome to Vogue Linux" when the script is executing? It is the first line in it. Thus, we are not getting in to it at all.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Tigrouzen:
I trying just put echo "something" on init file but all time kernel panic after freeing memory and reboot.

Why when init file its complete its hung up just on freeing memory and no reboot, then when i modified the script and erase all to just put like something echo "" or exec after #/bin/sh then kernel panic and reboot.

What can do on this script to works ?

i go faulse way ? The realy prob its kernel ?
[HD2 Android Q&A, Help & Troubleshooting and Genera] boimarc89:
Can android 2.1 be put on here if someone used bits and pieces from the nexus one dump?
[HD2 Android Q&A, Help & Troubleshooting and Genera] :
I have said this 1000000000 times, kernel hacking,driver assembly, and porting android to XXX device, is not an over night miracle, just because another device has the same basic hardware doesn't make it a piece of cake to port "android" to a another phone with similar basic hardware.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Tigrouzen:
Yes its same hardware but not take same way on mother board.

Just need hardware pointer and right spécification for right kernel pointing in device.
[HD2 Android Q&A, Help & Troubleshooting and Genera] kholk:
"set init initrd" isn't correct.

The correct parameter is "set initrd filename".

The Eugenia Project Developer

-kholk
[HD2 Android Q&A, Help & Troubleshooting and Genera] Tigrouzen:
Yep its ok, just mistake on write here.

I try all thing on script, no way problem its kernel image
[HD2 Android Q&A, Help & Troubleshooting and Genera] NetRipper:
The script itself won't executed when there is no interpreter. The first line of your script indicates "#!/bin/sh", which means that script is executed with the shell interpreter found at /bin/sh.

However, that binary is unable to execute for some reason. In your case it maybe that the interpreter is built for the wrong target or using a different (incompatible) toolchain. I haven't looked into it any further yet so I'm not sure what happens.

Dcordes built his kernel and (the contents of) initrd using the same toolchain, yet it didn't boot on. That kinda worries me :) Might be something with the kernel still...
[HD2 Android Q&A, Help & Troubleshooting and Genera] spastik:
open the initrd and check if you don't have another shell (like ash, gnash, bash, etc) and change the interpreter in the beginning of the script.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Skywalker74:
We really need some progress soon ...

Could you guys get in touch with some of your former Android developers, on your former HTC phone? The most of you had an old phone before HD2, and you probably tested Android on that phone, I hope. :-) In my case it was Polaris.

I can ask in the Polaris forum whether there is anyone who would like to help us or maybe give us some tips ...
[HD2 Android Q&A, Help & Troubleshooting and Genera] Tigrouzen:
Now everything ok about compil initrd, i try your trick (ash, gnash...)

I posted new thread for who want participe adventure to make and modified kernel and initrd. Cause Netripper have no time i do it for him, tell me if something wrong or you can bring news information about it.

http://xdaforums.com/showthread.php?t=631216

What about this Netripper :

http://patchwork.kernel.org/patch/55275/
[HD2 Android Q&A, Help & Troubleshooting and Genera] Skywalker74:
Well done! :-)
[HD2 Android Q&A, Help & Troubleshooting and Genera] loney_frsu:
who can share all the files with installation picture.

thanks
[HD2 Android Q&A, Help & Troubleshooting and Genera] mattheuserb:
I'am also interested of an package to download.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Tigrouzen:
http://xdaforums.com/showthread.php?t=631216
[HD2 Android Q&A, Help & Troubleshooting and Genera] dcordes:
if you are looking for something working, there is nothing interesting here.

the thread title clearly states it's for developer's discussion.
[HD2 Android Q&A, Help & Troubleshooting and Genera] dmonuk:
So.... Does anyone know if there will be a decent stable ROM for the Leo with Android 2.0? or 2.0.1?...

Would be blinking awesome!!!
[HD2 Android Q&A, Help & Troubleshooting and Genera] skiwithpete:
I love it when people write this stuff....

The short answer is no.

The long answer is, likely by the time we're able to boot Linux on the HD2, 2.1 will be long obsolete.

But, keep checking back. I will.
[HD2 Android Q&A, Help & Troubleshooting and Genera] precsmo:
I wish so much that I could involve developing this too, too bad I really have no idea about these stuffs:o:o:o keep up the good work, really hope there is an Android fully working for our HD2 one day!
[HD2 Android Q&A, Help & Troubleshooting and Genera] bbezja1:
and you are littering the thread. thank you.

now before you write a new answer: i am asking you to stop writing useless stuff unrelated to developing or testing. thanks
[HD2 Android Q&A, Help & Troubleshooting and Genera] Tigrouzen:
Android porting its not just porting with question or ask about Android, we need help with really developer on kernel driver.

This is the way we took to advance porting it on HTC Leo.

Or real promise donate for a developer then maybe developer interesting to work for us on HTC Leo cause the hardware its different way.
[HD2 Android Q&A, Help & Troubleshooting and Genera] spastik:
I've already asked in another thread but here it goes again :

How can I try to boot a compiled kernel ? I have a micro sd card to tu use but I don't now the exact procedure to try to boot. I heard you talking about a partitioned sd card, a default file but what should I do exactly ? Where is the manual ?

Thanks !
[HD2 Android Q&A, Help & Troubleshooting and Genera] precsmo:
I was only trying to compliment and indirectly thanks everyone for the hard work and now I was being bash??? this is really funny? why are you being so rude? I wasn't even asking anything from anyone, just to write a little of my appreciation and I was being bash by you, I'm ****ing off now if you really wish to, good luck to you.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Tigrouzen:
Just copie Haret Image initrd.gz and default.txt file to SDCARD and exec Haret then run.

You can find it on Netripper/leo links
[HD2 Android Q&A, Help & Troubleshooting and Genera] spastik:
Thanks !

I have another question :

Does any one have any idea about the model/brand of the NAND chips used in the htc HD2 ?
[HD2 Android Q&A, Help & Troubleshooting and Genera] _X_:
http://xdaforums.com/showthread.php?t=624331&highlight=pictures+inside
[HD2 Android Q&A, Help & Troubleshooting and Genera] jsd2:
I think you've caught on to microsoft's winmo 7 plan
[HD2 Android Q&A, Help & Troubleshooting and Genera] jackhappy:
Android 2.0 source was just released... For those that are working on porting Android to the HD2, are the plans to use 2.0?
[HD2 Android Q&A, Help & Troubleshooting and Genera] borillion_star:
Jesus finally they released after sitting on it!

As for the zune, they have a touch one don't they now :D

Mmmmm I smell androids cooking potential there.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Megacamz:
This needs to happen, doesnt the HTC Passion have really similar specs and runs android 2.0?
[HD2 Android Q&A, Help & Troubleshooting and Genera] MrADeveci:
I would defo consider purchasing this phone ... if an Android port was considered!!
[HD2 Android Q&A, Help & Troubleshooting and Genera] tids2k:
http://htc-linux.org/wiki/index.php?title=Leo :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] MrADeveci:
Still no rom for it though .... but good to see a development in process.

My upgrade is due on Wednesday ... and I don't know what to do now !! :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] tids2k:
it takes time to port something on to something. if you cannot wait just buy something else that interests you.
[HD2 Android Q&A, Help & Troubleshooting and Genera] MrADeveci:
I am aware of the porting timescales .... I was just saying :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] rockky:
Soooo.....you'd consider buying the HD2 now and basically live off edge-like speeds, while waiting for Android to be ported??

Soon as I gathered all info on HD2, I committed to it too, and'd LOVE android 2.0 on it, but edge seems a dealbreaker for now...not u?

(I can actually pick one up tomorrow morning!)
[HD2 Android Q&A, Help & Troubleshooting and Genera] aurash:
Just a suggestion but android 1.6 is already running on the Sony Ericsson Experia x10, which runs off a 1ghz snapdragon core.

I now the SE Xperia X10 is not officially out but there seem to be a fair few pre-production devices flying around.

Would it not be simpler to make that the starting point for porting android onto the HD2, then once you have the base OS/Chipset working, start porting SenseUI and other drivers for htc components from the Hero or Magic?

I'm not a developer by the way, so this is just a suggestion.

so do not chew my head off if I am completely off target, and sound like a babbling lunatic

But if I am honest from what I have seen of the HD2, HTC seem to have fixed a lot of CRAP things about WinMo and it looks all in all a great device WinMo OS and all.

I intend to get the HD2 and just leave it as it is, and hey if HTC do create an android device maybe during Q4 next year running off the new qualcomm snapdragon 45nm dual core! the guess what my next upgrade is due again.

For everyone else if you want a 1ghz snapdragon phone running android with a big screen, why not just wait till jan / feb and get the SE Xperia X10. Saves a lot of headache in the meantime.
[HD2 Android Q&A, Help & Troubleshooting and Genera] zellbz:
Not everyone lives in the US so Europeans would enjoy their HD2 with 3G while we in the US would "live" on edge with the HD2. That is until a US carrier pick up a HD2 that supports their US 3G or EV-DO.
[HD2 Android Q&A, Help & Troubleshooting and Genera] scilor:
I would like to have Android on it, but I primarily work with WM just because I am a .Net developer :D

The Android on a Kaiser isn't THAT fine ;)
[HD2 Android Q&A, Help & Troubleshooting and Genera] JLowe:
how about this:

w8 until the HTC Dragon release with Android comes out which has the same processor.

Then making two light slim custom Roms - one with WM6.5 - another with Android 2.0 and then a Dual-Boot option.

Hope that suggestion don't offence against any copyrights or so...
[HD2 Android Q&A, Help & Troubleshooting and Genera] risterdid:
i hope to see a ported Android rom on the HD2. The phone will be pretty much perfect if it ran Android, preferrably 1.5 cupcake since the UI looks nice.

HD2 + Android = FLAWLESS

as for the 3g in the US, i hope the hd2 comes to t-mobile since it's scheduled to launch early 2010. currently on edge.
[HD2 Android Q&A, Help & Troubleshooting and Genera] madindehead:
To be fair, the HD2 and a ported version of Android 2 will probably have more problems than the HD2 and it's current WinMo 6.5 ROM! For a while at the start at least.

You do all realise, that while in theory it may sound excellent (and I have to agree I too would be sorely tempted to put Android on my phone) it will be crap at the start.

The physical process will be long and hard, and I bet it will stall several times, when people realise what they have actually taken on, and have no patience or time for it.

The amount of bugs at the start will probably be hellish, and probably be highly inefficient.

I am not trying to be pessimistic but there are so many of you saying the HD2 and Android 2 will be flawless. Eventually perhaps. But it's a long road to pure perfection! Look at the custom ROMs than run off WinMo 6.5. Some of those still have bugs and how long have the chefs been using WinMo 6.5 and Manila 2.1 and 2.5 for now?

And by the time it is complete there may even be a new version of Android out.

In time, HD2 and Android my be flawless. But don't go crazy over something that will most likely be rubbish to begin with.

And please, it's the HTC HD2, NOT the HTC Touch HD2...
[HD2 Android Q&A, Help & Troubleshooting and Genera] lightlancer:
first of all, HTC Touch HD2 or HTC HD2, i dont care! and i know alot of people will agree with me!

Second, you might be right that android will not work 100% in the beginning, but when you will develop a new OS, it takes also a long time and your first build will also NOT be working complete, infact, i might not even work at all!

So please, look it from the bright side, look at the specs. the HD2 is capable of running android, it just takes time for the dev's to work out the OS and drivers and other stuff.

Third, Try to be a little Optimistic, and if you cant, please keep your message for yourself, there are alot of people hoping for an android build for the HD2 and these messages are not really helpfull.
[HD2 Android Q&A, Help & Troubleshooting and Genera] madindehead:
My message was meant as a response to all the people saying "HD2 with Android will be flawless!!!1111!"

They seem to be forgetting slightly, that this is going to take a LONG time, and have a lot more bugs and issues at the beginning than WinMo does now.

As there actually been a successful port of Android to a WinMo device yet? One which is fully working and can be used everyday.

It was meant as a reality check more than anything else. The majority of the posts in here seems to be overly optimistic, and think that this will work 100% from the start and be the best thing since sliced bread.

As this is a forum lightlancer, surely am I allowed to express my opinion. Or is that not allowed anymore?
[HD2 Android Q&A, Help & Troubleshooting and Genera] kholk:
I think that WindowsMobile for now is just fine as OS.

Take notice that the HD2 will have a ROM update for WM7, built with a new CE kernel, not the old and junk 5.2 kernel that is used since WindowsMobile 5.0!

The new kernel is compiled only for new CPUs that supports ARMv6 (and later, but "later" is in the future.) and you can imagine the new improved speed of this, since the 5.2 kernel uses ARMv4 instructions.....

However, as for Android, I think that when the new HTC Dragon will be released, the OS will run without any problem even on HD2, because the HTC Dragon has got the same hardware of HD2.

I think that we will have a choice of having an HTC Dragon or an HD2 having only one of these devices ;)

(HD2 looks really great!)
[HD2 Android Q&A, Help & Troubleshooting and Genera] Beefheart:
Shut up. If listing the possible issues that would initially occur following Android being ported to the HD2 is difficult for you to read then don't and go elsewhere, this is a forum after all. It was hardly an unreasonable post.
[HD2 Android Q&A, Help & Troubleshooting and Genera] MiZi666:
hey dev's, whats up? :D

any news? ^^
[HD2 Android Q&A, Help & Troubleshooting and Genera] Sultan1993:
is there any news? :D

looking forward to see android on our HD2
[HD2 Android Q&A, Help & Troubleshooting and Genera] stokedanuk:
If there was news it would be posted here... Stop asking and just keep an eye out like the rest of us.

Be patient and stay out of the way and let the devs have a constructive conversation!
[HD2 Android Q&A, Help & Troubleshooting and Genera] bbezja1:
i was only trying to stop you to only try to compliment and blah blah and same goes for everyone else. if you are grateful for pending development then donate them. there is nothing you can buy with "thank you"

SAME GOES FOR EVERYONE!! STOP LITTERING THE THREAD
[HD2 Android Q&A, Help & Troubleshooting and Genera] kuroz91:
Hey bbezja1,

Stop being an asshole, I am sure you don't even know how to declare a function!

Sorry that your mother was your father's sister, that's the only thing that could excuse you, Mister "I AM IMPORTANT AND YOU OTHERS ARE ****BAGS"
[HD2 Android Q&A, Help & Troubleshooting and Genera] simranjits:
Actually bbezja does know how to declare a function , but he doesn't know how to call it. He has explained this handicap several times already. Please search before posting.
[HD2 Android Q&A, Help & Troubleshooting and Genera] spastik:
The main problem is that fact that we don't have compatible drivers with the storage card hardware.

And without that we can mount the filesystem. That's why the kernel is crashing saying "unable to mount rootfs".
[HD2 Android Q&A, Help & Troubleshooting and Genera] Oberoth:
isnt it the same hardware as it is in the nexus one???

i mean the storage card reader...
[HD2 Android Q&A, Help & Troubleshooting and Genera] Starfury:
HTC Desire running Android 2.1

http://www.htc.com/uk/product/desire/specification.html

Same CPU, ROM, RAM, Screen Resolution, Sensors, Network bands, etc.

Looks almost the same specification with the exception of the OS.

If the hardware is the same would porting of Android 2.1 to the HD2 be possible if someone had one of these phones and dumped the ROM?

Side note - 500th post woot ;)
[HD2 Android Q&A, Help & Troubleshooting and Genera] shu8i:
it's like the nexus1 isn't it? why should the desire make any difference in porting android? the devs already have an almost same android hds (nexus1).
[HD2 Android Q&A, Help & Troubleshooting and Genera] Dr.Sid:
I would gladly donate. But is there any progress at all ? Any chance it ever will work ? This project needs some home where it will track progress.

Don't be surprised people ask stupid questions.
[HD2 Android Q&A, Help & Troubleshooting and Genera] hd11:
my haret does not work!What I do?
[HD2 Android Q&A, Help & Troubleshooting and Genera] [★]:
So once youve got haret running on the leo, whats the next step to installing android?
[HD2 Android Q&A, Help & Troubleshooting and Genera] Crash1983:
forget it.

With basic knowdlege you have no chance. The few people who are maybe working on this have kernel problems. Not android is the problem, but the linux kernel under the hood.
[HD2 Android Q&A, Help & Troubleshooting and Genera] [★]:
Yes, I think Im alooooooooooooooooooong way off knowing anything about Android atm :rolleyes:
[HD2 Android Q&A, Help & Troubleshooting and Genera] cr2:
You download the latest compiled version from Netripper's site, or compile

the latest git.
[HD2 Android Q&A, Help & Troubleshooting and Genera] cr2:
The technical progress can be tracked here:

http://htc-linux.org/wiki/index.php?title=Leo

Nobody is porting or adjusting android at that time, because the right job is to track all

differences with the nexus kernel.
[HD2 Android Q&A, Help & Troubleshooting and Genera] cr2:
There ARE differences between these devices, ans some of them are substantial.

Here are some side by side comparisons, and that's not all, rpc numbers coming next:

http://htc-linux.org/wiki/index.php?title=I2C_IDS

http://htc-linux.org/wiki/index.php?title=Leo_GPIO
[HD2 Android Q&A, Help & Troubleshooting and Genera] xaoc747:
Please make working ready Android to run it on HD2! Is it possible or not?
[HD2 Android Q&A, Help & Troubleshooting and Genera] chribruu:
Read the thread
[HD2 Android Q&A, Help & Troubleshooting and Genera] :
Yes its very possible, go to your local grocery store and get yourself a brand new brain, good luck.

sincerly

Rafyvitto
[HD2 Android Q&A, Help & Troubleshooting and Genera] [★]:
Ziiiiiiiiiiiiiiing!
[HD2 Android Q&A, Help & Troubleshooting and Genera] tids2k:
hehe ... :)

nice one bro ... hows ur acer f1 doin' ported linux on it yet ?
[HD2 Android Q&A, Help & Troubleshooting and Genera] cr2:
tids2k, can you check your board id, lcd panel type, and multitouch psoc id in wince dmesg ?
[HD2 Android Q&A, Help & Troubleshooting and Genera] d3sm0nd:
HTC Desire's hardware is almost 1:1 to the HTC HD2... would this make a port easier?
[HD2 Android Q&A, Help & Troubleshooting and Genera] tids2k:
cr2 i dont have a computer at the moment to get the infos. haret console will work only thru win, any other method u want to suggest.
[HD2 Android Q&A, Help & Troubleshooting and Genera] xaoc747:
Buy brain yourself!!! I insulted you?? So what's a matter a?
[HD2 Android Q&A, Help & Troubleshooting and Genera] nyoto:
Well in fact your question is just totally stupid ... or you haven't even read the whole subject !!!

That's it, if you're interested just try to get the information and read (don't even need to be a cook to do that !!!)

If you just want android on a phone without even having to read or to wait, just buy another phone !!! :p
[HD2 Android Q&A, Help & Troubleshooting and Genera] xaoc747:
Your tongue so long, not?;)
[HD2 Android Q&A, Help & Troubleshooting and Genera] cr2:
telnet is enough, or even just a 'pwf my_wince_dmesg 0x1fe00000 0x200000'

in startup.txt ( or default.txt +Run)
[HD2 Android Q&A, Help & Troubleshooting and Genera] mikesx4911:
I agree with you, people dont read, and they expect android to just fit onto the phone like a glove. Dont buy this phone expecting android to be able to be ported to it. Take it as a blessing if someone gets it to work and you better pray that windows decides to give the hd2 windows mobile 7 lol. As of that, keep up the good work on the port guys :-)