FORUMS

CloudPlayer: DIY HiFi Music Streaming Solution

In our Helpful Guide to Music Streaming Services, we mentioned several different services … more

Optimize Battery Life with This Useful App

Battery life is an important aspect of your smartphone, especially if you use it for more … more

The OnePlus 2 & The Year of Smartphone Compromises

We are very close to entering the last third of 2015, and we have now seen many of … more

OnePlus 2 Teardown, Major Android Vulnerability – XDA TV

The OnePlus 2 has been officially released. That and much more news is … more

[N1] {EXP} UbuntuPhone

602 posts
Thanks Meter: 3,469
 
By texasice, Retired Recognized Developer on 25th February 2013, 12:25 AM
Post Reply Subscribe to Thread Email Thread
Ubuntu Phone for Nexus One brought to you by Evervolv

Prereq:
Quote:

Sdcard with sd-ext part. i.e. A second partition formated as ext4 and AT LEAST 1.5GB FREE space
Micro sdcard reader for pc.
Linux pc with sudo access. NO WINDOWS PCs
Will work on any hboot (including stock)

Intro:
Quote:

Ubuntu is ~1GB so we must install to the sdcard. Instead of ****ing with a2sd
I have just modified the ramdisk to mount mmcblk0p2 (sdcard second partition)
directly to /data. The 'copy-tarball' script will push the ubuntu rootfs to the
proper location which is mounted as /data/ubuntu. The perms on this folder must
be correct or it will not boot, therefore no windows (unless someone gets it
working).

How it works:
Quote:

Ubuntu did a fantastic job making this easy. Essentially all that is happening
is it boots android sans gui. During the bootup a service called ubuntu_chroot
runs which exports some vars, bind mounts some things, then chroots /data/ubuntu
and starts the ubuntu init process. From there the prebuilt ubuntu takes off.

Building:
Quote:

The android side is now based on Evervolv v3.2.0 every device we support
can run ubuntu with minor changes.
to get source:

Code:
repo init -u git://github.com/Evervolv/android.git -b jellybean-ubuntuphone
repo sync

Whats working:
Quote:

Wifi, Browser, THAT IS IT. It is slow, very very alpha.
Only install if you are curious.

Install:
---Download:
Quote:

Grap the latest installer script, and android image from http://archive.evervolv.com/ubuntuphone/
Ive also uploaded the ubuntu rootfs i used to test it, you can try the latest nightlies but if they dont work download the latest ubuntu rootfs from above url

---Insert sdcard and mount
Quote:

Most distros will automount. In that case just figure out what folder its in
e.g. /run/media/drew/blablabla
If not just open in in nautilus and figure out what folder its in.

---Unzip installer tools
Code:
$ cd ~/Downloads
$ unzip ev-nexusone-ubuntu-tools-1.zip
$ cd ev-nexusone-ubuntu-tools
---Copy the ubuntu rootfs to sdcard
Code:
# adjust paths accordingly.
$ bash copy-tarball.sh quantal-preinstalled-phablet-armhf.zip /run/media/drew/blablabla
---Install android images
Quote:

like any other rom, fastboot update package and flashable zip available
no wipe needed

---Bootup
Quote:

There is no bootanimation, just black screen. It might take up to 5 minutes to boot ubuntu. If you think it is stuck. Check logcat and dmesg
$ adb logcat -C
->> check for repeating errors
$ adb shell dmesg
->> check repeating errors e.g.
<6>[ 181.698364] init: ubuntu-session state changed from starting to pre-start
<6>[ 181.698608] init: ubuntu-session state changed from pre-start to spawned
<6>[ 181.715667] init: ubuntu-session main process (724)
<6>[ 181.716003] init: ubuntu-session state changed from spawned to post-start
<6>[ 181.716583] init: ubuntu-session state changed from post-start to running
post full logcat and dmesg

---Once booted
Code:
#swipe right to unlock
#drag down on network icon and connect to network (confirmed wpa2 personal works)
#use adb to set timezone and install ssh
$ adb shell
root@android:/ # ubuntu_chroot shell
#change to yours
root@localhost:/# echo "America/Chicago" > /etc/timezone
root@localhost:/# dpkg-reconfigure --frontend noninteractive tzdata
root@localhost:/# apt-get update
root@localhost:/# apt-get install openssh-server
# set reasonable hostname
root@localhost:/# echo n1 > /etc/hostname
# get out and reboot
root@localhost:/# exit
root@android:/ # exit
$ adb reboot
# do NOT reboot from within ubuntu chroot you must reboot from android
#connect ssh password phablet
ssh phablet@n1
enjoy full command line goodness on your phone
phablet@n1:~$ lsb_release --all
    No LSB modules are available.
    Distributor ID:	Ubuntu
    Description:	Ubuntu 12.10
    Release:	    12.10
    Codename:	    quantal
phablet@n1:~$ uname -a
    Linux n1 2.6.38.8-evervolv-perdo-jellybean #1 PREEMPT Sun Feb 24 16:34:07 CST 2013 armv7l armv7l armv7l GNU/Linux
---Navigation
Quote:

Softbuttons (home/menu/back/search) dont work and wont. ubuntu is swipe based and these would only inhibit usage
swipe up from bottom to get to app specific menu
swipe up from bottom to about halfway up screen untill you see the button (see last screenshot) to get to main menu (where you can close apps)

---Caveats
Quote:

Allways keep it plugged in. There is no power management
Screen stays on all the time, and there is no way to turn off the device
except through adb.

To get back to regular android
Quote:

boot recovery and run nandroid or flash latest evervolv nightly (or whatever)

Attached Thumbnails
Click image for larger version

Name:	device-2013-02-24-165304.jpg
Views:	5202
Size:	15.7 KB
ID:	1758255   Click image for larger version

Name:	device-2013-02-24-164826.jpg
Views:	5054
Size:	25.4 KB
ID:	1758256   Click image for larger version

Name:	device-2013-02-24-164345.jpg
Views:	4525
Size:	12.0 KB
ID:	1758257   Click image for larger version

Name:	device-2013-02-24-165543.jpg
Views:	3783
Size:	10.8 KB
ID:	1758258  
Last edited by texasice; 12th July 2013 at 05:03 AM.
The Following 40 Users Say Thank You to texasice For This Useful Post: [ View ]
 
 
25th February 2013, 12:33 AM |#2  
Senior Member
Frostburg
Thanks Meter: 55
 
More
Re: [N1][DEV] UbuntuPhone {EXP}
You are awesome thank you somuch!

Sent from my Nexus One using xda premium
25th February 2013, 12:49 AM |#3  
Senior Member
Thanks Meter: 25
 
More
Re: [N1][DEV] UbuntuPhone {EXP}
My God, this is beautiful. At this rate I'm never going to get rid of my nexus one.

Sent from my Nexus 7 using Tapatalk 2
25th February 2013, 03:08 AM |#4  
clustered's Avatar
Senior Member
Flag Kuala Lumpur
Thanks Meter: 33
 
More
Cool! Thanks very much! Love it and love you!!! Haha...
25th February 2013, 03:10 AM |#5  
rabies876's Avatar
Senior Member
Flag Clarendon
Thanks Meter: 33
 
More
Nexus one ine the best of all time.
The Following User Says Thank You to rabies876 For This Useful Post: [ View ]
26th February 2013, 04:56 AM |#6  
Senior Member
Thanks Meter: 33
 
More
Awesome! Thanks texasice!
26th February 2013, 07:05 AM |#7  
sphinxcs898's Avatar
Senior Member
Flag San Jose
Thanks Meter: 56
 
More
Superb!

Just when I thought that 4.2.1 is going to be the last flavor of Android I flash on my beloved N1, along comes texasice with a Ubuntu flavor.

Thanks a lot man! You rock!
27th February 2013, 02:49 AM |#8  
-DarkKnight-'s Avatar
Senior Member
Flag Gotham
Thanks Meter: 1,233
 
More
Re: [N1][DEV] UbuntuPhone {EXP}
Can't wait until this is stable

You just got trolled by Dark Knight

This deserves a portal post
27th February 2013, 04:01 AM |#9  
sphinxcs898's Avatar
Senior Member
Flag San Jose
Thanks Meter: 56
 
More
Quote:
Originally Posted by -DarkKnight-

Can't wait until this is stable

You just got trolled by Dark Knight

This deserves a portal post

+1 I agree with Dark Knight. Thoroughly deserves a portal post!
27th February 2013, 04:21 AM |#10  
-DarkKnight-'s Avatar
Senior Member
Flag Gotham
Thanks Meter: 1,233
 
More
Re: [N1][DEV] UbuntuPhone {EXP}
Everyone send PMs to the portal writers

Nexus One deserves some glory again

You just got trolled by Darkknight
The Following 2 Users Say Thank You to -DarkKnight- For This Useful Post: [ View ]
27th February 2013, 05:48 AM |#11  
sphinxcs898's Avatar
Senior Member
Flag San Jose
Thanks Meter: 56
 
More
Quote:
Originally Posted by -DarkKnight-

Everyone send PMs to the portal writers

Nexus One deserves some glory again

You just got trolled by Darkknight

Didn't know whom to contact, so just sent a message to Jimmy Mcgee ( he posted something in the portal ). Not just this, but texasice's hard work deserves to be appreciated.

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes