yashsingh1/xdaforums huggingface dataset:
[Atrix 4G Android Development] mapobean:
ok i finally got it I got dual boot with the new Provision cm9 rom and Nottach trix GB rom and it works it freaken works!!!! This took me a while because of numerous syntax errors and I am by no means a dev. or even know what i am doing I am just not scared of brick and follow great tutorials like those found from these great dev's sendust7, hatefuel19, and all the other great here on XDA. I want to help others accomplish this same task and have not had time to fully test everything but i have ics gapps on cm9 and it appears everything on Nottach works also. What i did was wiped everything and installed Provision rom and ics gapps. pulled boot.img and followed the instructions

Once boot image is unpacked go to the out directory and find init.rc

Edit init.rc with notepad++ (NOT NOTEPAD) and change these lines

ONLY CHANGE THE /dev/bloc/mmcblk part. LEAVE EVERYTHING ELSE THE SAME

From

mount ext4 /dev/block/mmcblk0p12 /system noatime nodiratime wait ro barrier=1

mount ext4 /dev/block/mmcblk0p16 /data nosuid nodev noatime nodiratime wait barrier=1 noauto_da_alloc

mount ext4 /dev/block/mmcblk0p15 /cache nosuid nodev noatime nodiratime wait barrier=1 noauto_da_alloc

TO

mount ext4 /dev/block/mmcblk1p2 /system noatime nodiratime wait ro barrier=1

mount ext4 /dev/block/mmcblk1p4 /data nosuid nodev noatime nodiratime wait barrier=1 noauto_da_alloc

mount ext4 /dev/block/mmcblk1p3 /cache nosuid nodev noatime nodiratime wait barrier=1 noauto_da_alloc

Once you have made these changes you can finish the tutorial posted above or below for repacking and make sure to

the only thing that is different is where these lines are found. They are in the init.olympus.rc not the init.rc after i followed all directions i was able to boot into boot_new.img and then rebooted to recovery flashed Nottach 1.3.1 installed script manager and the boot script found in hatefuel19's post and ran into some trouble getting the script to work at first but then i played until i figured it out and there you have it. Sorry if this is no help I will try to answer questions if any are adressed towards me but all the thanks goes to sendust7, and hatefuel19
[Atrix 4G Android Development] Always_Jonezen:
Amazing

Great work,

I finally got it working after getting a good name brand SD card...THANKS for all the help:D
[Atrix 4G Android Development] primeboss:
I got this working but i currently have a 8gb class 2 micro sd, which was perfectly fine for my uses except now. When running the CM7 off the sd card it was very very slow. So i decided to buy a new sd card. Is class 4 good enough or should i got for the class 10 (32gb). Also was is the speed/class of the buld in sd card?
[Atrix 4G Android Development] Always_Jonezen:
A class 4 should be fine but just bought a Sandisk mobile ultra 16gb class 6 for $20 at Amazon and it works great I just wished I would have got a 32gb instead of the 16gb
[Atrix 4G Android Development] sendust7:
For my original YouTube demo.. http://www.youtube.com/watch?v=31TPyAguQ60 , I used a Patriot 16GB Class 4. CM7 (sdcard) boot took 45 seconds, just one second longer than CM9 (emmc) boot. But these were not the first boot. That normally takes much longer since the ROMs are building cache and data. As I recall, first boot took 3 to 5 minutes.

Recently I upgraded to Class 6. Now my CM7 boot time (power up to lock screen) is 38 seconds.
[Atrix 4G Android Development] sendust7:
SmartPart Tool for SD Card Released, 22 Jun 2012

New! “SmartPart” Android batch script intelligently partitions your Atrix SD card to host a second ROM in a dual boot configuration... or maybe clone the /system partition of a working ROM to SD!

Total driving time for a 16GB Class 6 is about six minutes --- between stops. See my updated thread for details.
[Atrix 4G Android Development] hatefuel19:
Awesome work
[Atrix 4G Android Development] stl-soldier:
Class 10 MicroSD cards are fairly cheap and readily available. Why get anything less? I got a 16GB Class 10 from Wal-Mart for $25. It is noticeably faster than the Class 6 I replaced.
[Atrix 4G Android Development] sendust7:
SmartPart Version 1.1 released! 23 Jun 2012

SmartPart v1.1 accommodates larger ROMs, simplifies partition size tweaking and slightly refines the decision logic for repartitioning.

part-sdc-v1.1.sh:

part-sdc-v1.1-dry.sh: [URL=http://www.mediafire.com/?81uikn7ih8brcnw[/URL]

No changes to Preliminaries or Instructions.

Special thanks to hatefuel for his tip on upsizing partitions. I had been in CM7 mode for so long that I started to think no ROM could be any bigger than CM7 --- that is, until last night when I tried to push AOKP to my undersized 330MB /system partition.

So this morning I flashed hatefuel's NottachTrix zip ( [url]http://xdaforums.com/showthread.php?t=1716363 ), then fastboot-flashed stock AT&T boot image from zip file, and NottachTrix came right up --- of course with the usual long delays associated with 1) first boot of a large ROM and 2) my budget Class 6 SD, lol.

This is my first time successfully flashing NottachTrix, and now that I miss the old GB 2.3.x ROMs, I have dubbed it “NostalGix”.

sendust7
[Atrix 4G Android Development] Ryou_Concord:
Since I'm not a dev a lot of this language is super-cryptic (I just follow the fantastic guides everyone here makes)--but I'm wondering if this means I'll finally be able to enjoy my webtop properly!

I wouldn't mind running CM9 when I'm using my phone as, well, a phone and switching to Nottachtrix when I want to use the webtop. Would it be possible to use webtop2sd to put Ubuntop on my phone so I can enjoy the Blur half of this excellent dual-boot? I have the worst feeling I would break something if I were to do that.

Thanks guys--and forgive me if this type of question belongs in the Q&A. >_>
[Atrix 4G Android Development] sendust7:
I just took this picture of webtop with "NostalGix" running on SD card...

I assume your phone is rooted, bootloader is unlocked, ClockWorkMod 5.0.2.0 is installed and the Atrix 4g USB driver is installed on your computer. If not, there are many good references in Atrix Q&A, Motorola, Android Central and elsewhere to help you climb the learning curve.

If you're further along, I would get up to speed on Android Debug Bridge ( http://developer.android.com/tools/help/adb.html , for example) and on CWM Recovery. These are incredibly powerful apps for their size.

If you're even further along than this, you are not far behind.

Take care.
[Atrix 4G Android Development] sendust7:
CM7 Faux Kernels

For those interested, here are the SD card versions of the latest CM7 Faux kernels dated 19 Jun 2012:

1.00 GHz: http://www.mediafire.com/?fesm0hff58pnv28

1.30 GHz: http://www.mediafire.com/?r7ak4idrhbl956p

1.45 GHz: http://www.mediafire.com/?izvthwlbwlk1ye2

Each file was adapted from boot image files inside the flashable zips found here: http://faux.androidro.ms/

Boot to fastboot, connect phone to fastboot-enabled computer and enter:

fastboot flash boot <boot-file-name.img>
fastboot reboot

Enjoy your new SD card-based CM7 Faux kernels.

If you already have dual boot configured and you want to stay with a particular kernel, go to /sdcard/Boot/CM7 and replace boot.img with your new boot.img.
[Atrix 4G Android Development] Ryou_Concord:
Oh yeah, my baby's rooted, the bootloader's unlocked and I'll update to the newest CWM when I've got the time. It's good to see the webtop on Nottachtrix working, but this still doesn't exactly answer my question. Judging from the screencap you so generously took, that looks to be the stock webtop.

The stock Webtop is precisely what I'm trying to avoid. It was sort of nifty for a while, but it was really rather useless for anything other than getting pissed off at how stripped down it was. The Ubuntop mod looks as if it will add some basic functionality I'd need for my course work at college; things like OpenOffice, the ability to install things, some modicum of stability, etc.

With the Ubuntop mod--which you can find here--you're using webtop2sd so you can use your SD card instead of the... filesystem it came with (or something like that). My fear is that it would be impossible to create a dual boot with a Blur ROM (Like Nottachtrix) having this Ubuntop mod because of the fact that you must partition your SD card in order to set up the dual boot, and the other fact that webtop2sd also has you relying on a partition on your SD card. For some reason, I get the feeling there would be some sort of conflicts...

I don't exactly know what kinds of complications could arise if I tried this crazy CM7/NostalGix + Ubuntop setup myself, but if you gurus say that the speed bumps are negligible, and that I'm at no risk of permanently wreckin' something, I feel obliged to try it out myself. To have a stable Blur ROM with a functional Webtop PLUS a stable version of CM7 I can boot into is a thought almost too exciting to bear.

Thanks, 'fellas!
[Atrix 4G Android Development] sendust7:
OK I see where you're headed, and I will study how to integrate Ubuntop with CM7 on SD.

In the meantime, some of us may be interested in my latest thread: porting MIUI CM7 and GApps to SD... http://xdaforums.com/show....php?t=1749288 , not necessarily because we want MIUI, but because this new thread contains some useful information on how to further customize our dual boot configurations and how to overcome limitations of stock recovery tools in terms of managing our SD card-based ROM partitions.

Take care.
[Atrix 4G Android Development] Ryou_Concord:
You're the MAN, Sendust7! And thanks for the link as well.
[Atrix 4G Android Development] Zednanj:
Thanks for your hard work! You sir are the man.
[Atrix 4G Android Development] harishmenace:
Deleted
[Atrix 4G Android Development] paravorheim:
random hanging of CM7

I couldn't find anyone else with this problem, so I'm assuming it is my SD card, but hear me out. I have the dual boot set up between cm9 and cm7, and cm9 (emmc) runs fine. However, cm7 pauses at least once every 5 minutes when doing any complicated task. If I am on facebook, it will give me the force stop/wait message at least 5 times before loading, and will pause a bunch when scrolling. I believe it is my SD card, since this is not the case on cm9, but I own a class 10 PNY 16 gb sd card, indicating that it is not due to that. Also, is there any protocol as to how best remove the dual boot and move back to a single boot system?
[Atrix 4G Android Development] sendust7:
Sorry you are having trouble with dual boot. Did you first try wiping /cache and or /data for CM7 on SD card? Here are the links:

wipe-sdcard-ROM-cache-signed.zip: http://www.mediafire.com/?mc881zjhl9oqr0q

wipe-sdcard-ROM-data-signed.zip: http://www.mediafire.com/?4k4fey6gxe1nbn0

If you really want to restore single boot, download part-sdc-clean: http://www.mediafire.com/?mhdwkytfa1s7i7q

This shell script removes the three ext partitions on SD card and restores the FAT32 partition to its original size.

Restore single boot:

1. Boot to CM9 (this pushes CM9 boot image to boot partition)

2. Reboot to CWM Recovery and connect phone to computer.

3. adb push part-sdc-clean.sh /tmp (copy part-sdc-clean.sh from ADB-enabled computer to Android /tmp directory)

4. adb shell (access Android filesystem from computer)

5. sh /tmp/part-sdc-clean.sh (follow prompts to restore SD card)

6. mount /sdcard (mount SD card)

7. cd /sdcard (navigate to directory: /sdcard)

8. rm -r Boot (remove dual boot configuration directory: /sdcard/Boot)

9. Reboot. CM9 should come up and CM7 should be gone.

Hope this helps...
[Atrix 4G Android Development] paravorheim:
Thank you very much for your help. I think that I will try a newer version of CM9 and CM7 to determine if the performance issues are lasting.
[Atrix 4G Android Development] sendust7:
New! Dual Boot Flashable Zip CM10 epinter (emmc) and CM7.2 RC3 (SD) ...

Have a look :D
[Atrix 4G Android Development] shenoyh:
Just checking if the WiFi error on Notachtrix 1.3.1 ext-SD install mentioned in the below posts has been resolved?

I am seeing the same Wifi error.

[Update: Appears the reason for WiFi error is Faux 1.0G kernel not being compatible with ext-SD Notachtrix]

Also a suggestion: if the flashable zip file (Dual-Boot-CM10-epinter-0727-CM7.2-RC3-signed.zip) can be broken down into two separate files - one for CM10 and one CM7 it would be possible to mix and match different ROMs.

Thanks in advance.

http://xdaforums.com/showpost.php?p=27169660&postcount=73

http://xdaforums.com/showpost.php?p=27205577&postcount=79
[Atrix 4G Android Development] djluis48:
Thanks for the update! Could it be possible to make it that i can change the CM10 rom by myself? No needing to wait for you to update the zip...
[Atrix 4G Android Development] rickriego:
upon running part-sdc it is reflecting my 32gb card, but not the internal. upon pressing continue, it says/sdcard: can't find mount point..did i do something incorrectly?
[Atrix 4G Android Development] sendust7:
CWM 5.0.2.0 should attach the FAT32 partition of your external card (/dev/block/mmcblk1p1) to directory /sdcard upon receipt of the command "mount /sdcard".

Here is CWM's filesystem table:

~ # edify
recovery filesystem table
=========================
0 /tmp ramdisk (null) (null)
1 /boot emmc /dev/block/mmcblk0p11 (null)
2 /cache ext3 /dev/block/mmcblk0p15 (null)
3 /data ext3 /dev/block/mmcblk0p16 (null)
[B]4 /sdcard vfat /dev/block/mmcblk1p1 (null)
[/B]5 /emmc vfat /dev/block/mmcblk0p18 (null)
6 /system ext3 /dev/block/mmcblk0p12 (null)
7 /recovery emmc /dev/block/mmcblk0p10 (null)
8 /osh ext3 /dev/block/mmcblk0p13 (null)
9 /preinstall ext3 /dev/block/mmcblk0p17 (null)

SmartPart was designed to partition the external card, not internal.

Hope this helps ;)
[Atrix 4G Android Development] rickriego:
yes! ty, i will try again..

