[Fastboot]Custom Kernel for Motorola Defy Mini XT320/XT321

Search This thread

rootdefyxt320

Senior Member
Oct 4, 2012
488
440
Sydney, NSW
First custom kernel for Defy Mini XT320/XT321 is here!

Featured on XDA Portal: http://www.xda-developers.com/android/first-custom-kernel-for-the-motorola-defy-mini-mini-xt320xt32/

@MauroSZ @Bernd.Defy @junk031

Despite us having a locked bootloader, we can boot a custom kernel via fastboot.

Technical Details:

Fastboot is stored as a secondary bootloader in Defy Mini. On older firmwares, the secondary bootloader had fastboot enabled but newer firmwares don't. This is why Motorola left a vulnerability in fastboot which allowed us to fastboot boot img files.

Kernel Source: https://github.com/rootdefyxt320/android_kernel_motorola_tinboost

This kernel is made for Defy Mini stock ROM's.

Details:
Linux Kernel version 2.6.38.6

Features:
-Swap
-Insecure

To Do:
-Add overclock
-Add custom governors

Limitations:
-You must use fastboot everytime you want to boot a custom kernel so it requires a computer.

Instructions:

1. Download boot.img from attachments
2. Download modules.zip from attachments.
3. Make sure you have CWM Recovery, if not download it from Post #41
4. Now boot into CWM Recovery using the batch script or typing the command in cmd
Code:
fastboot boot name-of-recovery.img
4. Now type these commands in cmd:

Code:
adb shell mount -a
Code:
adb push modules.zip /sdcard
Code:
adb shell
Code:
cd /system/lib/modules
Code:
busybox unzip /sdcard/modules.zip

Then it will ask you to overwrite the files, press A on the keyboard.

Now type the next commands in cmd:

