[Atrix 4G Android Development] hatefuel19:
This is how I got dual booting from windows working and am now dual booting Nottachtrix4G from sdcard with stable

cam and WEBTOP along side AOKPCB

I was only able to achieve this after following sendust7 linux guide for dual boot and adapting to windows so all

credit goes to him.

Again these are the steps I took. If you try this and break something I'm not responsible.

Pre-requisites

Notepad++

Minitool partition wizard

Android SDK (google adb for dummies to get everything you need)

Cygwin (if you dont have it start install now and it might be done when its time to use it)

The rom zip you want on your sdcard and the rom zip you want on your phone

Moto-fastboot (search this forum)

Knowledge of ADB and fastboot

Fully Charged Battery

Backup everything from internal and external sdcard

Reboot to recovery

Flash the rom that you want on your sdcard to your phone like you would do normally.

Reboot phone and set it up if you like or just reboot back to recovery. If you set your rom up at this point, this

is how it will look on your sdcard at first boot.

Reboot back to recovery

adb shell

~ #mount /cache

~ #mount /system

~ #mount /data

~ #mount

Take note of system data and cache file systems (ext3 or ext4)

Power off phone and pull sdcard

Insert sdcard into computer and open minitool partition wizard.

Partition and format sdcard with same filesystem as noted before

These are the partition sizes I went with and only because i didnt feel like adjusting the slider anymore. But

These values did ensure they were big enough to hold the phone partitions. The first partition is whats left over

after resizing other partitions and will be formatted to fat32

system=384 MB <second partition on sdcard

cache=700 MB <third

data=2.6 GB <fourth

Insert sdcard and boot to recovery

adb shell

PATIENCE IS KEY FOR NEXT STEPS

~ # dd if=/dev/block/mmcblk0p12 of=/dev/block/mmcblk1p2 bs=1M

655360+0 records in

655360+0 records out

335544320 bytes (320.0MB) copied, 115.626214 seconds, 2.8MB/s

~ # dd if=dev/block/mmcblk0p15 of=/dev/block/mmcblk1p3 bs=1M

dd if=dev/block/mmcblk0p15 of=/dev/block/mmcblk1p3 bs=1M

640+0 records in

640+0 records out

671088640 bytes (640.0MB) copied, 206.557368 seconds, 3.1MB/s

~ # dd if=/dev/block/mmcblk0p16 of=/dev/block/mmcblk1p4 bs=1M

dd if=/dev/block/mmcblk0p16 of=/dev/block/mmcblk1p4 bs=1M

2048+0 records in

2048+0 records out

2147483648 bytes (2.0GB) copied, 658.327418 seconds, 3.1MB/s

Now get boot.img

While still in adb shell

~ #mount /dev/block/mmcblk0p18 /emmc

~ #cp /dev/block/mmcblk0p11 /emmc/boot.img

~ #exit

~ #adb pull /emmc/boot.img boot.img

Go here and follow this step by step and stop after you've got your boot image unpacked

http://xdaforums.com/show....php?t=1630130

If you have any problems with cpio run cygwin installer again and search for cpio and install

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

click thanks. If the boot_new.img is a different size than original that's okay.

http://xdaforums.com/show....php?t=1630130

Move your boot_new.img to your moto-fastboot and reboot phone to fastboot.

moto-fastboot boot boot_new.img

If you're booted into your sdcard rom you're almost done.

Reboot to recovery and install any rom you want and boot to it.

Now create this directory on your internal sdcard

/sdcard/Boot/sdrom/

Copy your boot_new.img you used to boot your sd rom earlier to this directory and rename it to sdrom.img

Now create this directory on your internal sdcard

/sdcard/Boot/emmcrom/

Now open the rom zip you installed to your phone and copy the boot.img to this directory and rename it to

emmcrom.img

Use attached script with scriptmanager to commense dual booting. (Rename to modified-boot-rom.sh)

Run script as root with argument 1 to reboot to sdcard rom and argument 2 to reboot to phone rom. Argument 3 will

send you to recovery.

All done from windows even though it would be twice as easy and fast to do with linux but there ya go.

I take no credit as all I did was find the right resources and none of this would even be possible without

sendust7. If this helped you Please go to his guide and thank him TOO!!!!

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