[Help] Error while compiling GB Kernel From Source. - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

I am just learning about compiling kernels & adding feature to it (I'm a noob at it)
i figured things out using this tutorial
Everything went fine but during compilation i'm getting the following error.
Code:
[email protected]:~/android/kernel/4.0.2.A.0.84/kernel$ make -j1 ARCH=arm CROSS_COMPILE=arm-linux-androideabi-
scripts/kconfig/conf -s arch/arm/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
Generating include/asm-arm/mach-types.h
CHK include/linux/utsrelease.h
UPD include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
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]
volatile char c;
^
cc1: all warnings being treated as errors
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
I changed nothing in .config, just want to first compile the stock kernel to know how things works.
During menuconfig interface i loaded the .config made previously from source for smultron.
I appreciate help, i want to learn this.
Thanks!

I figured out the above error & made the correction bu now i'm getting this.
Code:
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
arch/arm/boot/compressed/head.S: Assembler messages:
arch/arm/boot/compressed/head.S:363: Warning: (null)
arch/arm/boot/compressed/head.S:444: Warning: (null)
arch/arm/boot/compressed/head.S:465: Warning: (null)
arch/arm/boot/compressed/head.S:484: Warning: (null)
arch/arm/boot/compressed/head.S:492: Warning: (null)
arch/arm/boot/compressed/head.S:783: Warning: (null)
arch/arm/boot/compressed/head.S:822: Warning: (null)
arch/arm/boot/compressed/head.S:823: Warning: (null)
arch/arm/boot/compressed/head.S:870: Warning: (null)
arch/arm/boot/compressed/head.S:877: Warning: (null)
arch/arm/boot/compressed/head.S:885: Warning: (null)
arch/arm/boot/compressed/head.S:896: Warning: (null)
arch/arm/boot/compressed/head.S:910: Warning: (null)
arch/arm/boot/compressed/head.S:942: Warning: (null)
arch/arm/boot/compressed/head.S:944: Warning: (null)
arch/arm/boot/compressed/head.S:945: Warning: (null)
arch/arm/boot/compressed/head.S:952: Warning: (null)
arch/arm/boot/compressed/head.S:984: Warning: (null)
GZIP arch/arm/boot/compressed/piggy.gz
AS arch/arm/boot/compressed/piggy.o
CC arch/arm/boot/compressed/misc.o
LD arch/arm/boot/compressed/vmlinux
arm-linux-androideabi-ld: error: arch/arm/boot/compressed/piggy.o: unknown CPU architecture
make[2]: *** [arch/arm/boot/compressed/vmlinux] Error 1
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
make: *** [zImage] Error 2
[email protected]:~/android/kernel/4.0.2.A.0.84/kernel$

Related

Kernel Compiling Error

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.

[Q] Can anyone help me to Building Kernel[DEV]

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 .

[HELP][KERNEL]Problems in porting interactive CPU governor to kernel

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.

Build kernel error

Hi guys i want make a kernel but when i compile, by an error :
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CALL scripts/checksyscalls.sh
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
CHK include/generated/compile.h
CHK kernel/config_data.h
CC mm/page_alloc.o
mm/page_alloc.c: In function '__rmqueue_cma':
mm/page_alloc.c:1162:12: error: 'struct zone' has no member named 'cma_alloc'
if (!zone->cma_alloc = 0)
^
mm/page_alloc.c:1163:43: error: 'MIGRATE_CMA' undeclared (first use in this function)
page = __rmqueue_smallest(zone, order, MIGRATE_CMA);
^
mm/page_alloc.c:1163:43: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:308: recipe for target 'mm/page_alloc.o' failed
make[1]: *** [mm/page_alloc.o] Error 1
Makefile:825: recipe for target 'mm' failed
make: *** [mm] Error 2
in the file source the fuction __rmqueue_cma is :
static struct page *__rmqueue_cma(struct zone *zone, unsigned int order)
{
struct page *page = 0;
if (IS_ENABLED(CONFIG_CMA))
if (!zone->cma_alloc)
page = __rmqueue_smallest(zone, order, MIGRATE_CMA);
return page;
}
why ?My command to build is:
export ARCH=arm64
export SUBARCH=arm64
export CROSS_COMPILE= "mypwd"/toolchain64/bin/aarch64-linux-android-
Help my please
Up
Up up
Up

