Custom Kernel Development: Devs only

Search This thread

Hzu

Senior Member
Nov 13, 2010
1,689
577
Also, I realised that Goro said he only tested the kernel on BB 52. *sigh* So it does not work on BB 54 eh? *another sigh....*
 

tkymgr

Senior Member
Nov 11, 2010
92
418
Narashino
www.gorochan.net
about kernel module

Hi all,

the kernel module checks a version magic at the time of start.

version maic is kernel name, for example my kernel version magic is "2.6.29-zdzihu-mod3.63".

when every compiling, i remake a kernel module.

so, the kernel module which adapted to it is necessary for a new kernel :)

i dont release mod-kernel 3.62 for cm7 !!

if u want, try mod 3.63 :D
 
  • Like
Reactions: DooMLoRD

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,187
39,710
Pune
FreeKernel-mod363 by tkymgr


Linux Kernel Version:
  • 2.6.29


Kernel features:
  • FPS uncaped
  • Add swap on compcache
  • Decrease CPU freq tables (same stock rom + OC / UC)
  • removed Group Scheduler
  • enabled ThumbEE
  • use SLAB
  • fixed ramdisk
  • new bootlogo
  • smd_rpcrouter new my patch(thanks for Z’s great work!!)
    (so, 100% stock kernel behaviour)
  • enabled TUN
  • enabled Netfilter
  • enabled CIFS(FAT&NTFS)
  • logging in droidwall(tested 1.4.2)
  • can save picture with Vignette DEMO


Requirements:
  • baseband .52/.65/.67 + the relevant kernel
  • clean 2.1 ROM, compatible with these baseband
  • clean 2.2 ROM, compatible with these baseband
  • clean 2.3 ROM, compatible with these baseband
  • working Recovery


Known Issues:
  • -


Tested On:
  • -


Link provided by developer (flashable via recovery):

[for 2.1 ROM]
FreeKernel-mod363-eclair with xrec0.3

[for 2.2 ROM]
FreeKernel-mod363-froyo with xrec0.3

[for 2.2/TripNMiUI FroYo 1.7.3]
FreeKernel mod363 miui22

[for 2.3/CM7.0.3 ROM]
FreeKernel-mod363 for CM7.0.3

[for 2.3/CM7.1.0 ROM]
FreeKernel-mod363 for CM7.1.0

[for 2.3/TripNMiUI GB 0.9.5]
FreeKernel mod363 miuiGB09



[IMP] ALL of the packages above contains a different chargemon/recovery (which might mess up ur rom)
For the sake of compatibility with the posts of this thread i will be individually posting the boot.img & wifi.ko module only... if this is unacceptable kindly send me a p.m. and i will remove those links...




Link to download boot.img (flashable via recovery):
[VIMP NOTE FOR FROYO USERS who do not see any change in custom kernel after flashing the boot.img]


[for 2.1 ROMs]

http://doomlord.sylvester20007.com/x10/custom_kernels/boot.img/boot.img_FreeKernel-mod363-ECLAIR.zip

[for 2.2 ROMs]

http://doomlord.sylvester20007.com/x10/custom_kernels/boot.img/boot.img_FreeKernel-mod363-FROYO.zip

[for 2.3/CM7.0.3 ROMs]

http://doomlord.sylvester20007.com/...t.img/boot.img_FreeKernel-mod363-GB-CM703.zip

[for 2.3/CM7.1.0 ROMs]

http://doomlord.sylvester20007.com/...t.img/boot.img_FreeKernel-mod363-GB-CM710.zip

[for 2.3/TripNMIUI09 ROMs]

http://doomlord.sylvester20007.com/....img/boot.img_FreeKernel-mod363-GB-MIUI09.zip


Additional file(s) provided with kernel:



Developer's Website:

http://www.gorochan.net/x10-and-goro/



Bootloader Bypass files:
{there should be no need to use any of the following files but i am just keeping them for reference sake}

There seems to be some issues face by some users, where in using an older version of miniloader helped them sort out the issues. So I will provide all those versions.
Flashable update.zip via recovery, contains miniloader & splboot.ko:
  1. bootloader_bypass_files_v1.zip [slightly older miniloader] {came with older FreeXperiaKernels}
  2. bootloader_bypass_files_v2.zip [older miniloader] (testing only) {came with FreeKernel by zdzihu}
  3. bootloader_bypass_files_v3.zip [older miniloader] (testing only) {came with Flashtool v0.2.9.1}
  4. bootloader_bypass_files_v4.zip (recommended) [newest miniloader] {comes with newer FreeXperiaKernels (from CM7 J022 K011 onwards)}
[IMP] for v4 miniloader: u need to be on the baseband from the baseband package provided in CM7 J022 for the v4 miniloader to work properly... even if u already have baseband 2.0.52 please reflash using the baseband package provided in CM7 J022...



[ I didnt get time to test these files. please post report if there was any problem to flash these files via recovery. THANKS ]
 

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,187
39,710
Pune
FreeKernel-mod350-Th#28 by ThJap


