[KERNEL][awesom3]Cody Kernel ~ 20||Oct||14

Search This thread

Rexus1

Senior Member
Jul 10, 2014
62
11
How convert the android 4.0 kernel from github to boot.img ? :D

Sorry im noob
 
Last edited:

thewisenerd

Senior Member
Sep 27, 2012
1,385
2,996
For those whining about awesom3 support, OC kernel, S2W, BLN, etc, etc; here's CodyKernel especially for RC3, thanks to @galaxyfreak && @Sachin Thomas for the updated sources :)

28Sep2014
- video: msm: add back towake hooks!
- ARM: kconfig: select HAVE_EFFICIENT_UNALIGNED_ACCESS for CPUv6+ && MMU (credits to Will Deacon)
- sch_prio: backport enable_flow for KitKat (credits to Conn O'Griofa)
- signal: oom_kill_task: use SEND_SIG_FORCED instead of force_sig() (credits to Oleg Nesterov)
- mm, memcg: pass charge order to oom killer (credits to David Rientjes)
- mm, oom: force oom kill on sysrq+f (credits to David Rientjes)
- mm, oom: avoid looping when chosen thread detaches its mm (credits to David Rientjes)
- mm: oom_kill: remove memcg argument from oom_kill_task() (credits to Johannes Weiner)
- oom: do not kill tasks with oom_score_adj OOM_SCORE_ADJ_MIN (credits to Michal Hocko)
- oom: fix race while temporarily setting current's oom_score_adj (credits to David Rientjes)
- oom: remove oom_disable_count (credits to David Rientjes)
- oom: avoid killing kthreads if they assume the oom killed thread's mm (credits to David Rientjes)
- oom: thaw threads if oom killed thread is frozen before deferring (credits to David Rientjes)
- Revert "msm: display: non-blocking for overlay update" (credits to Sachin Thomas)
- Revert "msm_fb: display: update var in display commit" (credits to Sachin Thomas)
- net/l2tp: don't fall back on UDP [get|set]sockopt (credits to Sasha Levin)
- android: lowmemorykiller: add lmk parameters tunning code. (credits to seungho1.park)
- msm: adsp: Avoid preemption during driver registration (credits to Kaushal Kumar)
- msm: qdsp5: memset stack buffer allocation. (credits to Asish Bhattacharya)
- msm: qdsp5: memset stack buffer allocation. (credits to Asish Bhattacharya)
- msm: qdsp5: Memset stack buffer allocation. (credits to Asish Bhattacharya)
- qdsp5: Fix warnings (credits to Sachin Thomas)
- htc_acoustic: Update from protou (credits to Sachin Thomas)
- qdsp5: Updates from HTC (credits to Sachin Thomas)
- qdsp5: Use pmem for camera and omx (credits to Sachin Thomas)
- devices: msm7x27a: Add platform device for ADSP (credits to galaxyfreak)
- fix non-v4l2 (credits to galaxyfreak)
- update qdsp5 from teamhacklg (credits to galaxyfreak)
- msm: mdp: Update sync pt. behaviour (credits to naseer)
- msm_fb: display: get mipi frame rate from panel file (credits to Huaibin Yang)
- msm_fb: display: update var in display commit (credits to Naseer Ahmed)
- msm: display: non-blocking for overlay update (credits to Naseer Ahmed)
- msm: kgsl: Don't hold the refernce to the process private in kgsl create context (credits to Gaurav Gagrani)
- msm: kgsl: Increase the timeout value for fault detection (credits to Shubhraprakash Das)
- Staging: android: binder: More offset validation. (credits to Arve Hjønnevåg)
- msm: kgsl: Force the ME off before reading the microcode (credits to Jordan Crouse)
- mm: pass readahead info down to the i/o scheduler (credits to Lee Susman)
- writeback: fix writeback cache thrashing (credits to Namjae Jeon)
- mipi_samsung: Use mipi_dsi_cmds_tx (credits to Sachin Thomas)
- mipi_samsung: Enable bkl from display on cmds (credits to galaxyfreak)
- mipi_samsung: Call bkl_ctrl from lcd_on (credits to Sachin Thomas)
- mipi_samsung: Use mipi_dsi_cmds_tx2 (credits to Sachin Thomas)
- Update framebuffer from CAF msm-3.4 (credits to galaxyfreak)
- Update genlock from kk_2.7_rb1.6 (credits to Sachin Thomas)
- kgsl: fix genalloc BUG when detroying pagetable. (credits to Flemmard)
- pico_defconfig: enable awesom3
- awesom3: hax the partition table!
- Revert "aw3som3: hax the partition table!"
- Revert "pico_defconfig: enable aw3som3"
- Revert "aw3som3: set msm_nand_data.parts later"
- Revert "aw3som3: rearrange and relay the partition table"
- Revert "board-pico.h: allow to rework memory a *little* (experimental)"

Download: http://www.mediafire.com/download/xvuoq1msbk0e10i/output_28_Sep_2014-g2eeadbd-dirty.zip
 
Last edited:

ateeq72

Senior Member
Dec 28, 2011
323
306
Chennai
OnePlus 7
Google Pixel 8
28Sep2014
- video: msm: add back towake hooks!
- ARM: kconfig: select HAVE_EFFICIENT_UNALIGNED_ACCESS for CPUv6+ && MMU (credits to Will Deacon)
- sch_prio: backport enable_flow for KitKat (credits to Conn O'Griofa)
- signal: oom_kill_task: use SEND_SIG_FORCED instead of force_sig() (credits to Oleg Nesterov)
- mm, memcg: pass charge order to oom killer (credits to David Rientjes)
- mm, oom: force oom kill on sysrq+f (credits to David Rientjes)
- mm, oom: avoid looping when chosen thread detaches its mm (credits to David Rientjes)
- mm: oom_kill: remove memcg argument from oom_kill_task() (credits to Johannes Weiner)
*****

lol Dat** changelog!! :D
can i ask how did you got rid of glitches in cm11 rc3 kernel sources.. i cant find any commit to fix that! :confused: :confused:

AND i was'nt able to boot with this kernel! :confused: probably cause i messed up with my ramdisk to mount sd-ext as data :p anyways thanks!! :D :victory: :D
 

thewisenerd

Senior Member
Sep 27, 2012
1,385
2,996
lol Dat** changelog!! :D
can i ask how did you got rid of glitches in cm11 rc3 kernel sources.. i cant find any commit to fix that! :confused: :confused:

AND i was'nt able to boot with this kernel! :confused: probably cause i messed up with my ramdisk to mount sd-ext as data :p anyways thanks!! :D :victory: :D

Can't say. I didn't check this on RC #3 ;)
 
Last edited:

thewisenerd

Senior Member
Sep 27, 2012
1,385
2,996
20Oct2014
- include: sync msm_rotator.h with device tree
- towake: fix pocket mod showing s2w toggle value
- towake: fix S2S only logic
- firmware: add yamato_*.fw firmware for pico
- pico_defconfig: regen
- Set ION heap sizes in separate function (credits to galaxyfreak)
- i2c: tps65200: Use fast charge rate when slow charge is requested (credits to Sultanxda)
- defconfig: Enable expanded RAM (credits to Sachin Thomas)
- board-pico.h: allow to rework memory a *little* (experimental)
- ARM: 7583/1: decompressor: Enable unaligned memory access for v6 and above (credits to Dave Martin)
- ARM: 7493/1: use generic unaligned.h (credits to Rob Herring)
- msm: display: Allow MDP clocks to use Max clock. (credits to Saurabh Shah)
- awesom3: allow a 128 mB userdata

Download: https://www.mediafire.com/?l6zdt3a0qtcs093
 

abhiparmar92

Senior Member
Oct 7, 2012
238
83
Gujarat,Valsad
Compatibility problem...

20Oct2014
- include: sync msm_rotator.h with device tree
- towake: fix pocket mod showing s2w toggle value
- towake: fix S2S only logic
- firmware: add yamato_*.fw firmware for pico
- pico_defconfig: regen
- Set ION heap sizes in separate function (credits to galaxyfreak)
- i2c: tps65200: Use fast charge rate when slow charge is requested (credits to Sultanxda)
- defconfig: Enable expanded RAM (credits to Sachin Thomas)
- board-pico.h: allow to rework memory a *little* (experimental)
- ARM: 7583/1: decompressor: Enable unaligned memory access for v6 and above (credits to Dave Martin)
- ARM: 7493/1: use generic unaligned.h (credits to Rob Herring)
- msm: display: Allow MDP clocks to use Max clock. (credits to Saurabh Shah)
- awesom3: allow a 128 mB userdata

Download: https://www.mediafire.com/?l6zdt3a0qtcs093



Not working with latest CM 11 RC3

did--> latest awesom3 TWRP flash + clean CM 11 flash + Cody kernel + gapps = Still not booted restart into twrp recovery
did--> old awesom3 TWRP flash + clean CM 11 flash + Cody kernel + gapps = Still not booted goes into bootloop
 

thewisenerd

Senior Member
Sep 27, 2012
1,385
2,996
Not working with latest CM 11 RC3

did--> latest awesom3 TWRP flash + clean CM 11 flash + Cody kernel + gapps = Still not booted restart into twrp recovery
did--> old awesom3 TWRP flash + clean CM 11 flash + Cody kernel + gapps = Still not booted goes into bootloop

could you please give me recovery logs? (/tmp/recovery.log)

p.s.
  • use latest awesom3 recovery (128 mB userdata partition)
  • flash superwipe before && after flashing recovery
  • flash rom
  • flash gapps (optional) (smaller ones) (skip this to check if ROM boots in the first place)
 

abhiparmar92

Senior Member
Oct 7, 2012
238
83
Gujarat,Valsad
Here it is...

could you please give me recovery logs? (/tmp/recovery.log)

p.s.
  • use latest awesom3 recovery (128 mB userdata partition)
  • flash superwipe before && after flashing recovery
  • flash rom
  • flash gapps (optional) (smaller ones) (skip this to check if ROM boots in the first place)


check attachment for recovery log...
 

Attachments

  • recovery.rar
    4.2 KB · Views: 8

abhiparmar92

Senior Member
Oct 7, 2012
238
83
Gujarat,Valsad
Here it is...

Could you try with latest update to recovery ?

Tried it with your yesterday's latest awesom3 TWRP still result is same goes into bootloop..


I think problem is while RC3 released galaxyfreak mentioned to use it with old awesom3 recovery and mentioned link also...and now we are trying with new awesom3 TWRP recovery so might be it's structure and dependencies are changed so it's not working....anyway these are just my assumptions...check latest log file...
 

Attachments

  • recovery1.rar
    4.7 KB · Views: 14

Top Liked Posts

  • There are no posts matching your filters.
  • 38
    f.a.q:
    1. My device rebooted or crashed, how can I help?
    A: Get me /proc/last_kmsg on pastie.org.
    2. Battery sucks, my device is not entering deep sleep. FIX PLOX!
    A: Get the name of kernel (parital) wakelock that's keeping your device awake
    4. Do I need to wipe anything when flashing this kernel?
    A: No
    5. Does this kernel has X or Y mod?
    A: Learn to read, everything you need to know is in the features list, changelog or public repo.

    downloads:

    The zip's are named in the following fashion:
    Code:
    output_<date>_<month>_<year>-<revision>.zip

    source:
    https://github.com/thewisenerd/android_kernel_htc_pico

    kernel changelog:
    http://xdaforums.com/showpost.php?p=49335805&postcount=3

    supported ROMs(name | version since when supported):
    • CyanogenMod 11 | RC 3
    • OmniROM | build #10

    XDA:DevDB Information
    Cody Kernel, Kernel for the HTC Pico (Explorer)

    Contributors
    thewisenerd
    Kernel Special Features:

    Version Information
    Status: Stable

    Created 2014-01-11
    Last Updated 2014-09-28
    21
    features

    Terminal commands for some of the options in this kernel:

    vibrator voltage
    echo i > /sys/devices/virtual/timed_output/vibrator/voltage
    replace i with 2100-3100 of your choice

    sweep2wake
    echo 1 > /sys/android_touch/sweep2wake/enable - to enable
    echo 0 > /sys/android_touch/sweep2wake/enable - to disable

    echo i > /sys/android_touch/sweep2wake/xres_min_width - to set min width to swipe
    replace i with 0(?)-924 of your choice

    echo 1 > /sys/android_touch/sweep2wake/s2s_only - to enable sweep2sleep only
    echo 0 > /sys/android_touch/sweep2wake/s2s_only - to disable sweep2sleep only

    doubletap2wake

    echo 1 > /sys/android_touch/doubletap2wake/enable - to enable doubletap2wake
    echo 0 > /sys/android_touch/doubletap2wake/enable - to disable doubletap2wake

    echo i > /sys/android_touch/doubletap2wake/timeout_max - to set max timeout b/w two taps
    replace i with 0(?)-1000 of your choice (should be greater than timeout_min's value)

    pocketmod

    echo 1 > /sys/android_touch/pocket_mod/enable - to enable pocket detection before waking device, etc
    echo 0 > /sys/android_touch/pocket_mod/enable - to disable pocket detection before waking device, etc

    sound Control
    echo i > /sys/sound_control/volume_boost

    Replace i with 0-8 of your choice (0 being no boost, 4 being 1½ times original, and 8 being 2 times original volume) (prolonged audio output at 8 (speakers) might blow 'em)

    USB fast charge
    echo 1 > /sys/kernel/fast_charge/force_fast_charge - to enable
    echo 0 > /sys/kernel/fast_charge/force_fast_charge - to disable

    BLN
    echo 1 > /sys/class/misc/backlightnotification/enabled - to enable
    echo 0 > /sys/class/misc/backlightnotification/enabled - to disable

    static backlights
    echo 1 > "/sys/class/misc/backlightnotification/in_kernel_static" - to enable
    echo 0 > "/sys/class/misc/backlightnotification/in_kernel_static" - to disable

    static backlights max time
    echo i > "/sys/class/misc/backlightnotification/static_maxtime"
    replace i with preferred lights timeout in seconds (from 1 to 3600 sec = 1 hour)
    the default value is 60 seconds = 1 minute.

    blinking backlights
    echo 1 > "/sys/class/misc/backlightnotification/in_kernel_blink" - to enable
    echo 0 > "/sys/class/misc/backlightnotification/in_kernel_blink" - to disable

    blinking backlights max time
    echo i > "/sys/class/misc/backlightnotification/blink_maxtime"
    replace i with preferred lights timeout in seconds (from 1 to 3600 sec = 1 hour)
    the default value is 60 seconds = 1 minute.

    lights interval
    echo i > "/sys/class/misc/backlightnotification/blink_interval" - sync'ed lights on/off interval
    echo i > "/sys/class/misc/backlightnotification/blink_interval_on" - lights on interval
    echo i > "/sys/class/misc/backlightnotification/blink_interval_off" - lights off interval
    replace i with preferred interval in milliseconds for the related blink transition
    the default value is 500 milliseconds.

    set static lights after blink timeout
    echo 1 > "/sys/class/misc/backlightnotification/status_after_blinking" - to enable
    echo 0 > "/sys/class/misc/backlightnotification/status_after_blinking" - to disable

    TCP Congestion Algorithm interface
    To check all the available options:

    sysctl net.ipv4.tcp_available_congestion_control

    To change to other option:

    sysctl -w net.ipv4.tcp_congestion_control=NAME_OF_THE_ALGORITHM

    Detailed test of available algorithms:

    Latency - Download - Upload

    cubic:
    1st run: 15ms - 10,75Mbps - 7,82Mbps
    2nd run: 14ms - 10,84Mbps - 8,06Mbps

    reno:
    1st run: 13ms - 15,51Mbps - 6,73Mbps
    2nd run: 13ms - 14,73Mbps - 8,51Mbps
    17
    This is what I've been working on since a couple of days :)

    attachment.php
    attachment.php

    attachment.php
    attachment.php

    attachment.php
    attachment.php

    attachment.php
    attachment.php


    attachment.php


    001.png002.png003.png004.png005.png006.png007.png008.png009.png
    16
    there was this concept of GPU overclocking, a long time ago...

    And, i decided to revisit that...

    Till now, kgsl_3d0_pdata was being haxed, which is defined at compile time "static struct kgsl_device_platform_data kgsl_3d0_pdata = {", but actually, the frequencies are being fixed up during init, called in board-pico.c. it was on seing a msm7x25a_kgsl_3d0_init() in pico_init, that I saw this.

    So, until now, GPU overclocking was not touching the actual frequencies being used.

    attached below, 422_mB, protou msm_fb, test if there is some improvement (consider using apps for this?) and test if there is any noticeable changes in ui. also, this is mainly stability checks.

    download: http://d-h.st/4jq

    where to check for clock rate:
    Code:
    shell@pico:/sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/gpuclk

    gpufreq: 192000000
    busfreq: 200000000
    12
    First of all, thank @Sachin Thomas, for fixing graphical glitches, here, or your phone will burst, your kitten will die, your CPU will crash.


    The rest, is for you to find.

    Are you f'ing kidding me? Two days, and still no one found "it"?