---------- Post added at 05:49 PM ---------- Previous post was at 04:56 PM ----------

i was on twrp...redid the process after switching to cwm touch..PERFECT INSTALL. awesome work, i even went bk to twrp after and restored a nandroid of cm10..AWESOME..THANK U!

---------- Post added at 05:52 PM ---------- Previous post was at 05:49 PM ----------

question sir..once booted into cm7, if i reboot to recovery and restore a nandroid will it restore to rom 1 or 2?

edit: answered my own question..it installs to rom 1
[Atrix 4G Android Development] rickriego:
any way to restore a nandroid to ROM 2?
[Atrix 4G Android Development] sendust7:
Theoretically, yes. I.haven't tried yet though.
[Atrix 4G Android Development] rickriego:
awesome! ill be watchin for further dev. thx!
[Atrix 4G Android Development] Frankzor:
Moved post to Dual boot Nottachtrix 1.3.1 because I went off-topic lol
[Atrix 4G Android Development] Ryou_Concord:
Now that I've got a brand new, Class 10 32GB micro SD in the mail, I'm finally going to try out the CM7/Nottachtrix + Ubuntop mod since I've seen some (very relieving) stories of success--thanks, guys!

I hope I can do this right the first time, haha.
[Atrix 4G Android Development] alberto88a:
I'm new to dual boot and I have a few questions I hope you can answer to: 1) why haven't you use the stable version of CM7.2 instead of the RC3? there are also some good nightly updated every sunday...2) apart for the cm7 base that is the full-working base that doesn't need any upgrade what do we have to do if, for example, epinter releases an update for his rom? would it be possible to update it automatically or not? thank you all and forgive me for my poor english :)
[Atrix 4G Android Development] sendust7:
Since you are new to dual boot, please study my other related threads, especially:

Original thread: Dual Boot Atrix CM9 (emmc) and CM7 (sdcard)

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

Configuring Dual Boot

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

Auto-Modify Boot Image

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

I think it is best to flash a stable ROM to external memory (SD card) and "alpha/beta" ROMs (like CM7 nightly or epinter/joker CM10) to internal memory (emmc). This way, when another version comes along, you can usually just flash it as you normally would, though you may need to wipe /cache and /data if migrating say from CM7 to CM10.

Whenever you flash a new ROM to either side, you can more easily switch between the two ROMs by updating the Boot configuration directory with the correct boot image (see "Configuring Dual Boot"). Otherwise you can "fastboot" the image.

But if you flash a new ROM to SD, you must also modify the boot image to redirect filesystem mounts (/system, /cache and /data) from emmc to SD. See "Auto-Modify Boot Image".

Hope this helps :)
[Atrix 4G Android Development] alberto88a:
Thank you so much! I think I'll study your threads asap! :))
[Atrix 4G Android Development] stokehall:
I've got a working CM10 Boot however when I try Booting CM7 with exception "2" it says "unexpected operator/operand I've looked at the script but it is lot more complex than your previous scripts and I have no idea what could be wrong.
[Atrix 4G Android Development] sendust7:
Sorry you're experiencing problems. Did you follow the steps in my original post: http://xdaforums.com/showthread.php?t=1651356

exactly

when installing CM10/CM7?

Actually my latest version of ./Boot/boot-rom.sh (boot switcher) is not much different from previous versions. I made a logic change at the beginning to accommodate CM10's unconventional path to the SD card FAT32 (/storage/sdcard0).

For now, please post the version of boot-rom.sh you are using to boot CM7, which I assume is your (external) SD card-based ROM.

You can also try booting CM7 manually using: "fastboot boot boot.img"

where "boot.img" is found under ./Boot/ROM2/boot.img (assuming ROM2 is CM7).

Note: I always dry run and verify my instructions before posting them.

Hope this helps :)
[Atrix 4G Android Development] mafiarock93:
can u make neutrino 2.9.1 flash to sdcard,tks so much ^^
[Atrix 4G Android Development] stokehall:
Booting though fastboot works flawlessly but it wont boot using script manager the script is the latest script in your Latest ROM as of yesterday morning
[Atrix 4G Android Development] sendust7:
Presently I am dual booting Neutrino V2.9 (a CM7 variant) on emmc with NottachTrix 1.3.1 (Blur) on SD. Unfortunately I don't have a spare SD to help troubleshoot.

So please do the following:

Download and install ZArchiver on your phone, unless you already have it.

Open ZArchiver and navigate to ./Boot directory.

Short tap on boot-rom.sh and select "Compress to boot-rom.sh.zip"

Send boot-rom.sh.zip to me in a PM and I will test it on my side.

If you can manually boot CM7 on SD, you're pretty close :)
[Atrix 4G Android Development] stokehall:
Here is the boot-rom.sh in a .rar file

I could not find the link to add attachment in private message, so I've posted it in the thread.

I was unable to instal ZArchiver as the install kept failing so I pulled it from USB and compressed it with windows. I hope this is enough, many thanks for the help. Simon
[Atrix 4G Android Development] sendust7:
I extracted boot-rom.sh from your RAR file, and it ran successfully on both sides: Neutrino V2.9 GT and NottachTrix 1.3.1. The Neutrino shell did complain a little (ref. screenshot at right), probably because the symbolic link "/bin/sh" called out in boot-rom.sh did not exist. Normally it would point to the /system/bin/sh shell.

There MAY be hidden characters in boot-rom.sh that your shell doesn't like. But if it works when you boot CM10 from CM7, then I would suspect incompatibility between boot-rom.sh and the CM10 shell. I assume you are running boot-rom.sh as a script and as root. In ADB mode (which is excellent for troubleshooting) the commands would look like this:

# sh boot-rom.sh 2 (boot to ROM2)

# sh boot-rom.sh 1 (boot to ROM1)

