Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,807,128 Members 40,391 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
rootdefyxt320
Old
(Last edited by rootdefyxt320; 18th March 2014 at 09:17 AM.)
#1  
Senior Member - OP
Thanks Meter 370
Posts: 395
Join Date: Oct 2012
Location: Sydney, NSW, Australia
Default [Fastboot]Custom Kernel for Motorola Defy Mini XT320/XT321

First custom kernel for Defy Mini XT320/XT321 is here!

Featured on XDA Portal: http://www.xda-developers.com/androi...ini-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/and...orola_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://forum.xda-developers.com/show...20&postcount=8

Same installation instructions as v1.
Attached Files
File Type: img boot.img - [Click for QR Code] (3.57 MB, 271 views)
File Type: zip modules.zip - [Click for QR Code] (752.0 KB, 262 views)
Devices:
Motorola Defy Mini XT320- Stock 2.3.6 Rooted.
Sony Xperia X10 Mini Pro U20i- Cyanogenmod 10.

Press the thanks button if I helped you instead of saying thanks

The Following 11 Users Say Thank You to rootdefyxt320 For This Useful Post: [ Click to Expand ]
 
aweosomeabhijeet
Old
#2  
aweosomeabhijeet's Avatar
Senior Member
Thanks Meter 888
Posts: 785
Join Date: Oct 2012
Location: Jaipur

 
DONATE TO ME
Lol, I compiled one for XT530 with OC and undervolt, but never released as thought it would be tough to boot it everytime
Well, nice start. I'm currently working on kexec, would possibly release it when kexec would be ready.
Never be satisfied with what you get .
Devices :
Xperia M
XT530
 
sfoot13
Old
#3  
sfoot13's Avatar
Member
Thanks Meter 23
Posts: 97
Join Date: Apr 2013
Quote:
Originally Posted by rootdefyxt320 View Post
Limitations:
-You must use fastboot everytime you want to boot a custom kernel so it requires a computer.
it's possible make it permanent?
 
rootdefyxt320
Old
#4  
Senior Member - OP
Thanks Meter 370
Posts: 395
Join Date: Oct 2012
Location: Sydney, NSW, Australia
Quote:
Originally Posted by sfoot13 View Post
it's possible make it permanent?
Locked bootloader prevents this. Until I can conpile kexec, I can make it permanent.
Devices:
Motorola Defy Mini XT320- Stock 2.3.6 Rooted.
Sony Xperia X10 Mini Pro U20i- Cyanogenmod 10.

Press the thanks button if I helped you instead of saying thanks

 
sfoot13
Old
#5  
sfoot13's Avatar
Member
Thanks Meter 23
Posts: 97
Join Date: Apr 2013
Quote:
Originally Posted by rootdefyxt320 View Post
Locked bootloader prevents this. Until I can conpile kexec, I can make it permanent.
You're a genius! i hope you can have success with the kexec!
You know if swap will make any difference in the performance?
 
rootdefyxt320
Old
#6  
Senior Member - OP
Thanks Meter 370
Posts: 395
Join Date: Oct 2012
Location: Sydney, NSW, Australia
Quote:
Originally Posted by sfoot13 View Post
You're a genius! i hope you can have success with the kexec!
You know if swap will make any difference in the performance?
I built an 800MHz overclock kernel but beware you can burn your NAND but we can now use @cute_prince method to have a 878 MHz PLL2 overclock without burning NAND It's not modded numbers
Devices:
Motorola Defy Mini XT320- Stock 2.3.6 Rooted.
Sony Xperia X10 Mini Pro U20i- Cyanogenmod 10.

Press the thanks button if I helped you instead of saying thanks

 
sfoot13
Old
#7  
sfoot13's Avatar
Member
Thanks Meter 23
Posts: 97
Join Date: Apr 2013
Quote:
Originally Posted by rootdefyxt320 View Post
I built an 800MHz overclock kernel but beware you can burn your NAND but we can now use @cute_prince method to have a 878 MHz PLL2 overclock without burning NAND It's not modded numbers
are you working on it? (878 MHZ overclocking)... thanks for your work bro!
 
rootdefyxt320
Old
(Last edited by rootdefyxt320; 18th March 2014 at 06:53 AM.)
#8  
Senior Member - OP
Thanks Meter 370
Posts: 395
Join Date: Oct 2012
Location: Sydney, NSW, Australia
Quote:
Originally Posted by sfoot13 View Post
are you working on it? (878 MHZ overclocking)... thanks for your work bro!
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!
Attached Files
File Type: img boot_v2.img - [Click for QR Code] (2.68 MB, 140 views)
File Type: zip modules_v2.zip - [Click for QR Code] (753.2 KB, 121 views)
Devices:
Motorola Defy Mini XT320- Stock 2.3.6 Rooted.
Sony Xperia X10 Mini Pro U20i- Cyanogenmod 10.

Press the thanks button if I helped you instead of saying thanks

The Following 2 Users Say Thank You to rootdefyxt320 For This Useful Post: [ Click to Expand ]
 
sfoot13
Old
#9  
sfoot13's Avatar
Member
Thanks Meter 23
Posts: 97
Join Date: Apr 2013
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
Old
#10  
Senior Member - OP
Thanks Meter 370
Posts: 395
Join Date: Oct 2012
Location: Sydney, NSW, Australia
Quote:
Originally Posted by sfoot13 View Post
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
Devices:
Motorola Defy Mini XT320- Stock 2.3.6 Rooted.
Sony Xperia X10 Mini Pro U20i- Cyanogenmod 10.

Press the thanks button if I helped you instead of saying thanks


The Following User Says Thank You to rootdefyxt320 For This Useful Post: [ Click to Expand ]
Tags
custom kernel, defy mini, xt320, xt321
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes