I'm trying to compile a kernel for my Neo V.
But it stops at error.
Error:
Code:
ARCH=arm CROSS_COMPILE=/host/arm/bin/arm-none-linux-gnueabi- make
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
scripts/mod/modpost.c: In function ‘get_markers’:
scripts/mod/modpost.c:1562:12: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
scripts/mod/modpost.c: In function ‘add_marker’:
scripts/mod/modpost.c:1982:10: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
scripts/kallsyms.c: In function ‘read_symbol’:
scripts/kallsyms.c:112:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
HOSTCC scripts/conmakehash
HOSTCC scripts/bin2c
CC init/main.o
In file included from include/linux/mempolicy.h:62:0,
from init/main.c:52:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: error: variable 'c' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
Error at Last line.
Why this happening?
I followed the Sony Ericsson Tutorial.
svprm said:
I'm trying to compile a kernel for my Neo V.
But it stops at error.
Error:
Code:
ARCH=arm CROSS_COMPILE=/host/arm/bin/arm-none-linux-gnueabi- make
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
scripts/mod/modpost.c: In function ‘get_markers’:
scripts/mod/modpost.c:1562:12: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
scripts/mod/modpost.c: In function ‘add_marker’:
scripts/mod/modpost.c:1982:10: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
scripts/kallsyms.c: In function ‘read_symbol’:
scripts/kallsyms.c:112:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
HOSTCC scripts/conmakehash
HOSTCC scripts/bin2c
CC init/main.o
In file included from include/linux/mempolicy.h:62:0,
from init/main.c:52:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: error: variable 'c' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
Error at Last line.
Why this happening?
I followed the Sony Ericsson Tutorial.
Click to expand...
Click to collapse
gcc and make need to be a certain version. What OS are you running?
Ubuntu 11.10
Sent from my MT11i using XDA App
I met the same issue in the few days ago.
But these issues had been resolved as follow solution:
1. Remove the -Wall argument in the Kernel/ Makefile
2. Copy the cc1 from eabi tool chain sub folder libexec/gcc/arm-none-eabi/4.6.1
(OR, you can create the soft link from libexec/gcc/arm-none-eabi/4.6.1 to current working directory)
Kernel Compilation error.
Hi All,
I have an LG O2X, and trying to compile stock kernel.
But while compiling i am facing the following error.
[email protected]:/home/kartik/Desktop/DriodKernel/kernel# make ARCH=arm CROSS_COMPILE=/home/kartik/Desktop/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
<command-line>: error: macro names must be identifiers
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
PLzzz help.
Hi,
I am trying To build a Custom Kernel But seems there many errors found, specially cant able to find Lianaro toolchain for cortex a7.
cortex a15 giving some error ,like this " you choose the correct path/some time different after figured the path". so if possible link me to the cortex a7 toolchain and help needed as necessary .
@Shivam Kuchhal , @cybojenix , @newhor1z0n , @xperiafan13 , @Falcon G @varun.chitre15
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Code:
[email protected]:~$ cd android
[email protected]:~/android$ cd kernel
[email protected]:~/android/kernel$ export ARCH=arm
[email protected]:~/android/kernel$ export CROSS_COMPILE=~/android/toolchains/cortex15/bin/arm-eabi-
[email protected]:~/android/kernel$ make msm8610_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
[email protected]:~/android/kernel$ make -j1
scripts/kconfig/conf --silentoldconfig Kconfig
WRAP arch/arm/include/generated/asm/auxvec.h
WRAP arch/arm/include/generated/asm/bitsperlong.h
WRAP arch/arm/include/generated/asm/cputime.h
WRAP arch/arm/include/generated/asm/emergency-restart.h
WRAP arch/arm/include/generated/asm/errno.h
WRAP arch/arm/include/generated/asm/ioctl.h
WRAP arch/arm/include/generated/asm/irq_regs.h
WRAP arch/arm/include/generated/asm/kdebug.h
WRAP arch/arm/include/generated/asm/local.h
WRAP arch/arm/include/generated/asm/local64.h
WRAP arch/arm/include/generated/asm/percpu.h
WRAP arch/arm/include/generated/asm/poll.h
WRAP arch/arm/include/generated/asm/resource.h
WRAP arch/arm/include/generated/asm/sections.h
WRAP arch/arm/include/generated/asm/siginfo.h
WRAP arch/arm/include/generated/asm/sizes.h
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
/home/lino/android/toolchains/cortex15/bin/arm-eabi-gcc -Wp,-MD,kernel/.bounds.s.d -nostdinc -isystem /home/lino/android/toolchains/cortex15/bin/arm-eabi-gcc -print-file-name=include [Errno 8] Exec format error -I/home/lino/android/kernel/arch/arm/include -Iarch/arm/include/generated -Iinclude -include /home/lino/android/kernel/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-msm/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -fomit-frame-pointer -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(bounds) -DKBUILD_MODNAME=KBUILD_STR(bounds) -fverbose-asm -S -o kernel/bounds.s kernel/bounds.c [Errno 8] Exec format error
make[1]: *** [kernel/bounds.s] Error 8
make: *** [prepare0] Error 2
EDIT:- tried with other toolchains, seems same error, so i think i am missing something. please figure it out
Regards,
Rajit Saha
No one ..
As expected :thumbup:
Sent from my XT1022 using XDA Free mobile app
I am too getting same error
TheStrix said:
I am too getting same error
Click to expand...
Click to collapse
Hmm seems no one cares for us
EDit:- 1st issue fixed.. Use 64bit ubuntu
Now getting this error
Code:
[email protected]:~$ cd android
[email protected]:~/android$ make clean
make: *** No rule to make target `clean'. Stop.
[email protected]:~/android$ cd kernel
[email protected]:~/android/kernel$ make clean
CLEAN .
CLEAN kernel
CLEAN security/selinux
CLEAN usr
CLEAN .tmp_versions
[email protected]:~/android/kernel$ export ARCH=arm
[email protected]:~/android/kernel$ export CROSS_COMPILE=~/android/toolchains/bin/arm-eabi-
[email protected]:~/android/kernel$ make -j1
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/basic/fixdep
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
HOSTCC scripts/dtc/checks.o
HOSTCC scripts/dtc/data.o
HOSTCC scripts/dtc/dtc-lexer.lex.o
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTCC scripts/dtc/dtc.o
HOSTCC scripts/dtc/flattree.o
HOSTCC scripts/dtc/fstree.o
HOSTCC scripts/dtc/livetree.o
HOSTCC scripts/dtc/srcpos.o
HOSTCC scripts/dtc/treesource.o
HOSTCC scripts/dtc/util.o
HOSTLD scripts/dtc/dtc
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/genksyms/lex.lex.o
HOSTCC scripts/genksyms/parse.tab.o
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/kallsyms
HOSTCC scripts/conmakehash
HOSTCC scripts/bin2c
CC init/main.o
CHK include/generated/compile.h
CC init/version.o
CC init/do_mounts.o
CC init/do_mounts_rd.o
CC init/do_mounts_initrd.o
LD init/mounts.o
CC init/initramfs.o
CC init/calibrate.o
LD init/built-in.o
HOSTCC usr/gen_init_cpio
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
CC arch/arm/vfp/vfpmodule.o
AS arch/arm/vfp/entry.o
AS arch/arm/vfp/vfphw.o
CC arch/arm/vfp/vfpsingle.o
CC arch/arm/vfp/vfpdouble.o
LD arch/arm/vfp/vfp.o
LD arch/arm/vfp/built-in.o
CC arch/arm/kernel/elf.o
AS arch/arm/kernel/entry-armv.o
AS arch/arm/kernel/entry-common.o
CC arch/arm/kernel/irq.o
CC arch/arm/kernel/opcodes.o
CC arch/arm/kernel/process.o
CC arch/arm/kernel/ptrace.o
CC arch/arm/kernel/return_address.o
arch/arm/kernel/return_address.c:62:2: warning: #warning "TODO: return_address should use unwind tables" [-Wcpp]
#warning "TODO: return_address should use unwind tables"
^
CC arch/arm/kernel/sched_clock.o
CC arch/arm/kernel/setup.o
CC arch/arm/kernel/signal.o
CC arch/arm/kernel/stacktrace.o
CC arch/arm/kernel/sys_arm.o
CC arch/arm/kernel/time.o
CC arch/arm/kernel/traps.o
CC arch/arm/kernel/cpuidle.o
CC arch/arm/kernel/armksyms.o
CC arch/arm/kernel/module.o
AS arch/arm/kernel/sleep.o
CC arch/arm/kernel/suspend.o
CC arch/arm/kernel/smp.o
CC arch/arm/kernel/smp_tlb.o
CC arch/arm/kernel/smp_scu.o
CC arch/arm/kernel/arch_timer.o
CC arch/arm/kernel/kprobes.o
CC arch/arm/kernel/kprobes-common.o
CC arch/arm/kernel/patch.o
CC arch/arm/kernel/kprobes-arm.o
CC arch/arm/kernel/unwind.o
CC arch/arm/kernel/devtree.o
CC arch/arm/kernel/swp_emulate.o
CC arch/arm/kernel/hw_breakpoint.o
CC arch/arm/kernel/pmu.o
CC arch/arm/kernel/perf_event.o
CC arch/arm/kernel/topology.o
CC arch/arm/kernel/io.o
LD arch/arm/kernel/built-in.o
AS arch/arm/kernel/head.o
CC arch/arm/kernel/init_task.o
LDS arch/arm/kernel/vmlinux.lds
CC arch/arm/mm/dma-mapping.o
CC arch/arm/mm/extable.o
CC arch/arm/mm/fault.o
CC arch/arm/mm/init.o
CC arch/arm/mm/iomap.o
CC arch/arm/mm/fault-armv.o
CC arch/arm/mm/flush.o
CC arch/arm/mm/idmap.o
CC arch/arm/mm/ioremap.o
CC arch/arm/mm/mmap.o
CC arch/arm/mm/pgd.o
CC arch/arm/mm/mmu.o
CC arch/arm/mm/vmregion.o
CC arch/arm/mm/proc-syms.o
CC arch/arm/mm/alignment.o
AS arch/arm/mm/abort-ev7.o
AS arch/arm/mm/pabort-v7.o
AS arch/arm/mm/cache-v7.o
CC arch/arm/mm/copypage-v6.o
CC arch/arm/mm/context.o
AS arch/arm/mm/tlb-v7.o
AS arch/arm/mm/proc-v7.o
LD arch/arm/mm/built-in.o
CC arch/arm/common/gic.o
CC arch/arm/common/cpaccess.o
LD arch/arm/common/built-in.o
LD arch/arm/net/built-in.o
CC arch/arm/mach-msm/io.o
CC arch/arm/mach-msm/dma.o
CC arch/arm/mach-msm/memory.o
CC arch/arm/mach-msm/clock.o
CC arch/arm/mach-msm/clock-voter.o
CC arch/arm/mach-msm/clock-dummy.o
CC arch/arm/mach-msm/clock-generic.o
CC arch/arm/mach-msm/modem_notifier.o
CC arch/arm/mach-msm/board-dt.o
CC arch/arm/mach-msm/acpuclock.o
CC arch/arm/mach-msm/clock-a7.o
CC arch/arm/mach-msm/perf_trace_counters.o
AS arch/arm/mach-msm/headsmp.o
CC arch/arm/mach-msm/platsmp.o
CC arch/arm/mach-msm/hotplug.o
AS arch/arm/mach-msm/idle-v7.o
CC arch/arm/mach-msm/smd.o
CC arch/arm/mach-msm/smd_debug.o
CC arch/arm/mach-msm/remote_spinlock.o
/tmp/ccCzaDZp.s: Assembler messages:
/tmp/ccCzaDZp.s:169: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccCzaDZp.s:196: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
CC arch/arm/mach-msm/smd_private.o
CC arch/arm/mach-msm/smem.o
CC arch/arm/mach-msm/smd_init_dt.o
arch/arm/mach-msm/smd_init_dt.c:24:25: fatal error: smd_private.h: No such file or directory
#include <smd_private.h>
^
compilation terminated.
make[1]: *** [arch/arm/mach-msm/smd_init_dt.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
[email protected]:~/android/kernel$
Edit 2:-
Code:
CC drivers/char/adsprpc.o
LD drivers/char/built-in.o
CC [M] drivers/char/rdbg.o
CC drivers/clk/clkdev.o
LD drivers/clk/built-in.o
LD drivers/clocksource/built-in.o
CC drivers/cpufreq/cpufreq.o
CC drivers/cpufreq/cpu-boost.o
CC drivers/cpufreq/cpufreq_stats.o
CC drivers/cpufreq/cpufreq_performance.o
CC drivers/cpufreq/cpufreq_powersave.o
CC drivers/cpufreq/cpufreq_userspace.o
CC drivers/cpufreq/cpufreq_ondemand.o
CC drivers/cpufreq/cpufreq_conservative.o
CC drivers/cpufreq/cpufreq_interactive.o
drivers/cpufreq/cpufreq_interactive.c: In function ‘show_target_loads’:
drivers/cpufreq/cpufreq_interactive.c:813:6: warning: operation on ‘ret’ may be undefined [-Wsequence-point]
error, forbidden warning: cpufreq_interactive.c:813
make[2]: *** [drivers/cpufreq/cpufreq_interactive.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2
Click to expand...
Click to collapse
Fixed
finally able to make a zImage..
so I put it into boot.img but after flashing Bootup failed
Fastboot reason: Fall-through from normal boot mode. did I missed anything??
plaese help @Shivam Kuchhal , @cybojenix , @newhor1z0n , @xperiafan13 , @Falcon G @savoca @varun.chitre15
rajit said:
finally able to make a zImage..
so I put it into boot.img but after flashing Bootup failed
Fastboot reason: Fall-through from normal boot mode. did I missed anything??
plaese help @Shivam Kuchhal , @cybojenix , @newhor1z0n , @xperiafan13 , @Falcon G @varun.chitre15
Click to expand...
Click to collapse
Wrong packaging/ramdisk it seems.
Shivam Kuchhal said:
Wrong packaging/ramdisk it seems.
Click to expand...
Click to collapse
can you link me any helpful post?
i am using cygwin kitchen to extract and repack kernel. and the wlan module seems huge size.almost 36mb so can can you help me in that? :silly:
rajit said:
can you link me any helpful post?
i am using cygwin kitchen to extract and repack kernel. and the wlan module seems huge size.almost 36mb so can can you help me in that? :silly:
Click to expand...
Click to collapse
https://github.com/shivamk11/android_kernel_motorola_stock/blob/condor/build-gcc.sh
https://github.com/shivamk11/android_kernel_motorola_stock/blob/condor/build-gcc4.7.sh
https://github.com/shivamk11/android_kernel_motorola_stock/blob/condor/build-linaro4.8.sh
https://github.com/shivamk11/android_kernel_motorola_stock/blob/condor/build-linaro4.9.sh
These are my build scripts, you can modify any of them to work for you. You just need to change paths for defconfig, kernel directory and toolchain etc. Also change path for packing tools too and put ramdisk folder in kernel directory. It will take a bit of a time to understand but its worth it.
Shivam Kuchhal said:
https://github.com/shivamk11/android_kernel_motorola_stock/blob/condor/build-gcc.sh
https://github.com/shivamk11/android_kernel_motorola_stock/blob/condor/build-gcc4.7.sh
https://github.com/shivamk11/android_kernel_motorola_stock/blob/condor/build-linaro4.8.sh
https://github.com/shivamk11/android_kernel_motorola_stock/blob/condor/build-linaro4.9.sh
These are my build scripts, you can modify any of them to work for you. You just need to change paths for defconfig, kernel directory and toolchain etc. Also change path for packing tools too and put ramdisk folder in kernel directory. It will take a bit of a time to understand but its worth it.
Click to expand...
Click to collapse
Thnxz buddy,, actually i am total noob in kernel dev...... can you please elaborate ? i mean what i have to do after getting zimage .. i can cross compile with toolchians and all the path ? and in the config folder there two msm8610 config.. 1st. msm8610_defconfig 2nd msm8610-perf_defconfig .. which one should i choose? :silly:
Click 'Dev Resources' to get an idea of how newer qcom kernels are made.
http://forum.xda-developers.com/one...ent/kernel-furnace-1-0-0-oneplus-one-t2817651
Correct offsets/values can be found by digging around github.
savoca said:
Click 'Dev Resources' to get an idea of how newer qcom kernels are made.
http://forum.xda-developers.com/one...ent/kernel-furnace-1-0-0-oneplus-one-t2817651
Correct offsets/values can be found by digging around github.
Click to expand...
Click to collapse
unpacked boot.img with this
To unpack:
Code:
mkdir output
./unpackbootimg -i boot.img -o output
Click to expand...
Click to collapse
then changed boot.img-zImage
and repack it with
Code:
./mkbootimg --kernel output/boot.img-zImage --ramdisk output/boot.img-ramdisk.[COLOR="Red"]gz[/COLOR] --cmdline "console=ttyHSL0,115200,n8 androidboot.hardware=bacon user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3" --base 0x00000000 --pagesize 2048 --ramdisk_offset 0x02000000 --tags_offset 0x01e00000 --dt output/boot.img-dt -o boot.img
Click to expand...
Click to collapse
Result:- stuck on moto LOGO :silly:
havenot pushed the Module
I said correct offsets and values can be found on github. Obviously a 1+1 kernel won't boot on condor.
Code:
[email protected]:~/android/kernel$ ./build-linaro4.9.sh
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
arch/arm/configs/phantom_defconfig:117:warning: override: reassigning to symbol XFRM_USER
arch/arm/configs/phantom_defconfig:278:warning: override: reassigning to symbol PPP
arch/arm/configs/phantom_defconfig:279:warning: override: reassigning to symbol PPP_BSDCOMP
arch/arm/configs/phantom_defconfig:280:warning: override: reassigning to symbol PPP_DEFLATE
arch/arm/configs/phantom_defconfig:282:warning: override: reassigning to symbol PPP_ASYNC
arch/arm/configs/phantom_defconfig:284:warning: override: reassigning to symbol PPPOLAC
arch/arm/configs/phantom_defconfig:285:warning: override: reassigning to symbol PPPOPNS
arch/arm/configs/phantom_defconfig:286:warning: override: reassigning to symbol PPP_MPPE
arch/arm/configs/phantom_defconfig:446:warning: override: reassigning to symbol SCSI
arch/arm/configs/phantom_defconfig:447:warning: override: reassigning to symbol SCSI_TGT
arch/arm/configs/phantom_defconfig:448:warning: override: reassigning to symbol BLK_DEV_SD
arch/arm/configs/phantom_defconfig:449:warning: override: reassigning to symbol CHR_DEV_SG
arch/arm/configs/phantom_defconfig:450:warning: override: reassigning to symbol CHR_DEV_SCH
arch/arm/configs/phantom_defconfig:451:warning: override: reassigning to symbol SCSI_MULTI_LUN
arch/arm/configs/phantom_defconfig:452:warning: override: reassigning to symbol SCSI_CONSTANTS
arch/arm/configs/phantom_defconfig:453:warning: override: reassigning to symbol SCSI_SCAN_ASYNC
arch/arm/configs/phantom_defconfig:469:warning: override: reassigning to symbol USB_USBNET
arch/arm/configs/phantom_defconfig:567:warning: override: reassigning to symbol SECURITY
arch/arm/configs/phantom_defconfig:568:warning: override: reassigning to symbol AUDIT
arch/arm/configs/phantom_defconfig:569:warning: override: reassigning to symbol SECURITY_NETWORK
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: Nothing to be done for `arch/arm/boot/dtbs'.
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
GZIP kernel/config_data.gz
CHK kernel/config_data.h
Kernel: arch/arm/boot/Image is ready
Building modules, stage 2.
MODPOST 10 modules
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
CAT arch/arm/boot/zImage-dtb
Kernel: arch/arm/boot/zImage-dtb is ready
Copying modules
rm: cannot remove ‘/home/leno/android/modules/*’: No such file or directory
Stripping modules for size
./build-linaro4.9.sh: line 26: /home/leno/scripts/dtbTool: No such file or directory
error: could not load device tree image 'dt.img'
Build completed in 0 minute(s) and 21 seconds.
HAve a look @Shivam Kuchhal @savoca
rajit said:
Code:
[email protected]:~/android/kernel$ ./build-linaro4.9.sh
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
arch/arm/configs/phantom_defconfig:117:warning: override: reassigning to symbol XFRM_USER
arch/arm/configs/phantom_defconfig:278:warning: override: reassigning to symbol PPP
arch/arm/configs/phantom_defconfig:279:warning: override: reassigning to symbol PPP_BSDCOMP
arch/arm/configs/phantom_defconfig:280:warning: override: reassigning to symbol PPP_DEFLATE
arch/arm/configs/phantom_defconfig:282:warning: override: reassigning to symbol PPP_ASYNC
arch/arm/configs/phantom_defconfig:284:warning: override: reassigning to symbol PPPOLAC
arch/arm/configs/phantom_defconfig:285:warning: override: reassigning to symbol PPPOPNS
arch/arm/configs/phantom_defconfig:286:warning: override: reassigning to symbol PPP_MPPE
arch/arm/configs/phantom_defconfig:446:warning: override: reassigning to symbol SCSI
arch/arm/configs/phantom_defconfig:447:warning: override: reassigning to symbol SCSI_TGT
arch/arm/configs/phantom_defconfig:448:warning: override: reassigning to symbol BLK_DEV_SD
arch/arm/configs/phantom_defconfig:449:warning: override: reassigning to symbol CHR_DEV_SG
arch/arm/configs/phantom_defconfig:450:warning: override: reassigning to symbol CHR_DEV_SCH
arch/arm/configs/phantom_defconfig:451:warning: override: reassigning to symbol SCSI_MULTI_LUN
arch/arm/configs/phantom_defconfig:452:warning: override: reassigning to symbol SCSI_CONSTANTS
arch/arm/configs/phantom_defconfig:453:warning: override: reassigning to symbol SCSI_SCAN_ASYNC
arch/arm/configs/phantom_defconfig:469:warning: override: reassigning to symbol USB_USBNET
arch/arm/configs/phantom_defconfig:567:warning: override: reassigning to symbol SECURITY
arch/arm/configs/phantom_defconfig:568:warning: override: reassigning to symbol AUDIT
arch/arm/configs/phantom_defconfig:569:warning: override: reassigning to symbol SECURITY_NETWORK
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: Nothing to be done for `arch/arm/boot/dtbs'.
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
GZIP kernel/config_data.gz
CHK kernel/config_data.h
Kernel: arch/arm/boot/Image is ready
Building modules, stage 2.
MODPOST 10 modules
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
CAT arch/arm/boot/zImage-dtb
Kernel: arch/arm/boot/zImage-dtb is ready
Copying modules
rm: cannot remove ‘/home/leno/android/modules/*’: No such file or directory
Stripping modules for size
./build-linaro4.9.sh: line 26: /home/leno/scripts/dtbTool: No such file or directory
error: could not load device tree image 'dt.img'
Build completed in 0 minute(s) and 21 seconds.
HAve a look @Shivam Kuchhal @savoca
Click to expand...
Click to collapse
./build-linaro4.9.sh: line 26: /home/leno/scripts/dtbTool: No such file or directory
Click to expand...
Click to collapse
You need dtbTool.
http://savoca.codefi.re/dev-resources/x86/
savoca said:
You need dtbTool.
http://savoca.codefi.re/dev-resources/x86/
Click to expand...
Click to collapse
I have checked that folder .. dtbTool is there so
Do you have gcc-multilib installed?
savoca said:
Do you have gcc-multilib installed?
Click to expand...
Click to collapse
this one na ?
Code:
sudo apt-get install gcc-4.3-multilib g++-4.3-multilib
error shows
Code:
[email protected]:~$ sudo apt-get install gcc-4.3-multilib g++-4.3-multilib
[sudo] password for leno:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gcc-4.3-multilib
E: Couldn't find any package by regex 'gcc-4.3-multilib'
E: Unable to locate package g++-4.3-multilib
E: Couldn't find any package by regex 'g++-4.3-multilib'
[email protected]:~$
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Here is my build script , each and everything in right folder. & also I have tried to change the location of dtbTool but the same , i think i should give up
here is my build script
Code:
#!/bin/bash
TOOLCHAIN="/home/leno/android/toolchains/bin/arm-eabi"
MODULES_DIR="/home/leno/android/modules"
ZIMAGE="/home/leno/android/kernel/arch/arm/boot/zImage"
KERNEL_DIR="/home/leno/android/kernel"
MKBOOTIMG="/home/leno/boot-tools-falcon/tools/mkbootimg"
MKBOOTFS="/home/leno/boot-tools-falcon/tools/mkbootfs"
DTBTOOL="/home/leno/boot-tools-falcon/tools/dtbTool"
DTBTOOLCM="/home/leno/boot-tools-falcon/tools/dtbToolCM"
BUILD_START=$(date +"%s")
if [ -a $ZIMAGE ];
then
rm $ZIMAGE
rm $MODULES_DIR/*
fi
make ARCH=arm CROSS_COMPILE=$TOOLCHAIN- msm8610_defconfig
make ARCH=arm CROSS_COMPILE=$TOOLCHAIN- -j8
if [ -a $ZIMAGE ];
then
echo "Copying modules"
rm $MODULES_DIR/*
find . -name '*.ko' -exec cp {} $MODULES_DIR/ \;
cd $MODULES_DIR
echo "Stripping modules for size"
$TOOLCHAIN-strip --strip-unneeded *.ko
cd $KERNEL_DIR
$DTBTOOL -o dt.img -s 2048 -p scripts/dtc/ arch/arm/boot/
$MKBOOTFS ramdisk/ > $KERNEL_DIR/ramdisk.cpio
cat $KERNEL_DIR/ramdisk.cpio | gzip > $KERNEL_DIR/root.fs
$MKBOOTIMG --kernel $ZIMAGE --ramdisk $KERNEL_DIR/root.fs --pagesize 2048 --base 0x10000000 --cmdline 'console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 vmalloc=400M utags.blkdev=/dev/block/platform/msm_sdcc.1/by-name/utags' --dt dt.img -o $KERNEL_DIR/boot.img
BUILD_END=$(date +"%s")
DIFF=$(($BUILD_END - $BUILD_START))
echo "Build completed in $(($DIFF / 60)) minute(s) and $(($DIFF % 60)) seconds."
else
echo "Compilation failed! Fix the errors!"
fi
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Finally got dt.img and zImage .. now??
@savoca
unpack code
Code:
mkdir output
./unpackbootimg -i boot.img -o output
Click to expand...
Click to collapse
repack code
Code:
./mkbootimg --kernel output/boot.img-zImage --ramdisk output/boot.img-ramdisk.gz --dt output/dt.img --cmdline "console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 utags.blkdev=/dev/block/platform/msm_sdcc.1/by-name/utags vmalloc=400M" --base 0x00000000 --pagesize 2048 --ramdisk_offset 0x01000000 --tags_offset 0x00000100 --dt output/boot.img-dt -o leno_boot.img
Click to expand...
Click to collapse
Click to expand...
Click to collapse
correct me please and also tell me how to repack
its pretty Strange that the kernel still nowt booting .. no modification yet .. anyhelp ? devices boot loop after flashing kernel
savoca said:
Do you have gcc-multilib installed?
Click to expand...
Click to collapse
I tried every possible way.. but the kernel never get booted.. no modification simple as stock. tried with your new kernel flasher. but still no help .
I have try compiling Cyanogenmod 11.0 kernel for galaxy s4 I9505 and nexus 7 2012 wifi and on both i am getting two different errors which i cant find a fix for.
Nexus 7
Code:
CC drivers/cpuidle/governors/menu.o
drivers/cpuidle/governors/menu.c:128:12: warning: ‘get_loadavg’ defined but not used [-Wunused-function]
static int get_loadavg(void)
^
LD drivers/cpuidle/governors/built-in.o
LD drivers/cpuidle/built-in.o
LD drivers/crypto/built-in.o
CC drivers/dma/dmaengine.o
LD drivers/dma/built-in.o
CC [M] drivers/dma/timb_dma.o
In file included from include/linux/dmaengine.h:24:0,
from drivers/dma/timb_dma.c:23:
drivers/dma/timb_dma.c: In function ‘td_tx_status’:
drivers/dma/timb_dma.c:523:18: error: ‘last_complete’ undeclared (first use in this function)
__func__, ret, last_complete, last_used);
^
include/linux/device.h:876:41: note: in definition of macro ‘dev_dbg’
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^
drivers/dma/timb_dma.c:523:18: note: each undeclared identifier is reported only once for each function it appears in
__func__, ret, last_complete, last_used);
^
include/linux/device.h:876:41: note: in definition of macro ‘dev_dbg’
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^
drivers/dma/timb_dma.c:523:33: error: ‘last_used’ undeclared (first use in this function)
__func__, ret, last_complete, last_used);
^
include/linux/device.h:876:41: note: in definition of macro ‘dev_dbg’
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^
drivers/dma/timb_dma.c:513:24: warning: unused variable ‘td_chan’ [-Wunused-variable]
struct timb_dma_chan *td_chan =
^
drivers/dma/timb_dma.c: In function ‘td_prep_slave_sg’:
drivers/dma/timb_dma.c:565:25: warning: comparison between ‘enum dma_data_direction’ and ‘enum dma_transfer_direction’ [-Wenum-compare]
if (td_chan->direction != direction) {
^
make[2]: *** [drivers/dma/timb_dma.o] Error 1
make[1]: *** [drivers/dma] Error 2
make: *** [drivers] Error 2
Galaxy S4 I9505
Code:
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
GEN include/generated/bounds.h
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/user/SAMSUNG/arch/arm/include/asm/io.h:30:26: fatal error: mach/msm_rtb.h: No such file or directory
#include <mach/msm_rtb.h>
^
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
Hi guys,
I'm building dorimanX kernel for the samsung galaxy s2 and I've update the interactive CPU governor. The problem is that the CPU governor fails to compile with the following error:
Code:
GCC 4.9.X Compiler Detected, building
not dorimanx system detected, setting 4 build threads
removing old temp initramfs_source
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
Building modules, stage 2.
MODPOST 9 modules
LD [M] drivers/block/eds/eds.ko
LD [M] drivers/net/wireless/bcmdhd/dhd.ko
LD [M] drivers/samsung/fm_si4709/Si4709_driver.ko
LD [M] drivers/scsi/scsi_wait_scan.ko
LD [M] drivers/usb/serial/ftdi_sio.ko
LD [M] drivers/usb/serial/pl2303.ko
LD [M] drivers/usb/serial/usbserial.ko
LD [M] fs/cifs/cifs.ko
LD [M] fs/exfat/exfat.ko
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/fs/exfat/exfat.ko’ -> ‘/tmp/initramfs_source/lib/modules/exfat.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/fs/cifs/cifs.ko’ -> ‘/tmp/initramfs_source/lib/modules/cifs.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/drivers/scsi/scsi_wait_scan.ko’ -> ‘/tmp/initramfs_source/lib/modules/scsi_wait_scan.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/drivers/samsung/fm_si4709/Si4709_driver.ko’ -> ‘/tmp/initramfs_source/lib/modules/Si4709_driver.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/drivers/net/wireless/bcmdhd/dhd.ko’ -> ‘/tmp/initramfs_source/lib/modules/dhd.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/drivers/block/eds/eds.ko’ -> ‘/tmp/initramfs_source/lib/modules/eds.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/drivers/usb/serial/usbserial.ko’ -> ‘/tmp/initramfs_source/lib/modules/usbserial.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/drivers/usb/serial/ftdi_sio.ko’ -> ‘/tmp/initramfs_source/lib/modules/ftdi_sio.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/drivers/usb/serial/pl2303.ko’ -> ‘/tmp/initramfs_source/lib/modules/pl2303.ko’
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/devicetable-offsets.s
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
CHK include/generated/compile.h
GEN usr/initramfs_data.cpio
CC drivers/cpufreq/cpufreq_interactive.o
drivers/cpufreq/cpufreq_interactive.c:135:98: error: static declaration of 'get_cpu_idle_time' follows non-static declaration
static inline cputime64_t get_cpu_idle_time(unsigned int cpu,
^
In file included from drivers/cpufreq/cpufreq_interactive.c:21:0:
include/linux/cpufreq.h:144:5: note: previous declaration of 'get_cpu_idle_time' was here
u64 get_cpu_idle_time(unsigned int cpu, u64 *wall);
^
make[2]: *** [drivers/cpufreq/cpufreq_interactive.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
AS usr/initramfs_data.o
LD usr/built-in.o
real 0m2.600s
user 0m2.171s
sys 0m2.650s
Kernel STUCK in BUILD! no zImage exist
Any ideas?
Thanks, gsstudios
Apparently your get_cpu_idle_time function collides with another one. You need to check if the version declared in the header file is implemented elsewhere or if you are supposed to implement it (without "static" and with the same parameter and return types). If it is implemented elsewhere you need to find out if you can simply use it instead of the inline function or if you need to rename your inline function and its calls.
Hello everyone!
It's quite a while that I'm trying to build an Android kernel (a Samsung I9505 kernel) but I'm always getting some error. I have tried different kernel sources with no success... I always tried to fix the problems by searching in forums or internet in general but since I have not solved the problem I decided to open a Thread by my self. I have tried to build the kernel first without changing the .config file just to test if it completes.
I have:
- Ubuntu 14.04 LTS running on a VM in Windows 10
- the kernel source from Lineage 16.0 github
- linaro toolchain arm-eabi 4.7
And this is what I get by following command procedure:
Code:
[email protected]:~/android_kernel_samsung_jf# export ARCH=arm
[email protected]:~/android_kernel_samsung_jf# export CROSS_COMPILE=/root/arm-eabi-4.7/bin/arm-eabi-
[email protected]:~/android_kernel_samsung_jf# make clean
CLEAN .
CLEAN arch/arm/kernel
CLEAN usr
CLEAN .tmp_versions
[email protected]:~/android_kernel_samsung_jf# make mrproper
CLEAN scripts/basic
CLEAN scripts/genksyms
CLEAN scripts/kconfig
CLEAN scripts/mod
CLEAN scripts/selinux/genheaders
CLEAN scripts/selinux/mdp
CLEAN scripts
CLEAN include/config include/generated arch/arm/include/generated
CLEAN .config .version include/generated/uapi/linux/version.h
[email protected]:~/android_kernel_samsung_jf# make VARIANT_DEFCONFIG=jf_eur_defconfig jf_defconfig SELINUX_DEFCONFIG=selinux_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
arch/arm/configs/jf_defconfig:135:warning: override: reassigning to symbol INET_ESP
arch/arm/configs/jf_defconfig:675:warning: override: reassigning to symbol RFKILL
arch/arm/configs/jf_defconfig:683:warning: override: reassigning to symbol GENLOCK
arch/arm/configs/jf_defconfig:684:warning: override: reassigning to symbol GENLOCK_MISCDEVICE
arch/arm/configs/jf_defconfig:685:warning: override: reassigning to symbol BLK_DEV_LOOP
arch/arm/configs/jf_defconfig:767:warning: override: reassigning to symbol CRYPTO_ANSI_CPRNG
KCONFIG_SELINUX(arch/arm/configs/selinux_defconfig)
arch/arm/configs/selinux_defconfig:1:warning: override: reassigning to symbol EXT2_FS_XATTR
arch/arm/configs/selinux_defconfig:2:warning: override: reassigning to symbol EXT2_FS_SECURITY
arch/arm/configs/selinux_defconfig:3:warning: override: reassigning to symbol EXT4_FS_XATTR
arch/arm/configs/selinux_defconfig:4:warning: override: reassigning to symbol EXT4_FS_SECURITY
arch/arm/configs/selinux_defconfig:5:warning: override: reassigning to symbol AUDIT
arch/arm/configs/selinux_defconfig:13:warning: symbol value 'y' invalid for SECURITY_SELINUX_CHECKREQPROT_VALUE
arch/arm/configs/selinux_defconfig:15:warning: override: reassigning to symbol NF_CONNTRACK_SECMARK
arch/arm/configs/selinux_defconfig:16:warning: override: reassigning to symbol NETFILTER_XT_TARGET_CONNSECMARK
arch/arm/configs/selinux_defconfig:18:warning: override: reassigning to symbol NETFILTER_XT_TARGET_SECMARK
arch/arm/configs/selinux_defconfig:19:warning: override: reassigning to symbol IP_NF_SECURITY
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT(arch/arm/configs/jf_eur_defconfig)
arch/arm/configs/jf_eur_defconfig:4:warning: override: reassigning to symbol FB_MSM_MIPI_SAMSUNG_OCTA_VIDEO_FULL_HD_PT_PANEL
arch/arm/configs/jf_eur_defconfig:5:warning: override: reassigning to symbol LCD_VDD3_BY_PMGPIO
KCONFIG_DEBUG((null))
#
# configuration written to .config
#
[email protected]:~/android_kernel_samsung_jf#
And then
Code:
[email protected]:~/android_kernel_samsung_jf# make
scripts/kconfig/conf --silentoldconfig Kconfig
WRAP arch/arm/include/generated/asm/auxvec.h
WRAP arch/arm/include/generated/asm/bitsperlong.h
WRAP arch/arm/include/generated/asm/cputime.h
WRAP arch/arm/include/generated/asm/emergency-restart.h
WRAP arch/arm/include/generated/asm/errno.h
WRAP arch/arm/include/generated/asm/ioctl.h
WRAP arch/arm/include/generated/asm/irq_regs.h
WRAP arch/arm/include/generated/asm/kdebug.h
WRAP arch/arm/include/generated/asm/local.h
WRAP arch/arm/include/generated/asm/local64.h
WRAP arch/arm/include/generated/asm/percpu.h
WRAP arch/arm/include/generated/asm/poll.h
WRAP arch/arm/include/generated/asm/resource.h
WRAP arch/arm/include/generated/asm/sections.h
WRAP arch/arm/include/generated/asm/siginfo.h
WRAP arch/arm/include/generated/asm/simd.h
WRAP arch/arm/include/generated/asm/sizes.h
WRAP arch/arm/include/generated/asm/unaligned.h
CHK include/generated/uapi/linux/version.h
UPD include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
HOSTCC scripts/genksyms/genksyms.o
SHIPPED scripts/genksyms/lex.lex.c
SHIPPED scripts/genksyms/keywords.hash.c
SHIPPED scripts/genksyms/parse.tab.h
HOSTCC scripts/genksyms/lex.lex.o
SHIPPED scripts/genksyms/parse.tab.c
HOSTCC scripts/genksyms/parse.tab.o
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/kallsyms
HOSTCC scripts/conmakehash
HOSTCC scripts/bin2c
CC init/main.o
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
CC init/do_mounts.o
CC init/do_mounts_rd.o
CC init/do_mounts_initrd.o
LD init/mounts.o
CC init/initramfs.o
CC init/calibrate.o
LD init/built-in.o
HOSTCC usr/gen_init_cpio
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
CC arch/arm/vfp/vfpmodule.o
AS arch/arm/vfp/entry.o
AS arch/arm/vfp/vfphw.o
CC arch/arm/vfp/vfpsingle.o
CC arch/arm/vfp/vfpdouble.o
LD arch/arm/vfp/vfp.o
LD arch/arm/vfp/built-in.o
CC arch/arm/kernel/elf.o
AS arch/arm/kernel/entry-armv.o
AS arch/arm/kernel/entry-common.o
CC arch/arm/kernel/irq.o
CC arch/arm/kernel/opcodes.o
CC arch/arm/kernel/process.o
CC arch/arm/kernel/ptrace.o
CC arch/arm/kernel/return_address.o
CC arch/arm/kernel/sched_clock.o
CC arch/arm/kernel/setup.o
CC arch/arm/kernel/signal.o
CC arch/arm/kernel/stacktrace.o
CC arch/arm/kernel/sys_arm.o
CC arch/arm/kernel/time.o
CC arch/arm/kernel/traps.o
CC arch/arm/kernel/cpuidle.o
CC arch/arm/kernel/armksyms.o
CC arch/arm/kernel/module.o
AS arch/arm/kernel/sleep.o
CC arch/arm/kernel/suspend.o
CC arch/arm/kernel/smp.o
CC arch/arm/kernel/smp_tlb.o
CC arch/arm/kernel/smp_scu.o
CC arch/arm/kernel/unwind.o
CC arch/arm/kernel/swp_emulate.o
CC arch/arm/kernel/hw_breakpoint.o
CC arch/arm/kernel/update_vsyscall_arm.o
CC arch/arm/kernel/pmu.o
CC arch/arm/kernel/perf_event.o
CC arch/arm/kernel/topology.o
CC arch/arm/kernel/io.o
LD arch/arm/kernel/built-in.o
AS arch/arm/kernel/head.o
CC arch/arm/kernel/init_task.o
LDS arch/arm/kernel/vmlinux.lds
CC arch/arm/mm/dma-mapping.o
CC arch/arm/mm/extable.o
CC arch/arm/mm/fault.o
CC arch/arm/mm/init.o
CC arch/arm/mm/iomap.o
CC arch/arm/mm/fault-armv.o
CC arch/arm/mm/flush.o
CC arch/arm/mm/idmap.o
CC arch/arm/mm/ioremap.o
CC arch/arm/mm/mmap.o
CC arch/arm/mm/pgd.o
CC arch/arm/mm/mmu.o
CC arch/arm/mm/vmregion.o
CC arch/arm/mm/proc-syms.o
CC arch/arm/mm/alignment.o
CC arch/arm/mm/highmem.o
AS arch/arm/mm/abort-ev7.o
AS arch/arm/mm/pabort-v7.o
AS arch/arm/mm/cache-v7.o
CC arch/arm/mm/copypage-v6.o
CC arch/arm/mm/context.o
AS arch/arm/mm/tlb-v7.o
AS arch/arm/mm/proc-v7.o
LD arch/arm/mm/built-in.o
CC arch/arm/common/gic.o
CC arch/arm/common/cpaccess.o
LD arch/arm/common/built-in.o
LD arch/arm/net/built-in.o
LD arch/arm/crypto/built-in.o
CC arch/arm/mach-msm/io.o
CC arch/arm/mach-msm/dma.o
CC arch/arm/mach-msm/memory.o
CC arch/arm/mach-msm/timer.o
CC arch/arm/mach-msm/clock.o
CC arch/arm/mach-msm/clock-voter.o
CC arch/arm/mach-msm/clock-dummy.o
CC arch/arm/mach-msm/modem_notifier.o
CC arch/arm/mach-msm/subsystem_map.o
CC arch/arm/mach-msm/acpuclock.o
CC arch/arm/mach-msm/perf_trace_counters.o
arch/arm/mach-msm/perf_trace_counters.c: In function 'tracectr_cpu_hotplug_notifier':
arch/arm/mach-msm/perf_trace_counters.c:32:18: error: 'CPU_TASKS_FROZEN' undeclared (first use in this function)
arch/arm/mach-msm/perf_trace_counters.c:32:18: note: each undeclared identifier is reported only once for each function it appears in
arch/arm/mach-msm/perf_trace_counters.c:32:40: error: 'CPU_STARTING' undeclared (first use in this function)
arch/arm/mach-msm/perf_trace_counters.c: In function 'init_tracecounters':
arch/arm/mach-msm/perf_trace_counters.c:173:2: error: implicit declaration of function 'register_cpu_notifier' [-Werror=implicit-function-declaration]
arch/arm/mach-msm/perf_trace_counters.c: In function 'exit_tracecounters':
arch/arm/mach-msm/perf_trace_counters.c:181:2: error: implicit declaration of function 'unregister_cpu_notifier' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-msm/perf_trace_counters.o] Errore 1
make: *** [arch/arm/mach-msm] Errore 2
[email protected]:~/android_kernel_samsung_jf#
Is it possible that there is a problem in the kernel source?
Please can somebody help me?