[Multi Boot] Boot Menu

Search This thread
Feb 3, 2014
40
23
New Delhi
MultiBoot Totally Simplified (Noob Friendly)

Whole Multiboot Procedure for better understanding.. Check Post # 4
Also Check Common Questions

@munjeni I know you are busy so i took the liberty to update the procedure.. i ll keep it updated when u add any other feature so it will save some time of yours ;)

Wow thanks i waa waiting for that my most of the que. already answered.
 

abbychauhan

Senior Member
Dec 20, 2013
1,833
1,131
JAIPUR
I have an idea if i change the name of Pimped Kernel zip similar to the zip name of Secondary ROM and do the patching and then flash the Patched Zip via CWM of Secondary ROM ( The same procedure which was told to How to update the Secondary ROM ) then will it work??
 

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
I have an idea if i change the name of Pimped Kernel zip similar to the zip name of Secondary ROM and do the patching and then flash the Patched Zip via CWM of Secondary ROM ( The same procedure which was told to How to update the Secondary ROM ) then will it work??

Probably yes, but I am not sure if system.ext4 is deleted after than! Probably I will need to make another submenu in bootmenu for patching only update packages and remove posibility for deleting seccond rom partitions.

I found another problem using bootmenu on Z1C, for example my camera is not working corectly in main rom, I do not know if someone noticed the same bug! I have locked my bootloader and removed bootmenu just for test since I thinked my camera is broken, but after restoring TA and after deleting bootmenu, camera working perfectly! Seems kexec cause camera fail or probably my unlocking procedure was not performed lucky... I will test again later :(
 
Last edited:
  • Like
Reactions: abbychauhan

abbychauhan

Senior Member
Dec 20, 2013
1,833
1,131
JAIPUR
Probably yes, but I am not sure if system.ext4 is deleted after than! Probably I will need to make another submenu in bootmenu for patching only update packages and remove posibility for deleting seccond rom partitions.

I found another problem using bootmenu on Z1C, for example my camera is not working corectly in main rom, I do not know if somekone noticed the same bug! :(

That would be great

---------- Post added at 10:39 PM ---------- Previous post was at 10:22 PM ----------

I found another problem using bootmenu on Z1C, for example my camera is not working corectly in main rom, I do not know if someone noticed the same bug! I have locked my bootloader and removed bootmenu just for test since I thinked my camera is broken, but after restoring TA and after deleting bootmenu, camera working perfectly! Seems kexec cause camera fail or probably my unlocking procedure was not performed lucky... I will test again later :(
@munjeni Do u remember i had the same bug Check Post # 286 Page # 29 and after you made changes it worked again check Post # 304 Page # 31

The changes you made between post # 286 to post # 304 .. Might that will solve ur problem for Z1C
 
Last edited:

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
That would be great

---------- Post added at 10:39 PM ---------- Previous post was at 10:22 PM ----------


@munjeni Do u remember i had the same bug Check Post # 286 Page # 29 and after you made changes it worked again check Post # 304 Page # 31

The changes you made between post # 286 to post # 304 .. Might that will solve ur problem for Z1C

Thats allready in latest version, but camera not worked :( Will try again when I get more free time
 
  • Like
Reactions: abbychauhan

abbychauhan

Senior Member
Dec 20, 2013
1,833
1,131
JAIPUR
I have an idea if i change the name of Pimped Kernel zip similar to the zip name of Secondary ROM and do the patching and then flash the Patched Zip via CWM of Secondary ROM ( The same procedure which was told to How to update the Secondary ROM ) then will it work??

This procedure didnt work.. Couldn't get pass the Pimped Boot logo.. Its replacing the ext4 Partition
 

Top Liked Posts

  • There are no posts matching your filters.
  • 51
    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 !
    30
    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;)
    19
    "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://xdaforums.com/showpost.php?p=53236187&postcount=399

    2. How to go from One ROM Partation to Another ROM Partation via File Explorer?
    Answ - http://xdaforums.com/showpost.php?p=53318812&postcount=476

    3. How to get kernel.elf?
    Answ - http://xdaforums.com/showpost.php?p=53234909&postcount=384
    and http://xdaforums.com/showpost.php?p=53234988&postcount=386
    and http://xdaforums.com/showpost.php?p=53235075&postcount=387

    4. How to take Screenshot of CWM?
    Answ - http://xdaforums.com/showpost.php?p=53229901&postcount=358
    and http://xdaforums.com/showpost.php?p=53230193&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://xdaforums.com/showpost.php?p=53076327&postcount=277
    and http://xdaforums.com/showpost.php?p=53077937&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://xdaforums.com/showpost.php?p=53150024&postcount=325
    and http://xdaforums.com/showpost.php?p=53150187&postcount=326

    7. Power Off Charging?
    Answ - http://xdaforums.com/showpost.php?p=53144286&postcount=322

    8. The partition made by Multi Boot for other ROMs is very small, Why is that? Can it be increased?
    Answ - http://xdaforums.com/showpost.php?p=53116039&postcount=313
    and http://xdaforums.com/showpost.php?p=53118687&postcount=316
    and http://xdaforums.com/showpost.php?p=53118722&postcount=317

    9. I want to change the name of "mainrom" and Secondary ROM names in boot menu?
    Answ - http://xdaforums.com/showpost.php?p=53107296&postcount=307

    10. Gapps on Primary ROM?
    Answ - http://xdaforums.com/showpost.php?p=53027261&postcount=240

    11. Main ROM Update / MainROM Kernal Change?
    Answ - http://xdaforums.com/showpost.php?p=53565558&postcount=571
    15
    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 :eek:
    - @SafiXS , @Chocolatetrain, @ntmohammad ...sory if I forgot someone, thanks to all for testing!
    10
    New bootmenu is out! New principe (I think that is very easy now):

    - in no settings.ini (that mean - first time use) than boot into boot menu, chose zip of the your primary rom (make sure your main rom is installed from these zip), boot menu will install things needed for you to boot into your main rom! Simple when you done, reboot again into boot menu (now your main rom will be displayed in boot menu as a new entry, chose these menu to boot into your main rom. Easy? Ofcourse :D

    - if there is settings.ini and you allready have main rom installed or more than main rom, than simple chose submenu "patch...", select rom package you want to patch, bootmenu will patch them and will add new menuentru into settings.ini, will patch rom package, updater-script, all ramdisks from rom, will create zimage-dtb and initrd.gz, will create all file based partitions...etc. Reboot again into boot menu (now you have new menu entry added to the boot menu - patched rom), select them to boot, after led blink press volume keys to enter into cwm, install these modified rom package, you are done. Easy? Yes but I not deeply tested thing, but since new principe in our new version - you can look into multiboot.sh (main script for installing and patching roms!) try to fix or improve them, I will be glad if there get something improved! Let me know if you found something bad or better! Enjoy!

    WARNING:
    - 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 !