yashsingh1/xdaforums huggingface dataset:
[HD2 Ubuntu Development] hunterd974:
My HD2 won't launch Ubuntu

Hi everyone,

I still have the black screen problem. When I launch HARET.exe : there is something writen on my HD2 while 2 seconds and then it fades and the screen stay black.

I have HSPL 2.0.8 on my phone.

I have the cooked rom Duty HD2 v21 that I downloaded on this page http://xdaforums.com/showthread.php?t=610634 .

I installed a cooked rom just to get Ubuntu work.

I tried to format my micro SD card with the software specified before in the thread (SDFormatter), I'm looking in the task manager to make sure there is no other programs running in background and its the same thing happening.

My ubuntu directory is on my main directory and is named "linux".

I read all pages of this thread.

Please help.

I thank you in advance.

[EDIT]

I'm sorry I didn't see the solution was to update my Radio ROM. The solution was given in http://xdaforums.com/showthread.php?t=776411&page=2 .

I hope that the repetition here will help some people. Now it works great.
[HD2 Ubuntu Development] dumbquestion:
I love this- hope dev. continues. I can't wait for sound. Thanks.
[HD2 Ubuntu Development] siwyzg:
wow it's cool
[HD2 Ubuntu Development] dobreandl:
...

Is there a way to run it form a 2 gb sd card ?
[HD2 Ubuntu Development] Theonew:
No you can't run it from a 2GB SD card. When you extract the files it is approximately 3GB. You should have at least a 4GB card although i recommend 8GB.
[HD2 Ubuntu Development] imthewillieg:
no program recognizes HARET.exe,

And how do you load with mgldr
[HD2 Ubuntu Development] dobreandl:
I download it and I saw but I was thinking it is like android images 512mb - 1 gb depends on users preference :P thank you
[HD2 Ubuntu Development] andboy:
You can use "mount -o loop" to mount the rootfs.ext2 file on a Linux PC. Then use du to see how much space is actually used.

If it's not too large you can try making a smaller filesystem with dd and mkfs.ext2. Then copy everything from where you mounted rootfs.ext2 into your new filesystem and unmount it.
[HD2 Ubuntu Development] Theonew:
How can no program recognize HARET.exe? Did you install android or any other operating system to the nand memory of the phone? Did you copy the entire extracted folder to the sd card? If all was done correctly then the HD2 should recognize it since its a Windows Mobile Phone. I do not think there is a way to load with magldr... as yet..
[HD2 Ubuntu Development] GuimbardePower:
There is a way to boot it via MAGLDR, but i dont know how to do it...

If you look at some previous post you can find a file named "linit" posted by danjiel to boot android via MAGLDR. But I dont know how to add it at the file system...

If you find a solution tell me because I wan't it too! :P
[HD2 Ubuntu Development] youngdaddytc:
cool

well this is very cool. nice work so far. im looking forward to the next version :-)
[HD2 Ubuntu Development] bulanula:
Me too guys ! Make it work from NAND using MAGLDR and I am sold !

THANKS !
[HD2 Ubuntu Development] lorezz:
any chance to get this ubuntu project working with clk ?
[HD2 Ubuntu Development] imthewillieg:
Yes I have done all this i see the file but the phone says no program is avalible.

And if you read the original post it says in the 8th line and i quote "-It will be bootable via cotulla's MAGLDR and HaRET (Handhelds Revers Engineering Tool)"
[HD2 Ubuntu Development] Theonew:
Try installing a new file explorer then run it (HaRET.exe) again. If that doesn't work, try downloading a new HaRET.exe from here: http://search.4shared.com/q/1/haret.exe?suggested, then run it again.Hope this helps.:). One more thing... You said "Yes I have done all this...", and in the previous post I asked you if you installed an android build on the NAND memory. If you did and still have it there, then THIS WILL NOT WORK. Make sure you are running Windows Mobile 6.5 or 6.5.x on the NAND memory in order for this to work.
[HD2 Ubuntu Development] bin01t:
usb host is great; keyboard and mouse worked ;

