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

Search This thread

nobodyAtall

Recognized Developer
Jan 16, 2008
1,583
19,555
Malaysia, Cheras

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://xdaforums.com/showthread.php?p=30297163

Requirements:

Install:
  • Backup
  • Unlock your bootloader as described here: http://xdaforums.com/showpost.php?p=17384177&postcount=3 or here: http://xdaforums.com/showthread.php?t=1254225
  • Download the kernel ftf file from here and move it to Flashtool\firmwares so that Flashtool can pick it up
  • Flash the kernel via Flashtool
  • Reboot and you should see the kernel boot animation
    [*] (First time only) Get into recovery and format /system /cache and /data manually
    loop20_2000.gif

Uninstall:
  • Flash back to stock using SEUS.

    OR

    [*] Format /system /data and /cache via CWM and THEN flash another kernel via Flashtool

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!
 
Last edited:

nobodyAtall

Recognized Developer
Jan 16, 2008
1,583
19,555
Malaysia, Cheras
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
...
 

kkkhattak

Senior Member
Dec 3, 2011
958
176
Peshawar
Google Pixel 6 Pro
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
...

How to use mtd partiton???

Sent from my U20i using xda premium
 

matmutant

Senior Member
Mar 17, 2011
3,395
4,743
~/
andrux-and-me.blogspot.com
Moto G
Moto E
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
 
Last edited:
  • Like
Reactions: agentsandy007

herbesi01

Senior Member
Oct 9, 2011
262
41
I can`t in to recovery, I try reflash the kernel but nothing happened, and yes I press back bottom, any help, with nAa-13 work the recovery...
 
Last edited:

Mitchio

Senior Member
Jul 18, 2010
86
6
Oxford, England, UK
The "Reboot into recovery" option isn't working (from within recovery or jellybean), always have to do it manually w/ multiple back button presses.
 
Last edited:

el_kwas

Senior Member
Aug 17, 2010
70
12
Toruń
I can`t in to recovery, I try reflash the kernel but nothing happened, and yes I press back bottom, any help, with nAa-13 work the recovery...

The same issue. After formating on nAn-13 kernel /system, /data and /cache and flash the kernel i cant get into CWM on nAn-jb-01 kernel. Any ideas what seems to be a problem?
 

Mitchio

Senior Member
Jul 18, 2010
86
6
Oxford, England, UK
Works here. You have to press home after a little bit and it will reboot fine rather than being stuck on rebooting

X10man

Sent from my U20i using xda premium

It reboots fine, when I select reboot into recovery (either from within cwm or within the os) it just boots as normal and goes into the os; as opposed to booting straight into recovery.
 

Slash90[ITA]

Senior Member
Jun 4, 2011
242
41
Molfetta
Very good kernel!
Now my cpu can run also at 787mhz without problem! (with naa-ics-04 mi limit was 748mhz).

Inviato dal mio U20i con Tapatalk 2
 
Jun 30, 2012
40
2
noob question here, how do you format /system /data and /cache manually in CMW ??

---edit

found it in mount & storage n.n
 
Last edited:

djx24

Senior Member
Dec 1, 2010
70
10
@all the complains about stuck restart.
IF YOU ARE STUCK:
Install U20_nAa-ics-04_2.6.29.6-nAa-ics-04.zip flashing the same way.
wipe /cache /data /system via CWM then follow the instructions from nobodyAtall

IF YOU ARE NOT STUCK:
wipe /cache /data /system via CWM then follow the instructions from nobodyAtall
 

ales47

Senior Member
Mar 29, 2011
84
15
Pula
Redmi K20 Pro
@naa

Could you implement the 200mb ram fix on the cm7 or cm9 kernels or would there be side effects?

Sent from my U20i using xda app-developers app
 

Top Liked Posts

  • There are no posts matching your filters.
  • 55

    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://xdaforums.com/showthread.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

    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!
    22
    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
    20
    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
    ...
    13
    Hello community!

    nAa-jb-02 is ready for use. Use this with MiniCM10-4.0.1 for best experience.

    Enjoy!
    7
    @naa

    Could you implement the 200mb ram fix on the cm7 or cm9 kernels or would there be side effects?

    Sent from my U20i using xda app-developers app

    No, this is only for JB. Other android versions will probably have issues.

    Sent from my Galaxy Nexus using Tapatalk 2