[TUT] Ubuntu on Evo 4g

Search This thread
J

jasecloud4

Guest
Good explanation. Although, how would booting this directly in terminal emulator affect the operation of the phone?

~Jasecloud4
 

mrpuffin

Senior Member
Dec 15, 2009
191
11
31
Monroe, Wa, USA
Good explanation. Although, how would booting this directly in terminal emulator affect the operation of the phone?

~Jasecloud4

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
 

Vinny75

Senior Member
Jul 14, 2007
241
12
and as for performance i don't know yet as mine started working the first bootup and now i cant get it to work

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"
 

Repnepto

Member
Jun 2, 2010
37
0
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 ...

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.

Sent from my PC36100 using XDA App
 

pseudoremora

Senior Member
Nov 28, 2009
1,214
70

verse187

Senior Member
Apr 10, 2010
412
14
Cali Baby
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.
#
 

evilecho

Senior Member
Dec 30, 2005
177
171
Please, wrong section... I am begging you. The Q&A section is two clicks away.

Ubuntu hasn't been ported to the Evo. It is a highly involved process. You can't expect a ROM for the Nexus One to work on the Evo right? There are drivers to port, kernel modifications to be made. Lots of stuff have to happen first.

The website you pointed to mentions that he is working on a port anyhow. Wait for that to come out.

Whats up with this guy...

Seems a bit on edge
 

zedomax

Senior Member
Mar 23, 2010
1,219
2,870
Daly City, CA
HighOnAndroid.com
Busybox!

Try the other script! updated script at bottom of post! Sorry, I am going to upload a new zip file soon.
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.
#
 

Mast3rpyr0

Senior Member
Jan 27, 2010
286
1
Columbus
Can i flash the zImage without messing up my current kernal? I have the 5.1.1 kernal for froyo novatec screens.
 
Last edited:

pseudoremora

Senior Member
Nov 28, 2009
1,214
70
Can i flash the zImage without messing up my current kernal? I have the 5.1.1 kernal for froyo novatec screens.

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.

Actually, to make the kernel NOT permanent, you would run the command:
Code:
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.
 

-viperboy-

Inactive Recognized Developer
Jun 24, 2007
7,836
12,992
PA

Actually, to make the kernel NOT permanent, you would run the command:
Code:
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.

So is there a way to dual boot and make it so when you dual boot, it flashes the temp kernel??