Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

DUAL BOOT for SGY

OP irfanbagus

14th April 2012, 08:11 AM   |  #1  
OP Senior Member
Thanks Meter: 498
 
307 posts
Join Date:Joined: Mar 2012
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
Last edited by irfanbagus; 14th April 2012 at 08:14 AM.
The Following 25 Users Say Thank You to irfanbagus For This Useful Post: [ View ]
14th April 2012, 08:32 AM   |  #2  
Senior Member
Flag Las Islas Pilipinas!
Thanks Meter: 31
 
169 posts
Join Date:Joined: Mar 2012
More
woah... another great innovation in our device...
14th April 2012, 08:37 AM   |  #3  
steelheart34's Avatar
Member
Flag manila phillipines
Thanks Meter: 11
 
58 posts
Join Date:Joined: Jan 2012
More
This is awesome
14th April 2012, 08:44 AM   |  #4  
sunilvyas's Avatar
Member
Flag Jamnagar
Thanks Meter: 3
 
91 posts
Join Date:Joined: Jan 2012
More
will try and report...
14th April 2012, 08:54 AM   |  #5  
OP Senior Member
Thanks Meter: 498
 
307 posts
Join Date:Joined: Mar 2012
Quote:
Originally Posted by sunilvyas

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).
14th April 2012, 08:58 AM   |  #6  
kurotsugi's Avatar
Recognized Contributor
Flag yogyakarta
Thanks Meter: 1,792
 
2,523 posts
Join Date:Joined: Feb 2012
More
sounds interesting...count me in irfan. repartition my old sdcard atm.
14th April 2012, 09:05 AM   |  #7  
chamatht's Avatar
Senior Member
Flag Colombo
Thanks Meter: 479
 
425 posts
Join Date:Joined: Nov 2011
More
Will try

Sent from my GT-S5360 using xda premium
14th April 2012, 09:26 AM   |  #8  
kurotsugi's Avatar
Recognized Contributor
Flag yogyakarta
Thanks Meter: 1,792
 
2,523 posts
Join Date:Joined: Feb 2012
More
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"));
Last edited by kurotsugi; 14th April 2012 at 09:33 AM.
The Following User Says Thank You to kurotsugi For This Useful Post: [ View ]
14th April 2012, 09:41 AM   |  #9  
OP Senior Member
Thanks Meter: 498
 
307 posts
Join Date:Joined: Mar 2012
Quote:
Originally Posted by kurotsugi

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
Last edited by irfanbagus; 14th April 2012 at 09:46 AM.
14th April 2012, 10:49 AM   |  #10  
kurotsugi's Avatar
Recognized Contributor
Flag yogyakarta
Thanks Meter: 1,792
 
2,523 posts
Join Date:Joined: Feb 2012
More
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.
Last edited by kurotsugi; 14th April 2012 at 10:54 AM.

Post Reply Subscribe to Thread

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

Advanced Search
Display Modes