Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,495 Members 37,083 Now Online
XDA Developers Android and Mobile Development Forum

[Multi Boot] Boot Menu

Tip us?
 
munjeni
Old
(Last edited by munjeni; 11th June 2014 at 05:25 PM.)
#1  
munjeni's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 16,112
Posts: 4,975
Join Date: Jun 2011
Default [Multi Boot] Boot Menu

Multiboot for Sony Xperia Z1


How to install boot menu
- download bootmenu_honami.rar, extract folder "bootmenu" to the your internal storage
- put boot.img or kernel.elf to the mainrom folder, make sure thats the same kernel like your primary rom (aka main rom)
- download bootmenu.img from attachment, flash bootmenu.img using fastboot commnd: fastboot flash boot bootmenu.img

Since your bootmenu folder not contain settings.ini (you runing bootmenu at a first time) that will be created easily. You need to complete main step aka main rom creation:
1. (mainrom creation) reboot into bootmenu, chose "patch...", navigate to bootmenu, navigate to mainrom, select mainrom.zip package (make sure boot.img or kernel.elf is the same like your current main rom kernel, and make sure boot.img is in folder mainrom), select mainrom.zip and click "yes". Main rom will be added into boot menu entry. Now reboot again into boot menu and you will see new menuentry, chose these menu to boot into your primary rom!
2. (other roms creation - you can do only if you completed main rom step) reboot into bootmenu, chose "patch...", principe is diferent (there is 2 steps):
- step 1: chose rom zip you want to patch, patch them
- step 2: reboot again into boot menu (new rom entry will be displayed), select these rom to boot, on led blinking press to boot into cwm, now you are in cwm of these rom, now navigate to the same folder where is your package, you will find zip with appended name "patched.zip", chose these patched zip to install trought these recovery, you are done!

If something fail, make sure look into bootmenu folder into main script aka "multiboot.sh", try to fix-improve something Enjoy!

WARNING:
- NEVER RENAME FOLDERS OR ZIP ARCHIVES TO HAVE SPACE IN NAME SINCE BOOTMENU WILL NOT WORK!!! INSTEAD OF WRITING SPACE " " WRITE "_" SOMETHING_LIKE_THIS" !
- there is possibility for your partitions of the main rom to get overwriten if multiboot.sh fail to patch these rom you going to patch, just to let you know! Two click solution is in testing stage so there is probably a lot of bugs! I am not responsible if you lost your private data! So guys if you willing to help, I am waiting. Things need to be improved in multiboot.sh !
Attached Files
File Type: zip bootmenu_honami.zip - [Click for QR Code] (14.81 MB, 417 views)
File Type: img bootmenu.img - [Click for QR Code] (10.38 MB, 228 views)
The Following 46 Users Say Thank You to munjeni For This Useful Post: [ Click to Expand ]
 
munjeni
Old
(Last edited by munjeni; 5th June 2014 at 03:04 PM.)
#2  
munjeni's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 16,112
Posts: 4,975
Join Date: Jun 2011
Here is full source code of the my bootmenu project -> https://github.com/munjeni/bootmenu_z1_and_z1c

Public License for BOOTMENU and for my Auxiliary Work
You can Distribute my source without my Permissions. Distribution should include my XDA name 'munjeni' and Link to this 'BOOTMENU' thread in your Credits sections/About sections and Properly Visible to Human Eyes. If you use our source and have them modified, you need to make them public to everyone!!! If you not propertly use my source and you not give proper credit, and you not share your modified source code which is based on my source code, I will find you and I will report your post!


And... If You Like my BOOTMENU... Remember to Press...Thanks button
The Following 26 Users Say Thank You to munjeni For This Useful Post: [ Click to Expand ]
 
munjeni
Old
(Last edited by munjeni; 7th June 2014 at 05:14 PM.)
#3  
munjeni's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 16,112
Posts: 4,975
Join Date: Jun 2011
Credits

- @abbychauhan first one who helped me in testing boot menu, thanks!
- @krabappel2548 for kernel with kexec! I have used his kexec kernel in our boot menu for Z1, thanks!
- @HypoTurtle for sugestions, thanks!
- @DooMLoRD for opening my eyes since I had a wrong kernel on my local hard drive
- @SafiXS , @Chocolatetrain, @ntmohammad ...sory if I forgot someone, thanks to all for testing!
The Following 15 Users Say Thank You to munjeni For This Useful Post: [ Click to Expand ]
 
abbychauhan
Old
(Last edited by abbychauhan; 22nd June 2014 at 07:40 AM.)
#4  
abbychauhan's Avatar
Senior Member
Thanks Meter 716
Posts: 1,118
Join Date: Dec 2013
Location: JAIPUR
"Post Updated on 22/06/2014"

MultiBoot Totally Simplified (Noob Friendly)

Whole Multiboot Procedure for better understanding..
We will do this in two parts procedure as Follows -

Part 1 -
First we will do the mainrom creation. "Mainrom" - The ROM which is Currently installed on your phone.


1. First Download bootmenu_honami.rar, extract folder "bootmenu" to your Phone's Internal storage

2. Put boot.img or kernel.elf (Of the ROM which is Currently installed on your phone) to the mainrom folder (its in the bootmenu folder) of extracted rar file,
make sure thats the same kernel i.e, boot.img or kernel.elf like your primary rom of yours which is currently installed

boot.img - you can extract it from the ROM zip file or Custom Kernel zip file eg. ROM.zip or Doomloards Kernel zip

Kernel.elf - U ll have to convert kernel.sin from ROM zip file to kernel.elf via Flashtool (It has got option to do that)

3. Download bootmenu.img from attachment, flash bootmenu.img using fastboot commend: fastboot flash boot bootmenu.img

4. Reboot into bootmenu, choose "patch...", navigate to mainrom folder (it has to be in the internal memory, inside the folder bootmenu),
select mainrom.zip package (make sure boot.img or kernel.elf is the same like your current main rom kernel, and make sure boot.img or kernel.elf is in folder "mainrom" ),
select mainrom.zip and click "yes". Main rom will be added into boot menu entry.
Now reboot again into boot menu and you will see new Entry Mainrom and Mainrom - CWM, choose Mainrom from Multiboot Menu to boot into your primary rom or Choose mainrom - CWM to go into mainrom Recovery

Part 2 -
Other ROMs creation - You can do it only if you completed main rom step)


1. Reboot into bootmenu, chose "patch...",

2. Navigate to Second ROM ZIP file
(Keep it anywhere in External Memory Card Because you wont be able to access Internal Memory of your Phone via another ROM Recovery due to change of Partitions, All ROMs will be installed on Internal Memory),
Choose ROM zip you want to patch, patch them

3. Reboot again into boot menu (new ROM entry will be displayed), go into ROM - CWM to go into Recovery of the particular ROM,
Now you are in Recovery of New ROM, Go to install ZIP (Installation of ROM) and
navigate to the same folder where you kept the ROM ZIP file (on External Card Memory),
you will find a new zip with appended name "patched.zip",
chose these patched zip to install trough the Recovery,

4. Flash C6902 fix, if u have C6902 Device (keep it On External Memory too),

5. Boot into ROM then Do a REBOOT and again go to Secondary ROM - CWM

6. Flash Gapps (keep it On External Memory too)

7. Flash Any Mod or anything if you wanted to flash for Your ROM (keep it On External Memory too)
Except Custom Kernels or Something that will wipe bootmenu.img ( Its WIP you can check out the Conversations on Page 48/49/50 )

8. Do Reboot

9. In Bootmenu Select the Newly installed ROM.

You are done!
Enjoy!

Common Questions -
1. How many ROMs I can Install?
Answ - http://forum.xda-developers.com/show...&postcount=399

2. How to go from One ROM Partation to Another ROM Partation via File Explorer?
Answ - http://forum.xda-developers.com/show...&postcount=476

3. How to get kernel.elf?
Answ - http://forum.xda-developers.com/show...&postcount=384
and http://forum.xda-developers.com/show...&postcount=386
and http://forum.xda-developers.com/show...&postcount=387

4. How to take Screenshot of CWM?
Answ - http://forum.xda-developers.com/show...&postcount=358
and http://forum.xda-developers.com/show...&postcount=362

5. We get ROM updates now and then how do we do it? If we want to remove The Whole Multiboot Thing or a ROM from Bootmenu and to uninstall it completely from our phone then what is the procedure?
Answ - http://forum.xda-developers.com/show...&postcount=277
and http://forum.xda-developers.com/show...&postcount=281

6. Stock Based ROMs ask to flash the Stripped FTF via flashtools in the END, if we keep Stock based ROMs as Secondary ROMs then how will it work then, it will wipe other ROMs Kernal and bootmenu kernal?
Answ - Its Hard but http://forum.xda-developers.com/show...&postcount=325
and http://forum.xda-developers.com/show...&postcount=326

7. Power Off Charging?
Answ - http://forum.xda-developers.com/show...&postcount=322

8. The partition made by Multi Boot for other ROMs is very small, Why is that? Can it be increased?
Answ - http://forum.xda-developers.com/show...&postcount=313
and http://forum.xda-developers.com/show...&postcount=316
and http://forum.xda-developers.com/show...&postcount=317

9. I want to change the name of "mainrom" and Secondary ROM names in boot menu?
Answ - http://forum.xda-developers.com/show...&postcount=307

10. Gapps on Primary ROM?
Answ - http://forum.xda-developers.com/show...&postcount=240

11. Main ROM Update / MainROM Kernal Change?
Answ - http://forum.xda-developers.com/show...&postcount=571
The Following 16 Users Say Thank You to abbychauhan For This Useful Post: [ Click to Expand ]
 
munjeni
Old
#5  
munjeni's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 16,112
Posts: 4,975
Join Date: Jun 2011
Complicated and not for noobs, but hope some one do it for you if you are confused! Seccond tut will be more complicated since all ramdisks need to be moded specialy for every each android which you going to boot. I will try to explain
The Following 2 Users Say Thank You to munjeni For This Useful Post: [ Click to Expand ]
 
abbychauhan
Old
#6  
abbychauhan's Avatar
Senior Member
Thanks Meter 716
Posts: 1,118
Join Date: Dec 2013
Location: JAIPUR
Quote:
Originally Posted by munjeni View Post
Complicated and not for noobs, but hope some one do it for you if you are confused! Seccond tut will be more complicated since all ramdisks need to be moded specialy for every each android which you going to boot. I will try to explain
Ya this thread really need a helpful Dev. Who will answer all questions.. And Of course not for noobs.. I think i ll scratch my head all night..

Sent from my Micromax A110Q using Tapatalk
 
louis860421
Old
#7  
Member
Thanks Meter 164
Posts: 91
Join Date: Feb 2013
Location: Nantou
@munjeni Is this same as XGo Muilti Boot?That is very harder to install.

Sent from my C6903 using XDA Premium 4 mobile app
The Following User Says Thank You to louis860421 For This Useful Post: [ Click to Expand ]
 
Androguide.fr
Old
(Last edited by Androguide.fr; 15th April 2014 at 07:55 PM.)
#8  
Androguide.fr's Avatar
Recognized Contributor
Thanks Meter 6,971
Posts: 2,053
Join Date: Jul 2012
Location: Lyon, France

 
DONATE TO ME
Awesome work

Could you please give me some instructions on how to add your multiboot to a host kernel when building from source?
I'm working on a kernel for the z1, and I have krabappel's kexec patch implemented.

Quote:
My Contributions
(Apps, Librairies, Roms & Guides)
 

Pimp My Rom: Website / App / Thread

dSploit: Website / Github

Flash Gordon (Flash zips without a recovery): Thread

Universal init.d: App

PlayView/CardsUI Library: Portal / Github

HoloGraph Library: Portal / Github

Ubuntu Touch for i9300: Thread

Omni nightlies for Xperia Z1: Thread

Paranoid Android builds: Thread

Revive your bricked p68xx : Guide
Follow me on Github
 
munjeni
Old
(Last edited by munjeni; 15th April 2014 at 10:18 PM.)
#9  
munjeni's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 16,112
Posts: 4,975
Join Date: Jun 2011
Quote:
Originally Posted by Androguide.fr View Post
Awesome work

Could you please give me some instructions on how to add your multiboot to a host kernel when building from source?
I'm working on a kernel for the z1, and I have krabappel's kexec patch implemented.
Simple extract ramdisk and make boot.img with your kernel! I will upload new version now, version v1.1 (support for booting from booth internal and external sdcard)! Since booting from extrernal sdcard sause some lags if sd cards is not "best speed", recomended is booting from internal sdcard since performance is the same like booting from regular boot! Wait a moment, going to upload new version in next 10 minutes! When I get more free time I will give you preconfigured menu entry with installed CM11 into file partitions so you can multiboot them without needs for lookig into our tutorials, you will simple extract them and boot
The Following 5 Users Say Thank You to munjeni For This Useful Post: [ Click to Expand ]
 
munjeni
Old
#10  
munjeni's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 16,112
Posts: 4,975
Join Date: Jun 2011
New version of the bootmenu is out, enjoy!

Changelog:
- support for booting from booth internal or external sdcard
- fixed bug with reboot timer when there is no rom in settings ini or when there is no bootmenu folder

The Following 7 Users Say Thank You to munjeni For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes