<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=OS%3A_Android_-_Build_Untuk_Motorola</id>
	<title>OS: Android - Build Untuk Motorola - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=OS%3A_Android_-_Build_Untuk_Motorola"/>
	<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=OS:_Android_-_Build_Untuk_Motorola&amp;action=history"/>
	<updated>2026-04-17T10:36:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.4</generator>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=OS:_Android_-_Build_Untuk_Motorola&amp;diff=38407&amp;oldid=prev</id>
		<title>Onnowpurbo: New page: HOWTO: Build and Flash Motorola's kernel from source      DISCLAIMER:     I'm not responsible for any damages done to your phone. Please read carefully, and also please, please do a nandro...</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=OS:_Android_-_Build_Untuk_Motorola&amp;diff=38407&amp;oldid=prev"/>
		<updated>2013-09-04T02:45:44Z</updated>

		<summary type="html">&lt;p&gt;New page: HOWTO: Build and Flash Motorola&amp;#039;s kernel from source      DISCLAIMER:     I&amp;#039;m not responsible for any damages done to your phone. Please read carefully, and also please, please do a nandro...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;HOWTO: Build and Flash Motorola's kernel from source&lt;br /&gt;
&lt;br /&gt;
    DISCLAIMER:&lt;br /&gt;
    I'm not responsible for any damages done to your phone. Please read carefully, and also please, please do a nandroid backup.&lt;br /&gt;
    If any of the following fails, don't continue. And post your errors on this thread.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    Prepare your system&lt;br /&gt;
&lt;br /&gt;
    Code:&lt;br /&gt;
&lt;br /&gt;
    $ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev&lt;br /&gt;
&lt;br /&gt;
    Get the Kernel sources for your device from https://opensource.motorola.com/sf/g...s.cliqdext/frs&lt;br /&gt;
    Be sure to download the one for your CLIQ/DEXT, if you compile other than the one intended for your device you will be left in 1969!! (DISCO!).&lt;br /&gt;
&lt;br /&gt;
    Note: The latest for TMO, is split in 3 files, download all of them.&lt;br /&gt;
&lt;br /&gt;
    Once you have downloaded all your files&lt;br /&gt;
&lt;br /&gt;
    Code:&lt;br /&gt;
&lt;br /&gt;
    $ mkdir ~/motorola-source&lt;br /&gt;
    $ gunzip morrison-customer-tmo-1_4-release-1_4_8-framework.tar.gz&lt;br /&gt;
    $ tar xvf morrison-customer-tmo-1_4-release-1_4_8-framework.tar -C ~/motorola-source&lt;br /&gt;
    $ gunzip morrison-customer-tmo-1_4-release-1_4_8-external.tar.gz&lt;br /&gt;
    $ tar xvf morrison-customer-tmo-1_4-release-1_4_8-external.tar -C ~/motorola-source&lt;br /&gt;
    $ gunzip morrison-customer-tmo-1_4-release-1_4_8-kernel.tar.gz&lt;br /&gt;
    $ tar xvf morrison-customer-tmo-1_4-release-1_4_8-kernel.tar -C ~/motorola-source&lt;br /&gt;
&lt;br /&gt;
    This should leave a directory structure like this under ~/motorola-source&lt;br /&gt;
&lt;br /&gt;
    Code:&lt;br /&gt;
&lt;br /&gt;
    $ ls ~/motorola-source&lt;br /&gt;
    base  bionic  bootable  build  dalvik  external  frameworks  kernel  libhardware  libhardware_legacy  Makefile  msm7k  out  prebuilt  README.txt  system  unpack.pl  vendor&lt;br /&gt;
&lt;br /&gt;
    Now lets get the prerequisites stated at ~/motorola-source/README.txt&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    Once you have downloaded all of previous requirements you will need to download several things from android to do this:&lt;br /&gt;
&lt;br /&gt;
    Code:&lt;br /&gt;
&lt;br /&gt;
    $ mkdir ~/moto-prerquisites&lt;br /&gt;
    $ cd ~/moto-prerquisites&lt;br /&gt;
    $ git clone git://android.git.kernel.org/platform/frameworks/base.git&lt;br /&gt;
    $ git clone git://android.git.kernel.org/platform/hardware/libhardware.git&lt;br /&gt;
    $ git clone git://android.git.kernel.org/platform/hardware/libhardware_legacy.git&lt;br /&gt;
    $ git clone git://android.git.kernel.org/platform/hardware/msm7k.git&lt;br /&gt;
    $ git clone git://android.git.kernel.org/platform/prebuilt.git&lt;br /&gt;
&lt;br /&gt;
    Get ready to wait a while because de prebuilt repository is quite big&lt;br /&gt;
    Once all of the above have finished lets set the prerequisites to the TAGS specified in the README.txt&lt;br /&gt;
&lt;br /&gt;
    Code:&lt;br /&gt;
&lt;br /&gt;
    $ cd ~/moto-prerquisites/base &lt;br /&gt;
    $ git checkout android-1.5r3&lt;br /&gt;
&lt;br /&gt;
    $ cd ~/moto-prerquisites/libhardware&lt;br /&gt;
    $ git checkout android-1.5r3&lt;br /&gt;
&lt;br /&gt;
    $ cd ~/moto-prerquisites/libhardware_legacy&lt;br /&gt;
    $ git checkout android-1.5r3&lt;br /&gt;
&lt;br /&gt;
    $ cd ~/moto-prerquisites/msm7k&lt;br /&gt;
    $ git checkout android-1.6_r1&lt;br /&gt;
&lt;br /&gt;
    $ cd ~/moto-prerquisites/prebuilt&lt;br /&gt;
    $ git checkout android-1.5r3&lt;br /&gt;
&lt;br /&gt;
    Once you've done this copy all the directories to ~/motorola-source&lt;br /&gt;
&lt;br /&gt;
    Code:&lt;br /&gt;
&lt;br /&gt;
    $ cp -r base libhardware libhardware_legacy msm7k prebuilt ~/motorola-source&lt;br /&gt;
&lt;br /&gt;
    Now we have to unpack what comes in the sources from motorola&lt;br /&gt;
&lt;br /&gt;
    Code:&lt;br /&gt;
&lt;br /&gt;
    $ cd ~/motorola-source&lt;br /&gt;
    $ chmod +x unpack.pl&lt;br /&gt;
    $ ./unpack.pl&lt;br /&gt;
&lt;br /&gt;
    Now you have everything that's needed to compile your kernel&lt;br /&gt;
    You have to set some variables first&lt;br /&gt;
&lt;br /&gt;
    Code:&lt;br /&gt;
&lt;br /&gt;
    $ export PLATFORM_DIR=~/motorola/source&lt;br /&gt;
    $ export ARCH=arm&lt;br /&gt;
    $ export CROSS_COMPILE=arm-eabi-&lt;br /&gt;
    $ export PATH=/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin:&lt;br /&gt;
&lt;br /&gt;
    Now lets build&lt;br /&gt;
    Code:&lt;br /&gt;
&lt;br /&gt;
    cd /kernel &lt;br /&gt;
    $ make msm_mot_defconfig&lt;br /&gt;
&lt;br /&gt;
    This line will build the kernel and output a zImage&lt;br /&gt;
    Code:&lt;br /&gt;
&lt;br /&gt;
    $ make ANDROID_BUILD_TOP=&lt;br /&gt;
&lt;br /&gt;
    This will build the wireless driver module dhd.ko&lt;br /&gt;
    Code:&lt;br /&gt;
&lt;br /&gt;
    $ make -C /system/wlan/bcm/osrc/open-src/src/dhd/linux ANDROID_BUILD_TOP=&lt;br /&gt;
&lt;br /&gt;
    Now you have build your kernel!&lt;br /&gt;
    results should be&lt;br /&gt;
    Code:&lt;br /&gt;
&lt;br /&gt;
    ~/motorola-source/kernel/arch/arm/boot/zImage&lt;br /&gt;
    ~/motorola-source/system/wlan/bcm/osrc/open-src/src/dhd/linux/dhd.ko&lt;br /&gt;
&lt;br /&gt;
    In order to flash this to your system you will need&lt;br /&gt;
    A nandroid backup and unpack-bootimg.pl and repack-bootimg.pl get them from here http://android-dls.com/wiki/index.ph...ck_Boot_Images&lt;br /&gt;
