[HD2 Android SD Development] ricola7:
SUCCESS - Dual booting WP7 and Core Droid HD 0.4 using same SD-Card

Hey guys,

I really enjoy running WP7 but as you can imagine I miss Android and especially the quality build of the Core Team.

So I searched a bit and finally dual booted WP7 and core droid hd 0.4.

If sb. is interested I post the method here...

EDIT 3: I RECOMMEND TO USE A SHORTENED TUTORIAL I POSTED A FEW PAGES LATER. THIS IS MUCH EASIER!!!!

http://xdaforums.com/showpost.php?p=10689007&postcount=1106

EDIT 2: I got it to work now thx to Daysey!!! He supplied me with the correct init.rc file. I found out what went wrong. See step 3! Don't use text editor, instead use the programm I recommend (if you wanna do the process on your own) (You can simply take the init.rc what is attached and replace it

EDIT:

I want to outline a few things to be aware of:

A) It is CRUCIAL NOT to use the usb storage option of MAGLDR!!! Take the sd out of your device and connect it to your PC using an microsd adapter!!!!!!!

B) The data on your SD card will be erased. So make sure you backup everything (especially your running sd android build) on you PC!!!!

C) If you have WP7 running already you have to start from scratch.

D) NEVER EVER pull the battery out DURING this process!!! This will make WP7 do a hard reset after which it will overwrite the partitions you created earlier.

E) Do not run WP7 during the process of formatting. I did this (without any sd card in the HD2) while moving the partitions from one card to the other (on my desktop pc) to play around with hte phone a bit. This will lead to WP7 not recognizing the actual WP7 partition you created...so you will have to start from scratch too...

F) Moving the last partition from one card to the other will take looooong (>2 hours). So be aware of that!!!

G) After you successfully moved the partitions from the smaller to the larger card, FORMAT the Fat32 partition using Windows (My Computer - right click on partition - format - quick method and choose 64KB as clustersize. This will make run the SD Build faster...Using Windows is essential cause using a decent formatter like panasonic will erase the created WP7 partition!!!!

What I did was the following:

1. Follow this tutorial to create 2 partitions on your SD (credits to user darrengladysz)

http://xdaforums.com/showthread.php?t=913815

Now you have to change an init.rc file in the core droid build to make it bootable via magldr...

2. In the Android folder of core droid there is a file called rootfs.img. As *.img indicates this is an image, so you have to mount it. I used the following freeware to mount it:

http://arainia.com/software/gizmo/download.html (credits to user Corias)

3. Once mounted search the init.rc file and open it with this programm.

http://www.textpad.com/download/index.html#downloads

USE THIS FREEWARE cause for me using word pad or text editor srewed the init.rc file up!

4. Somewhere in this file there is the following line:

"ril-daemon /system/bin/rild -l /system/lib/libhtc_ril_wrapper.so -- -d /dev/smd0"

Now you have to add nand_init to the line, which makes the new line look:

"ril-daemon /system/bin/rild -l /system/lib/libhtc_ril_wrapper.so -- -d /dev/smd0 nand_init"

5. Save the file by choosing "save as..." and then choose the initial init.rc and overwrite it. Then you are good to go. (credits to user mstrk242)

6. Unmount the rootfs.img using Gizmo and copy the whole Android folder to the root of the fat32 you created during step 1.

7. Go back to the tutorial from step 1. and apply the steps regarding Magldr (10-23) (dont' worry, these last steps take only 2 minutes)

I attach the edited init.rc file, but actually the hassle for me was to mount the image file and than locate the file which contains the "ril-daemon line". I can't attach the rootfs.img cause it's too large....

Have fun and I will help you out if I can ;)

Greetz

Dom