[NAND][ROM] CyanogenMod 7 : kernel updates

Search This thread

ashwin1234

Senior Member
Sep 3, 2011
227
51
I've just buy a Motorola Defy plus.
It's a great phone ! No more important call missed.
So i can give the xperia to my one year dauther who loves to play with. It's allready old, the glass is broken, volume buttons does not work, and battery is down.
It's a cool end of life for him !
All informations to build boot.img from scratch are in the first post of this thread. I hope that someone else will continue. All sources are public.
Anyway, it's now usable as a phone (if not at end of life like mine).
Your one year old daughter likes Android. The future still has hope!!!

Haha. :)
 

Elibl

Senior Member
Dec 20, 2011
686
448
anyone tried the latest boot.img? for me it works well no problems at all...

@zargloub if your still here what you ment with not working well?
btw your work on this kernel was fundamental important! thanks for all you've done for this device

the only things are that battery meter goes to fast down for me and stays at least 7 hours at around 14% and that zargloub forgot to change back keys from his setting to build this kernel...

i'm going to try building it with normal key settings...

19Mhz is great ;)

i have around 4 hours more battery life :D

is it normal to get errors from drivers/net/wireless while building the kernel?:

make[4]: *** No rule, to build the target »drivers/net/wireless/wl12xx/wl12xx_platform_data.o«,
needed from »drivers/net/wireless/wl12xx/built-in.o«. End.

i installed a virtual machine with ubuntu and FriendlyARM Toolschain...
 
Last edited:

Elibl

Senior Member
Dec 20, 2011
686
448
If you succeed, could you please post it here?


By the way i have the same feeling about this new kernel, is very good.

of course but i need help i'm stucked with a lot of errors and warnings while building the kernel and after the earlier posted error it interrupts...

it's also my first experience with toolchain

EDIT: currently installing debian...
 
Last edited:

zargloub

Senior Member
Dec 7, 2010
71
118
Hi,
What indicates "arm-none-linux-gnueabi-gcc -v" ?
Is this ok for the gc30016e without my volume key patch ?
http://www.file-upload.net/download-4262514/boot.img.html
For "not working well", i had suddenly shut down when unpluged, battery informations unusable, etc ...
I was wondering if it was battery almost dead or a problem with last commits.
So it was just my battery. Cool.
Btw, if someone want to thanks in spending 9€ to buy me a battery, you can send me private message and i will give you a postal adress :) ... but i dont want to open a paypal account, collect money and buy the battery. No time to spend on that.
 

mudenza

Senior Member
Dec 18, 2004
109
0
zargloub thanks for your work :)

I could send my battery which is a bit used but what are the chances of you getting the other things to work? Such as GPS, Front Facing Camera and Auto Focus etc?
 

zargloub

Senior Member
Dec 7, 2010
71
118
zargloub thanks for your work :)

I could send my battery which is a bit used but what are the chances of you getting the other things to work? Such as GPS, Front Facing Camera and Auto Focus etc?
Thanks for your proposal, Elibl allready proposed to buy me one (it cost no really much more than shipping costs).
To be honest, while i have a new perfectly working phone, there is not so much chances i work a lot for the x1 anymore. Maybe one day when i'll have less work.
libgps.so is part of Android compilation, and i work only on kernel.
For the front camera and autofocus i think it's part of kernel, but there is a little bit work to understand how it works ...
 

Brickpsp

Senior Member
Aug 22, 2010
80
21
Little update for recovery (5.0.2.8) ,it not important
 

Attachments

  • recovery.img
    3.9 MB · Views: 36
Last edited:

nikosddesign

Senior Member
I was wondering if it was battery almost dead or a problem with last commits.
So it was just my battery. Cool.
Btw, if someone want to thanks in spending 9€ to buy me a battery, you can send me private message and i will give you a postal adress :) ... but i dont want to open a paypal account, collect money and buy the battery. No time to spend on that.[/QUOTE]
I have two xperia x1 and a phone is broken screen.
and I'm from GREECE. happy to donate the battery. but someone to pay and Courier
21cb2hc.jpg
[/IMG]
 

zargloub

Senior Member
Dec 7, 2010
71
118
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.
 

ryo2456

Senior Member
Jan 30, 2010
489
59
Sony Xperia 1
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.

So nice to hear that.
and congrats you got a great phone.
 

jaimitop

Member
Oct 16, 2009
13
0
hi boys, I just can say that u are the best. What a big work you're putting on these projects for old faithful X1.
I have been testing 2 NAND ROMs , and here is what I found (<b>+</b> is good, <b>-</b> is not so good). Both are latest versions available (as of apr 15)

cyanogen 7
+ fast
+ stable
+ soft on battery
+ low overheat
- cannot install new keyboard (weird...stuck and reboot)
- hang wifi suspend
- no phone in Bluetooth (music is ok, but no sound with bt when answer a call)
- no USB storage
- cannot install new launcher (weirder...no boot stuck on adndroid screen)

icedroid
+ USB storage ok
+ can change KB / launcher
- hard on batt life
- a lot of overheat even with WiFia and data turned off
- slow / sluggish

I have 2 SD cards, one boots (16GB Kingston Class 2), one not (4GB Kingston Class 4), happens the same in both roms.

So, why not take good things from both and make a better one?
I don't know much about android kernel, or how can i explore/modifiy packaged OS, so i can't put any work to it (if u know about docs about this, you can send me a link or two if it's no toruble for you).

Thanks a lot again. U rocks!!!!




Sent from my Full Android on Kovsky using XDA
 

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.