yashsingh1/xdaforums huggingface dataset:
[EVO 4G Android Development] EtherealRemnant:
There is the Linux for android app in the market but it will only work with a loop file system which our kernels don't have or a specially partitioned SD card.
[EVO 4G Android Development] joeykrim:
if loop file system is required and loop support isnt compiled into the stock kernel, i haven't checked this, but with the HTC source coded release last week, shouldn't be an issue to compile your own kernel adding in loop support or having a ROM/kernel dev add in loop support.

edit: if i remember right, its a simple option to check under file system in the make kernel config.
[EVO 4G Android Development] pseudoremora:
Why is it you repeatedly insist on trolling this "wrong section" bull**** on almost all the threads? It's not your job.

Toast will take care of it. bobdude5 isn't a new member and yet you treat him as such? His question obviously belongs in this section and even when you call him out on it... a Mod has already authorized him to post in section? I bet you feel dumb.

It seems to me, you have no idea where most questions belong, it's probably best you keep your mouth shut and let Toast worry about those who are posting in the wrong section -- it's not even that hard for a Mod to move certain questions to a different section.

Add your input, just don't be a troll.
[EVO 4G Android Development] Jykinturah:
Yes, I feel dumb. And I am also very sorry. I will stop.
[EVO 4G Android Development] |Jason8|:
It's appreciated. :)

I'd be interested in getting Ubuntu working on the EVO 4G. This is definitely a kick-start kind of thread to get that done, too, and could definitely be a start to a larger project that didn't have much visibility before.
[EVO 4G Android Development] pseudoremora:
I too apologize for my overbearing tone, it's just there are a tun of new people here and then there are veterans -- most of which know the rules by now and understand the ramifications for there actions; don't take it upon yourself to worry about them; that's what the mods are for. Again, sorry.... and thank you.

You might want to check the Nexus One thread, someone has gotten Ubuntu to work on it... the setup might be able to work with the EVO.
[EVO 4G Android Development] brownmc77:
Off topic ... but very big man/woman of you to admit your wrongdoings and not act like a kid about it. Greatly appreciated
[EVO 4G Android Development] toastcfh:
Ok back on topic please.

Also I wanna add its most likely the kernel also. I can compile one for testing tonight if someone doesn't wanna help out and do it first. I think we also need to setup the evo on decordes Linux for HTC devices wiki. I'm at work so searching and linking isn't possible atm. I know he has a section for us there already. We can also gain from the wikis for similar devices there. Anyhow yeah let's not clutter thus thread with trash and let the development begin.:D
[EVO 4G Android Development] pseudoremora:
For anyone wanting to see Ubuntu running on the Nexus One and tutorial on how to do it... here's the video.

Now, obviously the directions are for the NEXUS ONE... and most likely won't work for the EVO, however this is good starting point to see what steps can be taken from the video and tweaked to make it work with our EVO's.

Good luck.
[EVO 4G Android Development] zedomax:
I am actually working on this

The problem with it is that the Evo 4G kernel needs to be compiled with support for loop devices. All Nexus One ROMs actually support this but Evo 4G doesn't.

The best way would be to ask those guys making the ROMs to compile the support for loop devices for future versions such as OMJ Roms.

Then could just use the same Nexus One script and would work.

In the meanwhile, I am learning to compile the kernel myself but perhaps you guys can ask the others to include support for loop devices on other ROMs.
[EVO 4G Android Development] Vinny75:
Just need to enable CONFIG_DEV_BLK_LOOP=y in the kernel config and rebuild.

Seems to be working now, installing LXDE as I type this.

extract the attached zImage then boot into fastboot and "fastboot boot zImage" to test.

EDIT: VNC works.
[EVO 4G Android Development] topdnbass:
Why not something more lightweight than ubuntu?
[EVO 4G Android Development] beerock:
Ubuntu netbook remix might be nice.....:rolleyes:
[EVO 4G Android Development] bobdude5:
yup it works! awsome man great job :) do you mind if i quote your post onto the first post?
[EVO 4G Android Development] MikeBrWade:
Could you post the kernel that gets this to work with some instructions on how to install it etc? I am running BBv3 and I would love to have this ubuntu install working!!
[EVO 4G Android Development] zedomax:
WHOOHOO!

WHOOHOO! Working fine now! :)
[EVO 4G Android Development] couga6442:
I have a quick question....how is this able to be used on a device w/o a keyboard?? Just curious....I'd love to try this if it can actually do anything.
[EVO 4G Android Development] :
Does anyone know if the Ultimate Droid rom has loop support built into the kernel?
[EVO 4G Android Development] ViViDboarder:
You connect to it with a VNC client from android and use your touch screen keyboard.

