[SDCard Boot][Dual Boot] SDBooT v0.3 [Discontinued]

Search This thread

dev0xteam

Senior Member
Feb 23, 2012
81
162
Delhi
SDCard Boot for Micromax A116

This project is discontinued as I have bought a Galaxy Note 2. This project is open to anyone who wants to take over.

Announcement:Full developer support would be provided for tutorials and user-scripts.





What is SDCard boot?
SDCard boot means Installing the ROM on the SD-Card instead of the EMMC and leaving the EMMC empty for other ROMS.


How is it useful?
It is useful if you need to test roms that don't fit on the EMMC and also enables the user to keep multiple roms on multiple sdcards.


Instructions
Prepare ROM ZIP
Download all the files from the Second Post and follow the instructions given for your ROM

  1. Partition SD Card
    • Partition 1 : FAT (/sdcard)
    • Partition 2 : EXT4 (/system)
    • Partition 3 : EXT4 (/data)
    • Partition 4 : EXT4 (/cache)
  2. Flash SD-Recovery.img (See attachments)(Use MobileUncle Tools. It is easier to switch to EMMC Boot or Dual Boot.)
  3. Flash ROM (From SD-Recovery)(See 2nd post for a list of compatible ROM and Instructions for installation)

Multi/Dual Booting

NOTE: This feature is not stable yet, may not work on some roms and will remove recovery mode from the device.

Prepare your phone for MultiBooting
-Flash normal CWM/TWRP Recovery
-Install the ROM (EMMC) normally
-Copy boot.img from ROM.ZIP to '/sdcard/boot/emmc/' and '/emmc/boot/emmc/'
-Flash TWRP SBDooT
-Reboot to Recovery
-Flash the ROM you want on the sdcard (ROMS in Sencond post)
-Copy boot.img from SD ROM.ZIP to /sdcard/boot/sdb and emmc/boot/sdb
-Flash mBoot.zip

BUGS
Boot Menu Flickering.


Make sure that the EMMC ROM boot.img mounts "/dev/bootimg" and /dev/recovery"(optional) or SD ROM won't boot.

Convert ROMS from EMMC to SD
1.Obtain the target boot.img
2.Unpack using unpack-MT65xx.pl
Code:
./unpack-MT65xx.pl boot.img
3. Open the fstab file
4.Change the following
Code:
/emmc@cache
/emmc@usrdata
/emmc@android
to
Code:
/dev/block/mmcblk1p4
/dev/block/mmcblk1p3
/dev/block/mmcblk1p2
5.
Code:
repack-MT65xx.pl -boot boot.img-kernel.img boot.img-ramdisk SDBoot.img
6.Flash SDBoot.img as Boot.img
7.Share it on XDA


Future Support(Developers)
  • Use "/system" instead of "emmc@android" on updater script
  • Add an option for your own mBoot.img to make it easier for others to flash on sd/emmc
  • Add the following line at the end of fstab.mt6589 on mBoot.img
    Code:
    /dev/recovery /recovery emmc defaults

