Trying to compile CM for galaxy mega.. - Android Q&A, Help & Troubleshooting

I have a device tree and the kernel source from samsung. However whenever I try to compile the kernel I get the following output...
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/scatterlist.h:10:0,
from include/linux/dma-mapping.h:9,
from arch/arm/kernel/asm-offsets.c:15:
/home/phil/android/kernel/samsung/msm8930-common/arch/arm/include/asm/io.h:30:26: fatal error: mach/msm_rtb.h: No such file or directory
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
Can anyone help with this?
Sent from my GT-I9205 using XDA Premium HD app
Sent from my GT-I9205 using XDA Premium HD app

philicibine said:
I have a device tree and the kernel source from samsung. However whenever I try to compile the kernel I get the following output...
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/scatterlist.h:10:0,
from include/linux/dma-mapping.h:9,
from arch/arm/kernel/asm-offsets.c:15:
/home/phil/android/kernel/samsung/msm8930-common/arch/arm/include/asm/io.h:30:26: fatal error: mach/msm_rtb.h: No such file or directory
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
Can anyone help with this?
Sent from my GT-I9205 using XDA Premium HD app
Sent from my GT-I9205 using XDA Premium HD app
Click to expand...
Click to collapse
Did you find at least a solution for this? i get the same error when i try to compile a kernel

It says that there is no such file or directory, so you could either try to get the file from another kernel source or you could just delete the line which contains the include of the missing file in the arch/arm/include/asm/io.h file.
But maybe it´s just a wrong path, so you should search your kernel source first for the missing file and try to correct the path.

Related

Kernel Compiling Error for Neo V

I followed the Sony Ericsson Tutorial to compile.
I didn't make any change to .config file(semc_hallon_defconfig).
i used this cmd to make
Code:
make -j2
After a long progress,it showed a error:
Code:
CC arch/arm/mach-msm/clock-7x30.o
arch/arm/mach-msm/clock-7x30.c: In function 'msm_clk_soc_init':
arch/arm/mach-msm/clock-7x30.c:1106: error: ri_list causes a section type conflict
make[1]: *** [arch/arm/mach-msm/clock-7x30.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs....
Help me to compile.
I corrected the above problem.
Its due to compiler version problem.
now I made zimage and image .
How to converte it to sin file?
Sent from my MT11i using XDA App

[Q] Compile L9 kernel

I have difficulty to compile the L9 kernel. The terminal output "include/lge/lge_blocking_monitor.h: No such file or directory".
Here is the whole compile log:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
SKIPPED include/generated/compile.h
CC arch/arm/mach-omap2/lge/lge_blocking_monitor.o
arch/arm/mach-omap2/lge/lge_blocking_monitor.c:21:46: error: include/lge/lge_blocking_monitor.h: No such file or directory
make[2]: *** [arch/arm/mach-omap2/lge/lge_blocking_monitor.o] Error 1
make[1]: *** [arch/arm/mach-omap2/lge] Error 2
make: *** [arch/arm/mach-omap2] Error 2
Anyone can give me some help?
amnik said:
I have difficulty to compile the L9 kernel. The terminal output "include/lge/lge_blocking_monitor.h: No such file or directory".
Here is the whole compile log:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
SKIPPED include/generated/compile.h
CC arch/arm/mach-omap2/lge/lge_blocking_monitor.o
arch/arm/mach-omap2/lge/lge_blocking_monitor.c:21:46: error: include/lge/lge_blocking_monitor.h: No such file or directory
make[2]: *** [arch/arm/mach-omap2/lge/lge_blocking_monitor.o] Error 1
make[1]: *** [arch/arm/mach-omap2/lge] Error 2
make: *** [arch/arm/mach-omap2] Error 2
Anyone can give me some help?
Click to expand...
Click to collapse
Does the file exist? Look into the path mentioned. Which toolchain are you using?
Sent from my LG-P760 using xda app-developers app
N00BY0815 said:
Does the file exist? Look into the path mentioned. Which toolchain are you using?
Sent from my LG-P760 using xda app-developers app
Click to expand...
Click to collapse
Should the path " include/lge/lge_blocking_monitor.h" under kernel or somewhere?
I am following the instruction inside the P760 V20B source.
2. Kernel Build
- Untar using following command at the android folder:
tar xvzf LGP760_JB_Kernel.tar.gz
- change directory to kernel root
cd kernel
- make configuration:
make u2_p760_defconfig ARCH=arm
- make kernel zImage:
make ARCH=arm CROSS_COMPILE=../prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- zImage
amnik said:
I have difficulty to compile the L9 kernel. The terminal output "include/lge/lge_blocking_monitor.h: No such file or directory".
Here is the whole compile log:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
SKIPPED include/generated/compile.h
CC arch/arm/mach-omap2/lge/lge_blocking_monitor.o
arch/arm/mach-omap2/lge/lge_blocking_monitor.c:21:46: error: include/lge/lge_blocking_monitor.h: No such file or directory
make[2]: *** [arch/arm/mach-omap2/lge/lge_blocking_monitor.o] Error 1
make[1]: *** [arch/arm/mach-omap2/lge] Error 2
make: *** [arch/arm/mach-omap2] Error 2
Anyone can give me some help?
Click to expand...
Click to collapse
Edit files that give you errors like leg_blocking_monitor.c
Lookup "include/lge/lge_blocking_monitor.h"
and change that to "../include/lge/lge_blocking_monitor.h" or it may be ../../
Several files will have to be modified
edit : #include <../include/lge/lge_blocking_monitor.h>

kernel compile problem need help

i tried to compile using linaro 4.8 toolchain but i always get this error...
[email protected]:/usr/src/kernel# cd Vengeance-Kernel-MSM7x27
[email protected]:/usr/src/kernel/Vengeance-Kernel-MSM7x27# export ARCH=arm
[email protected]:/usr/src/kernel/Vengeance-Kernel-MSM7x27# export CROSS_COMPILE=/usr/src/toolchain/Linaro-Toolchain-4.8/bin/arm-linux-androideabi-
[email protected]:/usr/src/kernel/Vengeance-Kernel-MSM7x27# make
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/usr/src/toolchain/Linaro-Toolchain-4.8/bin/../libexec/gcc/arm-linux-androideabi/4.8.1/cc1: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
PratsPro said:
i tried to compile using linaro 4.8 toolchain but i always get this error...
[email protected]:/usr/src/kernel# cd Vengeance-Kernel-MSM7x27
[email protected]:/usr/src/kernel/Vengeance-Kernel-MSM7x27# export ARCH=arm
[email protected]:/usr/src/kernel/Vengeance-Kernel-MSM7x27# export CROSS_COMPILE=/usr/src/toolchain/Linaro-Toolchain-4.8/bin/arm-linux-androideabi-
[email protected]:/usr/src/kernel/Vengeance-Kernel-MSM7x27# make
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/usr/src/toolchain/Linaro-Toolchain-4.8/bin/../libexec/gcc/arm-linux-androideabi/4.8.1/cc1: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
Click to expand...
Click to collapse
Try this:
sudo apt-get install lib32z1
And restart the build.
eagleeyetom said:
Try this:
sudo apt-get install lib32z1
And restart the build.
Click to expand...
Click to collapse
thanku.....compiled perfectly....just one more question....what r the files associated with clocks?? i have a kernel with oc and one without oc i want to know where the difference lies??
PratsPro said:
thanku.....compiled perfectly....just one more question....what r the files associated with clocks?? i have a kernel with oc and one without oc i want to know where the difference lies??
Click to expand...
Click to collapse
You're welcome It's not that easy, take a look at this commit: https://github.com/DooMLoRD/android...mmit/b572f11485465bc6de36b84270fb8bb0c418b487 to find out more.

Syntax error after repo sync

Hey,
I'm struggling with syntax error after last repo sync of CM11. I didn't have this problem before:
[...]
Using /home/lozohcum/CM11/kernel/sony/msm7x27a as source for kernel
GEN /home/lozohcum/CM11/out/target/product/jlo/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[3]: `include/generated/mach-types.h' is up to date.
/bin/sh: Syntax error: "(" unexpected
make[3]: *** [kernel/bounds.s] Error 2
make[2]: *** [prepare0] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Opuszczenie katalogu `/home/lozohcum/CM11/kernel/sony/msm7x27a'
make: *** [TARGET_KERNEL_BINARIES] Error 2
[email protected]:~/CM11$
Click to expand...
Click to collapse
do you know where is the fine which causes syntax error? I understand that there is randomly added "(" but dunno where I can find it.
Solved:
I was using linaro-4.7-13.04 toolchain to build kernel and that caused the problem.
Can you only explain me why? I want to use linaro toolchains for whole rom

[Q] Driver error while compiling kernel

So guys, I've tried to build my own kernel from johns github sources based on his kool-aid kernel. This happens with the msm8226_defconfig makefile
So I got my sources synced set up this linaro toolchain https://github.com/Christopher83/arm-cortex_a7-linux-gnueabihf-linaro_4.9, got the path set up in bashrc
Code:
#Android Toolchain PATH
export ARCH=arm
export CCOMPILE=$CROSS_COMPILE
export CROSS_COMPILE=arm-cortex_a7-linux-gnueabihf
export PATH=$PATH:/home/steffen/toolchain/bin"
When running
Code:
make ARCH=arm CROSS_COMPILE=arm-cortex_a7-linux-gnueabihf-
It starts compiling and everything seems fine, when it gets to this last part
Code:
CC [M] drivers/mmc/card/mmc_block_test.o
CC drivers/mmc/core/core.o
CC drivers/mmc/core/bus.o
CC drivers/mmc/core/host.o
CC drivers/mmc/core/mmc.o
drivers/mmc/core/mmc.c:1869:12: warning: initialization from incompatible pointer type
error, forbidden warning: mmc.c:1869
make[3]: *** [drivers/mmc/core/mmc.o] Error 1
make[2]: *** [drivers/mmc/core] Error 2
make[1]: *** [drivers/mmc] Error 2
make: *** [drivers] Error 2
It seems to run into a problem with the drivers, tried searching up on the
Code:
drivers/mmc/core/mmc.c:1869:12: warning: initialization from incompatible pointer type
error
part, and only thing actually coming up has been some pastebins etc with the same error log as I got (almost), hoped someone could help out with this?
Also when I try using the g2m_global_com_defconfig instead, I get this at the end
Code:
AR lib/lib.a
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o: In function `video_open':
/home/steffen/kernel_lge_msm8226_g2m/drivers/media/radio/radio-iris.c:5083: undefined reference to `hci_fm_smd_register'
drivers/built-in.o: In function `iris_remove':
/home/steffen/kernel_lge_msm8226_g2m/drivers/media/radio/radio-iris.c:5219: undefined reference to `hci_fm_smd_deregister'
make: *** [.tmp_vmlinux1] Error 1
[email protected]:~/kernel_lge_msm8226_g2m$
Help anyone?
Sorry for this post, got it fixed myself anyways
Sent from my LG-D620 using xda Forum
steffenbakke said:
Sorry for this post, got it fixed myself anyways
Sent from my LG-D620 using xda Forum
Click to expand...
Click to collapse
How you fix it????

Categories

Resources