5,603,646 Members 37,304 Now Online
XDA Developers Android and Mobile Development Forum

[DEV|WIP] Dualboot Kernel [GSM|CDMA-WIP]

Tip us?
 
KeiranFTW
Old
(Last edited by KeiranFTW; 12th May 2012 at 03:51 PM.)
#1  
KeiranFTW's Avatar
Recognized Developer - OP
Thanks Meter 2709
Posts: 2,639
Join Date: Nov 2011
Location: Sunderland

 
DONATE TO ME
Default [DEV|WIP] Dualboot Kernel [GSM|CDMA-WIP]

Credits:
DooMLoRD - BootManager and recoveries, autorooting and his scripts
Jerpelea (FXP) - zImage (kernel), boot splash logo
z - busybox knowledge, and his loop mount script.

GSM Only atm, CDMA not done yet, WIP.

Download:
Dualboot Kernel GSM: http://icxperia.com/keiran/r800i/dualboot.img
Data EXT2 image (~250MB), http://icxperia.com/keiran/r800i/data.ext2

How to dualboot:
What you will need:
An SD Card
ADB
Fastboot
7zip or alternative(Archive manager on linux is good)
Notepad++(gedit is good)

First, flash the dualboot.img
Code:
fastboot flash boot dualboot.img
How to partition SD Card for dual boot:
Code:
adb shell
sdparted -es 1024M -ss 0
When prompted to accept, make sure you use a capital Y
This operation will wipe your sd card :eek: lol
when it is done, type:
Code:
exit
in the command prompt/terminal


Now, put the data.ext2 image in the same folder as adb is

Second of all, you want to mount your second SD Card partition, using your computer with USB debugging enabled do this:
Code:
adb shell
busybox mount /dev/block/mmcblk0p2 /sd-ext
exit
then push the data partition image:
Code:
adb push data.ext2 /sd-ext/data.ext2
Now you have your system partition and data image set up for dualboot, you are also running a dualboot kernel

next thing to do is modify a ROM for boot from SD
We shall use CM7 in this example
Unzip the ROM, and go to /META-INF/com/google/android/ then open updater-script in notepad++, it will not work otherwise
Look for the lines:
Remove these lines:
Code:
assert(getprop("ro.product.device") == "R800i" || getprop("ro.build.product") == "R800i" || getprop("ro.product.board") == "R800i" || 
       getprop("ro.product.device") == "R800a" || getprop("ro.build.product") == "R800a" || getprop("ro.product.board") == "R800a" || 
       getprop("ro.product.device") == "R800at" || getprop("ro.build.product") == "R800at" || getprop("ro.product.board") == "R800at" || 
       getprop("ro.product.device") == "zeus" || getprop("ro.build.product") == "zeus" || getprop("ro.product.board") == "zeus");
also, remove:
Code:
format("yaffs2", "MTD", "system");
also, replace:
Code:
mount("yaffs2", "MTD", "system", "/system");
with
Code:
set_perm(0, 0, 0777, "/sbin/systemsd.sh");
run_program("/sbin/systemsd.sh");
then save, then zip, then push to phone
Then, flash the update.zip (after doing a NANDROID) then boot phone into NAND.
To boot into SD ROM, do this:
Open terminal emulator and do the commands:
Code:
su
cd cache
cd recovery
touch dualboot
reboot
And you will reboot into SD ROM
You will not be able to use darktremor a2sd or any other a2sd script with any of the ROM's, but, you will be able to use standard stock rom app2sd, in CyanogenMod go into CM settings, then application then set install location to internal to avoid conflicts with .android_secure on both ROM's

Kernel source:
https://github.com/freexperia/semc-kernel-msm7x30
Keiran
Sony Xperia SP - C5303 O2

illumination app for Xperia SP
The Following 16 Users Say Thank You to KeiranFTW For This Useful Post: [ Click to Expand ]
 
KeiranFTW
Old
#2  
KeiranFTW's Avatar
Recognized Developer - OP
Thanks Meter 2709
Posts: 2,639
Join Date: Nov 2011
Location: Sunderland

 
DONATE TO ME
Whoa....
Just done a quadrant from the rom of the SD - CM7, I got amazing IO speeds, probably because my SD card reads faster than NAND....
But, no overclock, Max,1GHz, min 144MHz, interactive:


Look at the green IO bit... lol looks like SD can boost performance

Sent from my R800i
Sony Xperia SP - C5303 O2

illumination app for Xperia SP
The Following 5 Users Say Thank You to KeiranFTW For This Useful Post: [ Click to Expand ]
 
nickholtus
Old
#3  
nickholtus's Avatar
Recognized Contributor
Thanks Meter 2402
Posts: 2,359
Join Date: Aug 2011
Location: Ulft

 
DONATE TO ME
can't wait to test it.
Wouldn't it be better to use a ICS ramdisk (or make serval kernels) so you can flash ICS and GB??
GB works also with ics ramdisk (i guess)
If i helped you, please hit the thanks button or consider donating to me!

https://www.paypal.com/cgi-bin/websc...=WSQ8K2PEXNH7Q

[B]
 
KeiranFTW
Old
#4  
KeiranFTW's Avatar
Recognized Developer - OP
Thanks Meter 2709
Posts: 2,639
Join Date: Nov 2011
Location: Sunderland

 
DONATE TO ME
No, ICS requires a different ramdisk, so you would only be able to boot two of the sameish android versions, although doomlord said somethin about chrooting...

Sent from my R800i using DFR3.0.5 NAND + CM7 SELFKANG SD
Sony Xperia SP - C5303 O2

illumination app for Xperia SP
The Following User Says Thank You to KeiranFTW For This Useful Post: [ Click to Expand ]
 
NeWCuLTKiNG
Old
#5  
NeWCuLTKiNG's Avatar
Senior Member
Thanks Meter 2919
Posts: 2,112
Join Date: Sep 2009
Location: Upstate New York

 
DONATE TO ME
I want some cm fun nice work

Sent from my R800i using xda premium
 
KeiranFTW
Old
#6  
KeiranFTW's Avatar
Recognized Developer - OP
Thanks Meter 2709
Posts: 2,639
Join Date: Nov 2011
Location: Sunderland

 
DONATE TO ME
Next on my list of development is a linux tool, ftf2rom, what it will so is unpack an ftf and convert it into a flashable zip with the kernel there also, and then there will be ramdisk editor and such...

Keiran

Sent from my R800i using DFR3.0.5 NAND + CM7 SELFKANG SD
Sony Xperia SP - C5303 O2

illumination app for Xperia SP
The Following 2 Users Say Thank You to KeiranFTW For This Useful Post: [ Click to Expand ]
 
NeWCuLTKiNG
Old
#7  
NeWCuLTKiNG's Avatar
Senior Member
Thanks Meter 2919
Posts: 2,112
Join Date: Sep 2009
Location: Upstate New York

 
DONATE TO ME
So us normal being's have a long wait lol

Sent from my R800i using xda premium
 
KeiranFTW
Old
#8  
KeiranFTW's Avatar
Recognized Developer - OP
Thanks Meter 2709
Posts: 2,639
Join Date: Nov 2011
Location: Sunderland

 
DONATE TO ME
Quote:
Originally Posted by hitman980206 View Post
So us normal being's have a long wait lol

Sent from my R800i using xda premium
Not really, just DFMiX might not see many new releases for a while. DFR will, and so will this kernel

Sent from my R800i using DFR3.0.5 NAND + CM7 SELFKANG SD
Sony Xperia SP - C5303 O2

illumination app for Xperia SP
 
NeWCuLTKiNG
Old
#9  
NeWCuLTKiNG's Avatar
Senior Member
Thanks Meter 2919
Posts: 2,112
Join Date: Sep 2009
Location: Upstate New York

 
DONATE TO ME
Quote:
Originally Posted by KeiranFTW View Post
Not really, just DFMiX might not see many new releases for a while. DFR will, and so will this kernel

Sent from my R800i using DFR3.0.5 NAND + CM7 SELFKANG SD
Well I'm using dfr3 and its been great if I could have some cm7 fun when not needing touchpads would extra bonus

Sent from my R800i using xda premium
 
agraceful
Old
#10  
agraceful's Avatar
Senior Member
Thanks Meter 170
Posts: 489
Join Date: Mar 2011
Location: Kansas City
Quote:
Originally Posted by KeiranFTW View Post
With the Xperia Play, comes an awesome gamepad, and it works as it should... on the stock rom.
So, people wanted to use CM, but they wanted touchpads, so they just kept stock. Not any more

What I have basically done (basic is not the word to use):
Made a script that is executed on boot that does the following if a certain file is present:
Unmounts NAND system and data partitions.
Mounts NAND partitions to /mnt/system and /mnt/data
Mounts sd-ext mmcblk0p2 to /system
Loops the /system/data.ext2 to loop3 - remember system is now mmcblk0p2
Mounts loop3 as /data
Then removes the temp file used for telling the phone to boot into recovery
So, you need an ext partition on sd that will hold /system files and /data IMG containing files.
I will show you how to adapt a Rom to dualboot when I upload the kernel.

Credits go to Jerpelea for zImage and DooMLoRD for base ramdisk.

Will upload 21st, Tuesday, currently polishing and studying lol.

CDMA to follow tomorrow too

Oh, it works

Keiran


Sent from my R800i using DFR3.0.5 NAND + CM7 SELFKANG SD
Alright, I got to give it up to you on this one. This was a crazy idea and you pulled it off. Much respect for this Kerian.

The Following User Says Thank You to agraceful For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes