Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,490 Members 42,131 Now Online
XDA Developers Android and Mobile Development Forum

[mod][tool]dual boot for zte blade/modify-tool

Tip us?
 
ByTe_cOdE
Old
(Last edited by ByTe_cOdE; 14th August 2012 at 07:41 AM.)
#1  
ByTe_cOdE's Avatar
Senior Member - OP
Thanks Meter 137
Posts: 103
Join Date: Mar 2012
Prompt [mod][tool]dual boot for zte blade/modify-tool

Hello guys. This my dual booting project for our amazing ZTE BLADE!

What is this?

>This mod works on the basis of two scripts which are to be executed in the terminal emulator or script manager and a modified boot.img to boot the rom from sdcard instead of NAND.


FOR ADVANCED USERS ONLY!!!

I WILL NOT BE RESPONSIBLE FOR ANY BRICKED DEVICES, DAMAGED SDCARDS ETC.

DO IT AT YOUR OWN RISK!!!

It is in alpha stage, so lot of work is still needed to make it more safer and convenient.
I will add this mod for more ROMS like CM10, Paranoidandroid etc.

Downloads:

Cyanogenmod9(KonstaKang)
Boot.img - Download
Updater-script - Download

Cyanogenmod10
Boot.img - Download
Updater-script - Download

Gapps::
Jelly Bean Gapps Updater-script - Download

Tool:
Modify-Boot - Download
Now no need to wait for me to mod your boot.img.Mod your boot image for dual boot with this tool!!!
Guide for the tools is on the second post.

Thanks go to:
Sulthekk for guiding me towards right way.
SNAP.iT for giving me some mounting ideas.
All the people who have helped me(can't remember all names ).
And the big community to test it for me.
SCROLL DOWN to 2nd POST FOR THE WHOLE GUIDE...
The Following 5 Users Say Thank You to ByTe_cOdE For This Useful Post: [ Click to Expand ]
 
ByTe_cOdE
Old
(Last edited by ByTe_cOdE; 14th August 2012 at 08:14 AM.)
#2  
ByTe_cOdE's Avatar
Senior Member - OP
Thanks Meter 137
Posts: 103
Join Date: Mar 2012
Default GUIDE

So here is the full guide:
PARTITIONING SD CARD TO MOUNT /SYSTEM AND /DATA
  • Take the backup of your sd card data first
  • Make sure you have partitioned your sdcard before.
  • Connect your phone to your computer and mount usb storage.
  • Download the EASEUS partition manager from here.
    Open partition manager and delete all partitions of your sdcard.
    Right click on the 'unallocated' and click create partition.Don't label it select partition type as primary and filesystem as FAT32 and enter the partition size bot remember this will hold your photos,media etc,you should leave about 600 mb space free click OK.
  • right click again and create partition as primary and filesystem as EXT3 and size of 250 mb click OK.
  • Repeat above step again.
  • Apply all the changes by cliking on apply tap and you have succesfully partitioned your sdcard for dual booting.


GUIDE FOR THE TOOL
  • Extract the downloaded zip file extract to any concinient directory.Here I will explain the guide as a cygwin user.
  • Extract the zip to directory say c:\
  • The extracted folder will look like 'Modify-boot".Now open the terminal or cygwin bash and mount the directory by typing
    Quote:
    cd c:\modify-boot
  • Now drop your boot.img in the WORKING_313 folder and execute the script by typing
    Quote:
    ./modify-boot.txt
  • It will mod your boot.img for dual booting.Output boot.img will be in the WORKING_313 folder as boot.img.

MODDING THE ROM FOR DUAL BOOTING

  • Open the ROM.zip.
  • Get the modded boot.img from the tool and replace with the original one.
  • Now download the attached updater-script from 1st post and replace the orignal one with this modded one(path to udater-script META-INF/com/google/android).
  • Zip up the rom.
ADAPTING A ROM TO INSTALL IN THE SD CARD
  • If you want to mod your own rom other than the posted here,then you have to mod the updater-script in the rom
  • For that open your rom zip go to /META-INF/com/google/android and open the updater script
  • Now replace every line looking like following as;
    From
    Quote:
    mount("yaffs2", "MTD", "system", "/system");
    TO
    Quote:
    run_program("/sbin/mount", "dev/block/mmcblk0p3", "/system");
    and this one

    From
    Quote:
    format("yaffs2", "MTD", "system", "0");
    TO
    Quote:
    run_program("/sbin/mkfs.ext2", "dev/block/mmcblk0p3");
    and add the following line next to the line written above

    Quote:
    run_program("/sbin/mkfs.ext2", "dev/block/mmcblk0p2");
    Save the file and zip up the rom.Your rom is ready to install to SD CARD!!!!
  • FLASHING GUIDE
  • Remember, before partitioning the sd card you should wipe data and cache in the recovery during NAND rom installation or it will erase the partitions created before.
  • First flash the rom you want to install in the NAND,do not wipe data or anything do it before partitioning.
  • Then install the rom without wiping data or anything.
  • reboot the system. You will be in your sd card rom!!!
  • Now create folder in the sd card as /sdcard/multiboot.
    Take both boot.img from NAND rom and cm9 rom rename the cm9 boot.img to bootsd.img and keep the NAND boot.img as it is.
    Copy both imgs to multiboot folder.
  • Now download attached(or use above link for unregistered users) bootnand.sh and bootsd.sh and place at the root of the sdcard.
    Open terminal emulator,type su and execute bootsd.sh to boot into sd card rom or execute bootnand.sh to boot into NAND rom.

THAT'S IT . ENJOY DUAL BOOT ON YOUR ZTE BLADE!!!!
Attached Files
File Type: zip scipts+UPDATER SCRIPT.zip - [Click for QR Code] (10.8 KB, 95 views)
The Following 5 Users Say Thank You to ByTe_cOdE For This Useful Post: [ Click to Expand ]
 
ramubhat
Old
#3  
Junior Member
Thanks Meter 3
Posts: 28
Join Date: Jul 2011
Location: Sirsi
Quote:
Originally Posted by android@sam View Post
So here is the full guide:
PARTITIONING SD CARD TO MOUNT /SYSTEM AND /DATA
  • Take the backup of your sd card data first
  • Make sure you have partitioned your sdcard before.
  • Connect your phone to your computer and mount usb storage.
  • Download the EASEUS partition manager from here.
    Open partition manager and delete all partitions of your sdcard.
    Right click on the 'unallocated' and click create partition.Don't label it select partition type as primary and filesystem as FAT32 and enter the partition size bot remember this will hold your photos,media etc,you should leave about 600 mb space free click OK.
  • right click again and create partition as primary and filesystem as EXT3 and size of 250 mb click OK.
  • Repeat above step again.
  • Apply all the changes by cliking on apply tap and you have succesfully partitioned your sdcard for dual booting.


MODDING THE CM9 ROM FOR DUAL BOOTING
  • Open the konstakang.zip (currently only supported rom, will add more soon).
  • Download modded boot.img from here extract it and rename the .img file to boot.img.
  • Delete the boot.img from the cm9 rom and put the downloaded one.
  • Now download the attached updater-script (remove .txt) or from here (for unregistered users)and replace the orignal one with this modded one(path to udater-script META-INF/com/google/android).
  • Zip up the rom.

  • FLASHING GUIDE
  • Remember, before partitioning the sd card you should wipe data and cache in the recovery during NAND rom installation or it will erase the partitions created before.
  • First flash the rom you want to install in the NAND,do not wipe data or anything do it before partitioning.
  • Then install the cm9 rom without wiping data or anything.
  • reboot the system. You will be in your sd card rom!!!
  • Now create folder in the sd card as /sdcard/multiboot.
    Take both boot.img from NAND rom and cm9 rom rename the cm9 boot.img to bootsd.img and keep the NAND boot.img as it is.
    Copy both imgs to multiboot folder.
  • Now download attached(or use above link for unregistered users) bootnand.sh and bootsd.sh and place at the root of the sdcard.
    Open terminal emulator,type su and execute bootsd.sh to boot into sd card rom or execute bootnand.sh to boot into NAND rom.

THAT'S IT . ENJOY DUAL BOOT ON YOUR ZTE BLADE!!!!
hi, thank u ....... the link for 'boot.img' is not working. Pls fix it
 
karthiknr
Old
#4  
karthiknr's Avatar
Senior Member
Thanks Meter 112
Posts: 682
Join Date: Jan 2012
Can't thank you enough for this,if it works.. Great stuff btw.. At least,you were the first one that tried and got it working..

Sent from my LT26i using xda premium

ZTE Blade,Sony Xperia S,Orange San Diego/Intel X900,Nexus 5
The Following User Says Thank You to karthiknr For This Useful Post: [ Click to Expand ]
 
Faiz Malkani
Old
#5  
Faiz Malkani's Avatar
Forum Moderator / XDA Portal Team
Thanks Meter 1807
Posts: 7,518
Join Date: Feb 2012
Location: Mumbai
Quote:
Originally Posted by karthiknr View Post
Can't thank you enough for this,if it works.. Great stuff btw.. At least,you were the first one that tried and got it working..

Sent from my LT26i using xda premium
+1

We've been waiting on this ever since karthik and wbaws discussion made it sound impossible
 
Faiz Malkani
Old
#6  
Faiz Malkani's Avatar
Forum Moderator / XDA Portal Team
Thanks Meter 1807
Posts: 7,518
Join Date: Feb 2012
Location: Mumbai
Just reported as a news tip for the portal
The Following User Says Thank You to Faiz Malkani For This Useful Post: [ Click to Expand ]
 
ByTe_cOdE
Old
#7  
ByTe_cOdE's Avatar
Senior Member - OP
Thanks Meter 137
Posts: 103
Join Date: Mar 2012
Thanks!!
 
ByTe_cOdE
Old
#8  
ByTe_cOdE's Avatar
Senior Member - OP
Thanks Meter 137
Posts: 103
Join Date: Mar 2012
New update coming for tool soon!!!
 
flixblixclix
Old
#9  
Senior Member
Thanks Meter 29
Posts: 108
Join Date: Dec 2011
Its a great achievement .. future updates will be easy to go on for basic user. Btw thanks man. .

Sent from my Blade using Tapatalk 2
 
Jinxxed
Old
#10  
Senior Member
Thanks Meter 280
Posts: 401
Join Date: Mar 2012
Location: badalup
I've found that making four partitions and installing /data to mmcblk0p4 and /system to mmcblk0p3 helps with certain roms that have S2E configured.

I'm also trying to get it to boot two mounted loop filesystems instead, i installed SSRLS7 and GB-Gapps as per your instructions in the OP (just changed the partitions for installation and the updater-script and init.rc so that it would work) did a dd of the entire partitions to files on the sdcard and edited the init.rc like this:

Code:
on fs
# mount mtd partitions
    chmod 777 /sbin/busybox    
    symlink /sbin/busybox /sbin/losetup
    mount vfat /dev/block/mmcblk0p1 /mnt/sdcard
    losetup /dev/block/loop0 /mnt/sdcard/multiboot/snow/system.img
    losetup /dev/block/loop1 /mnt/sdcard/multiboot/snow/data.img
    mount ext2 /dev/block/loop0 /system
    mount ext2 /dev/block/loop1 /data
    mount yaffs2 mtd@cache /cache nosuid nodev

on post-fs
    # ZTE_JCD_CTSCONFIG, 2011.05.03, BEGIN
    mkdir /system/lost+found 0770
    chmod 0770 /system/lost+found
    # ZTE_JCD_CTSCONFIG 2011.05.03, END
    # once system is setup, no need to modify /system , ZTE_BOOT_LIWEI_20110331
    mount ext2 /dev/block/loop0 /system ro remount
I also copied busybox to /sbin in the ramdisk before letting the process finish and make bootsd.img

It doesn't work though and i have no idea why not. I've mounted the system.img and data.img files on the phone via the terminal to test if the procedure works and it does mount them just fine.

If anyone has any clue why this doesn't work then please tell me.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes