[NAND][ROM] CyanogenMod 7 : kernel updates

Search This thread

zargloub

Senior Member
Dec 7, 2010
71
118
Hi, i work on kernel only, from Alexander's repository.
You can update only the kernel whith fastboot, using boot img from archive.
Of course, given "as it", if your phone may unlikely be damaged, i'm not responsible for it. I'm just sharing with interrested people work i do for myself.

###############################################
February 8th 2012
g3434d04 http://www.file-upload.net/download-4098661/update.zip.html

This new corrects :
* framebuffer that isn't updated after resume while there isn't external event.
(black screen when out of suspend)
* battery management

Remaining to do :
* libgps
* Fix the Wifi indicator up in the status bar to correspond to its signal strength + wifi & BT mac adress
* Wifi crash when connected and device suspended
* When go to plane mode and come back from it, phone call terminate immediatly.
* Often, data connexion need to be relaunched
* better camera support + frontal camera
* fat partition on sdcard at boot (but not prioritary on my mind, and might not be a kernel problem).
* fm radio
* Light sensor for the LCD

###############################################
February 10th 2012
g9aa4109 : http://www.file-upload.net/download-4103743/update.zip.html
The same, reverting modif for volume keys :
g3803607 : http://www.file-upload.net/download-4104515/update.zip.html
Found battery datasheet :) : http://www.digchip.com/datasheets/parts/datasheet/280/DS2746-pdf.php
There's a register to correct accum capacity register increase. Added support of it when battery seems full and not charging anymore.
Found more information about the accu capacity register. So i modifyed the comportement (accum value correction) for low value.
But not tested, battery still not low enough.
Edit : low value accum value correction does not work at all. You should not use this version. Ill reread datasheet monday.
Edit2: bug of shame found :-s
unsigned char i2c_msg[3];
i2c_msg[0] = r;
- i2c_msg[2] = v & 0xFF;
+ i2c_msg[1] = v & 0xFF;
i2c_master_send(pclient, i2c_msg, 2);
###############################################
February 13th 2012
From now, only boot.img will be sended jerrytan93 will make complete packages. You can update kernel with fastboot or use his package.
g392f03a : http://www.file-upload.net/download-4112252/boot.img.html
Correct previous bug.
Add default accum bias value at startup.
Low voltage accum correction not yet working ...
###############################################
February 13th 2012
gc1c1691 : http://www.file-upload.net/download-4112793/boot.img.html
Battery : Correct bug about temperature value, fake value was read when changing ACR and Android was shutting down, and so, could update low power ACR correction.
###############################################
February 14th 2012
g8b7498e : http://www.file-upload.net/download-4116028/boot.img.html
Stop using BIAS to control accum value, and modify them manually
###############################################
February 15th 2012
g7d2b8de : http://www.file-upload.net/download-4118062/boot.img.html
Improve high voltage end charge detection and add near conditions
###############################################
February 15th 2012
ge8a16dd http://www.file-upload.net/download-4119224/boot.img.html
Again battery management correction, and removing battery logs. I hope last version. Testing until tomorow.
###############################################
February 20th 2012
gb3f6c5b http://www.file-upload.net/download-4132262/boot.img.html
Battery improvments again : better support of low voltage (and low power correspond now to 15%), prevent indicator from going lower than 15% when voltage is still correct.
EDIT : !!!!!!! DO NOT USE !!!! After some days, problems appears. Switch back to previous ge8a16dd
###############################################
February 28th 2012
gf111062 http://www.file-upload.net/download-4154237/boot.img.html
* New battery improvment : correct very high values for acr, does not go up to 100% values when plug/unplug
* backlight : pass better values to hardware
* From now, modules are included, so you can do modprobe, for example for nat
###############################################
March 1st 2012
g7b652eb http://www.file-upload.net/download-4158027/boot.img.html
Minor updates on brightness : lower values for leds, higher maximum value for backlight
###############################################
March 19th 2012
g7e16eb7 http://www.file-upload.net/download-4197091/boot.img.html
Higher maximum value for backlight, some improvements on battery managing.
From now, packaged with neopeek's modified rootfs. Corrects bug on minimum cpu freq value and others, like netd daemon launch (interfaces android with network events ...)
###############################################
March 22th 2012
g21761cf http://www.file-upload.net/download-4204721/boot.img.html
correction for battery (end charge detection and low value shutdown). I hope last modif on this driver. Seems ok now.
wifi : correction on signal level read from chip, but android still gets bad values.
###############################################
March 23th 2012
gbe0fc00 http://www.file-upload.net/download-4206990/boot.img.html
wifi : revert previous modification
###############################################
April 4th 2012
gc30016e http://www.file-upload.net/download-4239101/boot.img.html
Diffs from March 19th (g7e16eb7) version :
acr battery register management tries to make better ...
minimum cpu freq down to 19 (actualized in boot.img-ramdisk/init.kovsky.rc too)
prevent from keys wake up screen (when in your pocket)
This version seems not working well, but i don't know wich commit you'll have to revert :)
I won't work anymore on the kernel, because my battery is dead and i will buy a new phone.
###############################################
june, 11th 2012
g62c777c http://www.file-upload.net/download-4435319/boot.img.html
Battery improvment with brand new one Elibl bought to me. (thanks !) :)
###############################################
june, 11th 2012
gc7e3fa8 http://www.file-upload.net/download-4435456/boot.img.html
Change NAVI_SILVER_RIGHT to KEY_SEARCH
###############################################
june, 14th 2012
g57e5113 http://www.file-upload.net/download-4444937/boot.img.html
low battery voltage from 3.4V to 3.5V
###############################################
june, 19th 2012
gfd19c03 http://www.file-upload.net/download-4459644/boot.img.html
Add commit from CoolrunnerII : " Do not turn on auto focus vdd (kovsky_af_vdd(1)). Auto focus control doesn't work anyway. Without power the lens is in infinite focus length that give ok images at more than a meter distance."
Not tested.
###############################################
june, 29th 2012
gf3ce616 http://www.file-upload.net/download-4489319/boot.img.html
Add commit from CoolrunnerII : "fix for the lost call bug."
Not tested.

###############################################
###############################################
Some people asked me how to rebuild boot.img. Here is a way to do.
You should use debian whith classic dev tools packages (arm gcc, git, etc ...).
It's easyier to make a script to make compilation and resend by fastboot.

# Get boottools
git clone https://github.com/AndroidRoot/BootTools.git
cd BootTools
make
cd ..

# Get and build kernel (if you want to use mine)
git clone git://gitorious.org/~poussevin/linux-on-qualcomm-s-msm/tp-alex-linux-xperia.gi
t -b android-2.6.35

cd tp-alex-linux-xperia
cp arch/arm/configs/htc_msm_android_defconfig .config
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- TARGET_BOARD_PLATFORM=msm7k
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- TARGET_BOARD_PLATFORM=msm7k modules
rm -rf modules_path
mkdir modules_path
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- TARGET_BOARD_PLATFORM=msm7k INSTALL_MOD_PATH=modules_path modules_install
cd ..

# Recreate bootdir
rm -rf newboot
mkdir newboot
cd newboot/

# Unpack original boot.img
export PATH=../BootTools/:$PATH
cp ../boot.img .
../BootTools/unpack-bootimg.sh boot.img
rm -rf boot.img-ramdisk/lib

# Replace image
cp ../tp-alex-linux-xperia/arch/arm/boot/zImage boot.img-kernel

# Change minimum cpu freq
sed -i 's/min_freq 122880/min_freq 19200/g' boot.img-ramdisk/init.kovsky.rc

# Add modules
cp -rf ../tp-alex-linux-xperia/modules_path/* boot.img-ramdisk

# Rebuild boot.img
rm boot.img-ramdisk.cpio.gz
cd boot.img-ramdisk
find . | cpio -o -H newc | gzip > ../boot.img-ramdisk.cpio.gz
cd ..
mkbootimg --cmdline "fbcon=rotate:2 smd_rpcrouter.hot_boot=1 no_console_suspend" --kernel boot.img-kernel --ramdisk boot.img-ramdisk.cpio.gz -o boot_new.img
cp boot_new.img ../boot.img
cd ..
rm -rf newboot
 
Last edited:

Elibl

Senior Member
Dec 20, 2011
686
448
yay that means no more waking up issues?

awesome!

how to flash via fastboot? only: fastboot flash /boot boot.img that's all?

could you also add to your list to solve the wifi issues and detecting of wifi mac address? that would be nice ;)

EDIT: and also usb and adb?:p

it would be nice if some day everytihng works...
 
Last edited:
  • Like
Reactions: IBX1

aseteo

Senior Member
Jan 2, 2012
79
5
This new version, g3434d04 corrects :
* framebuffer that isn't updated after resume while there isn't external event.
(black screen when out of suspend)


I guess that means the black screen issue on calls, and when you wake the phone is fixed?
 

Elibl

Senior Member
Dec 20, 2011
686
448
i thought waking up was ment with this sorry my english isn't the best
didn't knew "suspend" :D
 
  • Like
Reactions: bennykoay

zargloub

Senior Member
Dec 7, 2010
71
118
yay that means no more waking up issues?

awesome!

how to flash via fastboot? only: fastboot flash /boot boot.img that's all?

could you also add to your list to solve the wifi issues and detecting of wifi mac address? that would be nice ;)

did you noticed my last answer in old thread about battery life? http://xdaforums.com/showpost.php?p=22301471&postcount=280


By fastboot, syntax is :
fastboot flash boot boot.img
You cant put phone on fastboot mode by rebooting to bootloader, or holding power button while starting.

About battery, i didn't really understand your explanation. When you keep charging while ratio is 100%, it continues to charge, and maximum value used for ratio is updated.

About wifi mac address, it's not a priority for me. I use only 3G data (in france there is a cheap unlimited phone bill ...). And i work for my use at first. But ok, i add it.
 
  • Like
Reactions: iFilae and Elibl

Elibl

Senior Member
Dec 20, 2011
686
448
you don't have to do it. it was only a question of course but thanks ;)
surely you should do your stuff first

i ment there's a unknown point when charging with 100%, where the indicator starts to go down again. this one i've to strike to get better battery life but i never got the battery life i had with indicator stucked at 1%
 
Last edited:

blackie333

Senior Member
Aug 28, 2009
86
2
Guys, I haven't tested the nand version yet.
Could someone who is using it confirm whether location service via mobile network is working with this kernel? I remember it was working fine in older Froyo based SD builds, but will all newer builds i have tested (Jerrytan, Kuskro,...) only location service via GPS was working in google maps.
Thank you in advance.
 

Pete Rask

Senior Member
Dec 10, 2009
255
51
Also got a suggestion, Not an important one :)

- Fix the Wifi indicator up in the status bar to correspond to its signal strength

and thx zargloub, todays build is working fine for me!
 

Elibl

Senior Member
Dec 20, 2011
686
448
yep it looks like the waking up issue is solved... will test later.

@zargloub great work! the battery indicator now don't goes down after a while. but now the battery is running hot after some time charging an the indicator is still messed up after reboot. but i think you already know that ;)

btw is the usb storage or adb working for someone
 

skas_2002

Senior Member
Dec 20, 2005
74
14

What about the battery?)
I try your updates but it became worse since 24.01(date of file) version. That version works just about perfect for me. And of course - buttons issue(qwerty,end call) we need those :).

And I also think there are a few more important "to do's".

Light sensor for the LCD (very important for battery consumption)
Proper 3D drivers for GPU (in windows Video performance is better). (Angry birds :( run in slideshow mode, and video has to be severly cut so that SW acceleration in players works fine)
Missed call? Or is it solved?
 
Last edited:

neoofoox

Senior Member
Jun 22, 2008
380
100
Nuremberg
Yeap FM radio is important for sure).

One more thing. All the operations that make the phone heat up - severely drain the battery. Take care of that.

FIRST of all the basic feature, so we have good battery performance (quite good), and phone features working inkl mobile data (checked), then wifi, graphics and then GPS, camera, fm radio (I don't know why people use/need it).

The rom is quite perfect with working phone features, mobile data, graphics and gps (don't need bluetooth, fm radio, camera (special feature but not realy needed, wifi isn't any more important because of mobile data plan)

Will flash now. Download server is quite good ;) but if someone wants a mirror I will make one.

Edit: I just flashed boot.img and booting with SD-Card is still working for me ;)
I used my current rom -> didn't installed the update.zip file via CWM
so when just the kernel has been changed it should be the same as this
 
Last edited:

Elibl

Senior Member
Dec 20, 2011
686
448
has someone the same experiences that sometimes when i want to make a call the phone immediately hangs the call up again and i have to wait some time in sleep mode till it works again?

Edit: mostly it works but sometimes...
 
Last edited:

neoofoox

Senior Member
Jun 22, 2008
380
100
Nuremberg
has someone the same experiences that sometimes when i want to make a call the phone immediately hangs the call up again and i have to wait some time in sleep mode till it works again?

I tried it now, but the voice said that the number isn't available, I just phone my home telefon :D

Now it worked... strange, but it has not hang up the call, it was normal... but again first call: "number isn't available"
 

ashwin1234

Senior Member
Sep 3, 2011
227
51
Just asking. The file in the first post is 70+MB. If I want to start using the NAND ROM, I just flash that in the CWM once I do the LK bootloader stuff?

Could someone please point me to the latest ROM if the one in the first page is not the actual ROM?

Is this one: http://xdaforums.com/showpost.php?p=22014505&postcount=226

newer than the one on the first post?

Many thanks.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 31
    Hi, i work on kernel only, from Alexander's repository.
    You can update only the kernel whith fastboot, using boot img from archive.
    Of course, given "as it", if your phone may unlikely be damaged, i'm not responsible for it. I'm just sharing with interrested people work i do for myself.

    ###############################################
    February 8th 2012
    g3434d04 http://www.file-upload.net/download-4098661/update.zip.html

    This new corrects :
    * framebuffer that isn't updated after resume while there isn't external event.
    (black screen when out of suspend)
    * battery management

    Remaining to do :
    * libgps
    * Fix the Wifi indicator up in the status bar to correspond to its signal strength + wifi & BT mac adress
    * Wifi crash when connected and device suspended
    * When go to plane mode and come back from it, phone call terminate immediatly.
    * Often, data connexion need to be relaunched
    * better camera support + frontal camera
    * fat partition on sdcard at boot (but not prioritary on my mind, and might not be a kernel problem).
    * fm radio
    * Light sensor for the LCD

    ###############################################
    February 10th 2012
    g9aa4109 : http://www.file-upload.net/download-4103743/update.zip.html
    The same, reverting modif for volume keys :
    g3803607 : http://www.file-upload.net/download-4104515/update.zip.html
    Found battery datasheet :) : http://www.digchip.com/datasheets/parts/datasheet/280/DS2746-pdf.php
    There's a register to correct accum capacity register increase. Added support of it when battery seems full and not charging anymore.
    Found more information about the accu capacity register. So i modifyed the comportement (accum value correction) for low value.
    But not tested, battery still not low enough.
    Edit : low value accum value correction does not work at all. You should not use this version. Ill reread datasheet monday.
    Edit2: bug of shame found :-s
    unsigned char i2c_msg[3];
    i2c_msg[0] = r;
    - i2c_msg[2] = v & 0xFF;
    + i2c_msg[1] = v & 0xFF;
    i2c_master_send(pclient, i2c_msg, 2);
    ###############################################
    February 13th 2012
    From now, only boot.img will be sended jerrytan93 will make complete packages. You can update kernel with fastboot or use his package.
    g392f03a : http://www.file-upload.net/download-4112252/boot.img.html
    Correct previous bug.
    Add default accum bias value at startup.
    Low voltage accum correction not yet working ...
    ###############################################
    February 13th 2012
    gc1c1691 : http://www.file-upload.net/download-4112793/boot.img.html
    Battery : Correct bug about temperature value, fake value was read when changing ACR and Android was shutting down, and so, could update low power ACR correction.
    ###############################################
    February 14th 2012
    g8b7498e : http://www.file-upload.net/download-4116028/boot.img.html
    Stop using BIAS to control accum value, and modify them manually
    ###############################################
    February 15th 2012
    g7d2b8de : http://www.file-upload.net/download-4118062/boot.img.html
    Improve high voltage end charge detection and add near conditions
    ###############################################
    February 15th 2012
    ge8a16dd http://www.file-upload.net/download-4119224/boot.img.html
    Again battery management correction, and removing battery logs. I hope last version. Testing until tomorow.
    ###############################################
    February 20th 2012
    gb3f6c5b http://www.file-upload.net/download-4132262/boot.img.html
    Battery improvments again : better support of low voltage (and low power correspond now to 15%), prevent indicator from going lower than 15% when voltage is still correct.
    EDIT : !!!!!!! DO NOT USE !!!! After some days, problems appears. Switch back to previous ge8a16dd
    ###############################################
    February 28th 2012
    gf111062 http://www.file-upload.net/download-4154237/boot.img.html
    * New battery improvment : correct very high values for acr, does not go up to 100% values when plug/unplug
    * backlight : pass better values to hardware
    * From now, modules are included, so you can do modprobe, for example for nat
    ###############################################
    March 1st 2012
    g7b652eb http://www.file-upload.net/download-4158027/boot.img.html
    Minor updates on brightness : lower values for leds, higher maximum value for backlight
    ###############################################
    March 19th 2012
    g7e16eb7 http://www.file-upload.net/download-4197091/boot.img.html
    Higher maximum value for backlight, some improvements on battery managing.
    From now, packaged with neopeek's modified rootfs. Corrects bug on minimum cpu freq value and others, like netd daemon launch (interfaces android with network events ...)
    ###############################################
    March 22th 2012
    g21761cf http://www.file-upload.net/download-4204721/boot.img.html
    correction for battery (end charge detection and low value shutdown). I hope last modif on this driver. Seems ok now.
    wifi : correction on signal level read from chip, but android still gets bad values.
    ###############################################
    March 23th 2012
    gbe0fc00 http://www.file-upload.net/download-4206990/boot.img.html
    wifi : revert previous modification
    ###############################################
    April 4th 2012
    gc30016e http://www.file-upload.net/download-4239101/boot.img.html
    Diffs from March 19th (g7e16eb7) version :
    acr battery register management tries to make better ...
    minimum cpu freq down to 19 (actualized in boot.img-ramdisk/init.kovsky.rc too)
    prevent from keys wake up screen (when in your pocket)
    This version seems not working well, but i don't know wich commit you'll have to revert :)
    I won't work anymore on the kernel, because my battery is dead and i will buy a new phone.
    ###############################################
    june, 11th 2012
    g62c777c http://www.file-upload.net/download-4435319/boot.img.html
    Battery improvment with brand new one Elibl bought to me. (thanks !) :)
    ###############################################
    june, 11th 2012
    gc7e3fa8 http://www.file-upload.net/download-4435456/boot.img.html
    Change NAVI_SILVER_RIGHT to KEY_SEARCH
    ###############################################
    june, 14th 2012
    g57e5113 http://www.file-upload.net/download-4444937/boot.img.html
    low battery voltage from 3.4V to 3.5V
    ###############################################
    june, 19th 2012
    gfd19c03 http://www.file-upload.net/download-4459644/boot.img.html
    Add commit from CoolrunnerII : " Do not turn on auto focus vdd (kovsky_af_vdd(1)). Auto focus control doesn't work anyway. Without power the lens is in infinite focus length that give ok images at more than a meter distance."
    Not tested.
    ###############################################
    june, 29th 2012
    gf3ce616 http://www.file-upload.net/download-4489319/boot.img.html
    Add commit from CoolrunnerII : "fix for the lost call bug."
    Not tested.

    ###############################################
    ###############################################
    Some people asked me how to rebuild boot.img. Here is a way to do.
    You should use debian whith classic dev tools packages (arm gcc, git, etc ...).
    It's easyier to make a script to make compilation and resend by fastboot.

    # Get boottools
    git clone https://github.com/AndroidRoot/BootTools.git
    cd BootTools
    make
    cd ..

    # Get and build kernel (if you want to use mine)
    git clone git://gitorious.org/~poussevin/linux-on-qualcomm-s-msm/tp-alex-linux-xperia.gi
    t -b android-2.6.35

    cd tp-alex-linux-xperia
    cp arch/arm/configs/htc_msm_android_defconfig .config
    make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- TARGET_BOARD_PLATFORM=msm7k
    make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- TARGET_BOARD_PLATFORM=msm7k modules
    rm -rf modules_path
    mkdir modules_path
    make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- TARGET_BOARD_PLATFORM=msm7k INSTALL_MOD_PATH=modules_path modules_install
    cd ..

    # Recreate bootdir
    rm -rf newboot
    mkdir newboot
    cd newboot/

    # Unpack original boot.img
    export PATH=../BootTools/:$PATH
    cp ../boot.img .
    ../BootTools/unpack-bootimg.sh boot.img
    rm -rf boot.img-ramdisk/lib

    # Replace image
    cp ../tp-alex-linux-xperia/arch/arm/boot/zImage boot.img-kernel

    # Change minimum cpu freq
    sed -i 's/min_freq 122880/min_freq 19200/g' boot.img-ramdisk/init.kovsky.rc

    # Add modules
    cp -rf ../tp-alex-linux-xperia/modules_path/* boot.img-ramdisk

    # Rebuild boot.img
    rm boot.img-ramdisk.cpio.gz
    cd boot.img-ramdisk
    find . | cpio -o -H newc | gzip > ../boot.img-ramdisk.cpio.gz
    cd ..
    mkbootimg --cmdline "fbcon=rotate:2 smd_rpcrouter.hot_boot=1 no_console_suspend" --kernel boot.img-kernel --ramdisk boot.img-ramdisk.cpio.gz -o boot_new.img
    cp boot_new.img ../boot.img
    cd ..
    rm -rf newboot
    10
    Hi, thank all for your proposals, Elibl said he send me one.
    I didn't realied so many people were using this kernel.
    So i have a wonderfull phone for everyday (Defy+ is a good choice), and when i'll have an alive battery and some time i'll continue to work on the kernel.
    9
    For now battery is still near the x1 on my desk. I got it back from my daugther,
    Lot of work this month, but i'll have a look as soon as i'll have some free time. Don't worry :)
    7
    I think I finally have gotten somewhere with the battery drain. Alex had written some code to turn of power to the LCD-panel, but he had put a "return;" in front of it. I removed it and Voilá: Lower battery drain :D

    You do get some artifacts on the screen when going out of suspend. I think this is just an annoyance, but I have just tested it since last night.

    I just uploaded a boot.img file.
    4
    The percentage is calculated from Volt readings and not storage capacity (mAh) :)

    It's a bit more complicated.
    There's an internal register in the battery, that increase or decrease, managed by battery chip.
    We can correct values, when we estimate it's not good, in the driver (for example, if you don't do anything, the register grows while it's pluged, even if charge finished).
    We estimate in the driver the "full" value of this register, and calculate ratio with it.