Linux Kernel Version:
  • 2.6.29


Kernel features:
  • overclock & downclock undervolt optimized CPU setting (latency, speed ...)
    128000- 900
    245760- 950
    384000- 975
    576000-1000
    768000-1100
    998400-1275
    1036800-1300
    1075200-1300
    1113600-1325
  • fps uncap
  • enable netfilter & iptable (can work droidwall, WiFi tether) [???]
  • change default to noop I/O scheduling (maybe good) from deadline
  • optimized into init.rc (sysctl, sche, tcp, memory thresholds, )
  • compiled by "GCC 4.4.5"
  • FIXED Camera FC on video recording
  • Call volume fix
  • disable another config for down size
  • disable cfs scheduler
  • Unsorted block images
  • disable many option (cifs, netfile, debug, tracer and more) for minimal
  • enable swap
  • SLAB allocating
  • saving battery drain
  • change kernel boot logo (Thanks to tkymgr)
  • change default CPU settings (in boot.img)
    up_threshold 95 -> 90
    sampling_rate 500000 -> 20000
    add ignore_nice_load 0
  • init.rc:
    disable some mkdir command on booting
    disable services (nexus, bootsound, bootanim)
    enable automation running in init.d script (only Th 2.1 kernel)


Requirements:
  • baseband .52 + the relevant kernel
  • clean 2.1 ROM, compatibile with .52 baseband
  • working xRecovery


Known Issues:
  • -


Tested On:


Link to download boot.img (flashable via recovery):

[for 2.1 ROMs]
http://doomlord.sylvester20007.com/...mg/boot.img_FreeKernel-mod350_Th28-ECLAIR.zip


Additional file(s) provided with kernel:


Bootloader Bypass files:
{there should be no need to use any of the following files but i am just keeping them for reference sake}

There seems to be some issues face by some users, where in using an older version of miniloader helped them sort out the issues. So I will provide all those versions.
Flashable update.zip via recovery, contains miniloader & splboot.ko:
  1. bootloader_bypass_files_v1.zip [slightly older miniloader] {came with older FreeXperiaKernels}
  2. bootloader_bypass_files_v2.zip [older miniloader] (testing only) {came with FreeKernel by zdzihu}
  3. bootloader_bypass_files_v3.zip [older miniloader] (testing only) {came with Flashtool v0.2.9.1}
  4. bootloader_bypass_files_v4.zip (recommended) [newest miniloader] {comes with newer FreeXperiaKernels (from CM7 J022 K011 onwards)}
[IMP] for v4 miniloader: u need to be on the baseband from the baseband package provided in CM7 J022 for the v4 miniloader to work properly... even if u already have baseband 2.0.52 please reflash using the baseband package provided in CM7 J022...


[ I didnt get time to test these files. please post report if there was any problem to flash these files via recovery. THANKS ]
 

tkymgr

Senior Member
Nov 11, 2010
92
418
Narashino
www.gorochan.net
Custom Kernel on SEMC GB2.3.3

I matched the version magic of the kernel source and compiled splboot.ko again, but I got WLOD :(

kmsg is
Code:
[ 2321.024508] Starting new spl
[ 2321.037647] Bye!
[ 2321.037753] Unable to handle kernel paging request at virtual address 00800024
[ 2321.037950] pgd = cc6c4000
[ 2321.038035] [00800024] *pgd=00000000
[ 2321.038155] Internal error: Oops: 5 [#1] PREEMPT
[ 2321.038282] Modules linked in: splboot
[ 2321.038415] CPU: 0    Not tainted  (2.6.29-00054-g5f01537 #1)
[ 2321.038621] PC is at setup_mm_for_reboot+0x28/0xac [splboot]
[ 2321.038803] LR is at proc_splboot_store+0xdc/0x120 [splboot]
     .
     .
     .
 

zdzihu

Retired Recognized Developer
Sep 28, 2008
651
5,141
I matched the version magic of the kernel source and compiled splboot.ko again, but I got WLOD :(

kmsg is
Code:
[ 2321.024508] Starting new spl
[ 2321.037647] Bye!
[ 2321.037753] Unable to handle kernel paging request at virtual address 00800024
[ 2321.037950] pgd = cc6c4000
[ 2321.038035] [00800024] *pgd=00000000
[ 2321.038155] Internal error: Oops: 5 [#1] PREEMPT
[ 2321.038282] Modules linked in: splboot
[ 2321.038415] CPU: 0    Not tainted  (2.6.29-00054-g5f01537 #1)
[ 2321.038621] PC is at setup_mm_for_reboot+0x28/0xac [splboot]
[ 2321.038803] LR is at proc_splboot_store+0xdc/0x120 [splboot]
     .
     .
     .
In my understanding, they ported a lot of stuff from .32+ into this old .29 kernel, so splboot won't work out-of-the-box.

We need to wait for the new sources :)


Cheers,
z
 

Top Liked Posts