but i tried an usb-wifi (ralink and realtek) and cannot install driver.

very few (dont remember wich ) are supported.

its like a dream to use aircrack in my hd2 (aircrack-ng, grim wepa, gerix,wepbuster , airoscript etc...)

i nearly got it but kernel headers not there i think its not possible...

keep dreaming....

thanks
[HD2 Ubuntu Development] bergfex:
I made this booting on an Desire HD.

I hope this is fine for you?
[HD2 Ubuntu Development] liljom:
hi

I help bergfex to make ubuntu usable on DHD.

He made it to boot up, but how can we get the touchscreen to work?

where can we set ubuntu to use the touchscreendriver in boot.img?
[HD2 Ubuntu Development] akash2924:
How to attach USB Keyboard? :D
[HD2 Ubuntu Development] Theonew:
You could get one with a "USB" port which is shaped like the one at the "PC end" of your phone's usb cable and then connect it.:)
[HD2 Ubuntu Development] sebazzz:
how did you?
[HD2 Ubuntu Development] Therev86:
been trying at this for days now, i've tried ES file Explorer, Astro, Root File Explorer and even downloaded diffrent haret.exe's and every application i run it under it just wont open, i get the error "file type not found exe" what am i doing wrong?
[HD2 Ubuntu Development] wintmulder:
why

why doesnt it work on my hd2 i've tryed and failed

, don't know what i do wrong
[HD2 Ubuntu Development] Theonew:
Do you have android installed on the NAND memory of your HTC HD2? By the looks of it you do since you mentioned apps such as "ES file Explorer, Astro, Root File Explorer" and it says "file type not found exe". This cannot be lauched from android. an .exe is for windows and windows mobile. In this case it's for windows mobile. You have to be running windows mobile to be able to lauch an exe file and boot in Ubuntu. So basically if android is installed th NAND memory of your phone, you can't run this. You would have to flash windows mobile to be able to use this. If its installed on your SD card (highly unlikely because you would have tried this already) boot into windows mobile and launch it.:cool:
[HD2 Ubuntu Development] Theonew:
Do you have android installed on your phone? If so, read my previous post and you will know what you're doing wrong.
[HD2 Ubuntu Development] hopkinskong:
I can tell you that there was already a similar product, did u mean this?

http://www.dealextreme.com/p/solar-...t-hub-with-white-light-2-led-flashlight-48411

I am going to but that later, but idk how long can the battery used for such "big" energy usage lol

I am also did a long time on my USB sound card, my system sound was work, but mp3 player didn't...

And on my Bluetooth, my ubuntu recongized my Bluetooth device, but the services wasn't detect my usbbt...

Recently, i just got my Chromium work on my hd2, and i am finding a way to make the flash plugin work.. But i can't find a proper .so linux library decompiler!

One more thing, somebody asking using usb keybard/mouse on ubuntu, but i can tell you that, there was a more easy way, use Synergy!

http://synergy2.sourceforge.net/

Windows as Server, HD2 as Client! Using Wi-Fi connection, so you can use Windows' keyboard+mouse to control the hd2!
[HD2 Ubuntu Development] Therev86:
Oh dear lord, *facepalm* it IS running Android on the NAND, never entered my mind about WM! sorry about that mate, and thanks for the help! i was saying to myself at the time "HOW does this work? i know Android can't run .exe's only Windows can, it's a Windows binary!" and it STILL didn't occur that i needed Windows Mobile :P
[HD2 Ubuntu Development] diesburg:
So anyone interested who can maybe get this to work all the way, I got this to boot with cLK bootloader. All I did was use the fastboot command "fastboot -c "" -b 0x11800000 flash:raw boot zImage initrd.gz" and used the zimage and initrd.gz included with the ubuntu build..... it boots all the way, I see my ubuntu desktop and the keyboard for a second..... then it reboots..... my thoughts on how to use this with android on nand are to just use CWM to backup the boot partition after you do that fastboot command to write the kernel to the boot partition..... then restore the boot image with advanced restore when you want to boot linux... then restore back to your android builds required boot partition that you backed up when you want to boot to android.,.....I know there are better options in the near future like booting ubuntu straight from android... but for now, I thought this is probably just a small thing in the kernel causing it to reboot that could be fixed...... anyone have any suggestions on what I could do to stop it from rebooting everytime, I would love to hear....
[HD2 Ubuntu Development] MM2forever:
Turn off Phone

