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

DUAL BOOT for SGY

Tip us?
 
irfanbagus
Old
(Last edited by irfanbagus; 14th April 2012 at 07:14 AM.)
#1  
Senior Member - OP
Thanks Meter 496
Posts: 307
Join Date: Mar 2012
Default DUAL BOOT for SGY

this is still alpha release and not fully tested. the idea based on http://forum.xda-developers.com/show....php?t=1155613 but this is diffrent implementation. i successfully boot using stock rom dxlc1 on internal storage and hybrid 2.1 on sdcard.

instalation :
1. flash kenel using odin (or other method for kernel flashing)
2. make 4 partition in your sdcard
1st fat-32 for your data
2nd ext3 for system
3rd ext3 for cache
4th ext3 for data
for testing, i use about 300MB for all ext3 partition
3. edit updater-script
Quote:
- change /dev/block/stl9 to /dev/block/mmcblk0p2 and the type from rfs to ext3
- change /dev/block/stl10 to /dev/block/mmcblk0p3 and the type from rfs to ext3
- change /dev/block/stl11 to /dev/block/mmcblk0p4 and the type from rfs to ext3
- don't use a2sd
- don't flash boot.img
Quote:
change for hybrid 2.1 rom:

change line

Code:
mount("rfs", "EMMC", "/dev/block/stl19", "/system");
with

Code:
unmount("/system");
mount("ext3", "EMMC", "/dev/block/mmcblk0p2", "/system");
remove line

Code:
package_extract_dir("data", "/data");
remove all line with word "dtinstall"

remove this line

Code:
assert(package_extract_file("boot.img", "/tmp/boot.img"),
       write_raw_image("/tmp/boot.img", "boot"),
       delete("/tmp/boot.img"));
4. install your edited rom as usual (i use cwm)

5. done. if you want boot to sdcard, create empty file named "bootsdcard" in your sdcard 1st partition and reboot

note :
- you can boot using dual rom but not dual kernel (yet). this one is stock kernel, so no init.d (yet)
- it does NOT work with a2sd or link2sd
- like i said it's not fully tested yet. it's only for dev and tester. use with caution
- boot from sdcard is slower compared to internal storage. little bit laggy i think, but still very usable
- if you already tested,please report your result

link:
http://www.mediafire.com/?6zrkh6a872036x7
The Following 25 Users Say Thank You to irfanbagus For This Useful Post: [ Click to Expand ]
 
xjammetx
Old
#2  
Senior Member
Thanks Meter 31
Posts: 169
Join Date: Mar 2012
Location: Las Islas Pilipinas!
woah... another great innovation in our device...



Cherry Mobile Blaze
MIUI!

Have no fear, how others think of you or will judge you, for your greatness, will silence them all.
 
steelheart34
Old
#3  
steelheart34's Avatar
Member
Thanks Meter 11
Posts: 58
Join Date: Jan 2012
Location: manila phillipines
This is awesome
 
sunilvyas
Old
#4  
sunilvyas's Avatar
Member
Thanks Meter 3
Posts: 90
Join Date: Jan 2012
Location: Jamnagar
will try and report...
If its help then Press Thanks! rather then saying it!
 
irfanbagus
Old
#5  
Senior Member - OP
Thanks Meter 496
Posts: 307
Join Date: Mar 2012
Quote:
Originally Posted by sunilvyas View Post
will try and report...
if you try before install rom to sdcard please check if your sdcard partition is corect (/dev/block/mmcblk0p1 , /dev/block/mmcblk0p2 , /dev/block/mmcblk0p3, /dev/block/mmcblk0p4)
and the filesystem also correct. better using tools in linux. editing updater-script also little bit tricky. i use hybrid because i don't have other custom rom. i also try direct extract from stock rom image but not working (boot loop).
 
kurotsugi
Old
#6  
kurotsugi's Avatar
Recognized Contributor
Thanks Meter 1,779
Posts: 2,520
Join Date: Feb 2012
Location: yogyakarta
sounds interesting...count me in irfan. repartition my old sdcard atm.
 
chamatht
Old
#7  
chamatht's Avatar
Senior Member
Thanks Meter 470
Posts: 425
Join Date: Nov 2011
Location: Colombo
Will try

Sent from my GT-S5360 using xda premium


Current Devices : SE Xperia Neo V , Google Nexus 7

Previous Devices : Huawei U8160, Samsung Galaxy Y, Samsung Galaxy Ace, Samsung Galaxy S

My Works
------------------
[Guide] Use your tablet/phone as PC for Fastboot and ADB

Samsung Galaxy Y :
How to Deodex stock Rom
Kernel Backup - to backup kernel
ICS Settings app for stock and custom roms
Touchwiz Launcher with landscape orientation

 
kurotsugi
Old
(Last edited by kurotsugi; 14th April 2012 at 08:33 AM.)
#8  
kurotsugi's Avatar
Recognized Contributor
Thanks Meter 1,779
Posts: 2,520
Join Date: Feb 2012
Location: yogyakarta
I can't convert the script. dsixda kitchen always add new lines if I convert the script from amend to edify. I can't get rid some lines...how can i do that in better way?

edit: these lines (and some more) always added automatically.
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
The Following User Says Thank You to kurotsugi For This Useful Post: [ Click to Expand ]
 
irfanbagus
Old
(Last edited by irfanbagus; 14th April 2012 at 08:46 AM.)
#9  
Senior Member - OP
Thanks Meter 496
Posts: 307
Join Date: Mar 2012
Quote:
Originally Posted by kurotsugi View Post
I can't convert the script. dsixda kitchen always add new lines if I convert the script from amend to edify. I can't get rid some lines...how can i do that in better way?

edit: these lines (and some more) always added automatically.
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
i don't know if it is proper way, but i just unzip,edit,and re-zip. i use cwm, not sure if working with stock recovery.
just remove that line. it's for update boot.img
[edit]--
and i know it's tricky to install rom to sdcard. i just need few hour to mod kernel (ramdisk) but almost a day just to find working way to install rom to sdcard
 
kurotsugi
Old
(Last edited by kurotsugi; 14th April 2012 at 09:54 AM.)
#10  
kurotsugi's Avatar
Recognized Contributor
Thanks Meter 1,779
Posts: 2,520
Join Date: Feb 2012
Location: yogyakarta
thats a nice discovery. at first I thougt both updater-script and updater-binary are strictly related that we can't recklessly modify only updater-script. modifying it right now...

---------- Post added at 03:49 PM ---------- Previous post was at 02:52 PM ----------

it works...now I can set my internal and system partition to any size (lol) having 300mb internal memory sounds nice for everyone.

edit: make sure you're using a fast sdcard.

Tags
sgy dual boot
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes