[HOWTO] (moto-fastboot) Flash a build on an unlocked Atrix

Search This thread

eval-

Retired Recognized Developer
Sep 24, 2008
228
331
Well, after 4 days of having a nearly functional solution to loopback mount 2.3.4 on (locked) 1.8.3 using 2nd-init... my work is useless. But now we can all run 2.3.4, and whatever else we want!
http://xdaforums.com/showthread.php?t=1136261

We don't even have to use RSD or .sbf files anymore. Why? Because our friends at Motorola also made enhancements to fastboot which allow you to flash >256mb partitions. This means we can overwrite large partitions, such as "system" (/system) and "webtop" (/osh), in addition to the blessed "boot" (kernel+ramdisk).

I've compiled it from the opensource.motorola.com (thanks Motorola!) for linux, it is attached to this post.

UPDATE: Looks like romracer came through for all you people who still use windows, the MinGW version is attached. Thanks romracer!
(After you thank romracer's post you can see this guide)

If the files below (for your 32 or 64 [default] bit system) don't work, you can compile from fastbootNfriends yourself with a string like:
Code:
 gcc -o fastboot usb_linux.c util_linux.c fastboot.c protocol.c engine.c bootimg.c -lz ../libzipfile/zipfile.c ../libzipfile/centraldir.c -I../include -I../libzipfile -I../mkbootimg

UPDATE: Helpful users kevin@TeslaCoil and waqy. sent OSX binaries (compiled with extra flags "-framework CoreFoundation -framework Cocoa -framework IOKit") now attached.

Next post will tell you exactly how to use it to test out the HKTW 2.3.4 that was leaked a week ago which gave us all these great clues!
For me, when Atrix is connected ("lsusb | grep PCS" on Linux) it shows up as ID 22b8:708c if its in Fastboot mode.

WARNING
The leaked build from Hong Kong / Taiwan was probably not built for a device that is exactly like ours. Test phones can have different hardware. Don't expect everything to work, it's super-duper beta and since we've all only been unlocked 24hrs no one really knows how usable it is! Flash at your own risk... (PS you can 'Skip' Motoblur just by hitting 'Menu' during setup. It won't connect anyway...)

PPS. You can still use "dd" or something dangerous to overwrite your mmcblk0p11 and mmcblk0p12 with new builds, if you are unlocked, but at your own risk.
 

Attachments

  • moto-fastboot.zip
    16.6 KB · Views: 34,574
  • moto-fastboot32.zip
    14.1 KB · Views: 13,767
  • moto-fastboot-osx.zip
    31.8 KB · Views: 13,441
  • fastbootNfriends.zip
    51.2 KB · Views: 5,924
  • moto-fastboot-win32.zip
    117.8 KB · Views: 32,258
Last edited:

_unknown

Senior Member
Aug 29, 2009
63
136
HKTW instructions!

So, using eval-'s awesome moto-fastboot from the post above this one, combined with the wonders of an unlocked bootloader, we may finally start to enjoy full roms/gingerbread!

To flash the HKTW files, make sure you unlocked your bootloader. Then, download the following:

http://www.megaupload.com/?d=12A2NF3O
http://www.megaupload.com/?d=J2VJSGZ7
http://www.megaupload.com/?d=Z3YKAHNM

Extract them to obtain the following files:

Code:
1c78b33d92f6b956bffbf4b668888ce4  atrix-2.3.4-hktw-boot.img
18effca0371c7dbb36ec54443e72414b  atrix-2.3.4-hktw-system.img
b762c2a24a928da633c0f152d2fa7870  atrix-2.3.4-hktw-webtop.img

(Alternatively, you may use sbf_flash -x to extract these files directly from the SBF)

Now boot your phone into fastboot mode, and issue the following commands:

Code:
sudo ./moto-fastboot flash boot atrix-2.3.4-hktw-boot.img
sudo ./moto-fastboot flash system atrix-2.3.4-hktw-system.img
sudo ./moto-fastboot flash webtop atrix-2.3.4-hktw-webtop.img 
sudo ./moto-fastboot -w
sudo ./moto-fastboot reboot

Now observe your jaws dropping as you start to explore this awesome build!

Thanks to eval, the2dcour & [mbm] !
 
Last edited:

msd24200

Senior Member
Jun 14, 2008
2,694
121
KY
You guys rock, now eval hit the motorola forum with this :)

Sent from my MB860 using XDA Premium App
 

firefox3

Senior Member
Apr 9, 2011
196
15
no where of your consern
So, using eval-'s awesome moto-fastboot from the post above this one, combined with the wonders of an unlocked bootloader, we may finally start to enjoy full roms/gingerbread!

To flash the HKTW files, make sure you unlocked your bootloader. Then, download the following:

http://www.megaupload.com/?d=12A2NF3O
http://www.megaupload.com/?d=J2VJSGZ7

Extract them to obtain the following files:

Code:
1c78b33d92f6b956bffbf4b668888ce4  atrix-2.3.4-hktw-boot.img
18effca0371c7dbb36ec54443e72414b  atrix-2.3.4-hktw-system.img

(Alternatively, you may use sbf_flash -x to extract these files directly from the SBF.)

Now boot your phone into fastboot mode, and issue the following commands:

Code:
sudo ./moto-fastboot flash boot atrix-2.3.4-hktw-boot.img
sudo ./moto-fastboot flash system atrix-2.3.4-hktw-system.img
sudo ./moto-fastboot flash -w
sudo ./moto-fastboot reboot

Now observe your jaws dropping as you start to explore this awesome build!

Thanks to eval, the2dcour & [mbm] !

i got an error .. it said atrix-2.3.4-hktw-system.img was to big
 

eval-

Retired Recognized Developer
Sep 24, 2008
228
331
i got an error .. it said atrix-2.3.4-hktw-system.img was to big

Are you on windows? Are you using the moto-fastboot in the first post? If you are running linux and using the moto-fastboot from the first post you should have no issues. And of course, you unlocked the bootloader first.

Please read the first post carefully. Motorola modified fastboot. I compiled their mod for linux, if you have linux, you can flash your /system. Please get linux, or compile it for windows. I don't actually run windows so I haven't compiled it for windows.
 

firefox3

Senior Member
Apr 9, 2011
196
15
no where of your consern
Are you on windows? Are you using the moto-fastboot in the first post? If you are running linux and using the moto-fastboot from the first post you should have no issues. And of course, you unlocked the bootloader first.

Please read the first post carefully. Motorola modified fastboot. I compiled their mod for linux, if you have linux, you can flash your /system. Please get linux, or compile it for windows. I don't actually run windows so I haven't compiled it for windows.

i downloaded fastboot from kenneths website... wont that work?
 

firefox3

Senior Member
Apr 9, 2011
196
15
no where of your consern
Are you on windows? Are you using the moto-fastboot in the first post? If you are running linux and using the moto-fastboot from the first post you should have no issues. And of course, you unlocked the bootloader first.

Please read the first post carefully. Motorola modified fastboot. I compiled their mod for linux, if you have linux, you can flash your /system. Please get linux, or compile it for windows. I don't actually run windows so I haven't compiled it for windows.

i just deleted linux the other day .... should ii install it again ?
 

nexxusty

Senior Member
May 11, 2011
243
64
Georgetown, Ontario
Are you on windows? Are you using the moto-fastboot in the first post? If you are running linux and using the moto-fastboot from the first post you should have no issues. And of course, you unlocked the bootloader first.

Please read the first post carefully. Motorola modified fastboot. I compiled their mod for linux, if you have linux, you can flash your /system. Please get linux, or compile it for windows. I don't actually run windows so I haven't compiled it for windows.

i downloaded fastboot from kenneths website... wont that work?

Can you read?

i just deleted linux the other day .... should ii install it again ?

