New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
rookie1
Old
(Last edited by rookie1; 18th February 2011 at 02:43 PM.) Reason: updated link to the CWR flashable ROMs
#1  
Member - OP
Thanks Meter 113
Posts: 90
Join Date: Nov 2007
Default Dual boot from internal eMMC (obsolete - use my flashable zips)

[This method is now obsolete. I've created flashable zips for setting up dual boot. And flashable dual boot Nookie Froyo and Honeycomb ROMs. See my other post.]

I've successfully dual boot B&N stock eclair and nookie froyo, both from internal eMMC. Here are the steps to use my script,

1. Download attached dualboot.zip. Create a folder called 'dualboot' on your NC's SD card. Unzip dualboot.zip into this folder.

2. Download Nookie Froyo 5.9 base image from http://edencomputing.com/nookcolor/n...e-0.5.9.tar.gz and copy into the same 'dualboot' folder on SD.

3. Check you have these 3 files in SD's 'dualboot' folder,
dual-boot-files.tar.gz
dual-boot.sh
nookie-froyo-base-0.5.9.tar.gz

4. Make sure /sdcard and /media are mounted in NC. If they are visible on your host PC, umount if you are running Linux, or 'safely remove' if you are on Windows, or 'eject' in Mac.

5. From your host PC, run 'adb shell' to go into your NC.

6. At adb shell, run the following commands.
cd /sdcard/dualboot
busybox sh dual-boot.sh

7. After a few minutes and a lot of messages scrolling by, you should see a message says ">>>>>>>>>>>>>>>>>>>>Done". At this point, you can reboot the NC. Normal boot will go to stock eclair. Hold 'n' button during boot to go to froyo.

p.s. I've also modified the recovery boot keycombo (stock is Power + n) in u-boot.bin. Hold both Vol+ and Vol- during boot to go into recovery. Keep holding them till you are in recovery, no need to worry about how long to hold.


If you want to remove dual boot
1. follow steps in this post http://forum.xda-developers.com/show...8&postcount=66 to restore media partition to stock configuration. Note you need to make your own backup of media partition before trying this.

2. follow steps in this post http://forum.xda-developers.com/show...4&postcount=88 to restore stock u-boot.


Original steps kept below if you are interested to know what the script does

Here is how I have done it,

1. In stock rom partition 8 of internal eMMC is mounted as media. We can use a partition tool to shrink this partition to make enough room to create 2 more partitions, 1 for froyo system partition (mmcblk0p9) and 1 for froyo data partition (mmcblk0p10). The partition tool I used is GNU parted which comes with Koush's clockwork mod. You can download a pre-compiled copy from his git tree. It can be run on the NC itself.

2. Copy all files from nookie froyo's system partition into mmcblk0p9, and data into mmcblk0p10.

2. Copy nookie froyo's uImage into mmcblk0p1. The file name should be changed to uFImg, so that it can co-exist with stock eclair's uImage on the same partition.

3. Modify nookie froyo's init.rc in the ramdisk, to mount mmcblk0p9 as system, and mmcblk0p10 as data. Pack the ramdisk image, and copy into mmcblk0p1 as uFRam. Again we use a different name so it can co-exist with stock eclair's uRamdisk.

4. I've modified B&N's u-boot tool to detect whether 'N' button is pressed during boot. If it's pressed, boot using uFImg and uFRam. Otherwise boot using stock uImage and uRamdisk. Attached is my modified u-boot. Copy the u-boot.bin into mmcblk0p1 to overwrite stock u-boot.bin.

With this setup, if no button is touched during boot, NC will boot into stock eclair. If you hold 'N' button during boot, it will boot into nookie froyo.

One problem I've found is with the modified partition layout, when booting into stock eclair, media partition does not get automatically mounted. But I'm able to manually mount it.
Played around with the partition layout a bit. It seems if media (partition 8) is at the end of eMMC, it will be automounted in stock eclair. So my final partition layout looks like this,
Code:
Model: MMC SEM08G (sd/mmc)
Disk /dev/block/mmcblk0: 7944MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type      File system  Flags
 1      32.3kB  74.0MB  74.0MB  primary   fat32        boot, lba
 2      74.0MB  148MB   74.0MB  primary   fat32        lba
 3      148MB   461MB   313MB   primary   ext2
 4      461MB   7691MB  7230MB  extended
 5      461MB   938MB   477MB   logical   ext2
 6      938MB   1941MB  1003MB  logical   ext3
 7      1941MB  2311MB  370MB   logical   ext3
 9      2311MB  2681MB  370MB   logical   ext2
10      2681MB  3692MB  1011MB  logical   ext3
 8      3692MB  7691MB  3999MB  logical   fat32        lba
< standard disclaimers - I'm not responsible for whatever damage you did to your NC >
Attached Files
File Type: zip dualboot0.2.zip - [Click for QR Code] (447.1 KB, 741 views)
The Following 13 Users Say Thank You to rookie1 For This Useful Post: [ Click to Expand ]
 
samuelhalff
Old
#2  
Senior Member
Thanks Meter 339
Posts: 458
Join Date: Oct 2010

 
DONATE TO ME
Very nice work. Will have a look.

Thanks.
 
lazinase
Old
#3  
lazinase's Avatar
Senior Member
Thanks Meter 36
Posts: 208
Join Date: Sep 2009
Location: San Francisco
Nice work. However, I have a concern. As we may have experienced, NC would sometimes randomly reboot itself. So there will be chances that first I boot my NC with nookie froyo, then it reboot and become 2.1 again...

Until a permanent solution is found, this dual boot will not be as effective as it should...
G1->Nexus One->Nexus 4
The "DREAM" comes true with Cyanogen Mod. The "PASSION" continues and turns into..."MAKO"
 
Divine_Madcat
Old
#4  
Divine_Madcat's Avatar
Forum Moderator
Thanks Meter 1812
Posts: 2,312
Join Date: Sep 2005
Location: USA
Quote:
Originally Posted by lazinase View Post
Nice work. However, I have a concern. As we may have experienced, NC would sometimes randomly reboot itself. So there will be chances that first I boot my NC with nookie froyo, then it reboot and become 2.1 again...

Until a permanent solution is found, this dual boot will not be as effective as it should...
I think the problem is over-exaggerated. Since changing the stock governor to ondemand, i have never had a 2.1 reset. Additionally, i have NEVER had a NF (2.2) reset.

Anyway, thanks for the guide OP.. i am actually itching to do this myself...
 
BugsBunny891
Old
#5  
Member
Thanks Meter 9
Posts: 98
Join Date: Dec 2010
Quote:
Originally Posted by Divine_Madcat View Post
I think the problem is over-exaggerated. Since changing the stock governor to ondemand, i have never had a 2.1 reset. Additionally, i have NEVER had a NF (2.2) reset.

Anyway, thanks for the guide OP.. i am actually itching to do this myself...
I agree. the random reboot has only happened to me while on eclair, nookie froyo hasn't given me a single one.

Congratz to the OP for getting dual boot to work.
 
jasoraso
Old
#6  
Senior Member
Thanks Meter 96
Posts: 353
Join Date: May 2007
Location: Salt Lake City, UT
Does this affect Clockwork Recovery at all?
 
spyz88
Old
#7  
Senior Member
Thanks Meter 32
Posts: 399
Join Date: Oct 2008
Can you still use the stock e-reader stuff if you put Nookie Froyo on it or do you have to dual boot in order for it to work? I mean the being able to read magazines and books and all that good stuff. Thanks
 
samuelhalff
Old
#8  
Senior Member
Thanks Meter 339
Posts: 458
Join Date: Oct 2010

 
DONATE TO ME
Maybe someone here can give me a hint.

I've managed to get a stable version of NF on eMMC. But I can't manage to mount sdcard. And if I mount media, it's corrupts my boot partition, as if it mounted on mmcblk0p1, which is maybe the case...

Any advice on how to edit my init.rc?

Thank you
 
BugmanXDA
Old
#9  
Junior Member
Thanks Meter 1
Posts: 7
Join Date: Aug 2010
Another thread claimed that the reboots people were having were the Java run time service rebooting, not an actual OS reboot.

Sent from my Nexus One using XDA App
The Following User Says Thank You to BugmanXDA For This Useful Post: [ Click to Expand ]
 
eyecrispy
Old
#10  
Senior Member
Thanks Meter 24
Posts: 806
Join Date: Jan 2008
Quote:
Originally Posted by BugmanXDA View Post
Another thread claimed that the reboots people were having were the Java run time service rebooting, not an actual OS reboot.

Sent from my Nexus One using XDA App
It's not always just the JVM crash "reboots". I've had actual reboots. Sometimes, it's just JVM. Other times, it's an actual device reboot. I took care of the device reboot by using the Settings Profile method.