FORUMS
Remove All Ads from XDA

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

829 posts
Thanks Meter: 517
 
Post Reply Email Thread


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.
    */
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!

Video
Thanks to HTCDreamOn

[YOUTUBE]sr4k-x8xgiQ[/YOUTUBE]


No more needed!!!
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!!!

  • 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
The Following 23 Users Say Thank You to utopykzebulon For This Useful Post: [ View ] Gift utopykzebulon Ad-Free
 
 
6th June 2013, 11:17 PM |#2  
utopykzebulon's Avatar
OP Senior Member
Flag Grenoble
Thanks Meter: 517
 
Donate to Me
More
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.
How to Build :
Follow https://github.com/utopykzebulon/and...ster/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

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.
The Following 8 Users Say Thank You to utopykzebulon For This Useful Post: [ View ] Gift utopykzebulon Ad-Free
6th June 2013, 11:18 PM |#3  
utopykzebulon's Avatar
OP Senior Member
Flag Grenoble
Thanks Meter: 517
 
Donate to Me
More
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.
The Following 5 Users Say Thank You to utopykzebulon For This Useful Post: [ View ] Gift utopykzebulon Ad-Free
6th June 2013, 11:49 PM |#4  
Xardejn's Avatar
Senior Member
Flag Toruń
Thanks Meter: 12
 
More
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
6th June 2013, 11:53 PM |#5  
utopykzebulon's Avatar
OP Senior Member
Flag Grenoble
Thanks Meter: 517
 
Donate to Me
More
Quote:
Originally Posted by Xardejn

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
The Following User Says Thank You to utopykzebulon For This Useful Post: [ View ] Gift utopykzebulon Ad-Free
7th June 2013, 01:43 AM |#6  
Senior Member
Thanks Meter: 19
 
More
Thumbs up it's Great ! if the touch and sim card no problem , worth to try it.
Quote:
Originally Posted by utopykzebulon

Man, have a look on it

THX for DZ the ubuntu touch.
The Following User Says Thank You to shine_118 For This Useful Post: [ View ] Gift shine_118 Ad-Free
7th June 2013, 01:47 AM |#7  
utopykzebulon's Avatar
OP Senior Member
Flag Grenoble
Thanks Meter: 517
 
Donate to Me
More
I'm working on screen and WiFi... Screen is better now Click image for larger version

Name:	uploadfromtaptalk1370566033025.jpg
Views:	3334
Size:	26.4 KB
ID:	2023035

Sent from my HTC One using xda app-developers app
7th June 2013, 02:00 AM |#8  
Senior Member
Thanks Meter: 19
 
More
Wink good,if you uploaded links, i will be download and to try.
Quote:
Originally Posted by utopykzebulon

I'm working on screen and WiFi... Screen is better now Attachment 2023035

Sent from my HTC One using xda app-developers app

expect your links´╝ü
7th June 2013, 07:52 AM |#9  
Senior Member
Flag London
Thanks Meter: 13
 
More
Wow, cant wait.
7th June 2013, 11:43 AM |#10  
greed2's Avatar
Senior Member
Thanks Meter: 5
 
More
When we will see it ?

Sent from my HTC Desire Z using xda app-developers app
7th June 2013, 11:54 AM |#11  
Senior Member
Thanks Meter: 277
 
More
Thumbs up Nice job!
Hey, man, just wanted to say it's a great thing you're doing, I'll be following the thread closely!
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes