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

24th February 2013, 01:05 AM   |  #21  
beidl's Avatar
Senior Member
Flag Purbach
Thanks Meter: 169
 
449 posts
Join Date:Joined: Apr 2009
Donate to Me
More
I didn't have time to play around with the proprietary blobs yet, but what I have tried so far on the go:

Completely reflashed Ubuntu Touch ontop of working CM 10.1 install WITHOUT WIPE -> No issues
Reflashed CM 10.1 and booted into it -> No issues, no files or settings gone
Reflashed Ubuntu Touch (quantal-preinstalled-armel+maguro.zip) -> No issues, no files or settings gone

So it is not a "real" dual-boot but it gets the job done.
That will continue to work as long as Canonical doesn't require us to completely wipe our devices.

Oh, and if we want to make Ubuntu Touch run flawlessly we should start contributing to the upstream project
instead of doing our own custom ROMs and not contributing back. That way everybody benefits.
Last edited by beidl; 24th February 2013 at 01:07 AM.
The Following 7 Users Say Thank You to beidl For This Useful Post: [ View ]
24th February 2013, 09:41 AM   |  #22  
urko95's Avatar
OP Senior Member
Flag Durango
Thanks Meter: 201
 
367 posts
Join Date:Joined: May 2010
Donate to Me
More
Re: [DEV] Dual Booting Project [Android - Ubuntu Phone OS] (HELP NEEDED)
Quote:
Originally Posted by beidl

I didn't have time to play around with the proprietary blobs yet, but what I have tried so far on the go:

Completely reflashed Ubuntu Touch ontop of working CM 10.1 install WITHOUT WIPE -> No issues
Reflashed CM 10.1 and booted into it -> No issues, no files or settings gone
Reflashed Ubuntu Touch (quantal-preinstalled-armel+maguro.zip) -> No issues, no files or settings gone

So it is not a "real" dual-boot but it gets the job done.
That will continue to work as long as Canonical doesn't require us to completely wipe our devices.

Oh, and if we want to make Ubuntu Touch run flawlessly we should start contributing to the upstream project
instead of doing our own custom ROMs and not contributing back. That way everybody benefits.

Great work beidl, I will post a guide in General giving you all credits.

Thank you

Enviado desde mi Galaxy Nexus usando Tapatalk 2
24th February 2013, 09:42 AM   |  #23  
ak's Avatar
Recognized Contributor
Flag Ak Land Valley
Thanks Meter: 47,656
 
11,361 posts
Join Date:Joined: Feb 2011
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...

There is a source of ubuntu kernel?
24th February 2013, 10:57 AM   |  #24  
sgt. meow's Avatar
Recognized Contributor
Flag Dhaka
Thanks Meter: 2,817
 
4,344 posts
Join Date:Joined: Dec 2011
More
I am not from around here, but isn't it possible to just bind /system to system.img in any directory, and then boot it from there after the same has been done for /data and /cache?
24th February 2013, 07:50 PM   |  #25  
MikeCriggs's Avatar
Recognized Developer / Contributor
Flag Liberty, NY
Thanks Meter: 4,499
 
2,280 posts
Join Date:Joined: Dec 2010
Donate to Me
More
Re: [DEV] Dual Booting Project [Android - Ubuntu Phone OS] (HELP NEEDED)
Quote:
Originally Posted by sgt. meow

I am not from around here, but isn't it possible to just bind /system to system.img in any directory, and then boot it from there after the same has been done for /data and /cache?

It would be counter productive because you would need to uncompress the images to gain access to the partitions.

Sent from my Galaxy Nexus using Tapatalk 2
2nd March 2013, 12:37 AM   |  #26  
Senior Member
Flag Kaluga/Moscow
Thanks Meter: 676
 
554 posts
Join Date:Joined: Jul 2006
More
Check out our u-boot port. It can be loaded instead of the linux kernel and chainloaded from the Samsung's SBL bootloader
https://github.com/Ksys-labs/uboot-tuna

You can edit the [include/configs/omap4_tuna] and comment the CONFIG_SPL_BUILD line and flash the u-boot.bin instead of the kernel.
Then, you can put the android boot.img to /system/boot/vmlinux.img
You can put the custom image in the u-boot mkimage or the android image format to /sdcard/boot/vmlinux.uimg and the boot script to /sdcard/boot/boot.scr.uimg, and you can boot that image by holding the volume down button.


----
And if you really wonder about the CONFIG_SPL_BUILD. Just stop reading here.


Yes, you can enable it and replace the Samsung's SBL with u-boot. Be careful. It only works with old xloader's (PRIMEKK14 and older). Display does not work, so you'll have to rebuild the kernel and disable omap framebuffer bootloader init check. If you brick the device, use "OMAPFlash_tuna.zip" to recover.
The Following 5 Users Say Thank You to sp3dev For This Useful Post: [ View ]
2nd March 2013, 03:43 AM   |  #27  
beidl's Avatar
Senior Member
Flag Purbach
Thanks Meter: 169
 
449 posts
Join Date:Joined: Apr 2009
Donate to Me
More
AW: [DEV] Dual Booting Project [Android - Ubuntu Phone OS] (HELP NEEDED)
Awesome, didn't know somebody ported u-boot over to the GNex.
I'll take a look at it today, play around with it and maybe improve my C skills a bit.
(I can read C code pretty easily but I have not written anything in C in years).
Now multibooting has some real potential!

Sent from my Galaxy Nexus using xda premium
The Following User Says Thank You to beidl For This Useful Post: [ View ]
4th March 2013, 05:41 AM   |  #28  
sert00's Avatar
Senior Member
Flag cesena,IT
Thanks Meter: 505
 
1,082 posts
Join Date:Joined: May 2011
More
Quote:
Originally Posted by sp3dev

Check out our u-boot port. It can be loaded instead of the linux kernel and chainloaded from the Samsung's SBL bootloader
https://github.com/Ksys-labs/uboot-tuna

You can edit the [include/configs/omap4_tuna] and comment the CONFIG_SPL_BUILD line and flash the u-boot.bin instead of the kernel.
Then, you can put the android boot.img to /system/boot/vmlinux.img
You can put the custom image in the u-boot mkimage or the android image format to /sdcard/boot/vmlinux.uimg and the boot script to /sdcard/boot/boot.scr.uimg, and you can boot that image by holding the volume down button.


----
And if you really wonder about the CONFIG_SPL_BUILD. Just stop reading here.


Yes, you can enable it and replace the Samsung's SBL with u-boot. Be careful. It only works with old xloader's (PRIMEKK14 and older). Display does not work, so you'll have to rebuild the kernel and disable omap framebuffer bootloader init check. If you brick the device, use "OMAPFlash_tuna.zip" to recover.

interesting...i think it's the best way with uboot.definately follow this 3ad from now on..
8th March 2013, 05:22 PM   |  #29  
Senior Member
O 'Fallon, MO
Thanks Meter: 406
 
1,485 posts
Join Date:Joined: Jun 2011
More
I think you're all going about this wrong.. kexec is definitely the way to go. Prepare your /system with both the android and ubuntu files. Then install a modified recovery.img to where you would install the normal boot.img. The recovery image would be modified with a menu to launch two commands, run ubuntu and run android. When run ubuntu is selected, kexec runs the ubuntu kernel, and vice versa. You wouldn't need to patch the android or ubuntu kernel only the recovery kernel.
10th March 2013, 09:49 PM   |  #30  
Member
Flag San Francisco Bay Area, CA
Thanks Meter: 5
 
62 posts
Join Date:Joined: Feb 2008
More
Re: [DEV] Dual Booting Project [Android - Ubuntu Phone OS] (HELP NEEDED)
anyone looked at Hashcode's Safestrap? His custom recovery allows up to 5 ROMs to be installed on the same device.

Sent from my Galaxy Nexus using xda premium

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