[NAND][ROM] CyanogenMod 7 : kernel updates

Search This thread

Elibl

Senior Member
Dec 20, 2011
686
448
@jaimitop did you try my guid (last page icedroid thread) for the sdcard that doesn't boot?

Gesendet von meinem Sony Ericsson Xperia X1 mit Tapatalk
 
Last edited:

zargloub

Senior Member
Dec 7, 2010
71
118
Hi,
I'm currently on hollidays.
The brand new battery sent by Elibl is waiting for my return, on my desk in Paris near the X1.
I think i may have some time to work on the kernel before the end of the month.
Don't worry, i'll post here new version ... :)
 

aloysius987

Senior Member
Feb 3, 2011
350
124
Hi,
I'm currently on hollidays.
The brand new battery sent by Elibl is waiting for my return, on my desk in Paris near the X1.
I think i may have some time to work on the kernel before the end of the month.
Don't worry, i'll post here new version ... :)

ON holidays... angry that you can have holidays, i have school lol...
 

Elibl

Senior Member
Dec 20, 2011
686
448
i've got good news for you zargloub you don't have to search anymore in kernel for sdcard boot issue as boot works flawless with your kernel in ics so have nice and relaxing holidays ;)

EDIT: btw i had some reboots/freezes from time to time with the lastest kernel like you told zargloub...

EDIT2: reboot after unplug, useless battery data...

EDIT3: and battery runs too low i think (red led under power button when plug in after complete run down)
 
Last edited:
  • Like
Reactions: ashwin1234

Elibl

Senior Member
Dec 20, 2011
686
448
hy,
i found something maybe interesting: it's the se oem driver for our battery chip for 2.6.29... x10 uses the same battery and is native android... maybe you already know that... and here is the driver (not ds2746 but max17040): driver maybe you can get how things work from there... if it's only temperature... i already tried to use this driver by replacing it with ds2746 and finally got it already compiled (i just threw things together not that easy as it uses other i2c_read/write functions and gets CHARGE_TYPES not from pda_power.h but from usb... a lot of things needed to be added to compilation / *.h files) android boots but couldn't find power_supply struct paths don't know where's the issue and how to go on...

but i just wanted to point you at that driver you can have a look if and how it could help...

and something is still wrong with mic in call... especially when the phone is busy there is no mic after incoming call acception... and with headset it's always disabled and disables itself when going to sleep (all during call)

all the best ;)
 
Last edited:

Elibl

Senior Member
Dec 20, 2011
686
448
for mic it's maybe something with mic_endpoint functions in amss_5225.c...

and could you map in your repo right silver key to android KEY_SEARCH that'd be nice cause as it's KEY_POWER we can't change it with keylayout file (*.kl) thanks in advance
 
Last edited:

zargloub

Senior Member
Dec 7, 2010
71
118
for mic it's maybe something with mic_endpoint functions in amss_5225.c...

and could you map in your repo right silver key to android KEY_SEARCH that'd be nice cause as it's KEY_POWER we can't change it with keylayout file (*.kl) thanks in advance

Key search : done.

Edit : Do you have a way to reproduce mic problem without SIM card ?
If you have one, i could have a look.
 
Last edited:
  • Like
Reactions: squallvai and Elibl

Elibl

Senior Member
Dec 20, 2011
686
448
Key search : done.

Edit : Do you have a way to reproduce mic problem without SIM card ?
If you have one, i could have a look.

ah you're back in the game nice ;) and thanks...

hmm... right you have no sim anymore i forgot it looks like it only happens at incoming call therefore no :cool:

just out of curiosity how long does the battery last?
 

zargloub

Senior Member
Dec 7, 2010
71
118
ah you're back in the game nice ;) and thanks...

hmm... right you have no sim anymore i forgot it looks like it only happens at incoming call therefore no :cool:

just out of curiosity how long does the battery last?

So if someone have a way to reproduce problems with my X1 without SIM card, i'm interrested.
The brand new battery have an incredible life, about 3 days (of course without gprs)
 
  • Like
Reactions: squallvai
Jan 15, 2011
46
13
Glad you are back Zargloub.
I'll test your new kernel tomorrow, since this afternoon i have a test at university, iìll let you know if i find something interesting for the mic problem.

:D
 

djkarl

Senior Member
Apr 3, 2009
75
10
your work on bring android to our old devices very much appreciated guys, i still hold out hope that one day we can have fully working nand rom
 
Jan 15, 2011
46
13
Hi, everybody.

Yesterday i installed Icedroid and your new kernel.
The first thing i can tell you is that battery has improved, now it lasts at least 4 hrs more, with a total of 23hrs on gprs/edge active only when the screen is on thanks to Simple Battery Saver.

Then i noticed that charging is now accurate and it shows 100% only when it is really completely charged.

I'm trying to figure out how to reproduce the mic problem, maybe i'll try downloading some recording apps..


I have two OT questions:
@elibl: how do you solve the problem of booting with sdcard? EDIT: Thank you!! :)
@everybody: Is there a way to remove the noisy vibration of the phone when i turn it off?
It's really a pain in the a** when your family is sleeping at night and you turn off the phone making more noise than an helicopter.
 
Last edited:
Jan 15, 2011
46
13
I think there is a wrong value in the minimum voltage when you turn on the device: The phone never turns on if the battery is under 37-39%.

I don't know if it is kernel or LKBootLoader related (I have the 28/4/12 version of the bootloader)
 

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.