yashsingh1/xdaforums huggingface dataset:
[EVO 4G Android Development] clsiburt:
Got to the fastboot step and this is what I got:

C:\Users|Chris\Desktop\sdk\tools\fastboot flash zImage zImage

<waiting for device>

sending 'zImage' (2060 KB)... OKAY

writing 'zImage' ... FAILED (remote: partition doe not exist!)

What did I do wrong?

EDIT: Figured it out. I had the capitalization on zImage incorrect. it should have been:

../fastboot flash zimage zImage
[EVO 4G Android Development] antiphon:
For anyone who had gotten this running, is there still a 30 fps limit in ubuntu?
[EVO 4G Android Development] pseudoremora:
I got to this work, however when I start the x session; I end up in Gnome instead of LXDE... even though I know I followed the steps correctly and installed as it directed? Ideas?
[EVO 4G Android Development] Tundricles:
Looking forward to it thanks!
[EVO 4G Android Development] moonzbabysh:
Can this be accomplished using a Mac instead of windows machine?
[EVO 4G Android Development] Jykinturah:
Yes. You must use the Mac version of the Android SDK to use fastboot and/or adb.

I think you execute them by using ./fastboot or ./adb while in your Android SDK directory. As I don't have a Mac, I think you should wait until one with greater experience verifies this.

To get to fastboot, use adb or quickboot (bootloader) on your phone.

./adb reboot-bootloader

In fastboot (in the bootloader) you must use either command with the zImage in your Android SDK tools folder:

./fastboot flash zimage zImage

^ To permanently flash the kernel

./fastboot boot zImage

^ To temporarily use the kernel until next reboot. You must do this every time you want to use Ubuntu on your phone.

Then after you follow the instructions in the OP, you should use:

./adb shell
bootubuntu

You may try this, but be careful as I am not ENTIRELY certain that is how the SDK is used on a Mac.
[EVO 4G Android Development] moonzbabysh:
Thank you am going to try this now.
[EVO 4G Android Development] Tundricles:
someone with linux on ur EVO go here: http://www.thedailyshow.com/

tell me if video plays, anyone try hulu yet also?
[EVO 4G Android Development] Jykinturah:
You mean Ubuntu right? I thought Android ran on Linux, too.
[EVO 4G Android Development] widjit:
I'm tempted to try just to see if hulu will work... Also maybe the op can be updated with this link http://htcevohacks.com/htc-evo-hacks/how-to-install-ubuntu-on-htc-evo-4g/ it's more echo specific...
[EVO 4G Android Development] elegantai:
man, I am so late on this, but this is simply amazing.... :eek::eek::eek:

Good job getting this working... again just so amazed I can't even flash it :D

... ok now I can. hahaha
[EVO 4G Android Development] apristel:
So I got ubuntu running but whenever I try to send some text into ubuntu the letters are not what i typed..

What am i missing?

xda turns into /fa

or something
[EVO 4G Android Development] Jykinturah:
Maybe keyboard needs to be calibrated for the Evo's screen? Not certain how to do that though.
[EVO 4G Android Development] Nagrom Nniuq:
Ubuntu IS Linux. Android is a derivative of Linux.
[EVO 4G Android Development] :
Wonder what the FPS is for Ubuntu?...is the framerate still capped while running it?
[EVO 4G Android Development] Jykinturah:
I think it is because it uses the same kernel as Android does.
[EVO 4G Android Development] mrpuffin:
same problem with me

and of what i know lxde runs faster then gnome so i would like this fixed also

and thank you

EDIT: THIS might help with switching but i am not all that familiar with linux (mac and windows guy) so i don't know how to edit them or if this is what is needed
[EVO 4G Android Development] mrjkwik:
I need some help.

I've followed the directions, and uh, can't get past the first part. here is where i'm at.

i type in cmd prompt

"adb reboot-bootloader"

then after reboot, without touching anything else, i type in

