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

romracer

Senior Member
Apr 4, 2010
717
4,323
0
Kansas City
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.
 

Attachments

franciscojavierleon

Senior Member
Jul 16, 2010
439
39
0
Maracaibo
i was trying yesterday all night to compile it but even after i downloaded the linux kernel there were some files that gcc wouldn't find .

can you explain me how did you compile it and what did you download?

i installed cygwin and downloaded the gcc4-core package and added a -I line that pointed to my downloaded linux kernel, found some files but still it failed. I concluded that i needed the android source rather than the linux kernel but it was late and got tired
 

joshyy_rey

Senior Member
Sep 16, 2010
894
189
0
ATL/Auburn
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.
Will this work on 64 bit or not?