• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[ROM-DEV] Ubuntu Touch port for Desire Z [WIP][Sources Alpha1&ROM Alpha3 ONLINE]

Search This thread

utopykzebulon

Senior Member
Jul 5, 2008
829
515
37
Grenoble
1306110342143476011282519.png


DEVELOPERS ONLY
These builds are very unstable and should not be used on a daily base. It's pretty much just a preview of a preview. Use these builds at your own risk!
Ubuntu Touch is not ready for daily usage yet and these builds lack a lot of functionality usually available in Ubuntu Touch - you have been warned!
I will publish new builds when new features are done! Please do not aks for ETAs as this is very new stuff to work on, for me.

Code:
#include
    /*
    * Your warranty is now void.
    *
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    */

1306110343043476011282528.png
This is very early port of Ubuntu Touch for the HTC Desire Z.
This is a developer preview! Do not expect it to have every bell and whistle functional.

Have fun! :D

Video
Thanks to HTCDreamOn



No more needed!!!
1306110342403476011282524.png
Pre-requirements:
  • ADB commands
  • Some knowleges with ADB commands

To start Ubuntu Touch (until I fix it!)

Plug your device to your computer,
In a prompt, type :

For Linux users :
Code:
adb kill-server
sudo adb start-server

Code:
adb root
adb shell
ubuntu_chroot shell
ubuntu-touch-session

Usb can't be unplugged ATM or Ubuntu Touch will be down!!!


1306110342243476011282522.png

  • Flinny and Andromadus for the work on cm10.1
  • HTCDreamOn for the kernel
  • gh1234 for his great help
  • w-flo (ubuntu mailling liste) for his sources and great help
  • Some people on freenode live chat
  • MonkeySnot for banners
  • Ubuntu
  • Google
 
Last edited:

utopykzebulon

Senior Member
Jul 5, 2008
829
515
37
Grenoble
1306110342183476011282520.png
Remember Ubuntu is already in pre-alpha build....
  • Alpha 3
    Speed improvements
    + others minor fix
  • Alpha 2
    Fixed autoboot
    Fixed wifi
    SMS
    Phone call
    Sound
  • Alpha 1
    Initial release.

1306110342523476011282527.png

How to Build :

Follow https://github.com/utopykzebulon/android/blob/master/README.md

Initialize your repo with git://github.com/utopykzebulon/android.git
Add the ubuntu/hybris (lp:phablet-extras/libhybris) and ubuntu/platform-api (lp:platform-api) parts.
Run brunch cm_vision-eng

1306110342323476011282523.png


Hboot need to be updated :

Desire Z :
  1. Boot your device into Bootloader/Fastboot
  2. fastboot devices //Verify that the device is detected
  3. fastboot erase cache //Not sure if this is completely necessary, but the guide I followed included it as a step
  4. fastboot oem rebootRUU //Boot into RUU, which lets you flash HBOOT, radio, etc.
  5. Download DesireZ_Hboot.zip
  6. fastboot flash zip DesireZ_Hboot.zip //Flash the new Hboot 0.85.00015
  7. fastboot reboot-bootloader //Bootloader will write "***locked***", you can unlock it with htcdev.com

TMobile G2 :
I'll need testers, please PM me! thx

***/!\*** All the files must be on the root of your sdcard

Alpha 3

1. Flash updated Hboot
2. cm-10.1-20130725-UNOFFICIAL-vision.zip
3. vision-saucy-preinstalled-phablet-armhf.zip
4. You'll need also "ubuntu-touch-saucy-armhf.tar.gz" you can found it in saucy-preinstalled-phablet-armhf.zip from ubuntu cdimage. extract the .tar.gz

push all the 3 files to the root of your sdcard, install 1. then 2.


Alpha 2

1. cm-10.1-20130705-UNOFFICIAL-vision.zip
2. vision-saucy-preinstalled-phablet-armhf.zip
3. You'll need also "ubuntu-touch-saucy-armhf.tar.gz" you can found it in saucy-preinstalled-phablet-armhf.zip from ubuntu cdimage. extract the .tar.gz

push all the 3 files to the root of your sdcard, install 1. then 2.