[HELP] Compiling android kernel error

So I'm doing this guide (https://forum.xda-developers.com/zenfone2/general/compile-kernel-t3307932) by say99 on how to compile your own kernel and what I've done are the following:
Code:
sudo apt-get update
sudo apt-get install openjdk-8-jdk
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip
export ARCH=x86_64
export CCOMPILE=$CROSS_COMPILE
export CROSS_COMPILE=x86_64-linux-
export PATH=/root/Documents/kernel/x86_64-toolchain-GCC-5.3.0/bin:$PATH
export PATH="${PATH}:/root/Documents/kernel/x86_64-toolchain-GCC-5.3.0/bin"
cd /Documents/kernel/kernel-FlareM-cm-13.0
make menuconfig
./buildzf2
now when I typed in ./buildzf2 it returns with this error:
Code:
script made by eoghan2t7 of xda
say thanks to him if this helped you :)
Current Date : 21-08-2018
Applying Build Settings
Setting CPU Cores/Threads
Setting Version Number
Setting Extra Version
Setting Defconfig
SElinux set to Enforcing
Setting bzImage Location For FlareM kernel By say99 Of XDA (thanks to eoghan2t7)
Enabling Graphite Optimizations
Enviroment Setup Complete Now Moving To Compiling
Cleaning Out Compiled Files
Starting Build Process
.config exists
Continuing To Compiler
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2500:
scripts/kconfig/confdata.c: In function ‘conf_write’:
scripts/kconfig/confdata.c:762:19: warning: ‘%s’ directive writing likely 7 or more bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
sprintf(newname, "%s%s", dirname, basename);
^~~~~~
scripts/kconfig/confdata.c:762:19: note: assuming directive output of 7 bytes
scripts/kconfig/confdata.c:762:2: note: ‘sprintf’ output 1 or more bytes (assuming 4104) into a destination of size 4097
sprintf(newname, "%s%s", dirname, basename);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/kconfig/confdata.c:765:20: warning: ‘.tmpconfig.’ directive writing 11 bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());
^~~~~~~~~~~~~~~~~
scripts/kconfig/confdata.c:765:3: note: ‘sprintf’ output between 13 and 4119 bytes into a destination of size 4097
sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/external_drivers/camera/Kconfig:5:warning: config symbol defined without type
make[1]: Nothing to be done for 'all'.
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
UPD 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]: Nothing to be done for 'relocs'.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC init/version.o
LD init/built-in.o
CC arch/x86/kernel/acpi/cstate.o
CC kernel/sys.o
CC arch/x86/kernel/kprobes/core.o
CC arch/x86/kernel/cpu/intel_cacheinfo.o
CC arch/x86/kernel/kprobes/opt.o
CC arch/x86/kernel/cpu/common.o
CC arch/x86/kernel/kprobes/ftrace.o
arch/x86/kernel/acpi/cstate.c:163:6: error: redefinition of ‘mwait_idle_with_hints’
void mwait_idle_with_hints(unsigned long ax, unsigned long cx)
^
In file included from arch/x86/kernel/acpi/cstate.c:16:0:
/root/Documents/kernel/kernel-FlareM-cm-13.0/arch/x86/include/asm/mwait.h:28:20: note: previous definition of ‘mwait_idle_with_hints’ was here
static inline void mwait_idle_with_hints(unsigned long eax, unsigned long ecx)
^
scripts/Makefile.build:308: recipe for target 'arch/x86/kernel/acpi/cstate.o' failed
make[3]: *** [arch/x86/kernel/acpi/cstate.o] Error 1
scripts/Makefile.build:455: recipe for target 'arch/x86/kernel/acpi' failed
make[2]: *** [arch/x86/kernel/acpi] Error 2
make[2]: *** Waiting for unfinished jobs....
LD arch/x86/kernel/kprobes/built-in.o
CC arch/x86/kernel/cpu/match.o
CC kernel/power/consoleearlysuspend.o
CC arch/x86/kernel/cpu/bugs_64.o
CC arch/x86/kernel/cpu/intel.o
CC kernel/trace/trace.o
CC arch/x86/kernel/cpu/amd.o
kernel/power/consoleearlysuspend.c: In function ‘console_early_suspend’:
kernel/power/consoleearlysuspend.c:28:2: error: implicit declaration of function ‘acquire_console_sem’ [-Werror=implicit-function-declaration]
acquire_console_sem();
^
kernel/power/consoleearlysuspend.c:34:2: error: implicit declaration of function ‘release_console_sem’ [-Werror=implicit-function-declaration]
release_console_sem();
^
cc1: some warnings being treated as errors
scripts/Makefile.build:308: recipe for target 'kernel/power/consoleearlysuspend.o' failed
make[2]: *** [kernel/power/consoleearlysuspend.o] Error 1
scripts/Makefile.build:455: recipe for target 'kernel/power' failed
make[1]: *** [kernel/power] Error 2
make[1]: *** Waiting for unfinished jobs....
CC arch/x86/kernel/cpu/centaur.o
CC arch/x86/kernel/cpu/perf_event.o
CC arch/x86/kernel/cpu/perf_event_amd.o
LD kernel/trace/built-in.o
Makefile:845: recipe for target 'kernel' failed
make: *** [kernel] Error 2
make: *** Waiting for unfinished jobs....
CC arch/x86/kernel/cpu/perf_event_amd_uncore.o
CC arch/x86/kernel/cpu/perf_event_p6.o
CC arch/x86/kernel/cpu/perf_event_knc.o
PASYMS arch/x86/realmode/rm/pasyms.h
LDS arch/x86/realmode/rm/realmode.lds
CC arch/x86/kernel/cpu/perf_event_p4.o
LD arch/x86/realmode/rm/realmode.elf
RELOCS arch/x86/realmode/rm/realmode.relocs
CC arch/x86/kernel/cpu/perf_event_intel_lbr.o
OBJCOPY arch/x86/realmode/rm/realmode.bin
CC arch/x86/kernel/cpu/perf_event_intel_ds.o
AS arch/x86/realmode/rmpiggy.o
CC arch/x86/kernel/cpu/perf_event_intel.o
CC arch/x86/kernel/cpu/perf_event_intel_uncore.o
LD arch/x86/realmode/built-in.o
CC arch/x86/kernel/cpu/mcheck/mce.o
CC arch/x86/kernel/cpu/mtrr/main.o
CC arch/x86/kernel/cpu/mtrr/if.o
CC arch/x86/kernel/cpu/perfctr-watchdog.o
CC arch/x86/kernel/cpu/mcheck/mce_intel.o
CC arch/x86/kernel/cpu/mcheck/mce_amd.o
CC arch/x86/kernel/cpu/mtrr/generic.o
CC arch/x86/kernel/cpu/perf_event_amd_ibs.o
CC arch/x86/kernel/cpu/mcheck/threshold.o
CC arch/x86/kernel/cpu/mcheck/therm_throt.o
CC arch/x86/kernel/cpu/mtrr/cleanup.o
CC arch/x86/kernel/cpu/mcheck/mce-apei.o
CC [M] arch/x86/kernel/cpu/mcheck/mce-inject.o
VDSOSYM arch/x86/vdso/vdso-syms.lds
VDSOSYM arch/x86/vdso/vdsox32-syms.lds
CC arch/x86/kernel/cpu/vmware.o
VDSOSYM arch/x86/vdso/vdso32-int80-syms.lds
VDSOSYM arch/x86/vdso/vdso32-syscall-syms.lds
VDSOSYM arch/x86/vdso/vdso32-sysenter-syms.lds
VDSOSYM arch/x86/vdso/vdso32-syms.lds
LD arch/x86/kernel/cpu/mcheck/built-in.o
CC arch/x86/kernel/cpu/hypervisor.o
LD arch/x86/vdso/built-in.o
CC arch/x86/kernel/cpu/mshyperv.o
LD arch/x86/kernel/cpu/mtrr/built-in.o
LD arch/x86/kernel/cpu/built-in.o
scripts/Makefile.build:455: recipe for target 'arch/x86/kernel' failed
make[1]: *** [arch/x86/kernel] Error 2
Makefile:845: recipe for target 'arch/x86' failed
make: *** [arch/x86] Error 2
arch/x86/boot/bzImage Does Not Exists Please Check For Compile Errors
Now exiting script
anything I could do? Any help would be appreciated.
i have also several problems on galaxy s7 kernel

Categories

Resources