5,605,250 Members 38,407 Now Online
XDA Developers Android and Mobile Development Forum

[N1] {EXP} UbuntuPhone

Tip us?
 
texasice
Old
(Last edited by texasice; 12th July 2013 at 05:03 AM.)
#1  
texasice's Avatar
Recognized Developer - OP
Thanks Meter 3444
Posts: 602
Join Date: Oct 2009
Location: Austin
Default [N1] {EXP} UbuntuPhone

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:	4795
Size:	15.7 KB
ID:	1758255   Click image for larger version

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

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

Name:	device-2013-02-24-165543.jpg
Views:	3449
Size:	10.8 KB
ID:	1758258  
Evervolv: Gerrit | Github My: Github | Google+
Google Nexus One (passion): w/ Evervolv Kitkat - 2.6.38.8 - 5.08.00.04 - 7.35.5017 (BlackRose)
Google Nexus 4 (mako): w/ Stock Kitkat - 3.4.0
Google Nexus 7 (flo): w/ Stock Kitkat - 3.4.0
The Following 39 Users Say Thank You to texasice For This Useful Post: [ Click to Expand ]
 
d3adbroke
Old
#2  
Senior Member
Thanks Meter 51
Posts: 1,948
Join Date: Oct 2009
Location: Frostburg
Default Re: [N1][DEV] UbuntuPhone {EXP}

You are awesome thank you somuch!

Sent from my Nexus One using xda premium
 
JeremyNT
Old
#3  
Senior Member
Thanks Meter 24
Posts: 378
Join Date: Jul 2010
Default 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
 
clustered
Old
#4  
clustered's Avatar
Senior Member
Thanks Meter 19
Posts: 893
Join Date: Oct 2005
Location: Kuala Lumpur
Cool! Thanks very much! Love it and love you!!! Haha...
 
rabies876
Old
#5  
rabies876's Avatar
Senior Member
Thanks Meter 31
Posts: 218
Join Date: Oct 2012
Location: Clarendon
Nexus one ine the best of all time.
The Following User Says Thank You to rabies876 For This Useful Post: [ Click to Expand ]
 
m2xtreme
Old
#6  
Senior Member
Thanks Meter 33
Posts: 125
Join Date: Sep 2010
Awesome! Thanks texasice!
 
sphinxcs898
Old
#7  
sphinxcs898's Avatar
Senior Member
Thanks Meter 56
Posts: 255
Join Date: May 2012
Location: San Jose
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!
HTC One 802w Dual Sim
ROM: Maximus HD 2.0.0
Recovery: ClockworkMod Touch Recovery 6.0.4.6



Google Nexus One(Retired)
ROM: CM10.1 JellyBean 4.2.2 | Paranoid Android 4.2.2 Halo 3.6 | PixelDroid 4.2.2 Carbon
HBOOT: BlackRose 260.10.166
Recovery: 4EXT Recovery Touch v1.0.0.5 RC8
Kernel : 2.6.38.8-evervolv-perdo-jellybean
SD Card : Transcend 16 GB Class 10
 
-DarkKnight-
Old
#8  
-DarkKnight-'s Avatar
Senior Member
Thanks Meter 1141
Posts: 6,220
Join Date: Mar 2011
Location: Gotham
Default Re: [N1][DEV] UbuntuPhone {EXP}

Can't wait until this is stable

You just got trolled by Dark Knight

This deserves a portal post

 


Device: Nexus 5
Rom: CM11

Device: Galaxy SII T989
Rom: Broke

Device: Desire Z
ROM: Sold

Device: Acer Iconia A100
ROM: Bricked

Device: LG Optimus T, Nexus One
Status: Sold

 
sphinxcs898
Old
#9  
sphinxcs898's Avatar
Senior Member
Thanks Meter 56
Posts: 255
Join Date: May 2012
Location: San Jose
Quote:
Originally Posted by -DarkKnight- View Post
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!
HTC One 802w Dual Sim
ROM: Maximus HD 2.0.0
Recovery: ClockworkMod Touch Recovery 6.0.4.6



Google Nexus One(Retired)
ROM: CM10.1 JellyBean 4.2.2 | Paranoid Android 4.2.2 Halo 3.6 | PixelDroid 4.2.2 Carbon
HBOOT: BlackRose 260.10.166
Recovery: 4EXT Recovery Touch v1.0.0.5 RC8
Kernel : 2.6.38.8-evervolv-perdo-jellybean
SD Card : Transcend 16 GB Class 10
 
-DarkKnight-
Old
#10  
-DarkKnight-'s Avatar
Senior Member
Thanks Meter 1141
Posts: 6,220
Join Date: Mar 2011
Location: Gotham
Default Re: [N1][DEV] UbuntuPhone {EXP}

Everyone send PMs to the portal writers

Nexus One deserves some glory again

You just got trolled by Darkknight

 


Device: Nexus 5
Rom: CM11

Device: Galaxy SII T989
Rom: Broke

Device: Desire Z
ROM: Sold

Device: Acer Iconia A100
ROM: Bricked

Device: LG Optimus T, Nexus One
Status: Sold


The Following 2 Users Say Thank You to -DarkKnight- For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes