Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP urko95

22nd February 2013, 07:52 PM   |  #11  
urko95's Avatar
OP Senior Member
Flag Durango
Thanks Meter: 201
 
367 posts
Join Date:Joined: May 2010
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, 09:04 PM   |  #12  
Member
Thanks Meter: 25
 
50 posts
Join Date:Joined: Feb 2011
couldn't modifying the bootloader be considered distributing a derivative work under the dmca?
22nd February 2013, 11:27 PM   |  #13  
ak's Avatar
Recognized Contributor
Flag Ak Land Valley
Thanks Meter: 46,504
 
11,159 posts
Join Date:Joined: Feb 2011
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, 09:56 AM   |  #14  
urko95's Avatar
OP Senior Member
Flag Durango
Thanks Meter: 201
 
367 posts
Join Date:Joined: May 2010
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, 12:32 PM   |  #15  
urko95's Avatar
OP Senior Member
Flag Durango
Thanks Meter: 201
 
367 posts
Join Date:Joined: May 2010
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 12:34 PM.
The Following User Says Thank You to urko95 For This Useful Post: [ View ]
23rd February 2013, 02:43 PM   |  #16  
LucaZPF's Avatar
Member
Brescia
Thanks Meter: 5
 
91 posts
Join Date:Joined: Oct 2007
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, 03:18 PM   |  #17  
urko95's Avatar
OP Senior Member
Flag Durango
Thanks Meter: 201
 
367 posts
Join Date:Joined: May 2010
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, 04:34 PM   |  #18  
beidl's Avatar
Senior Member
Flag Purbach
Thanks Meter: 168
 
449 posts
Join Date:Joined: Apr 2009
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, 05:03 PM   |  #19  
urko95's Avatar
OP Senior Member
Flag Durango
Thanks Meter: 201
 
367 posts
Join Date:Joined: May 2010
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, 10:04 PM   |  #20  
capychimp's Avatar
Recognized Developer
Flag At home
Thanks Meter: 7,496
 
8,693 posts
Join Date:Joined: Sep 2009
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 10: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