Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,813,290 Members 53,090 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
nobodyAtall
Old
(Last edited by nobodyAtall; 28th June 2011 at 09:02 PM.)
#1  
nobodyAtall's Avatar
Recognized Developer - OP
Thanks Meter 19,393
Posts: 1,527
Join Date: Jan 2008
Location: Patras

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

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:	28997
Size:	55.5 KB
ID:	619232   Click image for larger version

Name:	IMG_20110608_112410_1.jpg
Views:	28103
Size:	51.5 KB
ID:	619233  
Attached Files
File Type: zip CWM-multiboot-r2.zip - [Click for QR Code] (2.00 MB, 8318 views)
The Following 52 Users Say Thank You to nobodyAtall For This Useful Post: [ Click to Expand ]
 
twins.7
Old
#2  
twins.7's Avatar
Senior Member
Thanks Meter 67
Posts: 325
Join Date: 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: [ Click to Expand ]
 
o2gulo
Old
#3  
Member
Thanks Meter 5
Posts: 58
Join Date: Jan 2011
Location: Perlas ng Silangan
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.
i cannot into android
 
herrfisk
Old
#4  
herrfisk's Avatar
Member
Thanks Meter 4
Posts: 53
Join Date: Mar 2011
Location: Stockholm
Great work! =)
--------------------------------
Samsung Galaxy S4 Mini I9195 with CM11 = Win
 
aparici
Old
#5  
aparici's Avatar
Senior Member
Thanks Meter 9
Posts: 152
Join Date: Oct 2010
Location: Castellon
A class 4 sd is good?

Enviado desde mi X10mini usando Tapatalk
 
nobodyAtall
Old
#6  
nobodyAtall's Avatar
Recognized Developer - OP
Thanks Meter 19,393
Posts: 1,527
Join Date: Jan 2008
Location: Patras

 
DONATE TO ME
Quote:
Originally Posted by twins.7 View Post
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: [ Click to Expand ]
 
DaRk_dOg
Old
#7  
DaRk_dOg's Avatar
Recognized Themer
Thanks Meter 2,304
Posts: 890
Join Date: Oct 2010
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
DEVICE: Nexus 5
ROM: Paranoid Android 4.6/Beta1
KERNEL: Code Blue R247+frandom
RECOVERY: TWRP 2.7.1.x MultiROM


My Themes:Crystal CM7 || Crystal 2 CM10
The Following User Says Thank You to DaRk_dOg For This Useful Post: [ Click to Expand ]
 
twins.7
Old
#8  
twins.7's Avatar
Senior Member
Thanks Meter 67
Posts: 325
Join Date: Nov 2010
Quote:
Originally Posted by nobodyAtall View Post
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
 
nobodyAtall
Old
#9  
nobodyAtall's Avatar
Recognized Developer - OP
Thanks Meter 19,393
Posts: 1,527
Join Date: Jan 2008
Location: Patras

 
DONATE TO ME
Quote:
Originally Posted by twins.7 View Post
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: [ Click to Expand ]
 
draco_ag
Old
#10  
draco_ag's Avatar
Recognized Themer
Thanks Meter 1,108
Posts: 1,510
Join Date: Sep 2010
Location: Poland
Does it works with miniCM6?


1. HTC One X+ (s728e) JB FW: 1.17.401.1
2. Xperia Mini Pro (SK17i) ICS FW: 4.1.B.0.587 (Unlocked BL, ROOTED, LuPuS Kernel v3)


- Mini Pro MOD Project: Reboot and SystemUI MOD for XPERiA ICS 4.1.B.0.587

- Mini/Mini Pro Theme Project: HTC Sense Theme for Xperia Mini/Mini Pro/Active/LWW (GB ROM only)

- X10mini Theme Project: Black HTC Theme for X8/X10mini/pro (all FW versions)

If You like my work, just push THANKS button


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes