FORUMS

Which OEM Would You Like to Help?

Most manufacturers have moments of greatness and moments of decadence, and in the past few years … more

Root T-Mobile S6/Edge on 5.1.1 Without Tripping Knox

If you purchase phones from a carrier, you may be no stranger to the difficulties … more

IonVR Coming Soon, HTC M9 Dev Edition Gets Android 5.1 – XDA TV

The HTC M9 Developer Edition has received Android 5.1. That and … more

Android 5.1.1 Omni ROM For Motorola Xoom

Back in Feb 2011, the Motorola Xoom became the first device to be sold with Android 3.0 … more

[DEV] Dual Booting Project [Android - Ubuntu Phone OS] (HELP NEEDED)

369 posts
Thanks Meter: 201
 
Post Reply Subscribe to Thread Email Thread
22nd February 2013, 06:52 PM |#11  
urko95's Avatar
OP Senior Member
Flag Durango
Thanks Meter: 201
 
Donate to Me
More
Quote:
Originally Posted by beidl

There is a script + binary in the Ubuntu package which basically set up the the Ubuntu environment inside of a working Android installation.
The Ubuntu folder structure can be found in /data/ubuntu/.
Booting up is just like on every Android ROM, except the mentioned script gets started and the Ubuntu environment is getting started up.

The first proof of concept would be:
Backup every Ubuntu Touch specific file that got installed to /system to the PC, like the chroot scripts and other stuff
Flash CM back to the device
Copy specific files back to /system
By flashing either the boot.img of CM or Ubuntu Touch the desired system should boot up.

I will give it a try later!

Thanks for your help!
 
 
22nd February 2013, 08:04 PM |#12  
Member
Thanks Meter: 25
 
More
couldn't modifying the bootloader be considered distributing a derivative work under the dmca?
22nd February 2013, 10:27 PM |#13  
ak's Avatar
Recognized Contributor
Flag Ak Land Valley
Thanks Meter: 60,455
 
Donate to Me
More
In my opinion to have a dual booting you will need:
- A ramdisk that will prepare the partitions according to the choice of which OS
- A kernel that supports two versions of OS
- Two separate SD with the respective folders drivers etc. ... (This Is not possible on GNEX)

For the rest I do not know ubuntu for phone, it would take some expert.
The Following User Says Thank You to ak For This Useful Post: [ View ]
23rd February 2013, 08:56 AM |#14  
urko95's Avatar
OP Senior Member
Flag Durango
Thanks Meter: 201
 
Donate to Me
More
Quote:
Originally Posted by anarkia1976

In my opinion to have a dual booting you will need:
- A ramdisk that will prepare the partitions according to the choice of which OS
- A kernel that supports two versions of OS
- Two separate SD with the respective folders drivers etc. ... (This Is not possible on GNEX)

For the rest I do not know ubuntu for phone, it would take some expert.

Anarkia, What do you think about beidl's method?

NOTE: Thread organized and updated
23rd February 2013, 11:32 AM |#15  
urko95's Avatar
OP Senior Member
Flag Durango
Thanks Meter: 201
 
Donate to Me
More
A edited phablet file, I have deleted all sample photos, videos and messages. To download it, go to the 3rd post!
Last edited by urko95; 23rd February 2013 at 11:34 AM.
The Following User Says Thank You to urko95 For This Useful Post: [ View ]
23rd February 2013, 01:43 PM |#16  
LucaZPF's Avatar
Senior Member
Brescia
Thanks Meter: 5
 
More
Excuse me,
can i flash these flies with CWM recovery?

Quote:
Originally Posted by urko95

How to install Ubuntu Phone OS

NOTE: This files doesn't include the option to make a dual boot yet

-I'm not responable of any damage could have your GNex after flashing Ubuntu Phone OS this way-

Steps:

  1. Download files quantal-preinstalled-armel+maguro.zip (4,6 MB) and quantal-preinstalled-phablet-armhf.zip (481 MB), and copy them to your GNex.

    NOTE: You can use a modified file without all sample photos, videos and messages modified by me. Donwload it here: edited-quantal-preinstalled-phablet-armhf-v1.zip

  2. Make a Nandroid Backup (to be able to restore Android later)
  3. Make a Factory Reset
  4. Flash them (1-.quantal-preinstalled-armel+maguro.zip and 2-.quantal-preinstalled-phablet-armhf.zip)
  5. Reboot (In a few seconds Ubuntu will boot up)
  6. If you want to restore Android, make a backup of Ubuntu first if you want to install Ubuntu again
*This guide was originally posted by eng.stk*

NOTE: Second file (quantal-preinstalled-phablet-armhf.zip) will take few minutes to flash so don't panic and relax until it's flashed but, if you use the file that it has been modified by me, it will be faster. This method doesn't wipe your internal storage (/sdcard)

This way you could have both system only restoring backups of both OS. It's a good to have both system while dual boot it's being developed.

23rd February 2013, 02:18 PM |#17  
urko95's Avatar
OP Senior Member
Flag Durango
Thanks Meter: 201
 
Donate to Me
More
Quote:
Originally Posted by LucaZPF

Excuse me,
can i flash these flies with CWM recovery?

Yes, you can, with TWRP or CWM, you choose.
The Following User Says Thank You to urko95 For This Useful Post: [ View ]
23rd February 2013, 03:34 PM |#18  
beidl's Avatar
Senior Member
Flag Purbach
Thanks Meter: 180
 
Donate to Me
More
Reporting semi-success
So i diffed the system directories of CM 10.1 and Ubuntu Touch and found the new files.

Quote:

/system/bin/modelid_cfg.sh
/system/bin/ubuntuappmanager
/system/bin/ubuntu_chroot
/system/bin/uchroot
/system/usr/idc/autopilot-finger.idc
/system/quantal-ubuntu_stamp

I pushed those files to my working CM 10.1 installation on the GNex.
Since I did not wipe my GNex when I went back from Ubuntu Touch to CM 10.1, the folder structure
of Ubuntu stayed at /data/ubuntu/.

Then, I rebooted into the bootloader and flashed the boot.img of Ubuntu Touch to the GNex.
After rebooting, the device was stuck at the Google boot logo but the kernel did actually boot, so I was able to adb shell into the device.
dmesg returned:

Code:
<6>[   15.739807] PVR_K:(Error): BridgedDispatchKM: Initialisation failed.  Driver unusable. [4783, /home/ubuntu/jenkins/workspace/phablet-image/kernel/samsung/tuna/drivers/gpu/pvr/bridged_pvr_bridge.c]
That means Canonical still uses the kernel from before a week, this kernel doesn't play nicely with the new proprietary GPU driver.
I'll try pushing the old GPU blobs now...
The Following User Says Thank You to beidl For This Useful Post: [ View ]
23rd February 2013, 04:03 PM |#19  
urko95's Avatar
OP Senior Member
Flag Durango
Thanks Meter: 201
 
Donate to Me
More
Quote:
Originally Posted by beidl

Reporting semi-success
So i diffed the system directories of CM 10.1 and Ubuntu Touch and found the new files.


I pushed those files to my working CM 10.1 installation on the GNex.
Since I did not wipe my GNex when I went back from Ubuntu Touch to CM 10.1, the folder structure
of Ubuntu stayed at /data/ubuntu/.

Then, I rebooted into the bootloader and flashed the boot.img of Ubuntu Touch to the GNex.
After rebooting, the device was stuck at the Google boot logo but the kernel did actually boot, so I was able to adb shell into the device.
dmesg returned:

Code:
<6>[   15.739807] PVR_K:(Error): BridgedDispatchKM: Initialisation failed.  Driver unusable. [4783, /home/ubuntu/jenkins/workspace/phablet-image/kernel/samsung/tuna/drivers/gpu/pvr/bridged_pvr_bridge.c]
That means Canonical still uses the kernel from before a week, this kernel doesn't play nicely with the new proprietary GPU driver.
I'll try pushing the old GPU blobs now...

Waiting to your results, great job beidl!
23rd February 2013, 09:04 PM |#20  
capychimp's Avatar
Retired Recognized Developer
Flag At home
Thanks Meter: 7,497
 
Donate to Me
More
Sv: [DEV] Dual Booting Project [Android - Ubuntu Phone OS] (HELP NEEDED)
First zip to flash is linked wrong it links to the IMG
Ubuntu phone os is nice but laggy buggy power eating just tried it. Maybe we should focus on it running good before dual boot
Did anyone try using it ? Gsm and all that did not work on my gnex. Did you guys have luck?
Sent from my Galaxy Nexus using xda premium
Last edited by capychimp; 23rd February 2013 at 09:23 PM.
Post Reply Subscribe to Thread

Tags
galaxy, nexus, phone, ubuntu
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes