yashsingh1/xdaforums huggingface dataset:
[Desire HD Android Development] torsrex:
Gonna try it now ;)

I have an idea, just need to test if it works...
[Desire HD Android Development] torsrex:
Yep, flashing the recovery again using fastboot worked fine :cool:

Edit: Also found a way to choose either cwm or ubuntu, will post my guide once my phone is back on android again :P
[Desire HD Android Development] :
You can choose CWM with ROM Manager and Ubuntu boot.img with PD98IMG.zip :).
[Desire HD Android Development] torsrex:
Or choose ubuntu and CWM with rom manager ;)
[Desire HD Android Development] twiztedvvv:
You are truely a genious. I can't wait to get home and try this out :)
[Desire HD Android Development] bergfex:
I don't now if everbody knows, moving/dragging windows works with dopple clicking and holding the second click.
[Desire HD Android Development] Jhinta:
bergfex , in op rootfs does not work with the boot.img you provided , getting a error when logging in -> logs out again to login window.

also need some info , wich kernel your using and config so that we can keep it on the same line

Also does the rootfs of op includes the module folder already?
[Desire HD Android Development] Jhinta:
offtopic , so maby i will have my tf101 in 3 dayś , :p , cant whait to boot linux on it and xbmc:D
[Desire HD Android Development] bergfex:
Do you have to log in first?

The kernel is quite old, but it is the only one where i have working wifi yet. I would prefer a newer one.

The new rootfs from the first post contains the module folders and all files that are created by "depmod -a" so the "WiFi mode" script can modprobe the wifi module.

about Transformer:

Ubuntu would be more usefull on transformer than on the Desire HD, so good luck for this.

I would love to see windows 8 on the transformer....

But lets go back to topic.
[Desire HD Android Development] twiztedvvv:
Torsrex. Did u manage to put a guide together. Wanted something to reference to so I don't brick my device :P
[Desire HD Android Development] liljom:
I just misunderstood...
[Desire HD Android Development] torsrex:
Yeah, forgot about that guide, will post my method tomorrow ;)
[Desire HD Android Development] twiztedvvv:
I was told I couldn't use fastboot to boot the img. Confused. Thanks anyway :)
[Desire HD Android Development] twiztedvvv:
Ok thanks. I'm not as experianced as you guys so ill hang on just to play it safe.
[Desire HD Android Development] bergfex:
If you have a folder "linux" with the rootfs.ext2 on your sdcard bring your phone into bootloader. Connect your phone to the pc. Double click the "Start Here.bat" and type "fastboot boot boot.img".

This is will be safe! ;)

Everything about recovery is for a dualboot option and not 100% tested.

Please post back if it works.
[Desire HD Android Development] torsrex:
okay, so here are my guide:

There are two ways to do this, you can either do it from your phone (yey!) or from your pc, but both methods require you to have the rootfs in a linux-folder on your sdcard.

On your phone:

1. Download this file and extract it to a folder on your sdcard: http://www.mediafire.com/?63l16bv4a84u042

2. Copy the flash_image file to /system/bin using root explorer or any other root explorer. Note: if you already have this file, there is no need to replace it!

3. Copy both recovery.img and boot.img to your sdcard.

4. Download terminal emulator from market.

5. Type in these commands followed by enter for each line:

su

flash_image recovery /sdcard/boot.img

6. Now reboot to recovery using either the advanced power menu (if you're using leedroid or any other rom with that included), or reboot to bootloader by pressing volume down and select recovery.

Ubuntu should now start.

7. If you want to reflash CWM you just boot back to android (normal boot), open up terminal emulator again and type these commands:

su

flash_image recovery /sdcard/recovery.img

8. Note: the recovery image provided is 3.0.2.8, please replace it with that version you want!

On your pc:

1. Download the same file from above, but this time, copy only the recovery.img and boot.img the tools folder within you androidsdk-folder.

2. Connect your phone to your pc and reboot your phone while holding volume down, make sure it is in fastboot (the text fastboot_usb will be displayed on the screen).

3. Open up cmd and cd to the tools folder within andoirdsdk.

4. Type:

fastboot flash recovery boot.img

5. Now select recovery in the bootloader menu on your phone.

Ubuntu should start.

6. If you wnat to return to CWM, type:

fastboot flash recovery recovery.img

Hope this helped those who didm't get fastboot to work, and those who wanted to dual-boot!

Just for saying it, I will not be responsible for any damage done to your phone!.
[Desire HD Android Development] twiztedvvv:
Perfect. Just what I needed. Didn't want to use the pc method as its impractical for me so would make having it pointless. Thanks very much for your help :)
[Desire HD Android Development] mero01:
So no need to download any of the files from the OP ? or ??

Thanks sorry just tuned into this thread very happy with what u guys have done cheeers :)
[Desire HD Android Development] twiztedvvv:
Yes. You need the ubuntu0.4.zip. forget correct filename..But if you ate going to flash the recovery you don't need the easy.zip. just the one torsex listed above.

