Post Reply

[Multiboot] [Update 14/6/11] Create, manage and boot your ROM options via CWM!

8th June 2011, 10:08 AM   |  #1  
nobodyAtall's Avatar
OP Recognized Developer
Flag Patras
Thanks Meter: 19,393
 
1,527 posts
Join Date:Joined: Jan 2008
Donate to Me
Introduction

This thread describes an experimental mod that allows you to boot into other boot images stored in your sdcard. It's a good reason for users to upgrade to CWM recovery since it allows for much more extended functionality. It's also another good reason for devs to support CWM recovery.
Our 'petit' X10mini does not have enough internal memory to store more than one android image, thus we have to use the sdcard for this.


WARNING:

This mod is experimental, and for advanced users only. Use it at your own risk



Requirements (READ THEM CAREFULLY):

- CWM recovery pre-installed
- You need a FAST enough sdcard. I'd suggest not using this mod if your sdcard is less than Class 6
- Your sdcard should have enough free space. Each 'boot option' that you create reserves 400MB of space in your sdcard
- In order to create a new boot option, you need a flashable zip of the ROM you wish to boot to, as well as a patch for it's ramdisk.tar (if this is a custom ROM, stock ROMs don't need this). The flashable zip of the ROM is the same that is used for usual ROM installation. The patch should be provided by the ROM's cook.



Instructions for devs only

To create a bootable image, you have two options:
- Make use of CWM recovery (which can create boot images from update.zip) and provide a patch for your ROM that makes sure: app2sd is disabled, ramdisk.tar does not mount mtd* partitions under /system, /data, or /cache. This patch is also flashable via the new multiboot menu of CWM. If you need more info, see the attached MiniCM7-multiboot.zip
OR
- Manually create ext2 system.img, data.img and cache.img for users to push under /sdcard/clockworkmod/multiboot/<name>/


Multiboot mod Installation

- Flash the attached CWM multiboot zip via CWM


Multiboot ROM Installation

The following scenario is provided as a proof of concept in order to install MiniCM7 as a boot from sdcard option
- Reboot into the new recovery and navigate to the new 'multiboot' menu. There you'll see the following options:
  • Select default boot option
  • Unset default boot option
  • Create boot option from zip
  • Delete existing boot option
  • Flash zip to boot option



- Select multiboot->Create boot option from zip and then pick the MiniCM7 flashable zip (which you can find in the MiniCM7 thread). Be patient, this step reserves the space and flashes the selected zip to the system.img in the sdcard
- Select multiboot->Flash zip to boot option, pick your newly created boot option and then pick the MiniCM7-multiboot.zip. This will flash the patch needed for MiniCM7 in order to make it run from sdcard. You can use this option in order to flash any zip you want to any of the boot options you have already created
- Select multiboot->Select default boot option and pick your newly created boot option
- Reboot (first boot will take some time depending on your sdcard speed).
To verify you have booted to your newly created boot option, check 'adb shell mount', it should say that /system /data and /cache is mounted from /loop* devices and not from mtd*


Uninstall

- Practically, if you flash a ROM image it will revert CWM / chargemon to its original state. There is not problem in keeping this CWM / chargemon version though.
- To revert booting from your phone's memory instead of the sdcard, navigate to multiboot->Unset default boot option
- To remove installed boot options, navigate to multiboot->Delete existing boot option and pick you choice. Alternatively remove the boot option you want from /sdcard/clockworkmod/multiboot/


Disclaimer:
I can't be held responsible if this mod bricks your device / trashes your sdcard or makes it explode in your hands! Use it at your own risk!
Attached Thumbnails
Click image for larger version

Name:	IMG_20110608_112352_1.jpg
Views:	29005
Size:	55.5 KB
ID:	619232   Click image for larger version

Name:	IMG_20110608_112410_1.jpg
Views:	28111
Size:	51.5 KB
ID:	619233  
Attached Files
File Type: zip CWM-multiboot-r2.zip - [Click for QR Code] (2.00 MB, 8321 views)
Last edited by nobodyAtall; 28th June 2011 at 09:02 PM.
The Following 52 Users Say Thank You to nobodyAtall For This Useful Post: [ View ]
8th June 2011, 10:17 AM   |  #2  
twins.7's Avatar
Senior Member
Thanks Meter: 67
 
325 posts
Join Date:Joined: Nov 2010
wao great experiment NAA,
perfect time to install stock 2.1 and miniCM7
The Following User Says Thank You to twins.7 For This Useful Post: [ View ]
8th June 2011, 10:18 AM   |  #3  
Member
Flag Perlas ng Silangan
Thanks Meter: 5
 
58 posts
Join Date:Joined: Jan 2011
More
Damn, Great job nAa! My sdcard is lower than Class 6 (I am still using the stock 2GB sdcard!!) so I can't try this one. Waiting for other people's opinion about this.
8th June 2011, 10:19 AM   |  #4  
herrfisk's Avatar
Member
Flag Stockholm
Thanks Meter: 4
 
53 posts
Join Date:Joined: Mar 2011
More
Great work! =)
8th June 2011, 10:20 AM   |  #5  
aparici's Avatar
Senior Member
Flag Castellon
Thanks Meter: 9
 
152 posts
Join Date:Joined: Oct 2010
More
A class 4 sd is good?

Enviado desde mi X10mini usando Tapatalk
8th June 2011, 10:23 AM   |  #6  
nobodyAtall's Avatar
OP Recognized Developer
Flag Patras
Thanks Meter: 19,393
 
1,527 posts
Join Date:Joined: Jan 2008
Donate to Me
Quote:
Originally Posted by twins.7

wao great experiment NAA,
perfect time to install stock 2.1 and miniCM7

IMHO, stock 2.1 should be installed as a 'multiboot option' and MiniCM7 in the internal phone's memory - not the other way round.

I'm hoping some dev could chip in with an update.zip for a stock 2.1 ROM that can be installed as a multiboot option
The Following 6 Users Say Thank You to nobodyAtall For This Useful Post: [ View ]
8th June 2011, 10:27 AM   |  #7  
DaRk_dOg's Avatar
Recognized Themer
Thanks Meter: 2,305
 
890 posts
Join Date:Joined: Oct 2010
More
Damn, where the f**k is the "Thanks" button in tapatalk!?

Another great addition mate! Thank you for giving us, mods that other devices hadn't even dreamed of!


Regards,D_d

Sent from my Desire HD using Tapatalk
The Following User Says Thank You to DaRk_dOg For This Useful Post: [ View ]
8th June 2011, 10:37 AM   |  #8  
twins.7's Avatar
Senior Member
Thanks Meter: 67
 
325 posts
Join Date:Joined: Nov 2010
Quote:
Originally Posted by nobodyAtall

IMHO, stock 2.1 should be installed as a 'multiboot option' and MiniCM7 in the internal phone's memory - not the other way round.

I'm hoping some dev could chip in with an update.zip for a stock 2.1 ROM that can be installed as a multiboot option

why?

can I use this step below?
- backup my stock in recovery
- copy the backup file to multiboot folder
8th June 2011, 11:04 AM   |  #9  
nobodyAtall's Avatar
OP Recognized Developer
Flag Patras
Thanks Meter: 19,393
 
1,527 posts
Join Date:Joined: Jan 2008
Donate to Me
Quote:
Originally Posted by twins.7

why?

can I use this step below?
- backup my stock in recovery
- copy the backup file to multiboot folder

No you can't do that.

You need to install the boot option from an update.zip.

Already created backups have a different fs type that can't be mounted seperately.
The Following 3 Users Say Thank You to nobodyAtall For This Useful Post: [ View ]
8th June 2011, 11:35 AM   |  #10  
draco_ag's Avatar
Recognized Themer
Poland
Thanks Meter: 1,108
 
1,511 posts
Join Date:Joined: Sep 2010
More
Does it works with miniCM6?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools
Display Modes