"fastboot boot zImage" (i've also done the flash command, same results)

and get back

"cannot load 'zImage'"

and since i'm new to this, i've both just transferred the zimage.zip to the root of the sd card, and extracted the img and transferred it to the root of the sd card.

i'm sure i'm missing something small, and stupid. but any helps appreciated. thanks.

fyi, rooted, with fresh rom. (new install, with blank sd card)
[EVO 4G Android Development] vballboarder:
haha, you've been helping out all day on the general Q&A's you haven't even had time to look around for yourself? I think you've got to have about 100 posts today in the general Q&A's.

I'm definitely going to try this out.

Anyone try hulu yet???
[EVO 4G Android Development] pseudoremora:
I'll look into this. Give me about 10 minutes.

Edit: Problem fixed.

I don't know why it wasn't working before. But to fix the issue, all I did was reload the zIamge (I never flashed it, I used flashboot

boot

zIamge (so it's only temporary), so I just did that again. Started Ubuntu and then opened the VNC app and connected and LXDE was my default Windows Manager... it worked flawlessly.

Hope that helps.
[EVO 4G Android Development] MichaelMcEntire:
Can't seem to get flash working (no hulu) Any ideas on this? The only flash I've found so far is i-386. I've also tried to install some games such as Monsterz and barrage, they install fine but will not launch. Can anyone else confirm this?
[EVO 4G Android Development] Drewmungus:
So can you still send and receive phone calls on this?
[EVO 4G Android Development] pseudoremora:
Yes. But of course, you'll have to disconnect from your VNC session to do so.
[EVO 4G Android Development] Chem_Guy:
Hey everyone, I installed ubuntu earlier today and have already removed it (as much as I love the OS I cant think of anything to use it for on my phone). However, my Wifi doesn't work anymore. I have tried restoring a backed up ROM but that doesnt seem to be doing the trick. Any ideas?

Thanks!

P.S. Im pretty sure I successfully pushed the drivers during the ubuntu install.
[EVO 4G Android Development] Chem_Guy:
:EDIT: Double post
[EVO 4G Android Development] zedomax:
Thx bobdude5 u made my day by linking to my site, that's all i am askin for, really :)
[EVO 4G Android Development] pseudoremora:
Thanks also go to you; after all they were your instructions that made it possible for us to get Ubuntu on our phones! Again, excellent job!
[EVO 4G Android Development] wuclan48:
Has anyone tried wifi cracking yet?
[EVO 4G Android Development] josh90265:
Same problem here with the WiFi not working. Any ideas what to do?

Thanks.
[EVO 4G Android Development] bobdude5:
ahah no problem :D after all it is your genius that made this possible :) but im taking a java programming course and reading book on linux so i can finally contribute after only being able to comment on others work for so long lol

i wonder if the pcsx works on this? anybody care to try? ahah..i highly doubt it due to the probable incompatibility with the plugins
[EVO 4G Android Development] moonzbabysh:
Has anyone tried setting the wifi on before booting up ubuntu? I know that's how they had to do it when they first got android on the vogue.
[EVO 4G Android Development] lexknight:
Installed today... WOW... this is cool...

had NO PROBLEMS what so ever getting it installed and up and working on my EVO... made all the phone geeks I work with green with envy ... LOL...:D:D:D:D
[EVO 4G Android Development] bewshy:
Using DamageControl and it works fine until a reboot?

Check out /system/etc/wirelessn
[EVO 4G Android Development] neckface:
I encountered the same problem.
[EVO 4G Android Development] moonzbabysh:
anyone get this working usuing a mac?? im a little lost but would still love to do this.
[EVO 4G Android Development] ViViDboarder:
Does anyone know if the CM6 kernel supports loop devices?

I want to try and install this on my EVO with a lightweight WM as well. Something like XFCE.

I also noticed that the website tutorial http://nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-nexus-oneandroid/ says that it got the Ubuntu image from http://xdaforums.com/showpost.php?p=5969936&postcount=2 which apparently has had updates recently. Does that image require any modifications? Or can I just pull the latest image from the HD2 thread?

Lastly, does anyone have this running 24x7? Or do you boot up Linux whenever you use it and then shut it down?
[EVO 4G Android Development] martyzidek:
I had tp2 and had a Haret.exe on my SD card and would boot up android.. couldn't we do something like that on our phone?
[EVO 4G Android Development] zonyl:
Yes. Cm6 does support loop devices. I have chroot debian running on mine.

If you are using a chroot environment, you don't boot up. Android is just a gui and application framework on top of an already running linux. With debian chroot you are just adding another gui and framework that runs when you need it..

This HD2 ubuntu link above appears to be an actual bootable image for devices that dont already run a linux kernel. There is probably an ubuntu chroot image around somewhere and that would be a whole lot more efficient.
[EVO 4G Android Development] Wisiwyg:
So does anyone know if the USB port is accessible while Ubuntu is running? If so, does running Ubuntu allow the EVO to act as a Host in a USB device connected sense?
[EVO 4G Android Development] ViViDboarder:
Ahh, cool. Wasn't sure exactly how chroot worked. Thanks for the info.
[EVO 4G Android Development] zonyl:
I am not aware of any working software installation that makes the EVO act as a USB Host. Someone active in Cyanogen forums has made mention of getting something preliminarily working, however, it messes with the USB Drive / ADB functionality. Further, I believe the current kernel for CM6 has come close to the maximum size for the default NAND partitioning of the device, so crowding in support for USB On-The-Go may be a while off yet.
[EVO 4G Android Development] ViViDboarder:
Just a follow up on my last question... Anyone know if there is a newer image I should be using? Or just the one on the tutorial page?
[EVO 4G Android Development] ViViDboarder:
A couple extra questions...

First, if I'm following that tutorial in CM6 do I just start at the part where I copy the image over? Or do I have to make any kind of zimage flashes.

Second... I guess it ties into that other image file. How can I prepare my own? The 2GB one in the tutorial is WAY too big for me. I'm assuming the install would be the same, but I'd replace the ubuntu.img file with whatever image I want to use. So I guess when I get ubuntu working I can try to swap the image out at any time.

Lastly... Nandroid backups would overwrite/back this up since the install is to the /system folder. I'm trying to make sense about what's actually happening in the ubuntu.sh script. Looks like it mounts /dev/block/mtdblock3 to /system and then deletes files in /data/local/bin related to ubuntu (I'm guessing legacy stuff?) and then it creates a /data/local/mnt directory then deletes files from /system/bin and copies in the new ones.

Last it chmods the ubuntu dir on the SD and the /system/bin directory.

EDIT:

So I kinda just tried everything. All I did was copy over the ubuntu.zip file extracted and tried to install using the shell script included. When I couldn't get it to work I started doing everything line by line.

Now I'm trying to boot ubuntu. I opened up the bootubuntu so I can follow that line by line as well. My error message I'm getting is :

# mount-o loop,noatime -t ext2 /sdcard/ubuntu/ubuntu.img /data/local/mnt
mount: can't setup loop device: No such file or directory

When I ls /sdcard/ubuntu I can clearly see ubuntu.img. When I ls /data/local/ I can see mnt, tmp and a directory named ubuntu, which is empty... Not sure how that even got there as I do not see it in any of the scripts that are run.

Any ideas? I guess I can always look up chroot documentation I guess...
[EVO 4G Android Development] wintrxtrem:
Has anyone tried to get Hamachi running in ubuntu?

I can't post links, but would the top result for the google search "ubuntu arm hamachi" work for ubuntu on the Evo?

Any help/opinions would be greatly appreciated as this would be my primary/only reason for installing ubuntu on my Evo.. other than the cool factor, of course.
[EVO 4G Android Development] sammydadams:
so i'm likely ubernoob but i'm getting:

C:\android\tools>fastboot boot zImage

creating boot image...

creating boot image - 2113536 bytes

< waiting for device >

downloading 'boot.img'... OKAY

booting... FAILED (remote: not allowed)

C:\android\tools>

all i'm readig is its an SPL issue...does that mean i have to unlock my hboot still? it says HBOOT-0.93.0000 with S-OFF...I used unrevoked-forever after downgrading from 2.2 ota so i'm guessing i need to reflash eng HBOOT?

is this true?
[EVO 4G Android Development] v01rider:
so i have been working on this for the last 4 hours and cannot get it.

i am running cm6 with snap7 and cant get it to work. anyone on cm6 willing to PM me directions or possibly post here?

thanks
[EVO 4G Android Development] v01rider:
this is now where i am having my problem
[EVO 4G Android Development] daemonopus:
Same thing here actually, full wipe of SDcard, full wipe of system/everything, reinstalled my rom, flashed the zImage in the OP, and..... nothing, touchscreen is completely broken everytime

edit: tried with CM6/Myn2.2RLS1/BS1.8, stock kernels, and with Kings9BFS. Still a no-go. Using both OP's zImage, and using the zImage supplied on the "How to" htcevohacks site

2nd edit: holy crap. I just re-read this whole thread, and just realized how damn old these posts are.
[EVO 4G Android Development] v01rider:
yea, i was hoping some of those guys would come along and update the thread/directions.
[EVO 4G Android Development] daemonopus:
okay, I got it working. I am running Myn's 2.2RLS-1 with King's #9 Kernel

King's #9 already has loopback support, so completely ignore pushing the 4G/Wifi drivers, and DO NOT flash the zImage that is supplied in this post:

http://htcevohacks.com/htc-evo-hacks/how-to-install-ubuntu-on-htc-evo-4g/

1: Download the Ubuntu.zip from: http://www.megaupload.com/?d=FALJFT3L

2: Unzip it, put the ubuntu directory onto your SDCard, next, replace 'bootubuntu' in the directory with http://zedomax.com/android/bootubuntu

(this is the working bootubuntu, the one that comes with the original ubuntu.zip is broken)

3: follow the rest of the directions at http://nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-nexus-oneandroid/

4: cry because after a reboot, it won't start anymore

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

updat.1

I've isolated the problem to losetup being resident upon restart to loop1 being already resident for some reason, looks like it didnt losetup -d properly.

going from charge only, to Disk Drive, back to charge only fixes this, and allows for you to re-run the scripts and bring ubuntu back up.

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

updat.2

programs still seem to not work, will have to isolate why

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

updat.3

tried another reboot, and it solved itself
[EVO 4G Android Development] daemonopus:
If you are having trouble restarting ubuntu after doing "sh ./ubuntu.sh"

(ie, if you get "losetup: /dev/loop1: Device or resource busy")

1. unmount your sdcard by plugging in your USB to your computer, and switching to Disk Drive

2. go into adb shell

3. type in losetup /dev/block/loop1 /sdcard/ubuntu/ubuntu.img

4. remount your sdcard

5. go back to adbshell, go to /sdcard/ubuntu

6. type "bootubuntu"

/dev/block/loop0: 0 d32b589e2804b7d9a344c6977afd7817

/dev/block/loop1: 0 4f71b3f200aba88ea4e7dec0218965ec

# losetup /dev/block/loop3 /sdcard/ubuntu/ubuntu.img

losetup /dev/block/loop3 /sdcard/ubuntu/ubuntu.img

# bootubuntu

bootubuntu

mknod: /dev/loop1: File exists

losetup: /dev/block/loop1

mount: mounting /dev/block/loop1 on /data/local/ubuntu failed: Device or resourc

e busy

mount: mounting devpts on /data/local/ubuntu/dev/pts failed: No such file or dir

ectory

mount: mounting proc on /data/local/ubuntu/proc failed: No such file or director

y

mount: mounting sysfs on /data/local/ubuntu/sys failed: No such file or director

y

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/ubuntu/etc/resolv.conf: directory nonexist

ent

bootubuntu: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexist

ent

Setting localhost on /etc/hosts

bootubuntu: cannot create /data/local/ubuntu/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

umount: can't umount /data/local/ubuntu/dev/pts: No such file or directory

umount: can't umount /data/local/ubuntu/proc: No such file or directory

umount: can't umount /data/local/ubuntu/sys: No such file or directory

umount: can't umount /data/local/ubuntu: Invalid argument

losetup: /dev/loop1: Device or resource busy

# losetup

losetup

/dev/block/loop0: 0 d32b589e2804b7d9a344c6977afd7817

/dev/block/loop1: 0 4f71b3f200aba88ea4e7dec0218965ec

/dev/block/loop3: 0 /sdcard/ubuntu/ubuntu.img

# cd /

cd /

# losetup

losetup

/dev/block/loop3: 0 /sdcard/ubuntu/ubuntu.img

# losetup

losetup

/dev/block/loop3: 0 /sdcard/ubuntu/ubuntu.img

# losetup -d /dev/block/loop3

losetup -d /dev/block/loop3

# losetup /dev/block/loop1 /sdcard/ubuntu/ubuntu.img

losetup /dev/block/loop1 /sdcard/ubuntu/ubuntu.img

# losetup

losetup

/dev/block/loop1: 0 /sdcard/ubuntu/ubuntu.img

# bootubuntu

bootubuntu

mknod: /dev/loop1: File exists

net.ipv4.ip_forward = 1

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

Setting localhost on /etc/hosts

READY TO ROCK AND ROLL BABY!

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

New 'X' desktop is localhost:1

Starting applications specified in /root/.vnc/xstartup

Log file is /root/.vnc/localhost:1.log

root@localhost:/#
[EVO 4G Android Development] v01rider:
i followed your above directions and this is now what i get in adb:
[EVO 4G Android Development] daemonopus:
Did you replace the original 'bootubuntu' from the ubuntu.zip on your sdcard

(/sdcard/ubuntu) with this file: http://zedomax.com/android/bootubuntu

?

looks like you are getting the same error I was getting before I replaced that file with the new bootubuntu that is listed at the bottom of the page at: http://nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-nexus-oneandroid/
[EVO 4G Android Development] ViViDboarder:
Has anyone gotten it to work with CM6 stock or CM6 Snap kernels?

Also, anyone have any idea how I'd build my own IMG if I wanted to make it a custom size?
[EVO 4G Android Development] SleepyS40:
edit

I have been dicking with it for a while now and I cannot get it to boot for the life of me. Running cm6 snap

edit

ok, I don't really know what I was doing, I was getting pissed and running some losetep commands because I only had one loop back instead of three like the previous post. I had to add another and re try.
[EVO 4G Android Development] v01rider:
yep, replaced the bootubuntu file. i even deleted it and copied it back over from my c drive. still same error.

i went into terminal services on droid and ran the same commands, and get the same error.

now im wondering if it is a cm6 problem.
[EVO 4G Android Development] SleepyS40:
NO it works, im on the latest nightly running snap 7.6 with turbo and I get it to boot. But my homescreen looks different than the previous photo. Mine is orange.

edit

and after a reboot, it doens't work, i get the device busy error again.

SUCK
[EVO 4G Android Development] ViViDboarder:
So you DID end up getting it to work?
[EVO 4G Android Development] harish.awe:
Plz someone make it work with HTC DESIRE

Plz someone make it work with HTC DESIRE

i have been trying all the methods provided for nexus one,, but still i'm getting error message At last step

plz help...!!!
[EVO 4G Android Development] ViViDboarder:
The directions should work the same for any device as long as the kernel is compiled with loop device support. Ask your kernel dev.
[EVO 4G Android Development] SleepyS40:
Yeah man, I got it working on a cm6 nightly with snap turbo, I did have to do lot of losetep commands to get it to work right, but after a reboot I have to do it all over again.
[EVO 4G Android Development] ViViDboarder:
Yea. I guess I should have known Snap has Loop since that's what Turbo does anyway, haha. Probably would make it a bit more complicated to set up Linux with Turbo on though.
[EVO 4G Android Development] Wisiwyg:
Ubuntu as USB Host on Evo?

To those of you that have been able to get Ubuntu running on the EVO, can it serve as a USB Host or is it still client only?
[EVO 4G Android Development] btginsb:
hey ive been working on this for the past few days on my evo.

im on fresh 3.2 with kings kernel #10.

i had to modify the bootubuntu file a bit for it to work in the first place, but after reboot, all was lost. I am now looking to see if I can add some more commands to bootubuntu to fix this. But for the most part, IT WORKS!

EDIT: I got it to work perfectly! Even after reboot it still works. I edited the ubuntu.sh and bootubuntu files. For extra info or for the files please PM me...
[EVO 4G Android Development] v01rider:
would you be so kind to post your commands? :D
[EVO 4G Android Development] ViViDboarder:
I don't have it working yet. I haven't tried since flashing Snap but I didn't get it to work last time I tried.
[EVO 4G Android Development] dec3ption:
Sooooo what did you do to make this work?!
[EVO 4G Android Development] btginsb:
pretty much put a few lines into the ubuntu.sh to add a third loop on my kernel and then changed the bootubuntu commands to reference to boot3 instead of boot1. with my setup i also have to run the ubuntu.sh to make it work EVERY time i boot up but im really not complaining cus it works perfectly. My next goal is to see if a bluetooth mouse and keyboard can be used...
[EVO 4G Android Development] Mr.zeus:
which version of ubuntu does it run?

is the totarial & files work on desire?
[EVO 4G Android Development] daemonopus:
I found a Lucid image for android with more instructions on the process here:

http://code.google.com/p/android-cruft/wiki/LucidWithAndroid
[EVO 4G Android Development] ViViDboarder:
Awesome, thanks! I'll have to check this out when I get my phone back from Best Buy.
[EVO 4G Android Development] KirkH420:
I pulled the config.gz file from the Fresh 3.3.0.1 ROM I have running on my EVO. It is the kernel that comes along with Fresh posted on XDA forum.

I gunzip and opened it in gedit

The config file says:

#Linux kernel version 2.6.32.15

#Wed Sep 1 15:05:46 2010

#

then scroll down... i see

# CONFIG_BLK_DEV_COW_COMMON is not set

CONFIG_BLK_DEV_LOOP=y

# CONFIG_BLK_DEV_CRYPTOLOOP is not set

Was going to enable loop and compile but it looks like it already is. I haven't tried installing ubuntu on the phone yet as I thought loop needed to be enabled first. Guess I'll move forward with the installation. :)