1, extract ubuntu.zip, copy Linux folder to SD.

2, flash recovery using torsrex method above.

3, boot phone into bootloader. Select recovery. Ubuntu will boot.

Hope this helps
[Desire HD Android Development] mero01:
Yup that helps :)

and then just re-flash CWM when i need it ?

We gotta get the bugs in this fixed then it will be awsome :)
[Desire HD Android Development] twiztedvvv:
I'm wondering wherther flashing cwm with ROM manager would work. Rather than using terminal?
[Desire HD Android Development] twiztedvvv:
Forgot to mention. Please post back on how u get on. Let us know if everything goes to plan :)
[Desire HD Android Development] timstanley1985:
Can some re-upload the Ubuntu image from the first post please. The host is SO slow and keeps dropping out half way through download
[Desire HD Android Development] mero01:
Ya no worries just doing it all now .

Can u provide some md5's for the files... just wanna be sure you know ... better safe then sorry :P
[Desire HD Android Development] twiztedvvv:
I would do a mirror but my upload speed is about 40kbps. Would take forever. Sorry.
[Desire HD Android Development] twiztedvvv:
You'd have to get md5 off the OP. I never check md5. Takes too long to generate :P I should start really before I turn my DHD into a paperweight.
[Desire HD Android Development] xvicedice:
bergfex if its ok with you i can supply a miror later this evening for everyone ?
[Desire HD Android Development] mero01:
Ok got it running, but i lost the main home menu ? like with all the options for everything ?

and whats the root password ?
[Desire HD Android Development] twiztedvvv:
Password is ubuntu (I think) not sure how u lost the menu. Did u flash the boot.img to recovery or fastboot via pc? Looking for as much feedback as possible on flashing recovery. Thanks.
[Desire HD Android Development] bergfex:
No problem.

Just, reboot. This happens sometimes. You would need to maken a right-click to get the menu in this case, but I don't know a way to make a right click.

Good question, please search in the hd2 section. (maybe tmppwd or something like this). But there is a root terminal.
[Desire HD Android Development] mero01:
flashed with the method you told me, nothing from pc except copying files over etc..

Cant use any web browser ... and yeah no sound is a shame :(
[Desire HD Android Development] lee2006:
mirror removed.
[Desire HD Android Development] torsrex:
You could do this using Rom manager.

1.Download two different cwm from Rom manager

2.Open the clockworkmod folder on you sdcard an open the download folder.

3.search for the version number for the old recovery. You will find an image file, open the containing folder and copy the boot.img from the zip I recently posted to that folder.

4. Now, rename the boot.img file to the recovery image filename and deleted the old recovery.

5. Now, when you select the old recovery from Rom manager, it will flash the ubuntu boot image.

When you want to go back to cwm, just select the newer cwm version.

This guide is a little bit bad written, since i'm on my phone ;)
[Desire HD Android Development] twiztedvvv:
Good idea though. Have u tried flashing back to cwm using rom manager? I can't see there being any issues but you never know.
[Desire HD Android Development] torsrex:
Yep, I have tried that (although, I replaced the 3.0.2.6 image with a newer 3.0.2.8) and it worked.
[Desire HD Android Development] mero01:
Yup i flashed back with ROM manager aswell. seems fine...

So we could attach a LeeDroid kernel too this in theory ? once its functional ? reep the benefits of his work / battery saving etc :P
[Desire HD Android Development] twiztedvvv:
Flashed boot.img fine. Reboot to recovery but I'm not sure it will boot. How long does it take. I keep getting info about batt repeated every 2 mins?
[Desire HD Android Development] twiztedvvv:
error as follows:

"checking sd for errors

FAILED

FAILED to mount rootfsd"

etc.etc.

not sure why this is, re-downloading now, will check md5 and try again.
[Desire HD Android Development] timstanley1985:
I got a similar error. It said it failed to mount rootfs to loop2
[Desire HD Android Development] bergfex:
Do the errors occur only with the recovery methode or also with fastboot?

I will reupload the rootfs. -> Done
[Desire HD Android Development] twiztedvvv:
Thanks. Will try again. No I didn't try fastboot. Other people didnt experience this issue though.
[Desire HD Android Development] liljom:
I just checked the first one, and it works fine :)

what could be the problem that we can't use browsers? I installed Chromium, and that doesn't work either :/

and very nice that you solved the landscape mode and the wifi ;)
[Desire HD Android Development] twiztedvvv:
Yeah. Strange. Would it help to look at leedroids ubuntu. Not nativ but same file structure I would imagine.
[Desire HD Android Development] bergfex:
Which boot image are you using? I get a simular error when by playing around with mdj v19 kernel.

Try the kernel from the "easy to use.zip" from the first post.
[Desire HD Android Development] twiztedvvv:
got it booted now. there was an error when i extracted it first time round.

cant send/recieve sms but i wasnt expecting any functionality (even though its working for you). still, this is awesome.
[Desire HD Android Development] twiztedvvv:
im using the boot.img from torsrex, standard kernel, works fine. except sms. my wifi wont connect but i think thats due to my **** router, not ubuntu.
[Desire HD Android Development] bergfex:
SMS arn't working for me, but liljom told me in an PN.

We should ask him for more information.
[Desire HD Android Development] twiztedvvv:
dependent on carrier maybe, or possibly just need to set up the apn. i tried setting up apn for 3g data but no luck. let me know if you find out anything.
[Desire HD Android Development] timstanley1985:
This is the error i get when trying to book from the recovery boot.img:

*checking sd card for errors

dosfsck 3.0.1, 29 Nov 2008, FAT32, LFN

/dev/block/mmcblk1: 16509 files, 396399/488552 clusters

(27.019134) dosfsck used greatest cluster depth : 5540 left

e2fsck 1.41.4 (27 jan 2009)

ext2fs_check_if_mount: no such file found when determing wether*/dev/block/loop2 is mounted

e2fsck: superblock invalid, trying backup blocks..

e2fsck: Bad magic number in super-block while tryingto open /dev/block/loop2

*

The superblock could not be read or does not describe a correct ext2 filesystem.* If the device is valid and it really contains ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternative superblock: e2fsck -b 8193 <device>

*

Mount: mounting /dev/block/loop2 on /rfs failed: invalid argument

Failed

Failed to mount /rootfsd

/bin/sh: cant access tty: job control turned off
[Desire HD Android Development] twiztedvvv:
mine is the same except for what ive listed below. i think it simply means the rootfs. ext2 is corrupt. try re-dounload and extract. Should be around 2.92 gb. did you check the md5?
[Desire HD Android Development] liljom:
yeah, I can send and receive sms

I have no PIN and my carrier is TDC in Denmark

what else information do you need?
[Desire HD Android Development] twiztedvvv:
did you have to enter any APN settings? or did it work 'Out the box' ? i tried to Send an SMS but it Said failed
[Desire HD Android Development] timstanley1985:
Mine is only 700 mb unzipped. I will redownload
[Desire HD Android Development] twiztedvvv:
same happened to Me then i downloaded the re-uploaded one from OP. unzipped using 7Zip.WorKed first time. Not sure why its only unzipped to 700.
[Desire HD Android Development] liljom:
I set the APN, but as I remember it worked before

ohh, and it worked with the last uploaded one, where I didn't set the APN
[Desire HD Android Development] twiztedvvv:
im using the latest one begfex uploaded yestetday. wilk try again. where can i find the apn settings?

it displays my carrier name in the menu bar so should work theoretically.
[Desire HD Android Development] liljom:
you can set it when you turn on 3G mode
[Desire HD Android Development] twiztedvvv:
its working now :) just hope you guys can get some more things working. sound and ff Would be great :)
[Desire HD Android Development] bergfex:
Are you talking about sms? What have you done?

I will upload the rootfs image in an rar file. -> done
[Desire HD Android Development] twiztedvvv:
i didnt do anything. i just booted. selected send sms and it worked. does it display your carrier name next to the clock ?
[Desire HD Android Development] timstanley1985:
Thanks everyone, got it working! SMS worked straight out the box too!

The touch pad is right pain. I promise I don't mean to be ungrateful but it is desperate for a proper multi touch driver
[Desire HD Android Development] mero01:
+10

Dam annoying , but cant be ungrateful as you said they've got this almost working perfect :)

I suspect once there isnt much more to do with kernels and ROM's for DHD the devs will start looking more into this type of stuff :) i hope... leedroid ubuntu would be nice
[Desire HD Android Development] twiztedvvv:
has anyone here got a hd2? im amazed they Can run android wm7 ubuntu and even meego!

same 1 ghz processor as dhd.

same screen size.

But what are they like compared to dhd.

Sorry to be off subject
[Desire HD Android Development] liljom:
maybe it's easier to set the drivers with older hardware, and they have the incentive to get rid of WM6 :D
[Desire HD Android Development] twiztedvvv:
haha. i was considering getting one due to multiple os but am not sure if its worth it having not used WM 7 and i hear android is laggy on it
[Desire HD Android Development] liljom:
yeah, that has Adreno 200, what is a lot weaker
[Desire HD Android Development] twiztedvvv:
another person in the hd2 forum advised me not too aswell.

anyone made any progress on development? :)
[Desire HD Android Development] timstanley1985:
Looks like 11.04 is here

http://xdaforums.com/showthread.php?t=987740
[Desire HD Android Development] twiztedvvv:
This one isnt working yet :P
[Desire HD Android Development] shadiku:
I dunno about that, my Desire HD is definitely quicker than my HD2 but Android was never laggy or slow for me despite the old Adreno.
[Desire HD Android Development] twiztedvvv:
I might get one just as a toy really. Can pick them up cheap on eBay. Have you run ubuntu on your hd2?
[Desire HD Android Development] shadiku:
Yeah, I never got it working with MAGLDR.
[Desire HD Android Development] inertiax3:
It will be far more usable when coupled with the recent HTC Sensation (Dual-core&HDMI out..yay!)..
[Desire HD Android Development] liljom:
I'm not even sure if we can have custom ROMs on Sensation

but it's a bit offtopic, isn't it?
[Desire HD Android Development] twiztedvvv:
Wouldn't this be difficult with the sensations locked bootloader though
[Desire HD Android Development] liljom:
maybe it won't be locked for a long time:

‎"There has been overwhelmingly customer feedback that people want access to open bootloaders on HTC phones. I want you to know that we've listened. Today, I'm confirming we will no longer be locking the bootloaders on our devices. Thanks for your passion, support and patience," Peter Chou, CEO of HTC

http://www.facebook.com/HTC/posts/10150307320018084
[Desire HD Android Development] twiztedvvv:
Excellent news! That means my next phone CAN be a HTC after all :)
[Desire HD Android Development] DanWilson:
What has been changed in the kernel to get this booting?

Cos I'd like to see this on the Vision, and no devs really care about this.. So I'd need to build the damn thing myself. Or at least try... XD
[Desire HD Android Development] Jhinta:
I dont get it with the whole leedroid stuf.

1 Leedroid sure makes damn good android rom's and kernel.

2 leedroid ubuntu = chroot

3 any linux based phone or pc or anything can do chroot if you just have support voor loop devices means all android phone's can do chroot ubuntu.

4 chroot ubuntu in android was there even before leedroid ubuntu.

5 its almost like a standard linux option

6 chroot ubuntu leedroid or any other are ALL the same it just a root file system 100% the same !!!! you can even take the rootfs.ext2 file and do a chroot with it.

Now when booting ubuntu NATIVE please forget chroot, realy it does not help.

Also if you want Sound and bluetooth you still need to mod the kernel.

Also about multitouch you can try en test all kind of multitouch drivers in ubuntu by your self like installing or compiling in ubuntu
[Desire HD Android Development] Jhinta:
Compile kernel with CONFIG_VT enabled you need a frambuffer console to see wats happaning. once you have that you can start with a ubuntu type ramdisk , just take the one we are using , and thats it.

things to find out are mount points and how to make a correct boot.img

and wat does work and not like on dhd kernel cmd does not work we needed mkbootimg for that , but thats for you to find out.

i'm willing to help , if you get frambuffer console working meaning txt output when booting -this also means you know how to build the kernel for your phone :)
[Desire HD Android Development] DanWilson:
Right. Wait. Don't I need a 64bit PC to build kernels now?

That'll be challenge 1. And find my external HDD with Ubuntu on it. Unless I can build on Windows. I hate these things.

Worth it though. I'll get back to you if I ever get it working, it'll probably need to be tomorrow. Cheers though.
[Desire HD Android Development] Jhinta:
so i have compiled xserver-xorg-input-evdev and xorg.conf with evdev driver.

with the the normal setting point was infinite left up but with this its realy reacting still not correct but ,sould be possible

Also as note when compiling and installing , driver is not ad location that xorg.conf will find it , so move it to the correct location.

if above is not known to you its not for you:confused::eek:.

https://wiki.ubuntu.com/Multitouch/XDevelopment
[Desire HD Android Development] DanWilson:
I'll work my way round it. Guesswork is king for me. XD

But thanks. I'm sure it'll all help.
[Desire HD Android Development] Jhinta:
64bit does not mater 32 or 64 is oke
[Desire HD Android Development] DanWilson:
Ah nice. So now I need to get Ubuntu back. I thought I'd left it behind forever... :(

:rolleyes:
[Desire HD Android Development] mero01:
lol nah i just meant Lee as a experienced developer could probably help fix the remaining bugs & or provide a better kernel for this :P

nothing to do with his thread posted or chroot :P

but all good can see why you thought that
[Desire HD Android Development] perern:
any way to right click?
[Desire HD Android Development] bergfex:
I don't know a way, sorry.
[Desire HD Android Development] husamedins:
Hi every one, i did what u say to install it and it worked for the firest time but after i restart my dev how could i get it work again ??????????
[Desire HD Android Development] liljom:
use the "fastboot boot boot.img" command in fastboot state
[Desire HD Android Development] tazhate:
awesome!!!

where is donate link?

u should continie your work
[Desire HD Android Development] bergfex:
As you wish, Donate Button now on the left side. ;)
[Desire HD Android Development] odean14:
he bro is it possible to get this to work in the htc evo
[Desire HD Android Development] smadger:
Is this possible? It would be AMAZING!!!!!!!!

Just came across this thread, looks pretty interesting, and got me thinking...

I haven't gotten round to physically trying yet, (straight after this!) but after getting Ubuntu up and running, is there anybody out there who understands the info in this link - http://realmike.org/blog/2011/02/09/live-desktop-streaming-via-dlna-on-gnulinux/ - in order to output the =Ubuntu desktop from our DHDs, through DLNA, and onto a display, or at least theorise if it could work?

Also, I've recently seen mention of USB Host on the DHD with a custom Kernel. If this can be achieved, we could plug a wireless receiver for a mouse and keybpoad into the DHD.

Imagine if these three things could be combined:

1) Desire HD running UBUNTU

2) Kernel to allow USB Host for input devices

3) DLNA output of Ubuntu desktop

A wireless portable desktop.

Any ideas?
[Desire HD Android Development] Jhinta:
This will be way to slow to even think about it . There is no point in doing this on a phone also you can do a remote session that will work faster but then again why not use the pc .

I get what you mean but i realy dont see the point of it and way to slow
[Desire HD Android Development] teshiburu2010:
Thanks soo much for this guys, and thanks so much to the guy who worked out how to boot without a PC!

tried to multiquote and failed!

well done everyone looking good so far. Does anyone know if there is a JRE for Arm?

and if so how would i install it?

Tesh
[Desire HD Android Development] qkall:
No clue if it works but you'd probably get the most luck out of icedtea
[Desire HD Android Development] marchetto:
Download ubuntu4dhd.zip

Download easy to use.zip

Put the linux folder from ubuntu4dhd.zip to the root of your sdcard

Put the easy to use folder to your windows PC

Bring your DHD into the bootloader

Connect DHD to the PC

Double click Start here.bat

Tip "fastboot boot boot.img" or "fastboot boot boot-usbhost.img"

(without ")

after restarting your old rom will start

..and now?

i can't start with ubuntu, but only with Android..why? :(
[Desire HD Android Development] torsrex:
Make sure you're phone is s-off. Also, you need to enter the option "fastboot" in the bootloader using the power key.
[Desire HD Android Development] kingchris:
i dont know if it is possible this way, but take a look at this:

http://askubuntu.com/questions/26106/make-long-click-act-like-a-right-click
[Desire HD Android Development] marchetto:
how can i do?

all is ok..my phone is rooted and s-off

when restart in android, i don't understand how can i do to restart in ubuntu..

please help me
[Desire HD Android Development] liljom:
so you have a folder called "linux" in the root of the sdcard and it contains the rootfs.ext2?

when you are in bootloader, do you see BOOTLOADER or FASTBOOT in the "first" line?
[Desire HD Android Development] marchetto:
what is the rootfs.ext2?

anyway, when i'm in bootloader, i see FASTBOOT in the "first" line..is wrong?
[Desire HD Android Development] liljom:
rootfs.ext2 is the image file of the ubuntu filesystem

you should see BOOTLOADER in the first line, and when you enter the command "fastboot boot boot.img" it should restart your phone in ubuntu
[Desire HD Android Development] marchetto:
i've extract Ubuntu4DHD02.rar in the root of my SD and now i've rootfs.ext2 in linux folder..in bootloader i've fastboot and when i connect my phone it will appear fastboot usb..i've enter the command "fastboot boot boot.img" but it will restart in my cooked Android Rom.. Why? :(