Thanks to
@kashifmin for KashKernel (http://xdaforums.com/showthread.php?t=2596271)
@suhas.holla for TWRP 2.7.0.0 (http://xdaforums.com/showthread.php?t=2758539)
 

Attachments

  • mboot.img
    3 MB · Views: 156
  • twrp-sd-recovery.img
    5.3 MB · Views: 258
  • mBoot.zip
    1.4 MB · Views: 218
Last edited:

dev0xteam

Senior Member
Feb 23, 2012
81
162
Delhi
SD-ROMS

CyanogenMOD 11

Compatibility:
Dual Boot : Yes
SDBoot : Yes

Last Updated along with v0.6

Bugs with SDBooT:
USB not detected if mounted as UMS and must be used as MTP

Instructions
Download CM11 v0.6 (or above)
ROM Thread
-Extract /META-INF/google/updater-script
-Replace all the "/emmc@android"s with "/dev/block/mmcblk1p2"
-Place updater-script back in the zip
Download mBooT.img
-Rename mBoot.img to boot.img
-Replace boot.img in zip with the one you downloaded
-Flash via TWRP SD-Recovery
-Install Patches given on the ROM Thread without any changes.
-Flash mboot.zip(emmc recovery) given in the previous post for MultiBooting.
-Place boot.img in '/emmc/boot/sdb' and '/sdcard/boot/sdb' (MultiBoot Only)


Carbon ROM

Compatibility:
Dual Boot : Yes
SDBoot : Yes

Last Updated along with Test Build

Bugs with SDBooT:
USB not detected if mounted as UMS and must be used as MTP

Instructions
Download Carbon ROM Test Build (or above)
ROM Thread
-Extract /META-INF/google/updater-script
-Replace all the "/emmc@android"s with "/dev/block/mmcblk1p2"
-Place updater-script back in the zip
Download mBooT.img
-Rename mBoot.img to boot.img
-Replace boot.img in zip with the one you downloaded
-Flash via TWRP SD-Recovery
-Flash mboot.zip(emmc recovery) given in the previous post for MultiBooting.
-Place boot.img in '/emmc/boot/sdb' and '/sdcard/boot/sdb' (MultiBoot Only)


More to come!!
 
Last edited:

macsenjose18

Senior Member
Sep 28, 2012
229
52
Mumbai
Okay this is something new in this we have seen for dis device good work bro??

Sent from my A116 using XDA Premium 4 mobile app
 

shivrajsingh

Senior Member
Sep 10, 2013
217
49
Jaipur
Realme GT 2 Pro
Sorry. my mistake. I have pure xperia z2 on emmc and want to install lewa os by saket joshi on SD card. So I wanted to modify its boot.img. Can you convert lewa os in next release?
 

dev0xteam

Senior Member
Feb 23, 2012
81
162
Delhi
Sorry. my mistake. I have pure xperia z2 on emmc and want to install lewa os by saket joshi on SD card. So I wanted to modify its boot.img. Can you convert lewa os in next release?
I am first focusing on get mBooT stable then I will upload other mBoot.img files. Some of the early mboots will be :
Lewa
Stock(This will work on most of the stock based 4.2.x roms)
MIUI
Custom Kernel(Not Sure which one) with Stock Ramdisk.
 

aditya_j

Senior Member
Aug 11, 2013
56
4
So I'll need to make 4 partitions on my external SD card,right?
1 FAT and 3 EXT4.
What sizes should I make the EXT4 partitions?
I currently have a 32gb card with 25gb FAT and remaining EXT3 because I use Link2SD

EDIT: I want to use the CM11 along side my existing stock 4.2.1, and currently have 6.0.4.8 Phil's Touch recovery......can you explain me the steps to multiboot with the CM11? I already have the Mobile Uncle tools and I am familiar with using it.
 
Last edited:

dev0xteam

Senior Member
Feb 23, 2012
81
162
Delhi
So I'll need to make 4 partitions on my external SD card,right?
1 FAT and 3 EXT4.
What sizes should I make the EXT4 partitions?
I currently have a 32gb card with 25gb FAT and remaining EXT3 because I use Link2SD

EDIT: I want to use the CM11 along side my existing stock 4.2.1, and currently have 6.0.4.8 Phil's Touch recovery......can you explain me the steps to multiboot with the CM11? I already have the Mobile Uncle tools and I am familiar with using it.

You will have to Partition you SD-Card as given in first post or SDBooT wil not work.
You need Init.d Support on both of the roms (Stock may not work) Try Colossus Rom

Instructuions:
Required Software:
7zip
Notepad++

Preparing EMMC ROM:
-Install Colosus Rom via any recovery
-Create a new folder on your sdcard. call it boot
-Inside Boot, create another folder called 'emmc'
-Extract the boot.img from Stock ROM
-Copy Colossus Boot.img to /emmc

Preparing SDBooT
-Download and Install twrp-sd-recovery that is attached in the 1st Post
-Download CM11 and all the required patches
-Extract META-INF/google/updater-script from CM11.zip
-Open updater-script in Notepad++
-Ctrl+F
-Switch to the Replace tab
-Find what : /emmc@android
-Replace with /dev/block/mmcblk1p2
-Ctrl+S
-Put the updater-script back in CM11.zip/META-INF/google/
-Download mboot.img from the first post
-Rename it to boot.img
-Create a folder inside the boot folder(that we created earlier) and name it 'sdb'
-Place this boot.img in 'sdb' and in CM11.zip
-Flash this via twrp-sd-recovery
-Flash all the CM11 patches via twrp-sd-recover without any changes
-Download mBoot.zip from the first post
-Flash it via any recovery.

Copy boot folder to Internal Storage and FAT Partition of SDCARD

-Structure (Placemant of boot folder and files in boot folder)

Code:
On Internal Storage
1.EMMC ROM
boot/emmc/boot.img
2.SDBooT ROM
boot/sdb/boot.img

On SDCard
1.EMMC ROM
boot/emmc/boot.img
2.SDBooT ROM
boot/sdb/boot.img

NOTE:If mBoot.zip fails to fire up at boot..
Workaround:
Perform this step at the end
Flash mBoot.zip via any normal recovery
 
Last edited:

aditya_j

Senior Member
Aug 11, 2013
56
4
Code:
On Internal Storage
1.EMMC ROM
boot/emmc/boot.img
2.SDBooT ROM
boot/sdb/boot.img

On SDCard
1.EMMC ROM
boot/emmc/boot.img
2.SDBooT ROM
boot/sdb/boot.img

This we have to do on the FAT partitions of both the storages,right?

I am still a bit unclear on the number and sizes of partitions on the SD card. I have finished making changes to the CM11 ROM zip and also installed an init.d emulator on my stock as I could not find a ROM that didnt require a complete factory reset. Sorry,I know I am asking too many questions,just trying to have all the knowledge before starting it.
 
Last edited:

dev0xteam

Senior Member
Feb 23, 2012
81
162
Delhi
Code:
On Internal Storage
1.EMMC ROM
boot/emmc/boot.img
2.SDBooT ROM
boot/sdb/boot.img

On SDCard
1.EMMC ROM
boot/emmc/boot.img
2.SDBooT ROM
boot/sdb/boot.img

This we have to do on the FAT partitions of both the storages,right?
yes

Partition 2 (System) : 660mb or above
Partition 3 (Data) : 450mb or above
Partition 3 (Cache) : 350mb or above
Partition 1 (FAT) : Remaining
 

aditya_j

Senior Member
Aug 11, 2013
56
4
TWRP stops working

I flashed the sd TWRP via Mobile uncle tools,when I boot into recovery, it just gets stuck at the 'Team Win' logo and doesn't respond to any touch or key press. Is it possible to install Dual boot with the regular CWM,or is it necessary to use the sd TWRP?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 27
    SDCard Boot for Micromax A116

    This project is discontinued as I have bought a Galaxy Note 2. This project is open to anyone who wants to take over.

    Announcement:Full developer support would be provided for tutorials and user-scripts.





    What is SDCard boot?
    SDCard boot means Installing the ROM on the SD-Card instead of the EMMC and leaving the EMMC empty for other ROMS.


    How is it useful?
    It is useful if you need to test roms that don't fit on the EMMC and also enables the user to keep multiple roms on multiple sdcards.


    Instructions
    Prepare ROM ZIP
    Download all the files from the Second Post and follow the instructions given for your ROM

    1. Partition SD Card
      • Partition 1 : FAT (/sdcard)
      • Partition 2 : EXT4 (/system)
      • Partition 3 : EXT4 (/data)
      • Partition 4 : EXT4 (/cache)
    2. Flash SD-Recovery.img (See attachments)(Use MobileUncle Tools. It is easier to switch to EMMC Boot or Dual Boot.)
    3. Flash ROM (From SD-Recovery)(See 2nd post for a list of compatible ROM and Instructions for installation)

    Multi/Dual Booting

    NOTE: This feature is not stable yet, may not work on some roms and will remove recovery mode from the device.

    Prepare your phone for MultiBooting
    -Flash normal CWM/TWRP Recovery
    -Install the ROM (EMMC) normally
    -Copy boot.img from ROM.ZIP to '/sdcard/boot/emmc/' and '/emmc/boot/emmc/'
    -Flash TWRP SBDooT
    -Reboot to Recovery
    -Flash the ROM you want on the sdcard (ROMS in Sencond post)
    -Copy boot.img from SD ROM.ZIP to /sdcard/boot/sdb and emmc/boot/sdb
    -Flash mBoot.zip

    BUGS
    Boot Menu Flickering.


    Make sure that the EMMC ROM boot.img mounts "/dev/bootimg" and /dev/recovery"(optional) or SD ROM won't boot.

    Convert ROMS from EMMC to SD
    1.Obtain the target boot.img
    2.Unpack using unpack-MT65xx.pl
    Code:
    ./unpack-MT65xx.pl boot.img
    3. Open the fstab file
    4.Change the following
    Code:
    /emmc@cache
    /emmc@usrdata
    /emmc@android
    to
    Code:
    /dev/block/mmcblk1p4
    /dev/block/mmcblk1p3
    /dev/block/mmcblk1p2
    5.
    Code:
    repack-MT65xx.pl -boot boot.img-kernel.img boot.img-ramdisk SDBoot.img
    6.Flash SDBoot.img as Boot.img
    7.Share it on XDA


    Future Support(Developers)
    • Use "/system" instead of "emmc@android" on updater script
    • Add an option for your own mBoot.img to make it easier for others to flash on sd/emmc
    • Add the following line at the end of fstab.mt6589 on mBoot.img
      Code:
      /dev/recovery /recovery emmc defaults

    Thanks to
    @kashifmin for KashKernel (http://xdaforums.com/showthread.php?t=2596271)
    @suhas.holla for TWRP 2.7.0.0 (http://xdaforums.com/showthread.php?t=2758539)
    12
    SD-ROMS

    CyanogenMOD 11

    Compatibility:
    Dual Boot : Yes
    SDBoot : Yes

    Last Updated along with v0.6

    Bugs with SDBooT:
    USB not detected if mounted as UMS and must be used as MTP

    Instructions
    Download CM11 v0.6 (or above)
    ROM Thread
    -Extract /META-INF/google/updater-script
    -Replace all the "/emmc@android"s with "/dev/block/mmcblk1p2"
    -Place updater-script back in the zip
    Download mBooT.img
    -Rename mBoot.img to boot.img
    -Replace boot.img in zip with the one you downloaded
    -Flash via TWRP SD-Recovery
    -Install Patches given on the ROM Thread without any changes.
    -Flash mboot.zip(emmc recovery) given in the previous post for MultiBooting.
    -Place boot.img in '/emmc/boot/sdb' and '/sdcard/boot/sdb' (MultiBoot Only)


    Carbon ROM

    Compatibility:
    Dual Boot : Yes
    SDBoot : Yes

    Last Updated along with Test Build

    Bugs with SDBooT:
    USB not detected if mounted as UMS and must be used as MTP

    Instructions
    Download Carbon ROM Test Build (or above)
    ROM Thread
    -Extract /META-INF/google/updater-script
    -Replace all the "/emmc@android"s with "/dev/block/mmcblk1p2"
    -Place updater-script back in the zip
    Download mBooT.img
    -Rename mBoot.img to boot.img
    -Replace boot.img in zip with the one you downloaded
    -Flash via TWRP SD-Recovery
    -Flash mboot.zip(emmc recovery) given in the previous post for MultiBooting.
    -Place boot.img in '/emmc/boot/sdb' and '/sdcard/boot/sdb' (MultiBoot Only)


    More to come!!
    5
    Code:
    On Internal Storage
    1.EMMC ROM
    boot/emmc/boot.img
    2.SDBooT ROM
    boot/sdb/boot.img
    
    On SDCard
    1.EMMC ROM
    boot/emmc/boot.img
    2.SDBooT ROM
    boot/sdb/boot.img

    This we have to do on the FAT partitions of both the storages,right?
    yes

    Partition 2 (System) : 660mb or above
    Partition 3 (Data) : 450mb or above
    Partition 3 (Cache) : 350mb or above
    Partition 1 (FAT) : Remaining
    3
    Sorry. my mistake. I have pure xperia z2 on emmc and want to install lewa os by saket joshi on SD card. So I wanted to modify its boot.img. Can you convert lewa os in next release?
    I am first focusing on get mBooT stable then I will upload other mBoot.img files. Some of the early mboots will be :
    Lewa
    Stock(This will work on most of the stock based 4.2.x roms)
    MIUI
    Custom Kernel(Not Sure which one) with Stock Ramdisk.
    3
    how to partition sd card?
    Windows
    -Install MiniTool Partition Wizard
    -Connect SDCard to PC
    -Run MiniTool Partition Wizard
    -Select SD Card
    -Partition Accordingly

    Linux
    -Install GParted
    -Connect SDCard to PC
    -Run GParted
    -Select SD Card
    -Partition Accordingly