Isn't that the rom that ripped off all the CM code? If so then it should have the same loop support.

Oh yea, it was... http://www.cyanogenmod.com/home/android-soap-opera-ultimate-droid
[EVO 4G Android Development] Homefix:
U use your on screen keyboard

and it does a "few" things.

missing quite a lot however

I play chess online with it

i wish after getting Hamachi to work with ubuntu i could actually copy and paste files. You cant create folders or save files to file system says read only. You can do it from the terminal however.

I love it !
[EVO 4G Android Development] KirkH420:
.... The ubuntu was a fun install.... Now lets see if backtrack4 linux can run on these phones.
[EVO 4G Android Development] detcup4evr:
Does Any one have either the Current Stock Kernel with CONFIG_DEV_BLK enabled? Or anyone have a good step by step guide at recompiling the Kernel. I downloaded from HTC and copied my .config and updated it. I can't seem to get it to compile right. I have tried every walk through I could find, and downloaded everything but I am still getting errors, and now when the Compile starts it over writes my edited .config now. Am trying to compile on Ubuntu 10. 10. I am using it in Virtual Box. I gave up for tonight and am off to the Bar. I have a freshly built VM Box and will try again tomorrow. I was just hoping someone might of had some hints or tricks. I have been trying to Compile for hours.

arch/arm/mach-msm/idle-v7.S: Assembler messages:

arch/arm/mach-msm/idle-v7.S:47: Error: selected processor does not support ARM mode `fmrx r1,fpexc'

arch/arm/mach-msm/idle-v7.S:48: Error: selected processor does not support ARM mode `fmrx r2,fpscr'

arch/arm/mach-msm/idle-v7.S:117: Error: selected processor does not support ARM mode `fmxr fpexc,r2'

arch/arm/mach-msm/idle-v7.S:125: Error: selected processor does not support ARM mode `fmxr fpscr,r3'

arch/arm/mach-msm/idle-v7.S:126: Error: selected processor does not support ARM mode `fmxr fpexc,r2'

make[1]: *** [arch/arm/mach-msm/idle-v7.o] Error 1

make: *** [arch/arm/mach-msm] Error 2

Thanks
[EVO 4G Android Development] Il00Il0I:
403 Forbidden
[EVO 4G Android Development] blakrepublic:
Can someone post instruction in lamens terms i don't understand the way to install this and would love working Ubuntu on my EVO
[EVO 4G Android Development] dvickers:
how would i revert back to normal evo OS if i so desired
[EVO 4G Android Development] zedomax:
Chroot working

Chroot working, VNC not working, also wifi not working, compiling my own kernel now...
[EVO 4G Android Development] zedomax:
Is anyone else

Is anyone else having trouble with their wifi and 4G after flashing the new zImage? I am, and VNC isn't working!! but good thing Ubuntu is chrooting and loop devices are working too..
[EVO 4G Android Development] topdnbass:
Awesome that was fast..

The best part is it can be run alongside android.

I'll wait a bit, still haven't finished tweaking android ;)

What kind of bugs are there so far?

We need multitouch to zoom in and out of the desktop..

You know this should probably also be in the ubuntu forums, they have a great community as well.
[EVO 4G Android Development] zedomax:
Got it working!!!

WHOO HOO GOT IT WORKING!!!

Here's the thing though, you gotta make sure to copy over the Wifi/4G drivers also: (on the kernel you compiled)

adb push drivers/net/wireless/bcm4329_204/bcm4329.ko /system/lib/modules/bcm4329.ko
adb push drivers/net/wimax/SQN/sequans_sdio.ko /system/lib/modules/sequans_sdio.ko

I think you really need to compile your own kernel or the loop device configuration should be enabled on all ROMs. (WHY NOT?!?)

It seems like the new kernel zImage must match the drivers you are using, otherwise your wifi/4G won't work and the VNC won't work either.

It's 3AM here, I am sleeping now, why am I up again? Geez. :)
[EVO 4G Android Development] topdnbass:
LOL, zedomax.

I love how you always say WHOOHOOO

It makes me laugh :D

I just watched your video, and how you got it working on nexus!

http://www.youtube.com/watch?v=3wQ9XogfjRU

Thanks for your work

+1
[EVO 4G Android Development] Vinny75:
ah yeah it was late, and I was sleepy... but yes you need those drivers...
[EVO 4G Android Development] Repnepto:
What exactly is zimage? What is it changing. I like to know what I'm flashing lol. Also after I post this I'm going to do some searches about compiling kernels but if anyone could link me a good read I would appreciate it.
[EVO 4G Android Development] Vinny75:
zImage is the kernel image. By using fastboot boot zImage you are only putting the kernel on the phone temporarily, when you reboot you will be back to the original kernel.

But you need to load the other two .ko files as stated in previous posts.

More information on setting up the dev environment and building the kernel is here: http://xdaforums.com/showthread.php?t=718129
[EVO 4G Android Development] d3xn2o:
I'm More then Sure you guys Know about UBUNTU MID...

Whats up with getting that Ported over...

This is pretty awesome... Have it on my PC at home and on the go haha
[EVO 4G Android Development] pseudoremora:
I never knew about it... but DAMN, that would be sweet! It looks awesome!

Kernel building and getting Ubuntu on my EVO is what I plan on doing over the weekend; I'll look into this though as well.
[EVO 4G Android Development] d3xn2o:
Awesome looking Forward to seeing what else you fellas have cookin'

MID on the EVO with BT Wifi Voice and all working would be amazing...

It is a Mobile OS you know :cool:
[EVO 4G Android Development] sracercelica:
It seems that would be a lot harder to port since it was built for a specific processor type, but that would be awesome if it happened.
[EVO 4G Android Development] MikeBrWade:
Now if we can get some of the gurus on this board to cook up a nice kernel for the rest of us, and we can get it hooking up to a BT mouse/keyboard and (yes I know lots of ands) get the HDMI out to push the VNC out.. BAM! we got a portable netbook!
[EVO 4G Android Development] pseudoremora:
Very true... I'm sure it's going to be more difficult than I make it sound; plus I'm new to building kernels and what not, so I'll probably run into problems. I still want to check it out though.
[EVO 4G Android Development] verse187:
Nice so is this like a dual boot or can we have something like this for he evo or how does this work on the evo how would i be able to make calls thank!
[EVO 4G Android Development] :
Interesting...Ubuntu is kind of heavy though. Has anyone considered Suse...lol? Awesome work all, I'm going to try and see if I can compile a kernel for my preferences. Wonder if I can overclock...

~Jasecloud4
[EVO 4G Android Development] ths_:
I came here to say this exact thing.
[EVO 4G Android Development] ProvocativeSmell:
So based on that information it allows you to load and run Ubuntu then when you restart your back to your normal Evo rom?

Also is there any other way to do fastboot outside of adb? Because only way I know to adb is to use a computer.
[EVO 4G Android Development] sracercelica:
Not sure, but maybe using the "Better Terminal" app? You have to be rooted thought.
[EVO 4G Android Development] Jykinturah:
I believe you must use a computer to use fastboot, because it is in the bootloader. With adb shell specifically, you can kinda get around it by using a terminal emulator.

If you follow the OP's instructions, you will flash the zImage (kernel), which means it will stay even with a reboot.

If you want use it temporarily, you must use:

fastboot boot zImage

As mentioned.

I think ubuntu kinda installs with your regular ROM, so you won't see it even if you install it unless you run:

adb shell
bootubuntu

or just "bootubuntu" in a terminal emulator on your phone.
[EVO 4G Android Development] :
Good explanation. Although, how would booting this directly in terminal emulator affect the operation of the phone?

~Jasecloud4
[EVO 4G Android Development] mrpuffin:
it would be no different from adb

adb is just access to the terminal through usb on your computer making it easier then typing it all on your phone

and as for performance i don't know yet as mine started working the first bootup and now i cant get it to work
[EVO 4G Android Development] Vinny75:
If you just used "fastboot boot zImage" it will only keep the kernel until the next reboot. If you want to replace the kernel on the phone use "fastboot flash zImage"
[EVO 4G Android Development] Repnepto:
Thank you. Very helpful. I'm trying to learn everything so I can stop being the guy asking questions and start being the one answering them.
[EVO 4G Android Development] zedomax:
For Custom ROMs

For those of you who want to build your own kernel with support for Loop devices, here's a quick tutorial I made:

http://htcevohacks.com/htc-evo-hacks/how-to-build-your-own-htc-evo-4g-android-kernel/

This will help for those who have custom ROMs, so you can pull the existing config file off your ROM and add the Loop device support for Ubuntu Evo 4G.
[EVO 4G Android Development] kdbrown5:
has anyone tested any programs running off ubuntu besides web browser?
[EVO 4G Android Development] zedomax:
Software update

I've tried the Aptitude software update, works fine but can't install MySQL, HELP ME!!!!
[EVO 4G Android Development] pseudoremora:
Thank you very much! I was looking for this!;)
[EVO 4G Android Development] verse187:
Can someone help me this is what i get

C:\android-sdk-windows\tools>adb shell

# su

su

# cd /sdcard/ubuntu

cd /sdcard/ubuntu

# sh ./ubuntu.sh

sh ./ubuntu.sh

modprobe: chdir(/lib/modules): No such file or directory

←[H←[Jrm failed for -f, No such file or directory

rm failed for -f, No such file or directory

rm failed for -f, No such file or directory

rm failed for -f, No such file or directory

rm failed for -f, No such file or directory

mkdir failed for /data/local/mnt, File exists

←[H←[Jrm failed for -/system/bin/mountonly, No such file or directory

Unable to chmod bootubuntu: Operation not permitted

←[H←[J

Ubuntu Chroot Bootloader v0.1

Ubuntu Bootloader is now installed!

This process does NOT damage Android OS!

Original Installer by Charan Singh

Modified for Ubuntu Chroot by Max Lee at NexusOneHacks.net

To enter the Debian Linux console just type 'bootubuntu'

# bootubuntu

bootubuntu

mknod: /dev/loop2: File exists

ioctl LOOP_SET_FD failed: Bad file number

mount: No such file or directory

mount: No such file or directory

mount: No such file or directory

net.ipv4.ip_forward = 1

Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4

bootubuntu: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent

bootubuntu: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent

Setting localhost on /etc/hosts

bootubuntu: cannot create /data/local/mnt/etc/hosts: directory nonexistent

READY TO ROCK AND ROLL BABY!

Brought to you by NexusOneHacks.net and the open source community!

chroot: can't execute '/bin/bash': No such file or directory

Shutting down Ubuntu

failed.

failed.

failed.

failed.

#
[EVO 4G Android Development] evilecho:
Whats up with this guy...

Seems a bit on edge
[EVO 4G Android Development] zedomax:
Busybox!

Try the other script! updated script at bottom of post! Sorry, I am going to upload a new zip file soon.
[EVO 4G Android Development] mrono:
I think drugs....

It is just me, the picture in the first post is flipped.

Mind posting what works/doesn't work?
[EVO 4G Android Development] Mast3rpyr0:
Can i flash the zImage without messing up my current kernal? I have the 5.1.1 kernal for froyo novatec screens.
[EVO 4G Android Development] -viperboy-:
+1. Can you dual boot this??
[EVO 4G Android Development] Mast3rpyr0:
Oh yes you can, just found the link to the actual tutorial which is not just flashing the zImage :P
[EVO 4G Android Development] sracercelica:
I believe you need to replace the kernel for it to work. So no, in essence you would be replacing the 5.1.1 (fps) kernel with this one. That is what is stopping me from trying this. Someone correct me if Im wrong.
[EVO 4G Android Development] pseudoremora:
Actually, to make the kernel NOT permanent, you would run the command:

fastboot boot zImage

This will allow you to test the new kernel and allow you to boot into Ubuntu, however the moment you REBOOT your phone; your phone will go back to its previous state and use the previous kernel.

The command above will allows you to temporarily test the kernel, you are not actually flashing it onto your phone, so you won't lose the kernel you had before.
[EVO 4G Android Development] -viperboy-:
So is there a way to dual boot and make it so when you dual boot, it flashes the temp kernel??
[EVO 4G Android Development] sracercelica:
Is there any way that someone could modify the 5.1.1 kernel so that we can flash it and then install this?
[EVO 4G Android Development] clsiburt:
It appears to have been taken using the forward facing camera aimed into a mirror.
[EVO 4G Android Development] pseudoremora:
Right now, I'm not positive. The way this works, is that the phone uses VNC to connect to Ubuntu while Android is running.

I'll presume by dual-booting, you want the option of having a bootloader and every time you reboot; you have the option of choosing Ubuntu or Android to load into. If that's the case -- right now; no one has created a bootloader to do that (not that I'm aware of) and as far as the tmp kernel -- this could be achieved, by actually making it an update.zip package and telling the google update-script to flash it right before booting into Ubuntu.

However, the problem is with the bootloader.
[EVO 4G Android Development] -viperboy-:
Ah, gotcha. Yeah, that's what I was asking. I thought there might be a way that it would come up and ask if you wanted to boot Android or Ubuntu.

Or maybe a way to work it into Clockwork that you can tell it to flash just like a ROM and it flashes all the necessary files needed and when you reboot, it boots back to Android. I guess kinda like the way clockwork used to work before full NAND unlock where you kept an update.zip and applied it and it loaded clockwork recovery.

Idk much about this stuff or any way to actually execute it, I'm just throwing out ideas.
[EVO 4G Android Development] pseudoremora:
Yea, I don't either... I haven't messed with anything yet; but I will sooner or later.
[EVO 4G Android Development] CruzECO13:
This is AMAZING work here!! Gratz and Thanks for this!! I got this to work on my EVO on this first attempt. Just follow the instruction on his site EXACTLY and vuala :D:D:D here is a screenshot of it runnin a few apps at the same time and i have to say, its not that slow :p
[EVO 4G Android Development] verse187:
I could get my to work but it work but i got some ugly colors out of it it was all messed up you need full root right? thanks tell what you have and did
[EVO 4G Android Development] Vinny75:
I believe you need to use a lower color setting in vnc. I think the evo is 16 bit color
[EVO 4G Android Development] CruzECO13:
I have vnc set @ 24-bit color (4bpp)

This is the setting i saw in the video as he entered the port# before connecting and it looks real nice :D
[EVO 4G Android Development] kdbrown5:
most programs you try so far are working?
[EVO 4G Android Development] CruzECO13:
So far so good! Ill post in a bit after i go through em all!
[EVO 4G Android Development] verse187:
This is what i get

C:\android-sdk-windows\tools>adb push bcm4329.ko /system/lib/modules/bcm4329.ko

failed to copy 'bcm4329.ko' to '/system/lib/modules/bcm4329.ko': Read-only file

system
[EVO 4G Android Development] pseudoremora:
Enter the command

adb remount -- should return "succeeded"

Then push the file.
[EVO 4G Android Development] akiradavis:
I flashed the kernal (using the OP's command) over DC 3.2.3 custom rom and now I'm stuck at the EVO 4G screen. Did I just brick my phone?
[EVO 4G Android Development] webs05:
Probably not. Just reflash the stock DC kernel. Because of the mods Damage and Trev do to their roms you should only flash kernels they have touched unless the kernel you are flashing is stated to be compatible. Don't worry I put in a request with them ;)
[EVO 4G Android Development] Tundricles:
hows the battery life? Full adobe flash support and firefox?
[EVO 4G Android Development] verse187:
OK i just complety rooted my phone again deleted everything of my sdcard and starting from scratch will you recommend Evolutionv9 Rom or what will be better your opinion
[EVO 4G Android Development] pseudoremora:
The ROM shouldn't matter really. The Kernel is what is being changed and what will have to be flashed in order for this to work. Choose whatever ROM you'd like.
[EVO 4G Android Development] verse187:
Ok thanks bro thank you for helping me out with everything
[EVO 4G Android Development] verse187:
OK now i have a problem i installed EvolutionX9 rom and it was working well then i installed zImage phone rebooted now my touchscreen wont move try to unlock the phone by moving left and it wont unlock
[EVO 4G Android Development] CruzECO13:
I flashed this kernel on DC 3.2.3 rom and so far have had no issues. I have done anything i would normally do on the phone and everything seems ok so far. I pushed the files provided as stated on the site:

------------------------

"adb push bcm4329.ko /system/lib/modules/bcm4329.ko

adb push sequans_sdio.ko /system/lib/modules/sequans_sdio.ko

Next, let’s flash the new kernel image:

fastboot flash zimage zImage"

------------------------

The only thing i can think off but is now working was wireless tether when started would not load "bcm4329.ko module" and therefore not work. Even under setting on the phone, Wifi said "Unable to connect" and did not let you select it.

I pushed the bcm4329.ko file again a few times and reboot. wireless tether now working and the setting for wifi now allows me to turn it on :D

I'll leave this kernel for now until another is made if even necessary :P Everything works!
[EVO 4G Android Development] pseudoremora:
Did you just flash the kernel that was given in the OP? If so, reboot real quick and also if you did a Nandroid (which you should have)... the wipe and restore.
[EVO 4G Android Development] CruzECO13:
Battery Life seems fine i have been playing with it for a few hours.

Everything opens, moves, works.

Firefox works and opens all sites. I went to espn.com, selected a video, and you get the Flash logo and link to go install the drivers for linux. I hav/nt done that. yet!

But so far so good. I mean you have Linux os on your phone and on the go :D
[EVO 4G Android Development] pseudoremora:
Hey, did you get my PM?
[EVO 4G Android Development] akiradavis:
Thx, reflashed and running again.
[EVO 4G Android Development] Tundricles:
what happens when you install flash for linux? does it work?
[EVO 4G Android Development] CruzECO13:
Just read it, replyed ;)
[EVO 4G Android Development] CruzECO13:
Ill check and post update!