How can I turn of the phone functionality of this ubuntu version?

I searched the web but i couldnt find anything....
[HD2 Ubuntu Development] Theonew:
Try placing your phone in airplane mode first, and then run Ubuntu. Hope it helps.:)
[HD2 Ubuntu Development] MM2forever:
Good Idea, but unfortunally this doesnt help because settings in WM, even if they point to hardware stuff dont change anything for Ubuntu - Ubuntu controlls the hardware on its own.

I found out clicking right on the Phone-Meter Icon shows up a menu where you can select "Exit", the question is, is the phone function really off then? :confused:
[HD2 Ubuntu Development] imperiallight:
Have you tried a CM7 based rom like hyperdroid
[HD2 Ubuntu Development] foxzhao:
that's awesome,let me try this out...
[HD2 Ubuntu Development] diesburg:
How would that help me boot this with clk? Or you mean use the kernel from hyperdroid? Anyways, thats all i use....hyperdroid....but I don't think android or an android kernel could be of any use......unless I can hotboot from android... which isn't possible yet.....anyways, I love ubuntu on the hd2 of this version after I made my usbhost Y cable and can use my wireless usb mouse and a keyboard.... but I'm just not willing to flash to windows mobile everytime I wanna use it and flash back to android back and forth constantly.... or willing to use an sd version of android.... so I guess Ill just have to wait for this to be updated....
[HD2 Ubuntu Development] lorezz:
great news....
[HD2 Ubuntu Development] GuimbardePower:
Yes, that's a very great news :D
[HD2 Ubuntu Development] bigfdaddy:
Can't wait been very interested for while but just haven't made the jump yet guess to chicken lol :-)

Sent from my Nexus One
[HD2 Ubuntu Development] Knucklessg1:
Can you add support for Danij's HD2 Toolbox? I really love this build!
[HD2 Ubuntu Development] gorelshv:
+1

That would be great
[HD2 Ubuntu Development] antoniof:
I seached in the forum but was unable to find out if somebidy actually succeeded in building a displaylink-mod linux kernel framebuffer driver.

If the answer is yes than i would be grateful if someone can give me a link where i can download the driver. Since i'm not a linux guru an howto install guide would also be welcome.
[HD2 Ubuntu Development] diesburg:
Wow, it was talked about, requested and almost begged for this to be bootable and usable on magldr..... you post a for sure step by step solution.... and now no replies, nothing...lol.... thanks for the quick guide there.... I'm going to try it out but with cLK instead of magldr...... as far as I know, the rebooting once it first loaded up with cLK is the same thing it did with magldr.... so maybe it'll work.... I'll post results....
[HD2 Ubuntu Development] GuimbardePower:
Thank's for the solution!
[HD2 Ubuntu Development] kolo200:
mrmaffen Your solution works :D thanks thanks thanks :D:D:D