Alpha 1
  1. Install Ubuntu_Touch-vision.zip,
  2. Install install_ubuntu-rootfs_from_sdcard.zip (this'll take a while.),
  3. Install ubuntu-touch-session.zip,
  4. Reboot, type adb commands and enjoy.
 
Last edited:

utopykzebulon

Senior Member
Jul 5, 2008
829
515
37
Grenoble
1306110342463476011282525.png
Thanks to gh1234 to give me the way!

Some of old device haven't enough space in /DATA tou install ubuntu-rootfs so we we'll install it from sdcard!
  • First of all extract "ubuntu-touch-***-armhf.tar.gz" from your "***-preinstalled-phablet-armhf.zip" rename it as "ubuntu-rootfs.tar.gz"
  • Delete "ubuntu-touch-***-armhf.tar.gz" in your zip file
  • Patch these both files :ubuntu_deploy.sh and updater-script.
  • Copy "ubuntu-rootfs.tar.gz" and your patched "***-preinstalled-phablet-armhf.zip" into the root of your sdcard.

Files have to be like this. :

ubuntu_deploy.sh

Code:
#!/sbin/sh

android_boot=/system/boot

ubuntu=/data/ubuntu
ubuntu_boot=$ubuntu/boot
ubuntu_bak=/data/ubuntu_bak

phablet_home=$ubuntu/home/phablet
phablet_home_bak=$ubuntu_bak/home

timezone=$ubuntu/etc/timezone
timezone_bak=$ubuntu_bak/timezone

ofono=$ubuntu/var/lib/ofono
ofono_bak=$ubuntu_bak/ofono

network_settings=$ubuntu/etc/NetworkManager/system-connections
network_settings_bak=$ubuntu_bak/nm_connections

tmp_extract=/data/ubuntu_tmp_extract

backup() {
    mkdir -p $ubuntu_bak
    if [ -d $2 ]; then
        echo "Removing previous backout of $1"
        rm -rf $2
    fi
    if [ -d $1 ]; then
        echo "Backing up $1 to $2"
        mv $1 $2
    fi
}

restore() {
    if [ -d $2 ]; then
        echo "Restoring $1 from $2"
        rm -rf $1
        mv $2 $1
    fi
}

copy_android_ramdisk() {
    if [ -f $android_boot/android-ramdisk.img ]; then
        cp -f $android_boot/android-ramdisk.img $ubuntu_boot
    fi
}

deploy_ubuntu() {
    echo "Deploying Ubuntu"
    if [ -d $tmp_extract ]; then
        rm -rf $tmp_extract
    fi
    mkdir -p $tmp_extract
    tar --numeric-owner -xzf /sdcard/ubuntu-rootfs.tar.gz -C $tmp_extract
    if [ -d $ubuntu ]; then
        rm -rf $ubuntu
    fi
    mv $tmp_extract $ubuntu
}

backup $phablet_home $phablet_home_bak
backup $network_settings $network_settings_bak
backup $ofono $ofono_bak
backup $timezone $timezone_bak
deploy_ubuntu
copy_android_ramdisk
restore $phablet_home $phablet_home_bak
restore $network_settings $network_settings_bak
restore $ofono $ofono_bak
restore $timezone $timezone_bak

Updater-script
Code:
ui_print("");
ui_print("Welcome to the Ubuntu RootFS Sdcard Installer by Utopykzebulon");
ui_print("");

show_progress(1.000000, 60);

ui_print("Mounting system, userdata and Sdcard partitions...");
run_program("/sbin/mount","/system");
run_program("/sbin/mount","/data");
run_program("/sbin/mount","/sdcard");
set_progress(0.100000);

ui_print("Checking Files...");
package_extract_file("ubuntu_deploy.sh", "/tmp/ubuntu_deploy.sh");
set_perm(0, 0, 0777, "/tmp/ubuntu_deploy.sh");
set_progress(0.300000);

ui_print("Deploying Ubuntu Touch from Sdcard...");
run_program("/tmp/ubuntu_deploy.sh");
set_progress(0.800000);

unmount("/data");
unmount("/system");
run_program("/sbin/sync");
set_progress(1.000000);

Or you can download mine from here.
 
Last edited:

Xardejn

Senior Member
Oct 3, 2009
118
12
Toruń
Srlsy dude? Don't post anything, when you're not 100% sure that you have links working, info all over post about rom, and needed stuff. I don't want to mock or offend You, but these are the rules of forum. There was similiar situation few weeks ago.
BTW. Keep working on it.

Sent from my HTC Vision using xda app-developers app
 

utopykzebulon

Senior Member
Jul 5, 2008
829
515
37
Grenoble
Srlsy dude? Don't post anything, when you're not 100% sure that you have links working, info all over post about rom, and needed stuff. I don't want to mock or offend You, but these are the rules of forum. There was similiar situation few weeks ago.
BTW. Keep working on it.

Sent from my HTC Vision using xda app-developers app

Man, have a look on it ;)
 
  • Like
Reactions: amedian

greed2

Senior Member
Jul 30, 2012
207
5
When we will see it ?

Sent from my HTC Desire Z using xda app-developers app
 

asp2010

Senior Member
Oct 9, 2010
734
277
Nice job!

Hey, man, just wanted to say it's a great thing you're doing, I'll be following the thread closely! :good:
 

HTCDreamOn

Senior Member
Jun 17, 2012
1,069
1,351
RE: [ROM-DEV] Ubuntu Touch port for Desire Z [WIP][ONLINE]

@utopykzebulon Finally got the chance to test this now :) anything specific you want tested/logged/recorded ?

*EDIT*: Woo :D this is AWESOME thanks so much for this ;) can't wait to see your progress. I've made a quick video about 3 and a half minutes long, but no logs or anything :eek: sorry, don't know if they'd've been of any help though, I didn't bother trying wifi etc. as you already seem to know of all the problems. But by god this thing is smooth, I expected serious lag but it seems great to use :good:
 
Last edited:

utopykzebulon

Senior Member
Jul 5, 2008
829
515
37
Grenoble
@utopykzebulon Finally got the chance to test this now :) anything specific you want tested/logged/recorded ?

*EDIT*: Woo :D this is AWESOME thanks so much for this ;) can't wait to see your progress. I've made a quick video about 3 and a half minutes long, but no logs or anything :eek: sorry, don't know if they'd've been of any help though, I didn't bother trying wifi etc. as you already seem to know of all the problems. But by god this thing is smooth, I expected serious lag but it seems great to use :good:

Normally audio, WiFi and auto start are easy to fix... Next build I hope ;) but if you want to try to fix some things I'll be happy cause I don't have a lot of time... Send me the link of your video please I'll push it in the 1st post...
 

BIade

Senior Member
Apr 11, 2013
692
544
Cologne
Normally audio, WiFi and auto start are easy to fix... Next build I hope ;) but if you want to try to fix some things I'll be happy cause I don't have a lot of time... Send me the link of your video please I'll push it in the 1st post...

Nobody can tell us to buy a new phone. (if I were rich I would have 3 Desire Zs) ;) Ubuntu touch on DesireZ, WTF?? So nice bro! Keep it up the good work :good:
 

mrvelvet

Member
Sep 27, 2007
42
29
Can't wait for the sources!

I just flashed and tried your build - it's working pretty nicely! Obviously drivers etc. are the next thing.

I can't wait for you to get the sources uploaded so we can have a poke about!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 23
    1306110342143476011282519.png


    DEVELOPERS ONLY
    These builds are very unstable and should not be used on a daily base. It's pretty much just a preview of a preview. Use these builds at your own risk!
    Ubuntu Touch is not ready for daily usage yet and these builds lack a lot of functionality usually available in Ubuntu Touch - you have been warned!
    I will publish new builds when new features are done! Please do not aks for ETAs as this is very new stuff to work on, for me.

    Code:
    #include
        /*
        * Your warranty is now void.
        *
        * I am not responsible for bricked devices, dead SD cards,
        * thermonuclear war, or you getting fired because the alarm app failed. Please
        * do some research if you have any concerns about features included in this ROM
        * before flashing it! YOU are choosing to make these modifications, and if
        * you point the finger at me for messing up your device, I will laugh at you.
        */

    1306110343043476011282528.png
    This is very early port of Ubuntu Touch for the HTC Desire Z.
    This is a developer preview! Do not expect it to have every bell and whistle functional.

    Have fun! :D

    Video
    Thanks to HTCDreamOn



    No more needed!!!
    1306110342403476011282524.png
    Pre-requirements:
    • ADB commands
    • Some knowleges with ADB commands

    To start Ubuntu Touch (until I fix it!)

    Plug your device to your computer,
    In a prompt, type :

    For Linux users :
    Code:
    adb kill-server
    sudo adb start-server

    Code:
    adb root
    adb shell
    ubuntu_chroot shell
    ubuntu-touch-session

    Usb can't be unplugged ATM or Ubuntu Touch will be down!!!


    1306110342243476011282522.png

    • Flinny and Andromadus for the work on cm10.1
    • HTCDreamOn for the kernel
    • gh1234 for his great help
    • w-flo (ubuntu mailling liste) for his sources and great help
    • Some people on freenode live chat
    • MonkeySnot for banners
    • Ubuntu
    • Google
    10
    there is still continue that problem for me, i deletet swap portiton then tried install but it still blacksreen and adb didnt recognize my phone again how did you do it? help me plz.

    Sorry I was really busy last weeks! but I found some times to work an little bit on it!
    Now I can build with my own mods and I will relase a bootable rom with some new stuff! keep conected ;)
    9
    I just backing home and played with alpha3, this is faster but after reboot ubuntu lag. I found why. There is no enough space on /data...
    Will fix it before upload new build...
    8
    1306110342183476011282520.png
    Remember Ubuntu is already in pre-alpha build....
    • Alpha 3
      Speed improvements
      + others minor fix
    • Alpha 2
      Fixed autoboot
      Fixed wifi
      SMS
      Phone call
      Sound
    • Alpha 1
      Initial release.

    1306110342523476011282527.png

    How to Build :

    Follow https://github.com/utopykzebulon/android/blob/master/README.md

    Initialize your repo with git://github.com/utopykzebulon/android.git
    Add the ubuntu/hybris (lp:phablet-extras/libhybris) and ubuntu/platform-api (lp:platform-api) parts.
    Run brunch cm_vision-eng

    1306110342323476011282523.png


    Hboot need to be updated :

    Desire Z :
    1. Boot your device into Bootloader/Fastboot
    2. fastboot devices //Verify that the device is detected
    3. fastboot erase cache //Not sure if this is completely necessary, but the guide I followed included it as a step
    4. fastboot oem rebootRUU //Boot into RUU, which lets you flash HBOOT, radio, etc.
    5. Download DesireZ_Hboot.zip
    6. fastboot flash zip DesireZ_Hboot.zip //Flash the new Hboot 0.85.00015
    7. fastboot reboot-bootloader //Bootloader will write "***locked***", you can unlock it with htcdev.com

    TMobile G2 :
    I'll need testers, please PM me! thx

    ***/!\*** All the files must be on the root of your sdcard

    Alpha 3

    1. Flash updated Hboot
    2. cm-10.1-20130725-UNOFFICIAL-vision.zip
    3. vision-saucy-preinstalled-phablet-armhf.zip
    4. You'll need also "ubuntu-touch-saucy-armhf.tar.gz" you can found it in saucy-preinstalled-phablet-armhf.zip from ubuntu cdimage. extract the .tar.gz

    push all the 3 files to the root of your sdcard, install 1. then 2.


    Alpha 2

    1. cm-10.1-20130705-UNOFFICIAL-vision.zip
    2. vision-saucy-preinstalled-phablet-armhf.zip
    3. You'll need also "ubuntu-touch-saucy-armhf.tar.gz" you can found it in saucy-preinstalled-phablet-armhf.zip from ubuntu cdimage. extract the .tar.gz

    push all the 3 files to the root of your sdcard, install 1. then 2.





    Alpha 1
    1. Install Ubuntu_Touch-vision.zip,
    2. Install install_ubuntu-rootfs_from_sdcard.zip (this'll take a while.),
    3. Install ubuntu-touch-session.zip,
    4. Reboot, type adb commands and enjoy.
    6
    alpha 3 is done...
    Major fix is speed improvment...
    i'll upload it tonight!