yashsingh1/xdaforums huggingface dataset:
[Atrix 4G Android Development] stokehall:
This was my result I don't think it looks right

C:\android-sdk-windows\platform-tools>adb shell

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

~ # mount /dev/block/mmcblk1p2 /system

mount /dev/block/mmcblk1p2 /system

~ # mount /dev/block/mmcblk1p3 /cache

mount /dev/block/mmcblk1p3 /cache

~ # mount /dev/block/mmcblk1p4 /data

mount /dev/block/mmcblk1p4 /data

~ # df /dev/block/mmcblk1p2

df /dev/block/mmcblk1p2

Filesystem 1K-blocks Used Available Use% Mounted on

/dev/block/mmcblk1p2 703628 149012 554616 21% /system

~ # df /dev/block/mmcblk1p3

df /dev/block/mmcblk1p3

Filesystem 1K-blocks Used Available Use% Mounted on

/dev/block/mmcblk0p15

2559229 8194 2414483 0% /cache

~ # df /dev/block/mmcblk1p4

df /dev/block/mmcblk1p4

Filesystem 1K-blocks Used Available Use% Mounted on

/dev/block/mmcblk1p4 3888136 220 3887916 0% /data

when I use the scripts I get a syntax error: 'elif' unexpected

I dont think CM7 has installed and I've tried reinstalling
[Atrix 4G Android Development] sendust7:
Try flashing a valid CM7.2.0 RC1 "boot.img" from computer to phone: With phone USB-connected to a computer with a fastboot tool (e.g. under Android SDK Platform Tools) enter:

fastboot devices (make sure phone is recognized)

fastboot flash boot /path/to/boot.img

fastboot reboot

Helpful link: http://www.freeyourandroid.com/guide/fastboot-guide

If CM7 does not boot, most likely one or more of your sdcard ext4 partitions does not exist or is corrupted.

Recommended partition sizes (consistent with emmc partitions):

/dev/block/mmcblk1p2 (330MB) --- /system

/dev/block/mmcblk1p3 (660MB) --- /cache

/dev/block/mmcblk1p4 (2GB) --- /data

Today I will clarify the instructions in my thread and post a valid CM7 boot.img.

Hope this helps...
[Atrix 4G Android Development] stokehall:
thank-you for the help Sendust7.

It turns out I had been running the wrong script as I was unaware that the zip file contained the correct one. all working now just wish I knew how to get GApps to CM7 :) Then I can work on using a blur base
[Atrix 4G Android Development] Bruce Lee:
This is little above my head now. Lol if a user could make a simple and easy to follow guide for those wanting to tried and especially for those who tried and were unsuccessful like me... that would be awesome. But I know that takes time. I was thinking of making one myself but I can't figure it out. For those who figured it out, awesome. :thumbup:

Sent from my Atrix with XDA Premium
[Atrix 4G Android Development] sendust7:
I'm updating my thread with clearer instructions. Stay tuned. :)
[Atrix 4G Android Development] sendust7:
To get GApps on CM7.2 RC1, see my thread... http://xdaforums.com/showthread.php?t=1631905

I originally developed this from a personal desire to streamline my CM7/GApps install for use as an excellent daily driver while CM9 issues are still being worked. Then I went on to develop a Windows command file to integrate GApps 20110828 with CM7.2 RC1 and re-sign.

Cheers.:)
[Atrix 4G Android Development] stokehall:
Dual boot is sort of working. The boot.img's were never copied on to sdcard so I had to do it manually. The gapps were never installed and I cannot see a way to install them as CWM will not recognise CM7. And every reboot deletes all installed apps from CM7. Great project just hope I can iron out these difficulties.
[Atrix 4G Android Development] firefreak664:
blur rom

Has anyone tried to use this for cm9 and blur roms or is it only working with cm9/cm7? I feel that cm9/cm7 and blur rom would be more beneficial for use of the webtop. If so I would love to know how you got it to work.
[Atrix 4G Android Development] sendust7:
My CM7/GApps integration project assumed that CM7 was the primary (emmc) ROM, whereas on the dual boot project, it is the secondary (sdcard) ROM. A stock recovery tool like CWM 5.0.2.0 cannot see the /system, /cache and /data partitions on sdcard. So yes, some things must be done manually, at least for now. ;)

I am researching dual boot CM9/Blur today.:)
[Atrix 4G Android Development] Always_Jonezen:
question is it possible to use your nandroid backup files as it already has system, data and cache files in it
[Atrix 4G Android Development] sendust7:
Theoretically yes. If your backup is in the form of image files (e.g. system.img), go to recovery and try the following:

Assuming that /sdcard ext4 partitions exist and are healthy, erase /system partition if necessary, then push system.img to that partition.

dd if=/dev/zero of=/dev/block/mmcblk1p2 (write zeros to /system partition on sdcard)

dd if=system.img of=/dev/block/mmcblk1p2

Reboot.

If this works, try similar operations for /cache and /data on their respective sdcard partitions.

Let me know how it goes.:)
[Atrix 4G Android Development] Always_Jonezen:
this is above my knowledge right now I'm still trying to understand but you already know what you are doing maybe you can try it out and see if it might make things easier. I only asked because the nandroid backup has everything in it including the apps you use. By the way I'm on a windows 7 computer.
[Atrix 4G Android Development] sendust7:
Syntax correction in bold blue. Sorry.

Assuming that /sdcard ext4 partitions exist and are healthy, erase /system partition if necessary, then push system.img to that partition.

dd if=/dev/zero of=/dev/block/mmcblk1p2 (write zeros to /system partition on sdcard)

dd if=system.img of=/dev/block/mmcblk1p2

I am presently attempting to clone CM9 to sdcard using this method.
[Atrix 4G Android Development] sendust7:
Wipe Cache/Data for ROM2 (sdcard)

If for some reason you need to wipe cache/data for ROM2 (sdcard), then reboot to recovery, get root and do the following steps:

#umount /cache

CWM looks for the ROM1 (emmc) filesystem table by default (see /etc/fstab). We do not want to disturb it :eek:

Now mount ROM2 cache and data:

#mount /dev/block/mmcblk1p3 /cache
#mount /dev/block/mmcblk1p4 /data

To ensure these are mounted properly, enter the "mount" command without arguments. Results should include these two lines:

/dev/block/mmcblk1p3 on /cache type ext3 (rw,relatime,errors=continue,data=ordered)
/dev/block/mmcblk1p4 on /data type ext3 (rw,relatime,errors=continue,data=ordered)

Now wipe cache/data and unmount...

rm -r /cache/*
rm -r /data/*

umount /cache
umount /data

Reboot to a jet clean ROM2.

If your ROM2 is CM7 and you need to recover GApps, download this zip: http://goo.im/gapps/gapps-gb-20110828-signed.zip. Unfortunately the zip must be modified to mount /system on the sdcard partition (/dev/block/mmcblk1p2). Then it must be re-signed. To the best of my knowledge, Google still doesn't let us roll up GApps with CM7.

When I wrote this thread about integrating GApps with CM7.2: http://xdaforums.com/showthread.php?t=1631905 , it was for the traditional single boot off emmc, not dual boot. Sorry if I misled anyone. [EDIT] One possibility is to write a GApps zip for sdcard.;)

Tip: The foregoing commands can be rolled up into a handy little shell script or flashable zip :)
[Atrix 4G Android Development] stokehall:
I made an attempt to boot Wet Dream Blur ROM on sdcard and CM9 on phone. I could Fastboot boot into Wet Dream but when I reboot into recovery and flash CM9 I get stuck in a boot loop for CM9 animation. I've tried repeating everything repartitioning sdcard and nothing will let me boot into CM9. I can Still Fastboot Boot into Wet Dream so it is there but I cant get the dual boot. If I could be talked through how to go about it, I'd be happy to do a LogCat of CM9. Simon
[Atrix 4G Android Development] Always_Jonezen:
download aLogcat from play store and when you open it it will run automatically hit the pause button and then the menu button on your phone then click save.
[Atrix 4G Android Development] tasadar:
guys I am sure that everybody will support me for asking a VIDEO TUTORIAL with the Easiest way how to run this dual boot from someone who've done it. THANK YOU in Adwance !

Incredible work Sendus7
[Atrix 4G Android Development] sendust7:
CM7 GApps Ported To SD Card!

I successfully ported CM7 GApps to sdcard.

Baseline version (20110828):

http://wiki.cyanogenmod.com/wiki/Latest_Version/Google_Apps

sdcard version (flashable zip):

http://www.mediafire.com/?dv22qnfqzj5d3la

Since this version is older than Google Play, it will initially come up as Android “Market”. And you'll probably get “Problem loading widget” at top of screen. I think it's the Google search bar trying to load. I just delete the search bar as it consumes too much real estate anyway.

Let Android Market update to Google Play (takes a little while), reboot to CM7 on sdcard and enjoy.
[Atrix 4G Android Development] sendust7:
I've had my eyes on a HDMI video capture card since creating this amateur video http://www.youtube.com/watch?v=31TPyAguQ60

http://www.newegg.com/Product/Product.aspx?Item=N82E16815100049

But I'm low on funds right now.:o
[Atrix 4G Android Development] tasadar:
I meant a VIDEO of the process how to do it with all the zips and flashing , not VIDEO of the ready dualbooting itself
[Atrix 4G Android Development] sendust7:
Actually that's what I meant --- HDMI capture of a tutorial.

In the meantime, have you seen this?: http://xdaforums.com/showthread.php?t=1642185
[Atrix 4G Android Development] stokehall:
I tried to make a logcat of booting blur then CM9. However I could not boot my sdcard blur ROM. Even Moto-fastboot boot boot.img looped me in the Motorola boot screen. I needed to use the phone in a hurry so performed a full factory restore before flashing wet dream to the phone. I later decided it would be worth uploading my logcat anyway. Maybe somebody can make sense of it better than I can. I've uploaded the entire thing. Let me know if there is a better way to upload it.

Edit : I've uploaded the wrong logcat. ive replicated the original fault and will upload it ASAP.
[Atrix 4G Android Development] stokehall:
Right I've completed the tutorials exactly, and got "Wet_Dream-v1.4.4-Lite" to boot on the sdcard. Then I reboot to CWM v 5.0.2.7 and installed "beta-0.6.1-cm-9.0.0-RC0-olympus-UNOFFICIAL-signed". When I then rebooted the phone I got stuck on the CM9 Boot animation. Remembering that sometimes it takes two flashes, I rebooted to CWM and re-flashed to no avail. to get a working phone I next moto-fastboot boot boot_new.img to reboot to my sdcard. This unexpectedly gave me the CM9 boot loop again. I needed my phone so did a factory wipe and installed "Wet_Dream-v1.4.4-Lite". I then installed and saved alogcat to illustrate this error. I have uploaded the modified boot.img as well as the init.txt(Cant upload .RC however open in notepad then save as rc) just incase anyone can see a problem with these. thank you Simon
[Atrix 4G Android Development] sendust7:
I'm thinking about incorporating Script Manager (free) into the dual boot flashable zip. This may help simplify the install.
[Atrix 4G Android Development] sendust7:
Flashable zip to wipe SD Card ROM cache and data

Just drop these 150KB zips to your sdcard and use CWM to flash...

Wipe sdcard-ROM cache (takes about 5 seconds): http://www.mediafire.com/?mc881zjhl9oqr0q

Wipe sdcard-ROM data (takes about 15 seconds --- lose all user apps/data for sdcard-ROM): http://www.mediafire.com/?4k4fey6gxe1nbn0

ALL other data on SD card is preserved: These zips ONLY wipe the custom partitions: /dev/block/mmcblk1p3 (/cache) and /dev/block/mmcblk1p4 (/data) required to dual boot from SD card.;)
[Atrix 4G Android Development] firefreak664:
Dual boot Blur

Has anyone figured out how to do a blur rom along with cm9? If so I would like to use your zip file for some reason when i repack my rom its not working
[Atrix 4G Android Development] sendust7:
I've been busy at work, but if you send me a PM with details, I can try to help you fix.:)
[Atrix 4G Android Development] sendust7:
Coming Soon! v1.3 Brings Simplified Install and Config

Dual Boot Flashable zip v1.3 features...

Joker Beta CM9 0.6.9.1 (emmc) and CM7.2.0 RC3 (sdcard)

The updater now automatically backs up the boot configuration directory: /sdcard/Boot (if it exists) and generates a new /sdcard/Boot.

Script Manager free (credits to devwom https://sites.google.com/site/devwom/script-manager ) is now pre-installed in both /system partitions (emmc and sdcard).

Installation/configuration instructions are now simplified as a result of these enhancements.
[Atrix 4G Android Development] Always_Jonezen:
Awesome keep up the good work, I look forward to your progress:D
[Atrix 4G Android Development] firefreak664:
Is there anyway that you could make this more automated where we can flash any rom to sdcard or emmc. I think that would be sweet I would help if I could but I'm still trying to figure out some programming to get blur to sdcard. Anyway just a thought I would love to be able to do it myself but i'm still new at his stuff.
[Atrix 4G Android Development] jarstelfox:
I tired flashing 1.3 and cm9 boots, and the script executes, but I get stuck at the motorola boot logo and have to restore the boot sector from my backed up rom to boot into cm9 again. I have let the phone try to boot for about 25 before restoring the boot sector.
[Atrix 4G Android Development] sendust7:
Look in the troubleshooting section of my thread starter...

Copy /sdcard/Boot/CM7/boot.img to your computer. Then with phone connected to computer with fastboot tool (e.g. under Android SDK Platform Tools) enter:

fastboot devices (make sure phone is recognized)

fastboot flash boot /path/to/boot.img

fastboot reboot

Helpful link: http://www.freeyourandroid.com/guide/fastboot-guide

If CM7 does not boot, most likely one or more of your SD card ext4 partitions does not exist or is corrupted. Were you able to successfully create these partitions?

To all: The micro SD card adapter has a little slider switch on one side to make it read-only. If your adapter has such a switch, make sure it is not set to the read-only position. Even so, GParted Live CD still may not recognize your SD card. In that case, please review this thread: http://xdaforums.com/archive/index.php/t-1183593.html
[Atrix 4G Android Development] sendust7:
Security Feature

If you have dual boot going, here's one way to secure your phone: Configure "boot-rom.sh" to boot CM7, pull your SD card and your phone will not boot. To recover, reinsert SD card, reboot and CM7 will come up.
[Atrix 4G Android Development] tamilmad:
Thanks a million

Installation went through without any hickups. Thanks a million for your very simple CWM Zip file and your video tutorial for partitioning. Now I am on both CM9 and CM7.

Suppose I need to use Notaach's GB based ROM instead of CM7, what should I do?

Also how can I keep abreast with the Jokers releases?

Please post your instructions.
[Atrix 4G Android Development] anwesh2810:
Installed without any errors..booted into cm9 but in SM there is no boot folder in sdcard...not even in emmc
[Atrix 4G Android Development] anwesh2810:
No problem solved the above mentioned issue.. guess my sdcard was not partitioned correctly.. tried to format sdcard in CWM, did not work so tried sd-ext format it worked..then booted into cm9 copied dual boot zip into sdcard, went into CWM installed from sdcard and everything works perfect..

.. initially installed dual boot zip from internal sdcrd...may be that was the issue..
[Atrix 4G Android Development] jarstelfox:
I got everything working, another suggestion I have is to make the cm9 and cm7 read the same text message databases, so you have all your texts no matter that side of your phone you are on... I know boot manager does this, but boot manager has issues finding the boot.img cm9 and of cm7, if we could hook the two together, there would be a large profit
[Atrix 4G Android Development] sendust7:
New Video Released! Partition Your SD Card

OK folks here it is... A step by step demo on how to make room for a second ROM behind the FAT32 partition of your SD card.

http://www.youtube.com/watch?v=2fQIQIKeIbI

Enjoy :D
[Atrix 4G Android Development] mafiarock93:
great work dude!
[Atrix 4G Android Development] sendust7:
Yesterday, an xda member requested help making AOKP his primary ROM. I didn't know anything about AOKP, but after discovering it was another flavor of ICS, I started to relax.

So I went on to dual boot AOKP with CM7. This was my first time doing this with an AROMA-based installer, and it crashed on the first try. Then I flashed my wiper zip (wipe /cache and /data on both sides), rebooted and everything went well except I forgot to include Script Manager on CM7. That is fixed now.
[Atrix 4G Android Development] mapobean:
can anyone help? i have successfully got nottach to boot on sd card and have installed AOPK to phone but can not get script to boot into sd card rom it does however work to boot back to phone by argument 2. What did i do wrong? was i supposed to push script and script .sh to rom before writing it to sd?

OK tried to fastboot boot boot_new.img and it kind of worked but i am stuck in boot loop on sdcard ROM any help?

EDIT: First thing i believe i posted under wrong thread, this was for dual booting using windows by hatefuel19 and the original OP sendust7. I have successfully got Nottach GB ROM to boot on sd card with AOPK as Phone ROM but have run into a small problem and may have found the culprit. The directions need to state that boot_new.img needs to be renamed to sdrom.img I am going to retest and post back.
[Atrix 4G Android Development] sendust7:
Actually, either thread is appropriate.

With my latest video http://www.youtube.com/watch?v=2fQIQIKeIbI, I was attempting to reach the widest possible audience by encouraging the use of GParted Live CD (boot any computer with it regardless of operating system). Unfortunately my HDMI capture of GParted Live was not as "HD" as I had hoped since Live CD rendered the images at very low resolution. My silent video using GParted on Ubuntu had far better display quality.:o
[Atrix 4G Android Development] mapobean:
Sendust7, thanks for the great work you do. I figured out where i went wrong earlier but ran into syntax errors and have given up for now. I flashed your dual boot zip and love it. One thing though, I normally add a custom shortcut to Atrix Settings in Apex launcher so i can choose internal memory. I did this with no problems and it worked fine but when i tried to run script to boot cm7 it would not work even if i copied it to emmc. The only way to get script to work was to uncheck use internal memory in cm9. I just wanted to bring this to others attention just in case someone decides to flash an fstab.zip. Thanks again I am going to try dual booting Nottach GB rom to sdcard with Aopk as phone ROM again soon but for now I am using your zip and loving it.
[Atrix 4G Android Development] sendust7:
Thanks for getting back. You made some awesome progress here.

Right, I don't think switching to internal memory is good for dual boot since the boot files (/sdcard/Boot) reside in external memory. I guess we could push /sdcard/Boot to both sides.:D

I just finished repeating your experiment: AOKP (emmc) and NottachTrix (sdcard). I modded the "NACHT" branch of boot-rom.sh to boot Faux 1.0 GHz kernel (since ATT kernel hangs at the Big M) and it actually worked --- somewhat. I found two problems so far:

1) CWM 5.0.2.0 recovery log under /tmp showed errors trying to mount mmcblk0p15 (cache) and mmcblk0p16 (data) --- even though I redirected all of the mounts in the updater script and in ramdisk.

2) Wireless "Error" and wireless button wouldn't work. Then, when I rebooted to AOKP, wireless was flaky (low signal) and I thought maybe NACHT had fried my wireless. But then it eventually came back. Then I reinstalled NACHT, chose stock ATT kernel and as before, no boot.

So now I'm back on Faux 1.0, lol.

Take care.
[Atrix 4G Android Development] renguer0:
Thanks for share your work mate! It's really AWESOME!

Can I use Blur based rom on SD Card and CM9 based ROM and "Faux CM9 1.0 Kernel" on Internal card and share apps and more between the differents ROMs? I really don't know what I have to do it =/

For that moment I've "Paranoid Android ROM" and "Faux's Kernel CM9 1.0" on internal card and 8GB SD Card empty. Thanks for read.
[Atrix 4G Android Development] sendust7:
Blur (sdcard) and CM9 (emmc) is sketchy right now. But here's an edit of my latest post: I believe ATT kernel hangs at Big M because I never got to the point of redirecting the mounts from emmc to sdcard :o . This particular boot image appears to have more than one ramdisk --- and as a result my boot image unpacker refused to process it.

As for the wireless problem, me-thinks this is related to the fact that I'm running DD-WRT on both of my routers. I've read some posts where folks had some problems getting Atrix to work with DD-WRT.
[Atrix 4G Android Development] renguer0:
Thanks for your reply, I understand. So, it can be possible on the future? :)
[Atrix 4G Android Development] sendust7:
We seem to be making good progress, though things might be easier if we put the Blur ROM on emmc... Not sure at this point.
[Atrix 4G Android Development] jimmao:
Spent sometime to make the partitions and installed this dual boot rom. Very straight forward. Everything seems to be working. What surprises me is that seems like AOKP works very well as far as I can see. I might stick to it for a while until I found something that will force me to use CM7.

PS. Are we able to reflash CM7 and CM9 separately at some stage when we get such updates? So that we do not need to wipe existing working system?
[Atrix 4G Android Development] sendust7:
That's great news!

You should be able to flash an update of the same variety (CM9) to emmc. Updating the second ROM (of same variety) would require modification of zip file contents, including the boot image --- unless you are able to reuse the custom boot image residing in /sdcard/Boot/CM7. See my original thread: http://xdaforums.com/showthread.php?t=1642185.

It's beginning to look like Blur ROMs should go on emmc. Not sure, but I think this has to do with proprietary files. I couldn't get wifi to work on NottachTrix (sdcard).
[Atrix 4G Android Development] jimmao:
Thank you for the information. I thought the same. which is we might be able to update CM9 at the moment. I do like to make upgrade CM7 or stable version harder. :D So that I can keep the stable version untouched longer.:D