The # sign stands for root.
[Atrix 4G Android Development] stokehall:
Thank you for the quick repply. Thats very interesting. I have not got alot of developer knowledge so I do not know how it would be fixed at present but I will try ADB and see what result comes of it before posting again. many thanks Simon.

I tried to boot using ADB but got the following error

sh: can't open 'boot-rom.sh'

I don't know if it is a stupid mistake on my behalf but am definitely running as script and root.
[Atrix 4G Android Development] sendust7:
Try the following. It worked for me just now going from Neutrino (emmc) to NottachTrix (SD)...

Boot to CM7

Connect phone to computer and ensure that USB connection is set to NONE (USB Mass Storage OFF)

Then on computer, navigate to the directory containing your ADB executable and enter:

adb shell (access Android root #)
# cd /sdcard/Boot (or wherever your "Boot" directory is located)
# sh boot-rom.sh 1 (boot to ROM1) --- for example

Funny thing... This time Neutrino didn't complain :D
[Atrix 4G Android Development] stokehall:
I now know why ADB wasn't working I didn't realise developer options had "enable root access for ADB". I enabled it ran the command and got

1|shell@android:/ $ su

su

shell@android:/ # cd /sdcard/Boot

Just so you are aware the script does not let me boot cm or cm10 both fail with the same error. To change ROM I have to use moto-fastboot.

cd /sdcard/Boot

shell@android:/sdcard/Boot # sh boot-rom.sh 2

sh boot-rom.sh 2

Motorola Atrix Dual Boot ROM1 emmc or ROM2 SD card

Initial Release (07 Jun 2012)

sendust7 @ xda developers

Rev 1.2 (19 Jul 2012) Automate SD card source dir to make it ROM-independent

Rev 1.3 (28 Jul 2012) Accommodate CM10 /storage path

Usage: sh boot-rom.sh N

where N = blank (reboot to ROM1)

1 (reboot to ROM1)

2 (reboot to ROM2)

3 (reboot to recovery)

boot-rom.sh[42]: [: /storage/sdcard0/Boot/ROM2/boot.img: unexpected operator/ope

rand

shell@android:/sdcard/Boot #
[Atrix 4G Android Development] stokehall:
I tested using the script you gave me and I got the following error

Error resolving interpreter:/bin/sh does not exist

Using default shell

torage/sdcard0/Boot/boot-rom.sh' 2 <

Motorola Atrix Dual Boot ROM1 emmc or ROM2 SD card

Initial Release (07 Jun 2012)

sendust7 @ xda developers

Rev 1.2 (19 Jul 2012) Automate SD card source dir to make it ROM-independent

Usage: sh boot-rom.sh N

where N = blank (reboot to ROM1)

1 (reboot to ROM1)

2 (reboot to ROM2)

3 (reboot to recovery)

/storage/sdcard0/Boot/boot-rom.sh[21]: syntax error: 'then' unexpected

---------- Post added at 08:52 AM ---------- Previous post was at 08:09 AM ----------

I tested using the script you gave me and I got the following error

Error resolving interpreter:/bin/sh does not exist

Using default shell

torage/sdcard0/Boot/boot-rom.sh' 2 <

Motorola Atrix Dual Boot ROM1 emmc or ROM2 SD card

Initial Release (07 Jun 2012)

sendust7 @ xda developers

Rev 1.2 (19 Jul 2012) Automate SD card source dir to make it ROM-independent

Usage: sh boot-rom.sh N

where N = blank (reboot to ROM1)

1 (reboot to ROM1)

2 (reboot to ROM2)

3 (reboot to recovery)

/storage/sdcard0/Boot/boot-rom.sh[21]: syntax error: 'then' unexpected
[Atrix 4G Android Development] sendust7:
Wait... It looks like you're running a previous version (1.2) of boot-rom.sh, which is not compatible with CM10. To be on the same page, we need to both be running V1.3, which is included in your boot-rom.rar: http://xdaforums.com/attachment.php?attachmentid=1262776&d=1345049164

As I mentioned above, V1.3 (taken directly from your boot-rom.rar) worked for me on Neutrino V2.9 and NottachTrix ;)