but touch screen not work :( wifi and bluetooth not work :(

any idea???
[HD2 Ubuntu Development] nikola360:
rc.local

i have always the same problem with reboot.....can someone post modded rc.local?
[HD2 Ubuntu Development] Da-Don:
can any1 plz share a modified rootfs.ext2 for magldr?
[HD2 Ubuntu Development] gmatkar:
not working on hd2

This doesnt works on my HD2. tried a lot and gave up. shows small fonts (very small) up to 04 lines & then goes black for more than 15 mins. any solution will be helpful.:confused:
[HD2 Ubuntu Development] Theonew:
Did you read the warning?.. The text in red:

"please notice, that you wont be able to use the touchscreen"

. He warned you about this so what do you expect.
[HD2 Ubuntu Development] kolo200:
warning appeared later (edited post?)

where you have a warning about the wifi and bluetooth???!!!

Theonew not helping!!! Do not disturb!!! unless you know how to run the wifi?? :p

mrmaffen do not worry, your walkthrough is great, I have no objections, a huge thanks for the effort (your work) :D I finally have ubuntu without android :D

huge thank to everyone working on the project ubuntu hd2

(sorry for bad english)
[HD2 Ubuntu Development] kolo200:
how to connect to the network by the usb? What set on PC?

does anyone know how? help?

Theonew, thank you already...
[HD2 Ubuntu Development] nikola360:
i made this "USB Station" for HD2 that has Ethernet USB Adapter too

unfortunately i can't say you if it (ethernet adapter) works becouse despite i used THIS Tutorial i have always reboot problems....so i ask if somebody can send me or post here modded rc.local
[HD2 Ubuntu Development] Theonew:
I wasn't talking about the wifi and bluetooth.. obviously. I was only talking about the touchscreen not working.
[HD2 Ubuntu Development] mrmaffen:
I didnt add the warning afterwards, although i did mark the warning red after seeing that you overread it ^^.

Greetz and thx for your feedback
[HD2 Ubuntu Development] pantizol:
I tried to build the displaylink-mod driver but always failed to compile it. Therefore I think the udlfb driver is the better choice as it has already been compiled for the nexus one as explained here: http://plugable.com/2010/06/09/the-nexus-one-phone-top/ It should not be too hard to make it work on the hd2 but I need to focus on my exams right now.
[HD2 Ubuntu Development] gorelshv:
From twitter:

I have everything done I wanted in order to put together next hd2 ubuntu release -except for usb host mode.

This is very exciting! Hope he gets usb host mode sorted out soon.
[HD2 Ubuntu Development] PlayStation:
Nice. Really looking forward to Version 0.4.....
[HD2 Ubuntu Development] GuimbardePower:
Yeesss!

That will be awesome! I hope to see it soon!
[HD2 Ubuntu Development] ajay88:
I'm looking forward to the next release too. I cant wait to use my HD2 as a super-net-book while I use my sensation as my main phone. Can get any nerdier than that:)
[HD2 Ubuntu Development] pliauska:
when i start .exe start text gone with blur and than just black screen. Whats wrong?
[HD2 Ubuntu Development] hopkinskong:
mrmaffen:

May be you can modify the kernel config to make the other stuff work... May be grab the newest kernel also work!

I just formatted my Linux partition, i need to install Ubuntu later to figure this out... (Installing now...)

btw, are the linit made by you? How do u compile it? what it used for?

I tried by mdoify by my own(i havn't seen your post yet), i just renamed zImage, initrd.cpio.gz(Inside renamed initrd.cpio->initrd)->initrd.gz, then i boot, it rebooted after the mounse pointer, background initialized... Mouse not work... I am going to see the log later...
[HD2 Ubuntu Development] carthago:
Hello mate

First of all, thanks for the great work. Its amazing using ubuntu on the hd2 :))

Do you have any idea on when we can expect audio to work, is there any news?

Thank you in advance.
[HD2 Ubuntu Development] hopkinskong:
Use USB Audio or wait for the driver for onboard sound...
[HD2 Ubuntu Development] ljp1132719438:
any news ?
[HD2 Ubuntu Development] hopkinskong:
OK,

Found a possible way to use DisplayLink adaptor...

I need one or two testers, requirements:

1) You have a Displaylink device on your hand, and it can't use on HD2

2) Ubuntu on HD2 running off with HaRET

3) You can take a risk, it may ruin your system

PM me if you interest...

I only find one or two cuz i don't know will it work, i just discovered this one minute ago :D

It may ruins your system, i don't know will it, just make sure you can afford this risk!

So it means it is best to test on a NEW HD2 Ubuntu v0.3(Nothing modified)

Thanks.
[HD2 Ubuntu Development] apocalypse_bg:
Does Haret does someting of log when it fails to start?

I downloaded it yesterday and now i'm trying to run it, however it refuses to start - after running Haret, it displays several lines very fast that it says it's going to reboot... the last line i can see is something "not automatically fixing this"

All happens too fast to see what goes wrong...
[HD2 Ubuntu Development] hopkinskong:
Are you using STOCK ROM?
[HD2 Ubuntu Development] apocalypse_bg:
Nope, using Arthemis rom v 60. I thought it might have something to do with my SD card (messing up with other files), but tried on a clean SD and still same result.
[HD2 Ubuntu Development] hopkinskong:
Try reformatting your SD card, if problem still exists, use stock rom to run HaRET...
[HD2 Ubuntu Development] kevinwalter:
I'm trying Ubuntu out! It boots with Magldr but then after I see the keyboard, and its still loading, it reboots!

Whats the problem?
[HD2 Ubuntu Development] z3nful:
v.3 doesnt support MAGLDR booting yet. A few people have reported getting it to work, but theres more problems with than you can shake a stick at.

v.4 supposedly will though :)
[HD2 Ubuntu Development] kevinwalter:
ahh oke! Hope it come out soon then:P
[HD2 Ubuntu Development] white-energy:
Its not coming... yet!

It's been like (5 guess) months for this 0.4 version to come out.. and its still isn't out... so lose hope everyone.. better than getting sick from this later.
[HD2 Ubuntu Development] hopkinskong:
I don't know, just use page 48's linit

I also want to figure out whats the problem, but the author don't reply my pm, i don't know whats happened...

I will work on enable the touch screen back using linit, and TV-out...
[HD2 Ubuntu Development] z3nful:
On twitter about a month ago he was saying. 4 is coming out soon, if I remember correctly, he said a month or two

Sent from my Hyperdroid Pocket Laptop
[HD2 Ubuntu Development] pioterek2666:
And about two weaks ago he saying " all things that he wanted to do (like on call audio, better performance, rotate support, etc.) is finish except usb host so im not abandoned my hopes for realese v0.4. If you want some actual info check htc_linux on twitter.

Ps.Sorry for my english.
[HD2 Ubuntu Development] hopkinskong:
He can't put the USB host mode lol...

The EHCI HCD USB class has a bug, i can't compile it last night! So may be this made him can't relaese 0.4...
[HD2 Ubuntu Development] white-energy:
That doesn't matter since i don't use the usb mode.. any test builds PLEASE!?
[HD2 Ubuntu Development] hopkinskong:
It is doesn't matter with you, but it is matter with me and others!

You can't connect everything of usb if u don't have USBHOST mode...
[HD2 Ubuntu Development] Robbie P:
sound will be working on 0.4 as well?

mmm
[HD2 Ubuntu Development] pioterek2666:
Idk im not a dev but i guess sound will be working only for calls not for entire system.Idk how they make it work since android dosent use alsa driver like regular linux
[HD2 Ubuntu Development] :
Is version 0.4 going to have bluetooth support?
[HD2 Ubuntu Development] hopkinskong:
I think BT may support in v0.4, cuz possible solution released in wiki
[HD2 Ubuntu Development] andboy:
The bluetooth interface comes up but pairing to a keyboard doesn't work. I don't know about pairing to other devices. There was some discussion to resolve the problem on the linux-discuss mailing list.

http://lists.linuxtogo.org/pipermail/mobile-linux-discuss/2011-May/date.html

http://lists.linuxtogo.org/pipermail/mobile-linux-discuss/2011-June/date.html

Not sure if it's significcant, but a possible clue is this error message from bluetoothd:

ioctl(HCIUNBLOCKADDR): Invalid argument (22)

Maybe the bluetoothd is not compatible with the kernel in v0.3?

https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/654667/comments/1
[HD2 Ubuntu Development] floating_point_unit:
There is a possible solution to sound. It should work system-wide.

It's virtual alsa driver that uses android sound system (msm) as it's output.

https://github.com/amipro/alsa_android
[HD2 Ubuntu Development] chamele0n:
v0.4

Looking forward to the v0.4 for MAGLDR bootable. Great work to Dcordes and the rest of the developers and beta testers on the project. If you are ever in need more testers Dcordes let me know.
[HD2 Ubuntu Development] pioterek2666:
Great news about project! Things are getting faster.

Cotulla has wrote the alsa sound driver for snapdragon devices (nexus one, leo).

Look on htc_linux wiki page.

htc-linux.org/wiki/index.php?title=SnapdragoonAlsaDriver

I hope the devs will get wifi to work and release v 0.4 soon.

https://www.facebook.com/HTCLinux

Big Thx for all devs working on this project.
[HD2 Ubuntu Development] chamele0n:
I love seeing the progress of UNIX flavor developmenton our precious handheld devices. great job indeed to or developers.

Sent from my HTC	HD2 T9193
[HD2 Ubuntu Development] Mark Twain:
Can't wait for the MAGLDR bootable version:)
[HD2 Ubuntu Development] TakuyaMK:
@dcordes , notices about 0.4 version? :-)

Enviado desde mi Motorola DynaTAC 8000x.
[HD2 Ubuntu Development] marcimix:
Yeah. Me too! :)
[HD2 Ubuntu Development] legolas93:
+1 :D:D:D

With audio working!
[HD2 Ubuntu Development] bartass127:
sooo...any news? :D
[HD2 Ubuntu Development] TakuyaMK:
¿Hello? ¿Any notice?
[HD2 Ubuntu Development] ionbasa:
Just a quick question!

https://wiki.ubuntu.com/ARM

Can we not download the Ubuntu Arm version and make a .img to mount, while using the native Ubuntu kernel?

I know its not as simple as it sounds, but it would be a possibility.
[HD2 Ubuntu Development] Kefir.net:
No, we can't. Native Ubuntu's kernel doesn't support our hardware..
[HD2 Ubuntu Development] hopkinskong:
Use linuxtogo/evo for kernel

Visit htc-linux.org for more information.
[HD2 Ubuntu Development] ionbasa:
Any more development info about the 0.4 Version? Will it use the latest Ubuntu 11.04? What about Unity?
[HD2 Ubuntu Development] anmeldung:
New version Ubuntu OneiricOcelot - Ubuntu 11.10

Hi,

from yesterday:

https://wiki.ubuntu.com/OneiricOcelot

How can we implement new version on HD2?

Any news regarding v0.4?
[HD2 Ubuntu Development] smithisize:
This is looking great! Has anyone been able to make significant progress on sound in call? I would use this full time if I could :)

Awesome job devs!

Smith
[HD2 Ubuntu Development] skirep:
How did the project for MAGLDR?
[HD2 Ubuntu Development] rogerw:
T-mobile touchscreen dead at desktop.

Boot using magldr, tried adb, usbhost, usbeht for zImage, all dead after entering system desktop. Touchscreen has no response to any actions, only the cpu freq will change some time on the top bar. Dunno why, anybody has any idea on this?
[HD2 Ubuntu Development] floating_point_unit:
Current Ubuntu v0.3 kernel has many things broken in MAGLDR, touchscreen included.

There is another kernel that works a lot better (even has audio). Only caveat is, USB Host is broken (and I am sorry to say, will probably never work).

It's called Evo kernel, you can find it on htc-linux.org wiki.
[HD2 Ubuntu Development] rogerw:
Thanx, but I'm a linux dumb, are there any tutorials on replacing kernels for this build?
[HD2 Ubuntu Development] smithisize:
According to that very same site:

"NOTE: The EVO4G based kernel only works for android currently."

EDIT: Alsa audio driver can probably be compiled as a module into the current kernel by someone who knows what they're doing:

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

Hopefully someone can do that! I think it's all ready to go, just needs to be done!
[HD2 Ubuntu Development] rogerw:
Just ask a bit when will VER 0.4 be out?
[HD2 Ubuntu Development] Moises08:
Have anyone tryed a touch-friendly UI, for example Hildon or newly developed Plasma Active?

It will be great for a small phone screen.
[HD2 Ubuntu Development] ljp1132719438:
Hope to see ver 0.4 soon :P
[HD2 Ubuntu Development] retsam88:
unfortunately ubuntu development on hd2 is stalled

probably won't see much more improvement