Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
sendust7
Old
(Last edited by sendust7; 24th July 2012 at 01:49 AM.) Reason: Introduce flashable zip to help configure dual boot.
#1  
Senior Member - OP
Thanks Meter 672
Posts: 318
Join Date: Oct 2011
Location: California

 
DONATE TO ME
Default Configuring Dual Boot [Flashable Configuration Zip v1.0 Released! 23 Jul 2012]

I developed a flashable zip to help configure dual boot. Zip is designed to be independent of ROM type, version and install method, whether by flashable zip, cloning primary ROM to SD, or in general copying a ROM system image to SD.

Then I overhauled this thread...

Config-Dual-Boot-v1.0-signed.zip: http://www.mediafire.com/?edgat0koyp7d33l
  • Backs up /sdcard[-ext]/Boot (if it exists) to /sdcard[-ext]/Boot.bak
  • Creates Boot/ROM1 and Boot/ROM2 directory paths under /sdcard[-ext]
  • Installs Script Manager on ROM1 and ROM2
  • Contains shell script “copy-boot.sh” to copy ROM boot partition to boot image file
  • Contains shell script “boot-rom.sh” to switch to boot ROM2 from ROM1 and vice versa

The updated “boot-rom.sh” script now features generic boot image directory names: Boot/ROM1 and Boot/ROM2, and automatically captures the SD Boot directory path (/sdcard for CM ROMs and /sdcard-ext for Blur ROMs).

Instructions:

1. Boot to ROM1 (emmc)
2. Reboot to CWM and flash: http://www.mediafire.com/?edgat0koyp7d33l . Doing so will backup any existing Boot directory under /sdcard[-ext] and push a new Boot directory containing empty subdirectories ROM1 and ROM2 and two shell scripts: copy-boot.sh (copy boot partition to image file) and boot-rom.sh (boot switcher).

In the following steps, the shell (sh) commands can be run using ADB (Android SDK Platform Tools), Terminal Emulator, Script Manager or other suitable app.

3. Reboot to ROM1
4. Enter: “sh /sdcard[-ext]/Boot/copy-boot.sh”. This detects which ROM is running, ROM1 in this case, and copies its boot image to /sdcard[-ext]/Boot/ROM1
5. Configure Script Manager to execute “sh boot-rom.sh 2” which enables booting to ROM2. But do not run this command until ROM2 “boot.img” is in place. We'll do that now.
6. Reboot to fastboot and connect phone to computer.
7. Enter: “fastboot flash boot boot.img” where boot.img is a boot image file modified to host ROM2 on SD. Please see my Auto-Modify Boot Image thread.
8. Enter: “fastboot reboot"
9. Enter: “sh /sdcard[-ext]/Boot/copy-boot.sh” as in step 4.
10. Configure Script Manager to execute “sh boot-rom.sh 1” which enables booting to ROM1.

More on configuring Script Manager:

Go to Settings > More > Advanced Options > Config > Home Directory. Set home directory to /sdcard/Boot. Then while still in SManager, navigate to /sdcard/Boot and press boot-rom.sh to configure. Valid arguments are:
Code:
blank: Reboot to current ROM
1: Reboot to ROM1 (emmc)
2: Reboot to ROM2 (SD)
3: Reboot to recovery
Press the “Su” box to run as root (note green symbol) and press “Save” at top right. Then press “Run” at top left to launch boot-rom.sh and reboot to the other ROM.

Place shortcut to Script Manager on home screen.

If all goes well, you can now boot ROM2 from ROM1 and vice versa with just a few screen taps.

This procedure was tested working with Neutrino V2.8 EE (CM) on emmc and NottachTrix 1.3.1 ATT (Blur) on SD.

Legacy YouTube video (3:38) showing reboots from one ROM to the other: http://www.youtube.com/watch?v=31TPyAguQ60

Credits
Special thanks to jokersax11, Notorious544d, ATRIXXIRTA, ghost_og, hatefuel19, J-Roc and many others for their technical direction, useful suggestions and encouragement. And of course to the Photon/Atrix/Android dev teams, Koush and https://sites.google.com/site/devwom/

Motorola Atrix 4g Dual Boot emmc / sdcard ~ SG Note 10.1 JB ~ SGS II ICS

Like my work? Click THANKS!
Think you like my work? Read my other threads --- you may change your mind
Not sure you like my work? Stay tuned
Don't like my work? Well... I tried
The Following 10 Users Say Thank You to sendust7 For This Useful Post: [ Click to Expand ]
 
djluis48
Old
#2  
djluis48's Avatar
Senior Member
Thanks Meter 218
Posts: 1,679
Join Date: Nov 2009
Location: Santo Domingo
Thanks a lot dude! Im going to try this!

Phone: Samsung Galaxy Nexus
ROM: ~ Trying ROMs ~
Kernel: ~ Trying Kernelss ~
 
Amer1337
Old
(Last edited by Amer1337; 10th May 2012 at 01:16 AM.)
#3  
Member
Thanks Meter 0
Posts: 33
Join Date: Sep 2011
how do you install two roms at the same time? i thought this was showing how to do that but im confused. how do you change the cwm zip installers to .img?

edit:: sorry i thought this was the other thread showing how to install a dual boot system but in fact its how to configure it to boot into them easier. sorry for the mixup ill defiantly read over your 1st thread
 
Notorious544d
Old
(Last edited by Notorious544d; 10th May 2012 at 08:47 AM.)
#4  
Notorious544d's Avatar
Senior Member
Thanks Meter 2364
Posts: 1,956
Join Date: Aug 2011
Location: London

 
DONATE TO ME
Quote:
Note: Joker recommended as a refinement to place all apps in sdcard to keep apps common to both builds. Good idea.
Does this mean that across both on CM7 and CM9, the same apps will be installed? And if you install a new app, it will be seen in both CM7 and CM9?
And is data for apps accessible as well for both CM7 and CM9? So saving a data file with CM9 for example will be saved in /data and when I boot back into CM7, the same data I saved from CM9 will be there in CM7?
Lastly, did you manage to get that dalvik cache thingy working?

That's a lot of questions, but I hope you understand what I'm trying to say.

If it is, then WOW!

-=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--
If you like my work, kindly hit the 'thanks' button.
And if you're really kind, consider a small donation by hitting the smiley below.

 
sendust7
Old
(Last edited by sendust7; 10th May 2012 at 03:36 PM.) Reason: More thoughts...
#5  
Senior Member - OP
Thanks Meter 672
Posts: 318
Join Date: Oct 2011
Location: California

 
DONATE TO ME
Quote:
Originally Posted by Notorious544d View Post
Does this mean that across both on CM7 and CM9, the same apps will be installed? And if you install a new app, it will be seen in both CM7 and CM9?
And is data for apps accessible as well for both CM7 and CM9? So saving a data file with CM9 for example will be saved in /data and when I boot back into CM7, the same data I saved from CM9 will be there in CM7?
Lastly, did you manage to get that dalvik cache thingy working?

That's a lot of questions, but I hope you understand what I'm trying to say.

If it is, then WOW!
Thanks for the good questions. I haven't yet considered Joker's tip in detail as I spent most of yesterday writing this thread, researching other related topics (and watching Downton Abbey with my beloved wife ). But off the top, I assume that if a given app works on both ROMs, theoretically there should not be a problem hosting it and its corresponding data on the kitchen table (sdcard).

I guess one of the challenging questions is: Are there certain apps for which data should be kept separate to enable ROM-specific customization?

Motorola Atrix 4g Dual Boot emmc / sdcard ~ SG Note 10.1 JB ~ SGS II ICS

Like my work? Click THANKS!
Think you like my work? Read my other threads --- you may change your mind
Not sure you like my work? Stay tuned
Don't like my work? Well... I tried
 
sendust7
Old
#6  
Senior Member - OP
Thanks Meter 672
Posts: 318
Join Date: Oct 2011
Location: California

 
DONATE TO ME
I just updated my thread with this...

"Alternatively (and actually preferred), you can extract the contents of this zip: http://www.mediafire.com/?0kdp4qvy6fv71kp to /sdcard. It makes ROM selections generic, and also fixes a problem with boot-rom.sh (Android shell apparently does not like trailing spaces in script files.) Then drop your boot.img files into /sdcard/Boot/ROM1 and ROM2 and you're good to go."

Cheers.

Motorola Atrix 4g Dual Boot emmc / sdcard ~ SG Note 10.1 JB ~ SGS II ICS

Like my work? Click THANKS!
Think you like my work? Read my other threads --- you may change your mind
Not sure you like my work? Stay tuned
Don't like my work? Well... I tried
 
sendust7
Old
#7  
Senior Member - OP
Thanks Meter 672
Posts: 318
Join Date: Oct 2011
Location: California

 
DONATE TO ME
I developed a flashable zip to help configure dual boot. Zip is designed to be independent of ROM type, version and install method, whether flashable zip, cloning primary ROM to SD, or in general copying a ROM system image to SD.

Then I overhauled this thread...

Motorola Atrix 4g Dual Boot emmc / sdcard ~ SG Note 10.1 JB ~ SGS II ICS

Like my work? Click THANKS!
Think you like my work? Read my other threads --- you may change your mind
Not sure you like my work? Stay tuned
Don't like my work? Well... I tried

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Flash Custom ROM and Recovery to Samsung Galaxy S 4

After reading about Dan Rosenberg’s bootloader exploit for the Samsung Galaxy S 4,I … more

Windows-Based Multi-Tool for the Sony Xperia U

If you are a flashaholic and an owner of the Sony Xperia U, you may be interested in the … more

XDA University: Crafting Recovery-Flashable Packages

Those of us who use Linux on a day to day basis don’t think twice about sinking … more