&lt;br /&gt;
    Code:&lt;br /&gt;
&lt;br /&gt;
    $ mkdir ~/bin&lt;br /&gt;
    $ unzip unpack-bootimg.zip -d ~/bin&lt;br /&gt;
    $ unzip repack-bootimg.zip -d ~/bin&lt;br /&gt;
    $ export PATH=:~/bin&lt;br /&gt;
&lt;br /&gt;
    With your nandroid backup search for your boot.img and copy it somewhere easy to find&lt;br /&gt;
&lt;br /&gt;
    Code:&lt;br /&gt;
&lt;br /&gt;
    $ mkdir ~/mymoto&lt;br /&gt;
    $ cd ~/mymoto&lt;br /&gt;
    $ cp /path/to/my/nandroid/boot.img .&lt;br /&gt;
&lt;br /&gt;
    Extract the boot image&lt;br /&gt;
    Code:&lt;br /&gt;
&lt;br /&gt;
    $ unpack-bootimg.pl boot.img&lt;br /&gt;
&lt;br /&gt;
    this will leave you with&lt;br /&gt;
    Code:&lt;br /&gt;
&lt;br /&gt;
    $ ls ~/mymoto&lt;br /&gt;
    boot.img  boot.img-kernel.gz  boot.img-ramdisk  boot.img-ramdisk.cpio.gz&lt;br /&gt;
&lt;br /&gt;
    Now lets repack that boot image with our new kernel&lt;br /&gt;
&lt;br /&gt;
    Code:&lt;br /&gt;
&lt;br /&gt;
    $ cd ~/mymoto&lt;br /&gt;
    $ repack-bootimg.pl ~/motorola-source/kernel/arch/arm/boot/zImage boot.img-ramdisk my-boot.img&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    //You'll need android-sdk installed to use adb search the forums on how to install android-sdk&lt;br /&gt;
    Now push your image and wireless driver to your phone&lt;br /&gt;
    Code:&lt;br /&gt;
&lt;br /&gt;
    $ adb push my-boot.img /sdcard/&lt;br /&gt;
    $ adb push ~/motorola-source/system/wlan/bcm/osrc/open-src/src/dhd/linux/dhd.ko /system/lib/&lt;br /&gt;
    $ adb shell&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    Now let's see where we should flash our image&lt;br /&gt;
    Code:&lt;br /&gt;
&lt;br /&gt;
    # cat /proc/mtd&lt;br /&gt;
    dev:    size   erasesize  name&lt;br /&gt;
    mtd0: 00300000 00020000 &amp;quot;boot&amp;quot;&lt;br /&gt;
    mtd1: 08ac0000 00020000 &amp;quot;system&amp;quot;&lt;br /&gt;
    mtd2: 0df80000 00020000 &amp;quot;userdata&amp;quot;&lt;br /&gt;
    mtd3: 00040000 00020000 &amp;quot;misc&amp;quot;&lt;br /&gt;
    mtd4: 00500000 00020000 &amp;quot;recovery&amp;quot;&lt;br /&gt;
    mtd5: 06000000 00020000 &amp;quot;cache&amp;quot;&lt;br /&gt;
    mtd6: 00080000 00020000 &amp;quot;splash&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    As we can see mtd0 is where our boot image is stored, be sure to checkout wich one corresponds to your phone but it should be the same for all&lt;br /&gt;
&lt;br /&gt;
    now erase /dev/mtd/mtd0&lt;br /&gt;
    Code:&lt;br /&gt;
&lt;br /&gt;
    # cat /dev/zero &amp;gt; /dev/mtd/mtd0&lt;br /&gt;
    write: No space left on device [this is ok, you can ignore]&lt;br /&gt;
    # flash_image boot /sdcard/my-boot.img&lt;br /&gt;
    # reboot&lt;br /&gt;
&lt;br /&gt;
    That's it now you have built and flashed your newly built kernel! &lt;br /&gt;
&lt;br /&gt;
- See more at: http://modmymobile.com/forums/403-motorola-cliq-development/531359-howto-build-flash-motorolas-kernel-source.html#sthash.tKEZTUpR.dpuf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* http://modmymobile.com/forums/403-motorola-cliq-development/531359-howto-build-flash-motorolas-kernel-source.html&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>