built kernel from cm7 source and not booting? - LG Optimus 2x

I download source code from https://github.com/CyanogenMod/lge-kernel-star,and use config is star_cyanogenmod_defconfig
then i make it and compile successful,but then i replace the boot.img and put it in cm7 rom,but it stuck on LG logo,i dont know why
and my git branch is on the last commit,it is:rm_spi: Fix merge derpage commit by rmcc.
Anyone can help me?

Which toolchain you are using if gcc linaro > 4.6.1 version then migrate to 4.5
Sent from my LG-P990 using Tapatalk 2

Related

[KERNEL] CM Specific Basic Kernel - BroadcomCM[COOPERVE][v4.0 - 07/3/2014]

CyanogenMod 7.2 Specific BASIC Kernel - Cooperve
We are planning to release a kernel that con work on both devices, a BCM21553-common kernel, but that is hard work, as we must compare all the files from kernel, and test everychange.
FEATURES:
Due to the kernel is pretty advanced, we are not talking of a TO-DO list, we are talking about a FEATURES list, so the FEATURES are:
Kernel just compatible with CM7
Specific Basic - Samsung official not-modded sources
EXT4 support
CWM Inclluded on kernel with EXT4 support too
Images of CWM patched to show good colors
Bluetooth and Wifi configs added to work with CM7
Common ramdisk used based on kissingmylove and PsychoGame
Ramdisk optimized for CM7 and EXT4
Compressed through LZMA
IMEI working on CM7
Offline charging working on EXT4 CM7
SOURCES:
KERNEL SOURCE (GPL) is the official samsung kernel, as it is a specific BASIC kernel:
Sources of kernel: http://opensource.samsung.com/
I needed to modify the configs to get a BT, Wifi, and EXT4 working, this is not included on Samsung stock kernel, so I leave here the config source:
Source of defconfigs: https://github.com/broadcomCM/android_kernel_bcm21553-common_configs
Ramdisk has been also modd to create a bcm21553-common ramdisk that all users could use. SOurces to ramdisk can be found extracting from my kernel (LZMA) or also on github.
Sources of Ramdisk: https://github.com/broadcomCM/android_device_samsung_bcm21553-common_ramdisk
If other kernel developers want to contribute on this, shot me a PM, and I'll talk with you.
Thanks, Biel.
CHANGELOG
Version 4.0
Same build as version 3.0 , #7
Bigger cleanup ever made on ramdisk, to match CM7 and CM9 requiriments.
Added new BroadcomCM temp. CWM, with colors fixed.
Reduced booting time
Built with first 100% BCM21553 common ramdisk working based on AOSP ROMs.
Version 3.0
Clean Ramdisk as always
Included EXT4 and RFS (for not causing bricks) mounts on init.charge.rc
Start EXT4-fix in init.charge to mount syste, data, cache on inir.charge.rc and solve offline charging.
Version 2.1
Cleaned Ramdisk
Added permissions to camfash - for CM7
New built from same source and config
Version 2.0
Re-built ramdisk based on kissingmylove ramdisk
Delete all tweaks he added - BASIC KERNEL
EXT4 file system support for CM7
Hacked CWM Images to have a good color (no blues anymore)
Added some bootscripts to have better compatiblity with EXT4
Recovery has been updated to CWM 5.0.2.8
Mount USB mass storage is now working
CWM "HD" Edition, much more clear and tiny
Much more faster recovery
Version 1.0
First release of this kernel builded from source
First kernel with my name on it
Added new modify it ramdisk
Compressed throug LZMA using Lopicl.00 kitchen
Added CONFIG_SENSORS_COOPERVE=y
Added all the configs necessary to use Bluetooth on CM
Bluetooth working on new CM7 release, which should be RC1
Fixed CM7 bootanimation - thanks Prototype-U
Version 0.1
First release of this kernel
Not builded from source
Using Hell-lock kernel (Prototype-U) as zImage base
Modify lopicl.00 ramdisk and ad it to this kernel
Used LZMA to compress ramdisk
Fixed WIFI and torch on the ramdisk CM7.2
Not compatible with STOCK!
Issues with the kernel:
SIM contacts reading
Sometimes CWM can not find cache/recovery/log
DOWNLOADS
All downloads can be found here:
DOWNLOAD HERE
Last kernel verison download:
http://www.mediafire.com/download/7188za13itwcnim/kernel_CM7_v4.0_cooperve.zip
THANKS
BroadcomCM Team
Spacecaker
Lopicl.00
Kissingmylove
Percy-g2
Others:
Savie
Prototype-U
First poster! xD
By the way, I can help you, but I have to learn more about kernels! (you know! Mentioned in chat! )
Inviato dal mio GT-S5830i con Tapatalk 2
PM sent.
Man, seeing this and not being able to help makes me feel useless.
Sent from my GT-S5830i using xda app-developers app
Nice work biel, appreciate it.
mathm2013 said:
Man, seeing this and not being able to help makes me feel useless.
Sent from my GT-S5830i using xda app-developers app
Click to expand...
Click to collapse
Dude, dont feel useless. Maybe we are not as experienced as them, different people are better at different things. So relax.
Sent from my GT-S5830i
Great,:thumbup:
my kernel also coming .
Sent from my LT22i using Tapatalk 2
First kernel built. On samsung sources, and just zImage at the moment. Dunno if will boot or not keeping u informed.
bieltv.3 said:
First kernel built. On samsung sources, and just zImage at the moment. Dunno if will boot or not keeping u informed.
Click to expand...
Click to collapse
I can check.
Only then how to restore the phone, if one does not work?
Maslin Sergey said:
I can check.
Only then how to restore the phone, if one does not work?
Click to expand...
Click to collapse
Flash another kernel bro if it won't work
Sent from my GT-S5830i using xda premium
biel can you do a git diff and git status with the boot.img of yours and the boot.img of hell lock/rafael ?
with that we can see what has changed and fix it on the sources
Sent from my S500 using xda app-developers app
SpaceCaker said:
biel can you do a git diff and git status with the boot.img of yours and the boot.img of hell lock/rafael ?
with that we can see what has changed and fix it on the sources
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
I cant make a diff from a boot.img
If nkt working flash with ODIN solve problems
Enviado desde mi GT-S5830 usando Tapatalk 2
bieltv.3 said:
I cant make a diff from a boot.img
If nkt working flash with ODIN solve problems
Enviado desde mi GT-S5830 usando Tapatalk 2
Click to expand...
Click to collapse
no from extracted boot.img i meant
Sent from my S500 using xda app-developers app
SpaceCaker said:
no from extracted boot.img i meant
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
Yes well I'll push changes to kernel asap as I make
Other idea:
Okey guys I got it after lot of searching and thinking + confirmed by psyke83 (developer from Galaxy 5) the reason why not booting is the kernel. ANd it's weird because Hell-lock kernel was fine till now
http://pastebin.com/zYFQf8Z0
Error could seem a ROM error, but init.rc script must to be modifyied to locate dalvik. Probaly dalvik and cahce in EXT4. So we need the port from the other kernel to work new CM7. That will be long without the device, really long...
Thanks, Biel
bieltv.3 said:
Yes well I'll push changes to kernel asap as I make
Other idea:
Okey guys I got it after lot of searching and thinking + confirmed by psyke83 (developer from Galaxy 5) the reason why not booting is the kernel. ANd it's weird because Hell-lock kernel was fine till now
http://pastebin.com/zYFQf8Z0
Error could seem a ROM error, but init.rc script must to be modifyied to locate dalvik. Probaly dalvik and cahce in EXT4. So we need the port from the other kernel to work new CM7. That will be long without the device, really long...
Thanks, Biel
Click to expand...
Click to collapse
also change the bootclasspath to the proper CM7 BootClassPath
Trying to port PsychoGame's 2.6.35.14 kernel... https://github.com/Lopicl/android_kernel_samsung_cooperve_cm_port-2.6.35.14
Lopicl.00 said:
Trying to port PsychoGame's 2.6.35.14 kernel... https://github.com/Lopicl/android_kernel_samsung_cooperve_cm_port-2.6.35.14
Click to expand...
Click to collapse
That is done already by me, psychogame and kissingmylove. Give a try, you will probably give us more information about it.
Enviado desde mi Nexus 7 usando Tapatalk 2

[Q] Compile Cyanogenmod 10.1 with Linaro 4.8 Toolchain

Dear XDA-Community!
Im new here so i'd like to introduce me quickly.
Im Alex, 18 years old (at the time of this writing) and im from Austria.
Before i owned a Galaxy Ace and got our p970 some months ago.
Now to my question
I tried my hands on building cyanogenmod 10.1 for the p970.
i build it with the standard toolchain and it worked perfectly.
now im trying to build it with the Linaro 4.8 Toolchain, but it isnt booting and i do know its a kernel fault.
i know this because if i flash my Cyanogenmod Build, it doesnt boot, BUT if i flash it and then flash the ZeroGravitiyKernel from here
http://forum.xda-developers.com/showthread.php?t=2082740
it boots up perfectly.
So i would like to know, if someone had succcess with building our kernel with a Linaro Toolchain and which patches i may or may not have to apply.
i tried using the ZeroGravitiySources but still it fails to boot up after flashing.
(also i did a quick benchmark test with rom toolbox and the build with the standard toolchain gets 7.3 and with using linaro and the other kernel i get 10.2)
any help is much appreciated
Yes the problem is the kernel. ....it was not easy to make the kernel boot...
Use my patch from my topic...
http://forum.xda-developers.com/showthread.php?t=2184519
This patch is for ICS v30c.....you can diff the patch with original files....and put the same in your kernel...
You can find original files from Nooby's git...and dowload only those specific files to see the diff......
Sent from my LG-P970 using xda app-developers app
rajeshmk2012 said:
Yes the problem is the kernel. ....it was not easy to make the kernel boot...
Use my patch from my topic...
http://forum.xda-developers.com/showthread.php?t=2184519
This patch is for ICS v30c.....you can diff the patch with original files....and put the same in your kernel...
You can find original files from Nooby's git...and dowload only those specific files to see the diff......
Sent from my LG-P970 using xda app-developers app
Click to expand...
Click to collapse
Thank you very much, already used it some days before and got it working, forgot to update here
Cherry Picked a lot of patches etc.
i just wondered, because i cloned his source and compiled without changing anything with the same toolchain as he was using and i didnt got it to boot.

[Q] How to compile kowalski kernel from sources?

Hi all,
First of all, I hope that is this question was not yet in the forum. At least, I have searched for it.
Well, I'm trying to compile LG P990 kowalski kernel from @pengus77 from it's github sources (github(dot)com/pengus77/lge-kernel-star)
Currently, I'm using the oldBL and I'm compiling the kernel using Linaro toolchain 4.6.2 (in Ubuntu).
I can compile the kernel without major problems, and both zImage and modules are generated. After, I used the the anykernel script (for old bootloader - oldBL), the same used by @pengus77 to distribute the kowalski.
The problem is that I can not boot the phone using the zImage compiled by myself. It always stucks in LG Logo.
Do you have hint to this? It might be a problem with environment setup and/or with Linario toolchain version?
All your possible help will be appreciated.
Many thanks!

Compiling problem[HELP]

I'm trying to build kernel for our sgsa using these sources:https://github.com/TeamCanjica/android_kernel_samsung_u8500/tree/cm-11.0
But after flashing zImage the phone gets bricked.Please help me!Iam using this guide:http://forum.xda-developers.com/showthread.php?t=1748297
Hard Brick ? if not you should first re-flash rom by ODIN.
I don't have knowledge about kernel but I see CM 11 text, if you use it as a base you'll always get brick at "stock" ROMs because that kernel doesn't have Touchwiz support it just made for CM/AOSP.
Edit : There won't be a problem If I say use the STE's leaked sources, right ?
To build cm kernel for this device you need to:
1- download the sources (I mean whole cm11 sources from TC github, I know they are something like 10gb but I don't know how to do in other ways)
2- run on terminal
Code:
cd *SourceFolder*
. build/envsetup.sh
lunch cm_janice-eng
mka bootimage
This worked for me for cm10 and cm10.1 kernels
For stock kernel you don't need the whole sources, there's a different process
P.S. thank to fedevd for this
Sent from Italy using Tapatalk
Toni5830 said:
To build cm kernel for this device you need to:
1- download the sources (I mean whole cm11 sources from TC github, I know they are something like 10gb but I don't know how to do in other ways)
2- run on terminal
Code:
cd *SourceFolder*
. build/envsetup.sh
lunch cm_janice-eng
mka bootimage
This worked for me for cm10 and cm10.1 kernels
For stock kernel you don't need the whole sources, there's a different process
P.S. thank to fedevd for this
Sent from Italy using Tapatalk
Click to expand...
Click to collapse
So i have to compile the whole rom?
I can't compile only kernel?
tgabor7 said:
So i have to compile the whole rom?
I can't compile only kernel?
Click to expand...
Click to collapse
With
mka bootimage
You will build only kernel
Sent from Italy using Tapatalk
Toni5830 said:
With
mka bootimage
You will build only kernel
Sent from Italy using Tapatalk
Click to expand...
Click to collapse
But i will have to download the whole source any way thanks
If you want to make a kernel you have to repo sync the whole rom firstly and then you can do mka bootimage.
Sent from my GT-I9070 using XDA Premium 4 mobile app

[Q] linaro gcc toolchain

hey guys, just trying to fiture out a little problem,,, i downloaded 4.9 linaro and used this guide http://forum.xda-developers.com/galaxy-nexus/general/howto-build-rom-linaro-toolchain-t1988315 to set it up, but its still trying to build kernel with gcc 4.4.x,, is there a way i can force it to compile with linaro??
winxuser said:
hey guys, just trying to fiture out a little problem,,, i downloaded 4.9 linaro and used this guide http://forum.xda-developers.com/galaxy-nexus/general/howto-build-rom-linaro-toolchain-t1988315 to set it up, but its still trying to build kernel with gcc 4.4.x,, is there a way i can force it to compile with linaro??
Click to expand...
Click to collapse
So rom is compiling with linaro, but kernel not?
I am not quite sure how it works, but there are 2 places when toolchain may be stated: in kernel's defconfig and in Makefile. You can change both of them to your desired one and then try to compile.
Or (it should work too) before writing 'make' in terminal, write 'export CROSS_COMPILE=~/YOURtoolchainLOCATION'

Categories

Resources