Code:
cd /system/lib
Code:
chmod 755 modules/*
Code:
exit
Code:
adb reboot-bootloader
Code:
fastboot boot boot.img

Updated to v2 in Post 8: http://xdaforums.com/showpost.php?p=51104120&postcount=8

Same installation instructions as v1.
 

Attachments

  • boot.img
    3.6 MB · Views: 950
  • modules.zip
    752 KB · Views: 850
Last edited:

aweosomeabhijeet

Senior Member
Oct 4, 2012
886
972
28
Jaipur
next2tech.net
Lol, I compiled one for XT530 with OC and undervolt, but never released as thought it would be tough to boot it everytime :p
Well, nice start. I'm currently working on kexec, would possibly release it when kexec would be ready.
 

rootdefyxt320

Senior Member
Oct 4, 2012
488
440
Sydney, NSW
are you working on it? (878 MHZ overclocking)... thanks for your work bro! :good:

Hey, I managed to improve the performance of the kernel also by using LZMA compression instead of GZIP, switching to SLUB allocator and deadline I/O scheduler and overclock also.

Kernel v2 Update:

-Uses LZMA compression
-Enabled OTG Support
-Switched to SLUB Allocator
-Added Deadline I/O Scheduler
-Default VDD=7 for better overclocking with Bernd.Defy's overclock module.
-Enable zRAM.

You must install the new modules otherwise device will bootloop!
 

Attachments

  • boot_v2.img
    2.7 MB · Views: 521
  • modules_v2.zip
    753.2 KB · Views: 462
Last edited:

sfoot13

Senior Member
Apr 24, 2013
599
249
www.flickr.com
Thank you so much! OTG support *-* is a great gift!
bro, can you do it permanent? is something uncomfortable always connect the phone to pc, anyway thanks for your work!
 

rootdefyxt320

Senior Member
Oct 4, 2012
488
440
Sydney, NSW
Thank you so much! OTG support *-* is a great gift!
bro, can you do it permanent? is something uncomfortable always connect the phone to pc, anyway thanks for your work!

I'm busy studying for exams these days. Kexec requires a lot of hard work before we can even boot the kexec custom kernel. Remember, I'm just a 16 year old dev, so got to have priorities in school work first ;)
 
  • Like
Reactions: krule031

rootdefyxt320

Senior Member
Oct 4, 2012
488
440
Sydney, NSW
i need search my OTG cable, i don't know where is... about the overclock.. it's possible increase it?

Use Bernd.Defy's overclock module for now. I have overclocked my Defy Mini to 720MHz using his overclock module.

Go to the thread:http://xdaforums.com/showthread.php?t=2210799

Then extract the defymini_oc.ko out of the zip folder.

Then use adb to push the file:

Code:
adb push defymini_oc.ko /system/lib/modules

Then use these commands in cmd:

Code:
adb shell
Code:
su
Code:
busybox insmod /system/lib/modules/defymini_oc.ko pll2_l_val=75 acpu_freq_tbl_addr=0xc0775b5c cpufreq_stats_tbl_addr=0xc07a971c
 
Last edited:

sfoot13

Senior Member
Apr 24, 2013
599
249
www.flickr.com
Framework-res, Phone and SystemUI modded!

Hi, i edited the framework.res.apk, Phone.apk and SystemUI.apk, i just changed some icons and images, and the color of divisors
Just download the zip files and put it on your SD, boot into CWM recovery, select install update.zip and install the modded files
Make sure you have a backup of your original files.
 

Attachments

  • 1.png
    1.png
    187.2 KB · Views: 411
  • 2.png
    2.png
    244.4 KB · Views: 383
  • 3.png
    3.png
    84.6 KB · Views: 371
  • 4.png
    4.png
    170 KB · Views: 362
  • 5.png
    5.png
    59.1 KB · Views: 370
  • 6.png
    6.png
    171.3 KB · Views: 341
  • framework-res-mod.zip
    2.5 MB · Views: 117
  • Phone-mod.zip
    2 MB · Views: 103
  • SystemUI-mod.zip
    312.6 KB · Views: 113
Last edited:

rootdefyxt320

Senior Member
Oct 4, 2012
488
440
Sydney, NSW
OTG not working, and with the new modules (V2), i have a WIFI "error" using the stock kernel, but i fixed it with the first version of your modules.

The V2 modules are for the V2 custom kernel as there is substantial changes to the features. The new modules are made for SLUB Allocator instead of the SLAB allocator in the stock kernel. Try using an app to see if OTG is present.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 12
    First custom kernel for Defy Mini XT320/XT321 is here!

    Featured on XDA Portal: http://www.xda-developers.com/android/first-custom-kernel-for-the-motorola-defy-mini-mini-xt320xt32/

    @MauroSZ @Bernd.Defy @junk031

    Despite us having a locked bootloader, we can boot a custom kernel via fastboot.

    Technical Details:

    Fastboot is stored as a secondary bootloader in Defy Mini. On older firmwares, the secondary bootloader had fastboot enabled but newer firmwares don't. This is why Motorola left a vulnerability in fastboot which allowed us to fastboot boot img files.

    Kernel Source: https://github.com/rootdefyxt320/android_kernel_motorola_tinboost

    This kernel is made for Defy Mini stock ROM's.

    Details:
    Linux Kernel version 2.6.38.6

    Features:
    -Swap
    -Insecure

    To Do:
    -Add overclock
    -Add custom governors

    Limitations:
    -You must use fastboot everytime you want to boot a custom kernel so it requires a computer.

    Instructions:

    1. Download boot.img from attachments
    2. Download modules.zip from attachments.
    3. Make sure you have CWM Recovery, if not download it from Post #41
    4. Now boot into CWM Recovery using the batch script or typing the command in cmd
    Code:
    fastboot boot name-of-recovery.img
    4. Now type these commands in cmd:

    Code:
    adb shell mount -a
    Code:
    adb push modules.zip /sdcard
    Code:
    adb shell
    Code:
    cd /system/lib/modules
    Code:
    busybox unzip /sdcard/modules.zip

    Then it will ask you to overwrite the files, press A on the keyboard.

    Now type the next commands in cmd:

    Code:
    cd /system/lib
    Code:
    chmod 755 modules/*
    Code:
    exit
    Code:
    adb reboot-bootloader
    Code:
    fastboot boot boot.img

    Updated to v2 in Post 8: http://xdaforums.com/showpost.php?p=51104120&postcount=8

    Same installation instructions as v1.
    3
    are you working on it? (878 MHZ overclocking)... thanks for your work bro! :good:

    Hey, I managed to improve the performance of the kernel also by using LZMA compression instead of GZIP, switching to SLUB allocator and deadline I/O scheduler and overclock also.

    Kernel v2 Update:

    -Uses LZMA compression
    -Enabled OTG Support
    -Switched to SLUB Allocator
    -Added Deadline I/O Scheduler
    -Default VDD=7 for better overclocking with Bernd.Defy's overclock module.
    -Enable zRAM.

    You must install the new modules otherwise device will bootloop!
    1
    Thank you so much! OTG support *-* is a great gift!
    bro, can you do it permanent? is something uncomfortable always connect the phone to pc, anyway thanks for your work!

    I'm busy studying for exams these days. Kexec requires a lot of hard work before we can even boot the kexec custom kernel. Remember, I'm just a 16 year old dev, so got to have priorities in school work first ;)
    1
    I'm busy studying for exams these days. Kexec requires a lot of hard work before we can even boot the kexec custom kernel. Remember, I'm just a 16 year old dev, so got to have priorities in school work first ;)

    Oh sorry, i don't knew! 16 years old dev.? really? you're doing a great work :good:
    Well, success on your studies! God bless u :)