[Kernel] Jelly Bean - Extract/Dump/Build - Galaxy S Advance I9070 Q&A, Help & Troubleshooting

Hi
we are a team of devs trying to port jelly from s advance to xperia u.
when i extract the jelly system.tar i get files:
- kernel.bin.md5
- kernel2.bin.md5
- power_mangement.bin.md5
Can you please tell me if these are all three related to kernel?
Can you please tell me how to extract these kernel files, as i need to merge the "zimage" inside (?) with our ramdisk?
Or can anyone upload the boot.img from his jelly bean rom?
Thx

thebrainkafka said:
Hi
we are a team of devs trying to port jelly from s advance to xperia u.
when i extract the jelly system.tar i get files:
- kernel.bin.md5
- kernel2.bin.md5
- power_mangement.bin.md5
Can you please tell me if these are all three related to kernel?
Can you please tell me how to extract these kernel files, as i need to merge the "zimage" inside (?) with our ramdisk?
Or can anyone upload the boot.img from his jelly bean rom?
Thx
Click to expand...
Click to collapse
Someone is uploading the kernel dump iirc.
Other file is pretty self explanatory!
Sent from my GT-I9070 using xda premium

Shaaan said:
Someone is uploading the kernel dump iirc.
Other file is pretty self explanatory!
Sent from my GT-I9070 using xda premium
Click to expand...
Click to collapse
Thx,
but please explain... im used to sony file system

U want to just replace zImage In sony device? I think u need to build the kernel again :0
Sent from my GT-I9070 using xda app-developers app

I downloaded jb kernel source codes from opensource.samsung.com. When I try to build it, I stuck at error:
from arch/arm/mach-ux500/pm/suspend.c:13:
arch/arm/mach-ux500/pm/suspend.c: In function ‘ux500_suspend_init’:
arch/arm/mach-ux500/include/mach/id.h:68:13: error: inlining failed in call to always_inline ‘cpu_is_u9500’: function body not available
arch/arm/mach-ux500/pm/suspend.c:295:18: error: called from here
make[2]: *** [arch/arm/mach-ux500/pm/suspend.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CC kernel/sched.o
make[1]: *** [arch/arm/mach-ux500/pm] Error 2
make: *** [arch/arm/mach-ux500] Error 2
Click to expand...
Click to collapse
Did someone succesfully build it? Or have advice to resolve this error?

Related

error building kernel

Hi guys first of all HI TO EVERYBODY!!!!
I'm new to this forum and hope you will help me....
I recently bought a brand new phone, an LG-P990.
I would like to build my personal rom and kernel so I followed this guide
http://forum.xda-dev...d.php?t=1104523
and all went ok but when I saw that there were not any kernel source code in it I decided also to follow the following
http://wiki.cyanogen...nel_from_source
but when I finally launch the compilation with:
make ARCH=arm CROSS_COMPILE=$CCOMPILER -j`grep 'processor' /proc/cpuinfo | wc -l`
after few minutes I have the following error message:
http://pastebin.com/z5udP72j
how to fix it???
thank you in advance,
Matteo
84matte84 said:
Hi guys first of all HI TO EVERYBODY!!!!
I'm new to this forum and hope you will help me....
I recently bought a brand new phone, an LG-P990.
I would like to build my personal rom and kernel so I followed this guide
http://forum.xda-dev...d.php?t=1104523
and all went ok but when I saw that there were not any kernel source code in it I decided also to follow the following
http://wiki.cyanogen...nel_from_source
but when I finally launch the compilation with:
make ARCH=arm CROSS_COMPILE=$CCOMPILER -j`grep 'processor' /proc/cpuinfo | wc -l`
after few minutes I have the following error message:
http://pastebin.com/z5udP72j
how to fix it???
thank you in advance,
Matteo
Click to expand...
Click to collapse
what is the definition of the $CCOMPILER ?
vadonka said:
what is the definition of the $CCOMPILER ?
Click to expand...
Click to collapse
as stated in the guide...the CCOMPILER is
CCOMPILER=${HOME}/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
Try compile with another toolchain? Linaro?
Sent from my LG-P990 using XDA App
fajarep said:
Try compile with another toolchain? Linaro?
Click to expand...
Click to collapse
why not....but how to do that????
if you have a recent version of ubunut/debian try this:
apt-get update
apt-get install gcc-arm-linux-gnueabi
then define the CCOMPILER like this:
CCOMPILER=arm-linux-gnueabi-
fajarep said:
Try compile with another toolchain? Linaro?
Click to expand...
Click to collapse
I tried with
CCOMPILER="/home/matteo/android/system/prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-
but I have another error now
drivers/mmc/host/sdhci.c: In function 'sdhci_suspend_host':
drivers/mmc/host/sdhci.c:1652: error: too few arguments to function 'mmc_suspend_host'
make[3]: *** [drivers/mmc/host/sdhci.o] Error 1
make[2]: *** [drivers/mmc/host] Error 2
make[1]: *** [drivers/mmc] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
what to do now??? changing toolchain until find a working one?
vadonka said:
if you have a recent version of ubunut/debian try this:
apt-get update
apt-get install gcc-arm-linux-gnueabi
then define the CCOMPILER like this:
CCOMPILER=arm-linux-gnueabi-
Click to expand...
Click to collapse
same error with gnueabi
drivers/mmc/host/sdhci.c: In function ‘sdhci_suspend_host’:
drivers/mmc/host/sdhci.c:1652:2: error: too few arguments to function ‘mmc_suspend_host’
include/linux/mmc/host.h:285:12: note: declared here
make[3]: *** [drivers/mmc/host/sdhci.o] Error 1
make[2]: *** [drivers/mmc/host] Error 2
make[1]: *** [drivers/mmc] Error 2
make: *** [drivers] Error 2
84matte84 said:
same error with gnueabi
drivers/mmc/host/sdhci.c: In function ‘sdhci_suspend_host’:
drivers/mmc/host/sdhci.c:1652:2: error: too few arguments to function ‘mmc_suspend_host’
include/linux/mmc/host.h:285:12: note: declared here
make[3]: *** [drivers/mmc/host/sdhci.o] Error 1
make[2]: *** [drivers/mmc/host] Error 2
make[1]: *** [drivers/mmc] Error 2
make: *** [drivers] Error 2
Click to expand...
Click to collapse
what kernel source you have?
vadonka said:
what kernel source you have?
Click to expand...
Click to collapse
following the guide I pulled the kernel from the device...
however in the .config I have the following
"Linux/arm 2.6.37.6 Kernel Configuration"
So i think 2.6.37.6
84matte84 said:
following the guide I pulled the kernel from the device...
however in the .config I have the following
"Linux/arm 2.6.37.6 Kernel Configuration"
So i think 2.6.37.6
Click to expand...
Click to collapse
Is note the same as the device because my device has a
2.6.32.49-cyanogenmode kernel...
84matte84 said:
following the guide I pulled the kernel from the device...
however in the .config I have the following
"Linux/arm 2.6.37.6 Kernel Configuration"
So i think 2.6.37.6
Click to expand...
Click to collapse
how can you pulled the kernel source from the device?
Are you have the cyanogenmod source? or miui or else?
i suggest that pull the latest cm kernel from the cyanogenmod github.
vadonka said:
how can you pulled the kernel source from the device?
Are you have the cyanogenmod source? or miui or else?
i suggest that pull the latest cm kernel from the cyanogenmod github.
Click to expand...
Click to collapse
Sorry I did not pulled the kernel source but the kernel config as suggested in the tutorial...
I'm working with cyanogenmod source following the cyanogenmod wiki tutorial here
http://wiki.cyanogenmod.com/wiki/Building_Kernel_from_source
84matte84 said:
Sorry I did not pulled the kernel source but the kernel config as suggested in the tutorial...
I'm working with cyanogenmod source following the cyanogenmod wiki tutorial here
http://wiki.cyanogenmod.com/wiki/Building_Kernel_from_source
Click to expand...
Click to collapse
apt-get update
apt-get install git
git clone git://github.com/CyanogenMod/lge-kernel-star.git
then try with this source
vadonka said:
apt-get update
apt-get install git
git clone git://github.com/CyanogenMod/lge-kernel-star.git
then try with this source
Click to expand...
Click to collapse
this time the kernel compile without problems...now how to load it in the phone? Can I continue following the cyanogenmod wiki???
thank you for your help...
84matte84 said:
this time the kernel compile without problems...now how to load it in the phone? Can I continue following the cyanogenmod wiki???
thank you for your help...
Click to expand...
Click to collapse
I'm sorry if im raw, but why you deal with this? if you dont make any change in the kernel source just use the precompiled cm7 kernel.
im not exactly understand your motive.
vadonka said:
I'm sorry if im raw, but why you deal with this? if you dont make any change in the kernel source just use the precompiled cm7 kernel.
im not exactly understand your motive.
Click to expand...
Click to collapse
This is my first step...for now I need to build an unchanged source and load it on my phone....after when I will able to load a compiled kernel in the phone correctly I will need to modify it...for my university studies...
but because of is the first time I'm asking you the correct steps because I don't want to brik the phone
84matte84 said:
but because of is the first time I'm asking you the correct steps because I don't want to brik the phone
Click to expand...
Click to collapse
i understand.
in that case the kernel zimage in the "/arch/arm/boot" directory.
you also need to copy all file what have the ".ko" extension (modules)
you need to write a kernel installer cwm script, or use someone else script.
you can use my script: https://github.com/vadonka/kernel-installer
if you have some linux shell scripting knowledge you will understand this

Help for kexec

Hi:
I have a XOLO X900, and I want to try kexec to switch kernel,
and I heard there is already a kexec in /system/bin directory in RAZR I Jelly Bean update
I've tried to use bspatch to unpack kexec from RAZR I Jelly Bean update file,
but it comes out with an invalid kexec binary file
so could u do me a favor to share /system/bin/kexec binary file of Jelly Bean?
Really thanks
Regards
qexing said:
Hi:
I have a XOLO X900, and I want to try kexec to switch kernel,
and I heard there is already a kexec in /system/bin directory in RAZR I Jelly Bean update
I've tried to use bspatch to unpack kexec from RAZR I Jelly Bean update file,
but it comes out with an invalid kexec binary file
so could u do me a favor to share /system/bin/kexec binary file of Jelly Bean?
Really thanks
Regards
Click to expand...
Click to collapse
It's easier if you compile Kexec for your particular device. Search in google for kexec source code, make changes to fits to your device and compile it.
Enviado desde mi XT890 usando Tapatalk 2

[Solved] ChameleonOS-janice compiled, but wifi issue!

Hi guys,
i'm a new member and i've read forum rules, this is my first post, i hope i'm posting to the right section. I'm trying to build ChameleonOS from source for our device, after 7 hours everytime i get two errors saying "vibrator.c:76: error: undefined reference to "sendit"" and "vibrator.c:81: error: undefined reference to "sendit"", then the build stops with Error 1. I'm using Lubuntu 13.04 with ChaOS repo and Team Canjica's repos: device, vendor, kernel, libhardware and libhardware_legacy, i followed this guide: http://forum.xda-developers.com/showthread.php?t=2351504. Seems that these errors are related to libhardware_legacy's vibrator.c, i attach the image of the error in this post. Thanks
P.S. Sorry for my bad english, i'm Italian
EDIT: For error I made post #5 instead of edit this, sorry! :angel:
No one can help me? Also only to ignore the errors and continue the build, if there's a way, instead of automatically stop it. In this case I can extract libhardware_legacy.so from CM10.1's flashable zip and put it in builded ChaOS's flashable zip.
Add ifdef to the original vibrator c file
Sent from my GT-I9070 using Tapatalk 4
Shaaan said:
Add ifdef to the original vibrator c file
Sent from my GT-I9070 using Tapatalk 4
Click to expand...
Click to collapse
In which part of file I have to add it?
[HELP] ChameleonOS-janice compiled, but wifi issue!
Now I have compiled ChameleonOS for janice, everything works fine but low incall volume bug, same as CM, and wifi doesn't turn on with compiled boot.img... I've tested it with CM10.1 build 20130923's boot.img and wifi works, but in this way loses the customizations and possibility to use integrated theme manager, which are the strong point of this rom. When this problem will be resolved I share the rom in devs section. Any help will be appreciated
Tesla-MADAL93 said:
Now I have compiled ChameleonOS for janice, everything works fine but low incall volume bug, same as CM, and wifi doesn't turn on with compiled boot.img... I've tested it with CM10.1 build 20130923's boot.img and wifi works, but in this way loses the customizations and possibility to use integrated theme manager, which are the strong point of this rom. When this problem will be resolved I share the rom in devs section. Any help will be appreciated
Click to expand...
Click to collapse
compile again with our updated sources
Sent from my GT-S5367 using xda app-developers app
frapeti said:
compile again with our updated sources
Sent from my GT-S5367 using xda app-developers app
Click to expand...
Click to collapse
Okay, sources updated, now I'm rebuilding
EDIT: Recompiled, now wifi works

[Q] Kernel compiling

Hello everyone, I'm a noob that want try to learn something more about Android.
I'm trying to compile the Optimus-prime kernel of Demetris, but I'm stuck on an error during compile session.
My steps:
1) git init -u git://github.com/Ntemis/lge-kernel-p880
2) downloaded NDK from google http://dl.google.com/android/ndk/android-ndk-r9c-linux-x86.tar.bz2
(I'm using Slackware 14.1 32 bit)
3) I've used as baseconfig this one : cyanogenmod_x3_defconfig
4) then as toolchain :
Code:
export CROSS_COMPILE=~/ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-
5)finally I did
Code:
make -j2 ARCH=arm SUBARCH=arm
Now the error:
Code:
CC arch/arm/mach-tegra/lge/x3/board-x3-i2c-dev.o
arch/arm/mach-tegra/lge/x3/board-x3-i2c-dev.c:58:27: fatal error: board-lge-nfc.h: No such file or directory
compilation terminated.
make[2]: *** [arch/arm/mach-tegra/lge/x3/board-x3-i2c-dev.o] Errore 1
make[1]: *** [arch/arm/mach-tegra/lge/x3] Errore 2
make: *** [arch/arm/mach-tegra] Errore 2
The include file board-lge-nfc.h is present in the same folder of board-x3-i2c-dev.c
Where is the error?
are you sure the cross compile path points to the correct directory?
try using doomlord toolchain, kernel compiling is quite tricky and most toolchains give errors
Poi se vuoi se ne parla in pvt
Rudjgaard said:
are you sure the cross compile path points to the correct directory?
try using doomlord toolchain, kernel compiling is quite tricky and most toolchains give errors
Poi se vuoi se ne parla in pvt
Click to expand...
Click to collapse
Hi,
I have only the official NDK on my machine. Anyway I'll try also that doomlord toolchain
Thx for the hint. :good:
I've tried DoomLord's toolchain,but I have the same problem.
So I've tried to download Iodak's sources and I'm been able to compile it without any problem.
Is there a problem with Optimus Prime sources?Is there some special trick?
Well, I've found a solution....
It looks like there is some problem with include path.I've moved the "board-lge-nfc.h" file inside the include folder in the main root of the kernel sources and it worked.
Now I'm stuck with tspdrv. Same story: missing files when they are there instead. I did the same trick with another include file and it worked again, but now I have other missing files.
I'm sure there is something wrong in my setup/sources ...
bilbo75 said:
Well, I've found a solution....
It looks like there is some problem with include path.I've moved the "board-lge-nfc.h" file inside the include folder in the main root of the kernel sources and it worked.
Now I'm stuck with tspdrv. Same story: missing files when they are there instead. I did the same trick with another include file and it worked again, but now I have other missing files.
I'm sure there is something wrong in my setup/sources ...
Click to expand...
Click to collapse
Simply just cherry-pick this commit and you'll be fine
https://github.com/laufersteppenwolf/lge-kernel-p880/commit/c2e57252398ded9520beb9382f538da53f9a0199
I think this will help you
https://github.com/iodak/LG_X3_P880_v20a/commit/6f2086454d537c6f49038f36d6eeddbe4adcd70a
Also look at other commits on this page when you get into problems.
https://github.com/iodak/LG_X3_P880_v20a/commits/master?page=9
Sent from my LG-P880 using xda app-developers app
Wow! Thanks you very much for your help guys! :highfive:
Now I have to study cherry-picking
bilbo75 said:
Wow! Thanks you very much for your help guys! :highfive:
Now I have to study cherry-picking
Click to expand...
Click to collapse
One of the best ( if not the best) git(hub) tuts on xda: http://forum.xda-developers.com/showthread.php?t=1877040
everything's covered, and even git noobs ( such as I am ) can easily understand it
You have to:
git fetch https://iodak/LG_X3_P880_20a
Then wait for a while
Then git cherry-pick 6f2086454d537c6f49038f36d6eeddbe4adcd70a
Commit that you want.
Sent from my LG-P880 using xda app-developers app
I'm amazed from your kindness guys!
A big thanks again! :victory:

[Q] Can someone help with this compiling error

hey guys,, i have been asking questions everywhere and no body seems to want to help with is really dissapointing to knoiw that a comunity driven website isnt willing to help anyone,, anyway im trying to compile aosp for my device and its always coming up with
make: *** No rule to make target `out/target/product/i9305/kernel', needed by `out/target/product/i9305/boot.img'. Stop.
make: *** Waiting for unfinished jobs....
it seems to me that its trying to build the boot.img before the kernel is compiled
Same here. but I try to create the KERNEL folder in that path, the build continue...
I have everything needed to compile. All the kernel sources are there, correct Def Config and paths. It just won't build the kernel
Sent from my GT-I9305 using XDA Free mobile app
$(warning * See wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building)
Note that we stuck at the kernel building, so we look into what was going on there. In the kernel building task I notice that something seems to be depreciate(d), no idea on whats going on on this depreciation, what is "integrated_kernel_building", no idea after reading the doc.
That's about cyanogenmod integration. I was trying to build aosp
Sent from my GT-I9305 using XDA Free mobile app
I don't know... I used to build aosp on 4.04 and 4.1
Sent from my GT-I9305 using XDA Free mobile app

Categories

Resources