Yes. Or wait for someone to compile it for Windows.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 68
    Here is a MinGW32 compiled version that does not require the Cygwin DLLs. I compiled it using the following command:

    Code:
    gcc -D_WIN32 -static -o moto-fastboot.exe usb_windows.c util_windows.c fastboot.c protocol.c engine.c bootimg.c ../libzipfile/zipfile.c ../libzipfile/centraldir.c -lz AdbWinApi.a -I../include -I../libzipfile -I../mkbootimg

    I had to install the standard MinGW / MSYS setup along with libz for MinGW here. Its beyond the scope of this post to go into details on how to do that install.

    I have included the source I used because I needed a few extra header files and a static library for AdbWinApi. I also included the standard ADB DLLs in the exe zip, though if you've installed ADB before you should already have them.
    64
    Well, after 4 days of having a nearly functional solution to loopback mount 2.3.4 on (locked) 1.8.3 using 2nd-init... my work is useless. But now we can all run 2.3.4, and whatever else we want!
    http://xdaforums.com/showthread.php?t=1136261

    We don't even have to use RSD or .sbf files anymore. Why? Because our friends at Motorola also made enhancements to fastboot which allow you to flash >256mb partitions. This means we can overwrite large partitions, such as "system" (/system) and "webtop" (/osh), in addition to the blessed "boot" (kernel+ramdisk).

    I've compiled it from the opensource.motorola.com (thanks Motorola!) for linux, it is attached to this post.

    UPDATE: Looks like romracer came through for all you people who still use windows, the MinGW version is attached. Thanks romracer!
    (After you thank romracer's post you can see this guide)

    If the files below (for your 32 or 64 [default] bit system) don't work, you can compile from fastbootNfriends yourself with a string like:
    Code:
     gcc -o fastboot usb_linux.c util_linux.c fastboot.c protocol.c engine.c bootimg.c -lz ../libzipfile/zipfile.c ../libzipfile/centraldir.c -I../include -I../libzipfile -I../mkbootimg

    UPDATE: Helpful users kevin@TeslaCoil and waqy. sent OSX binaries (compiled with extra flags "-framework CoreFoundation -framework Cocoa -framework IOKit") now attached.

    Next post will tell you exactly how to use it to test out the HKTW 2.3.4 that was leaked a week ago which gave us all these great clues!
    For me, when Atrix is connected ("lsusb | grep PCS" on Linux) it shows up as ID 22b8:708c if its in Fastboot mode.

    WARNING
    The leaked build from Hong Kong / Taiwan was probably not built for a device that is exactly like ours. Test phones can have different hardware. Don't expect everything to work, it's super-duper beta and since we've all only been unlocked 24hrs no one really knows how usable it is! Flash at your own risk... (PS you can 'Skip' Motoblur just by hitting 'Menu' during setup. It won't connect anyway...)

    PPS. You can still use "dd" or something dangerous to overwrite your mmcblk0p11 and mmcblk0p12 with new builds, if you are unlocked, but at your own risk.
    37
    HKTW instructions!

    So, using eval-'s awesome moto-fastboot from the post above this one, combined with the wonders of an unlocked bootloader, we may finally start to enjoy full roms/gingerbread!

    To flash the HKTW files, make sure you unlocked your bootloader. Then, download the following:

    http://www.megaupload.com/?d=12A2NF3O
    http://www.megaupload.com/?d=J2VJSGZ7
    http://www.megaupload.com/?d=Z3YKAHNM

    Extract them to obtain the following files:

    Code:
    1c78b33d92f6b956bffbf4b668888ce4  atrix-2.3.4-hktw-boot.img
    18effca0371c7dbb36ec54443e72414b  atrix-2.3.4-hktw-system.img
    b762c2a24a928da633c0f152d2fa7870  atrix-2.3.4-hktw-webtop.img

    (Alternatively, you may use sbf_flash -x to extract these files directly from the SBF)

    Now boot your phone into fastboot mode, and issue the following commands:

    Code:
    sudo ./moto-fastboot flash boot atrix-2.3.4-hktw-boot.img
    sudo ./moto-fastboot flash system atrix-2.3.4-hktw-system.img
    sudo ./moto-fastboot flash webtop atrix-2.3.4-hktw-webtop.img 
    sudo ./moto-fastboot -w
    sudo ./moto-fastboot reboot

    Now observe your jaws dropping as you start to explore this awesome build!

    Thanks to eval, the2dcour & [mbm] !
    6
    A few people messaged me asking how to install on windows.


    Here's what i did, I extracted moto-fastboot-win32 to the root of my C drive and renamed the folder to moto-fastboot.
    Then in the same folder(moto-fastboot), I place the boot and system images. (atrix-2.3.4-hktw-boot.img and atrix-2.3.4-hktw-system.img)

    After open up a command prompt.
    If you did all the previous steps correctly, type one at a time in the order as listed :
    cd C:\moto-fastboot
    moto-fastboot flash boot atrix-2.3.4-hktw-boot.img
    moto-fastboot flash system atrix-2.3.4-hktw-system.img
    moto-fastboot -w
    moto-fastboot reboot

    And thats it, you should have Gingerbread 2.3.4 on your Atrix 4G via Windows X64/X86
    6
    EDIT2:New version in own thread. http://xdaforums.com/showthread.php?t=1142918

    EDIT: I've added a CWM zip version for use with the new unlocked recovery.

    I've fixed a few of the StatusBar issues.
    I decompiled system/app/SystemUI.apk for xml edits.
    I edited images in framework-res.apk without decompiling.

    Including:
    -Date Color
    -Shade Size
    -Handle Size




    attachment.php