FORUMS
Remove All Ads from XDA
H10 GPU

[KERNEL] nAa-jb-03 [23/11/12] Custom JB kernel + CWM Recovery

1,531 posts
Thanks Meter: 19,437
 
By nobodyAtall, Inactive Recognized Developer on 16th August 2012, 10:06 PM
Post Reply Email Thread

Before unlocking your bootloader, read this thread
If you brick your device, you are the sole responsible.



Preface:
  • Read through this post. Don't rush into flashing. Be sure you understand the process before you start
  • This is a custom kernel developed for Android Jellybean
  • Do NOT try this kernel on other Android versions - you are totally unsupported
  • This kernel introduces custom mtd partitioning with larger /system partition to hold the extra JB calories. If you are moving from another custom kernel to this one, you MUST first format /system /data and /cache via the embedded CWM recovery

Features:
  • Forked from nAa-ics-04 (all ICS features are already in there)
  • Built with linaro-4.7.1 toolchain
  • CWM-Based Recovery 5.5.0.4
  • Custom mtd partitioning scheme suitable for JB
  • Modular recovery flashing support (more on that to come...)
  • Tracing support for JB
  • pmem: bring up2date with CAF 2.6.38
  • genlock/kgsl fixes
  • Triple buffering support for msm framebuffer
  • Much more RAM for improved multitasking experience (shakira: 186MB, robyn/mimmi: 187MB)

FAQ:
If you have any issues, please read the FAQ thread first: http://forum.xda-developers.com/show...php?p=30297163

Requirements:
Install:
Uninstall:
  • Flash back to stock using SEUS.

    OR
  • Format /system /data and /cache via CWM and THEN flash another kernel via Flashtool


Notes:

Dualtouch (for synaptics):
  • If you want to enable the fake DT by dx (instead of andrej456's which is the default), you have to insert the following line in the /system/etc/hw_config.sh file:
    Quote:

    insmod /system/lib/modules/synaptics_i2c_rmi4_dt.ko

  • If you want to remove the fake DT altogether, insert the following line in the /system/etc/hw_config.sh file:
    Quote:

    insmod /system/lib/modules/synaptics_i2c_rmi4_no_dt.ko


Sources:
The linux kernel is GPL'ed, everyone who does modifications should make them publicly available.
https://github.com/nobodyAtall/nAa-kernel-jb

Donate:
If you are enjoying my work please consider donating: .
Donations are voluntary but allow me to spend more time on this project.



Disclaimer:
I can't be held responsible if this Kernel bricks your device or makes it explode in your hands! Use it at your own risk!
The Following 45 Users Say Thank You to nobodyAtall For This Useful Post: [ View ] Gift nobodyAtall Ad-Free
 
 
16th August 2012, 10:08 PM |#2  
nobodyAtall's Avatar
OP Inactive Recognized Developer
Flag Patras
Thanks Meter: 19,437
 
Donate to Me
More
Changelog:

### nAa-jb-02
* Ramdisk changes
* Increase vm_max_readahead to 1024Kb

### nAa-jb-01
* Forked from nAa-ics-04
* Tracing support for JB
* pmem: bring up2date with CAF 2.6.38
* genlock/kgsl fixes
* Triple buffering support for msm framebuffer
* Much more RAM
* Custom mtd partitioning for JB
The Following 27 Users Say Thank You to nobodyAtall For This Useful Post: [ View ] Gift nobodyAtall Ad-Free
16th August 2012, 10:08 PM |#3  
nobodyAtall's Avatar
OP Inactive Recognized Developer
Flag Patras
Thanks Meter: 19,437
 
Donate to Me
More
MTD partitioning for Jellybean:

localhost / # cat /proc/mtd
dev: size erasesize name
mtd0: 10500000 00020000 "system"
mtd1: 00500000 00020000 "cache"
mtd2: 0bfc0000 00020000 "userdata"
mtd3: 00a00000 00020000 "recovery"

localhost / # df -h
...
/dev/block/mtdblock0 261.0M 238.1M 22.9M 91% /system
/dev/block/mtdblock2 191.8M 86.5M 105.3M 45% /data
/dev/block/mtdblock1 5.0M 780.0K 4.2M 15% /cache
...
The Following 18 Users Say Thank You to nobodyAtall For This Useful Post: [ View ] Gift nobodyAtall Ad-Free
16th August 2012, 10:47 PM |#4  
matmutant's Avatar
Recognized Contributor
Flag ~/
Thanks Meter: 4,757
 
Donate to Me
More
useful links :

[DEV] miniCM10 debug only thread (shakira, robyn and mimmi)

$find other useful link in miniCM7/9 miniFAQs $


Perfomance :

recomended settings :
perf related :
  • CPU: keep default, but enable UnderVolting (and set on boot if you don't OverClock) (settings>performance>CPU)
  • RAM : to optimize RAM usage, use KSM, zram (18%, default) and allow purging of assets (settings>performance>memory managment)
  • I/O : keep NOOP, this is the default and the best for flash memory
other :
in settings>developer options
  • enable USB debugging,
  • debug notification,
  • set all animations to 0.5 (electron beam CRT animation will happen no more)
  • enable "kill with back button"
________________

for whose who feel the system slow and laggy, just try the SWAP (SDcard class6+ recommended)
SWAP, there is two "kind" of swap : using a partition on the SDcard, or using a swap file
both are good, but some SDcard/phones react better with the one or the other
let us start with the partition way : it is more complicated than the file method, but as some advantages

pros: once it is set up, no need to care about it anymore, the SDcard can be mounted to PC easily without latency
cons: a little complicated to set up, and once it's done, it is as complicated to revert as to set up; to change swap size, you need to repeat the process (formating and partitioning SDcard)
needs a clean install of miniCM10:
  • flash JB kernel
  • in CWM, go to mount&storage :
  • then, format /system, /data and /cache (so that kernel can use the new partitions size) any data on phone memory will be lost
  • set up your swap:
  • ==> go to /advanced/Partition SD Card
  • if you don't want to use a2sd, then choose the minimal size for ext, and the size you want for SWAP
    it will FORMAT your SDcard ! any data on SDcard will be LOST
  • and install the rom

swap partition should work
what doesn't work is the swap info menu

to revert : format SDcard in phone settings : it will FORMAT your SDcard ! any data on SDcard will be LOST
____________________

now, the swap file way : it is really simpler than the swap partition, works great but has some drawbacks

pros: easy to set up, easy to revert, and the size can be choosen at wish at anytime (in settings>performance>memory>Swap settings)
cons: high latency when mounting SDcard to pc, it can take forever (really quicker to use CWM mount and storage capability to use the SD on the PC, than using android way)
you must perform a clean install of miniCM10 (by formating /system, /data and /cache) any data on phone memory will be lost
install the rom zip, the gapps, and boot up your phone
set it up
once your rom is ready to use,
  • go to settings>performance>memory>Swap settings
  • choose "enabled"
  • choose the size
  • allow system to get SU permissions
  • wait for the pop up "swap enabled"
enjoy, it is simple and can be disabled on wish
to see if you swap works, open terminal, and type the following :
Code:
free
The Following 7 Users Say Thank You to matmutant For This Useful Post: [ View ] Gift matmutant Ad-Free
17th August 2012, 12:41 AM |#5  
juan77_sonic's Avatar
Senior Member
Flag Buenos Aires
Thanks Meter: 45
 
More
Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!111
17th August 2012, 12:50 AM |#6  
burnice's Avatar
Member
Flag Montevideo
Thanks Meter: 15
 
More
I have a problem trying to go from 2.3 to 4.1:
- i flash the new JB kernel
- restart the phone
- when is loading the "nAa" startup, exact when its on "freed" of "freedom" it freeze and reboot, i cant go into in cwm to flash the JB

if i reflash 2.3 kernel, it boot ok.

any has the same problem?

ty.

(my english suck, sry )

SOLVED: http://forum.xda-developers.com/show...4&postcount=16 , thanks he.
The Following 3 Users Say Thank You to burnice For This Useful Post: [ View ] Gift burnice Ad-Free
17th August 2012, 10:17 AM |#7  
khestrell's Avatar
Senior Member
Flag Szolnok
Thanks Meter: 21
 
More
after i flashed kernel, the phone turns on but nothing happens. the boot logo doesnt show up. then i tried to flash the ics kernel, wich i used before, and its the same. repaired the phone with pc companion and tried again, same result. :-/ if im condemned to use stock kernel and rom, ill break the phone -.-
17th August 2012, 11:43 AM |#8  
n1newbie's Avatar
Senior Member
Flag Tamil Nadu
Thanks Meter: 261
 
More
MiniCM10 on the way

Sent from my Nexus One using Tapatalk
17th August 2012, 05:54 PM |#9  
Yashu1019's Avatar
Senior Member
Flag Mumbai
Thanks Meter: 32
 
More
This Guy can do Anything... nobodyAtall is genious.
18th August 2012, 02:03 PM |#10  
sith.warrior's Avatar
Member
Flag Stateless
Thanks Meter: 6
 
More
First of all, thanks for your great work!

Then, just a question: i have already unlocked bootloader (in fact, i put MiniCM7-2.2.1 & nAa-13 Custom Gingerbread kernel - both by nAa - on my X10 Mini)...should i to repeat the process describe here? ---> http://forum.xda-developers.com/show....php?t=1254225 ?

If i don't understand badly, i have "only" to perform factory reset, wipe cache partition and wipe dalvik cache from recovery, isn't it? Then flash custom kernel & ROM. Like described there ---> http://forum.xda-developers.com/show...4&postcount=16

Thanks again

Greetings from Italy
The Following User Says Thank You to sith.warrior For This Useful Post: [ View ] Gift sith.warrior Ad-Free
19th August 2012, 03:28 AM |#11  
blackkzero's Avatar
Senior Member
Thanks Meter: 115
 
More
Quote:
Originally Posted by sith.warrior

First of all, thanks for your great work!

Then, just a question: i have already unlocked bootloader (in fact, i put MiniCM7-2.2.1 & nAa-13 Custom Gingerbread kernel - both by nAa - on my X10 Mini)...should i to repeat the process describe here? ---> http://forum.xda-developers.com/show....php?t=1254225 ?

If i don't understand badly, i have "only" to perform factory reset, wipe cache partition and wipe dalvik cache from recovery, isn't it? Then flash custom kernel & ROM. Like described there ---> http://forum.xda-developers.com/show...4&postcount=16

Thanks again

Greetings from Italy

you don't have to relock or reunlock your bootloader, follow the instructions of format /system and others in cwm menu, and then flash the jb kernel. Happy testing
The Following User Says Thank You to blackkzero For This Useful Post: [ View ] Gift blackkzero Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes