FORUMS
Remove All Ads from XDA

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

1,531 posts
Thanks Meter: 19,435
 
By nobodyAtall, Inactive Recognized Developer on 30th June 2011, 12:12 PM
Post Reply Email Thread
Introduction

This thread describes an experimental mod that allows you to boot into other boot images stored in your sdcard.
The N1 does not have enough internal memory to store more than one android image, thus we have to use the sdcard for this.


NOTE:

This mod is experimental, and for advanced users only



Requirements (READ THEM CAREFULLY):

- A rooted and unlocked phone
- A FAST enough sdcard. This mod will work with any sdcard but I'd suggest at least a Class 4 card for performance reasons
- 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 over CWM of the ROM you wish to boot to. The flashable zip of the ROM is the same that is used for usual ROM installation. Also the zip should be using the latest update-binary format as is scripted in updater-script (e.g. the mount command takes 4 args, etc.)


Advanced Information regarding the process

- The mod requires a boot.img that is flashed by the zip. This is used for extracting the ramdisk, commenting out the mount mtd commands and using this ramdisk for chrooting into the ROM environment
- If no boot.img is existing, the ramdisk is picked up from /sdcard/ramdisk/
- The kernel used for booting all boot options is the one installed in the phone's boot mtd. This means that you need the respective kernel modules (e.g. WiFi) for this kernel, not the one that is bundled in the ROM that is multibooted. For example, if your main ROM is CM, pick the kernel modules from this one and push them to the multibooted ROM's /system/lib/modules/


Multiboot mod Installation

Download: N1_CWM-4.0.0.5-nobodyAtall-r2.img

Install via fastboot
Code:
Copy N1_CWM-4.0.0.5-nobodyAtall-r1.img to a location where fastboot can find it.
Boot your phone into fastboot mode (power on while holding the trackball)
Connect your phone via usb
fastboot devices (to make sure that fastboot "sees" your phone)
fastboot flash N1_CWM-4.0.0.5-nobodyAtall-r1.img
Install via adb
Code:
adb push N1_CWM-4.0.0.5-nobodyAtall-r1.img /sdcard/ 
adb shell 'flash_image recovery /sdcard/N1_CWM-4.0.0.5-nobodyAtall-r1.img'
adb reboot recovery

Multiboot ROM Installation

- Boot into the recovery and navigate to the new 'multiboot' menu. There you'll see the following options:
  • Boot into selected option!
  • 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 flashable ROM zip. Be patient, this step reserves the space and flashes the selected zip to the system.img in the sdcard
- If you need to flash additional zips for this ROM, Select multiboot->Flash zip to boot option, pick your newly created boot option and then pick the zip you need to flash.
- Select multiboot->Select default boot option and pick your newly created boot option
- Select multiboot-> Boot into selected option! (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*




ROMS verified to multiboot

Well, any ROM should be able to multiboot provided the requirements stated above are covered. The following ones have been verified to work:

[ROM] CyanogenMod-7.1 for Nexus One

[ROM] NEXUS N1 Passion MIUI.us Presents MIUI Pure English [AOSP]

CM 7 ExtremeMod ROM by Ken Mood


Uninstall

- Normal reboots will boot from the phone's mtd partitions.
- This mod makes no changes to your phone's mtd partitions. Flashing a new recovery will uninstall the old one obviously.
- 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:	device1.jpg
Views:	9668
Size:	19.5 KB
ID:	641757   Click image for larger version

Name:	device2.jpg
Views:	9846
Size:	17.8 KB
ID:	641758  
The Following 8 Users Say Thank You to nobodyAtall For This Useful Post: [ View ] Gift nobodyAtall Ad-Free
 
 
30th June 2011, 12:12 PM |#2  
nobodyAtall's Avatar
OP Inactive Recognized Developer
Flag Patras
Thanks Meter: 19,435
 
Donate to Me
More
Changelog:

(1/7/11) N1_CWM-4.0.0.5-nobodyAtall-r2.img
Fixed bug that flashed the multiboot ROM kernel in the phones kernel partition
Improved error reporting

(30/6/11) N1_CWM-4.0.0.5-nobodyAtall-r1.img
First version of CWM recovery providing the multiboot options
The Following 3 Users Say Thank You to nobodyAtall For This Useful Post: [ View ] Gift nobodyAtall Ad-Free
30th June 2011, 02:59 PM |#3  
ferfecir's Avatar
Senior Member
Flag Adana
Thanks Meter: 143
 
More
Thumbs up
woww thanks
30th June 2011, 03:03 PM |#4  
bobtentpeg's Avatar
Senior Member
Thanks Meter: 16
 
More
Well, this could be freaking awesome. I'll check it out at work
30th June 2011, 04:01 PM |#5  
Senior Member
Flag Arahova
Thanks Meter: 37
 
More
Nice one. Can we use CM nightlies that came after the RC?
30th June 2011, 04:33 PM |#6  
nobodyAtall's Avatar
OP Inactive Recognized Developer
Flag Patras
Thanks Meter: 19,435
 
Donate to Me
More
Quote:
Originally Posted by method77

Nice one. Can we use CM nightlies that came after the RC?

You can use it with any CM7 ROM
1st July 2011, 04:53 AM |#7  
Senior Member
Flag Melbourne
Thanks Meter: 15
 
More
I am interested in this, i'm surprised that it hasn't created more of a stir.
I have installed the recovery, but don't want to do anything else without Nandroiding first. Only Nandroid seems to get stuck on "Backing up system..."

Any i doing something wrong?
1st July 2011, 08:56 AM |#8  
nobodyAtall's Avatar
OP Inactive Recognized Developer
Flag Patras
Thanks Meter: 19,435
 
Donate to Me
More
Hello shorza,

To be honest, I've only been testing the multiboot part.
However, I think that backup works fine here:



Also the backup folder is created correctly:

~ # ls -la /sdcard/clockworkmod/backup/2011-07-01.06.49.58
drwxrwxrwx 2 root root 4096 Jul 1 06:52 .
drwxrwxrwx 5 root root 4096 Jul 1 06:49 ..
-rwxrwxrwx 1 root root 93489792 Jul 1 06:52 .android_secure.img
-rwxrwxrwx 1 root root 3670016 Jul 1 06:50 boot.img
-rwxrwxrwx 1 root root 37359168 Jul 1 06:52 cache.img
-rwxrwxrwx 1 root root 184136832 Jul 1 06:51 data.img
-rwxrwxrwx 1 root root 222 Jul 1 06:53 nandroid.md5
-rwxrwxrwx 1 root root 4194304 Jul 1 06:50 recovery.img
-rwxrwxrwx 1 root root 146908608 Jul 1 06:50 system.img

On another note, I'll be doing an update today to fix some bugs related to multiboot.
Attached Thumbnails
Click image for larger version

Name:	device.jpg
Views:	7918
Size:	30.1 KB
ID:	642632  
1st July 2011, 09:53 AM |#9  
CWM 4.x has problems backing sd-ext, so that might be the reason why you don't see it (your pic shows you don't have an sd-ext partition to backup) and shorza does. It is also the reason why I haven't tried this yet - if it was based on AmonRa's I'd have jumped immediately, but since it is based on CWM I wanted first to see some feedback here...
1st July 2011, 12:04 PM |#10  
Senior Member
Flag Melbourne
Thanks Meter: 15
 
More
Thanks for the help. Backup eventually worked, it just took a long time.
The problem is after zipping a new rom in multiboot, selecting it, then trying to boot into it, it took too long and I lost patience. It looked like it froze.
I'll try again tomorrow.
1st July 2011, 12:05 PM |#11  
Senior Member
Flag Melbourne
Thanks Meter: 15
 
More
Maybe my sdcard is too slow.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes