[N1] {EXP} UbuntuPhone

Search This thread

texasice

Retired Recognized Developer
Oct 27, 2009
603
3,434
Austin
Ubuntu Phone for Nexus One brought to you by Evervolv

Prereq:
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:
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:
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:
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:
Wifi, Browser, THAT IS IT. It is slow, very very alpha.
Only install if you are curious.

Install:
---Download:
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
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
like any other rom, fastboot update package and flashable zip available
no wipe needed

---Bootup
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
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
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
boot recovery and run nandroid or flash latest evervolv nightly (or whatever)
 

Attachments

  • device-2013-02-24-165304.jpg
    device-2013-02-24-165304.jpg
    15.7 KB · Views: 5,362
  • device-2013-02-24-164826.jpg
    device-2013-02-24-164826.jpg
    25.4 KB · Views: 5,224
  • device-2013-02-24-164345.jpg
    device-2013-02-24-164345.jpg
    12 KB · Views: 4,686
  • device-2013-02-24-165543.jpg
    device-2013-02-24-165543.jpg
    10.8 KB · Views: 3,937
Last edited:

JeremyNT

Senior Member
Jul 22, 2010
383
25
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
 

sphinxcs898

Senior Member
May 12, 2012
263
59
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!
 

-DarkKnight-

Senior Member
Mar 14, 2011
6,483
1,303
Gotham
Re: [N1][DEV] UbuntuPhone {EXP}

Can't wait until this is stable

You just got trolled by Dark Knight

This deserves a portal post
 

RaDi

Senior Member
Aug 8, 2010
558
100
oh my god , i just formatted my PC and remove all development and linux stuff =/

i wanna try this so bad ,,, but i'll wait until we have windows installation guide :(
 

texasice

Retired Recognized Developer
Oct 27, 2009
603
3,434
Austin
Once ubuntu gets it more stable we'll post a custom ubuntu rootfs that can be flashed directly from recovery ( the *phablet*.zip is flashable but can only be used on devices with enough space on /data) For now you can probably modify the updater-script to install to /sd-ext/ubuntu if you dont have linux.
 

fkardame

Senior Member
Oct 28, 2011
289
45
Manama
omg this is amazing man...
lovely though of making ubuntu touch for r beloved N1
would be booting to this soon

m in love with ubuntu touch
 
Last edited:

pinkster

Senior Member
Mar 9, 2011
167
11
Montevideo
Re: [N1][DEV] UbuntuPhone {EXP}

Is ubuntu supposed to be less power hungry than JB or is exactly the same? Is it going to run fast on old phones?
I have my old nexus one and would love to revive it but JB is too buggy and power hungry for the n1.

Sent from my Nexus 4 using xda premium
 

fkardame

Senior Member
Oct 28, 2011
289
45
Manama
Time For Ubuntu on my N1
Hey texas thanks again n u r official canonical dev :eek:
ill be ur tester ;)
as i m thinking of keeping only ubuntu on my device as i dont use it .. its just in my shelf..
@texas just a question i m lil confused with sd card ....
as u say v need 1.5gb space n v have to make 2 partition
so should it be 1st partition of ext4 and 2nds partition ext4
or 1st partition fat32 and 2nd partition ext4 ??
and which partition should have 1.5gb free space?

sorry srrry sorry sorrryy dint read it in the xcitement lmao

got it right
thanks alot
n a slight error in android image flashable link
http://goo.gl/DGBOS]Flashable is not working
http://goo.gl/DGBOS <<< this is the right link
enjoy
 
Last edited:
  • Like
Reactions: juasjuas

klaydze

Senior Member
Feb 5, 2010
254
21
Manila
I will use this if it can use as daily driver (text, call, wifi). :)

But this is goods news that even our N1 can flash this.
 

gregferns

Senior Member
Sep 19, 2009
1,191
136
Mumbai
Xiaomi Poco F1
OnePlus Nord

Top Liked Posts

  • There are no posts matching your filters.
  • 40
    Ubuntu Phone for Nexus One brought to you by Evervolv

    Prereq:
    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:
    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:
    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:
    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:
    Wifi, Browser, THAT IS IT. It is slow, very very alpha.
    Only install if you are curious.

    Install:
    ---Download:
    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
    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
    like any other rom, fastboot update package and flashable zip available
    no wipe needed

    ---Bootup
    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
    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
    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
    boot recovery and run nandroid or flash latest evervolv nightly (or whatever)
    10
    Once ubuntu gets it more stable we'll post a custom ubuntu rootfs that can be flashed directly from recovery ( the *phablet*.zip is flashable but can only be used on devices with enough space on /data) For now you can probably modify the updater-script to install to /sd-ext/ubuntu if you dont have linux.
    9
    Display is working again...

    Get the new android img:

    Get the new installer package:

    Get the latest raring release: (i tested with the 4/24 build, if the latest is broked again.. try this)

    And run the installer.

    just a note. it is no more usable now that it was for the mwc demo. they still need time to get it working, like i said before probably early 2014.
    3
    WOOOWWWWWWWW
    Booted n was amazed with its UI
    all finger gestures....to control the OS
    Soon Lots of pics to be Uploaded
    N Texas great oppurtunities ahead ;)

    Pics >>>> https://docs.google.com/folder/d/0B8s85NYpuJpgVlF2WkdFZGJBNzA/edit?usp=sharing