[Q]Kernel compiling error.. - Android Q&A, Help & Troubleshooting

Hi guys!
I'm trying to compile a kernel for the Xperia GO. I am using Ubuntu 12.04 because the guide recommended that I use it! Anyway, when I try to get the kernel config, I get the following error ::
Code:
[email protected]:~/kernel$ make ARCH=arm CROSS_COMPILE=arm-eabi- riogrande_lotus_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/input/misc/Kconfig:646:warning: type of 'INPUT_LPS331AP' redefined from 'tristate' to 'boolean'
arch/arm/configs/riogrande_lotus_defconfig:65:warning: override: reassigning to symbol CPU_FREQ_GOV_POWERSAVE
warning: (CW1200) selects CFG80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && (RFKILL || !RFKILL))
warning: (CW1200) selects MAC80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && CFG80211)
warning: (CW1200) selects CFG80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && (RFKILL || !RFKILL))
warning: (CW1200) selects MAC80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && CFG80211)
#
# configuration written to .config
#
I don't know what is wrong, but I have installed all the mentioned packages mentioned in the tutorial.. What might be the problem?

bump :/

Related

need help with compiling kernel (boot.img) for xperia p

I am trying to make a kernel / boot.img from the sony open source packages
what I already did
downloaded the packages from sony xperia p Open source archive for build 6.1.B.0.544
downloaded compiled toolchain from doomlord (arm-eabi-4.4.3)
I get this error what do I have to do?
Code:
[email protected]:~/android/6.1.B.0.544/kernel# ARCH=arm CROSS_COMPILE=toolchain/arm-eabi-4.4.3/bin/arm-eabi- make
riogrande_nypon_defconfig
drivers/input/misc/Kconfig:646:warning: type of 'INPUT_LPS331AP' redefined from 'tristate' to 'boolean'
warning: (CW1200) selects CFG80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && (RFKILL || !RFKILL))
warning: (CW1200) selects MAC80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && CFG80211)
warning: (CW1200) selects CFG80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && (RFKILL || !RFKILL))
warning: (CW1200) selects MAC80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && CFG80211)
#
# configuration written to .config
#
[email protected]:~/android/6.1.B.0.544/kernel#
hagen.von.tronje said:
I am trying to make a kernel / boot.img from the sony open source packages
what I already did
downloaded the packages from sony xperia p Open source archive for build 6.1.B.0.544
downloaded compiled toolchain from doomlord (arm-eabi-4.4.3)
I get this error what do I have to do?
Code:
[email protected]:~/android/6.1.B.0.544/kernel# ARCH=arm CROSS_COMPILE=toolchain/arm-eabi-4.4.3/bin/arm-eabi- make
riogrande_nypon_defconfig
drivers/input/misc/Kconfig:646:warning: type of 'INPUT_LPS331AP' redefined from 'tristate' to 'boolean'
warning: (CW1200) selects CFG80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && (RFKILL || !RFKILL))
warning: (CW1200) selects MAC80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && CFG80211)
warning: (CW1200) selects CFG80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && (RFKILL || !RFKILL))
warning: (CW1200) selects MAC80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && CFG80211)
#
# configuration written to .config
#
[email protected]:~/android/6.1.B.0.544/kernel#
Click to expand...
Click to collapse
I've tried this and had no issues.
Go to step 5 to get the right commands to execute.
I really recommend you to read it, I had no idea about building kernels from source, after I read it I was able to build my kernel image and zRam but was never able to come up with the resulting kernel.elf or kernel.img because I was using the wrong addresses in the final step. And I wasn't able to find the right address :-/

can't figure out the errors..

hi to all of you..
i have a big problem, oh i guess not so big to you..
i try to compile a source code that i get from codeaurora and its just a branch of jb.. but along the way i had experience a error that i can't figure out why...
can someone help me fix this problem step by step?...
i will post the log that terminal shows error
Code:
[email protected]:~/cm10# make msm7627a_defconfig
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM7X27 && ARCH_MSM8960 && ARCH_MSM8930 && ARCH_MSM8625) selects DONT_MAP_HOLE_AFTER_MEMBANK0 which has unmet direct dependencies (SPARSEMEM)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM7X27 && ARCH_MSM8960 && ARCH_MSM8930 && ARCH_MSM8625) selects DONT_MAP_HOLE_AFTER_MEMBANK0 which has unmet direct dependencies (SPARSEMEM)
#
# configuration written to .config
#
after that.. i ignore that warning... and i continue to run make command
and when building there is another error
Code:
[email protected]:~/cm10# make
scripts/kconfig/conf --silentoldconfig Kconfig
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM7X27 && ARCH_MSM8960 && ARCH_MSM8930 && ARCH_MSM8625) selects DONT_MAP_HOLE_AFTER_MEMBANK0 which has unmet direct dependencies (SPARSEMEM)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM7X27 && ARCH_MSM8960 && ARCH_MSM8930 && ARCH_MSM8625) selects DONT_MAP_HOLE_AFTER_MEMBANK0 which has unmet direct dependencies (SPARSEMEM)
include/config/auto.conf: line 621: KERNEL_LOCAL_VERSION: command not found
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
CC arch/arm/mach-msm/qdsp5/audio_ac3.o
arch/arm/mach-msm/qdsp5/audio_ac3.c:189:13: warning: 'audac3_post_event' declared 'static' but never defined [-Wunused-function]
error, forbidden warning: audio_ac3.c:189
make[2]: *** [arch/arm/mach-msm/qdsp5/audio_ac3.o] Error 1
make[1]: *** [arch/arm/mach-msm/qdsp5] Error 2
make: *** [arch/arm/mach-msm] Error 2
[email protected]:~/cm10#
the audio_ac3.o is in attached file.. can someone help me fix this? or just give me a clue. im not a linux pro user,,
btw im already runnin a linux 64bit machine
me too
HIDEatyourside said:
hi to all of you..
i have a big problem, oh i guess not so big to you..
i try to compile a source code that i get from codeaurora and its just a branch of jb.. but along the way i had experience a error that i can't figure out why...
can someone help me fix this problem step by step?...
i will post the log that terminal shows error
Code:
[email protected]:~/cm10# make msm7627a_defconfig
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM7X27 && ARCH_MSM8960 && ARCH_MSM8930 && ARCH_MSM8625) selects DONT_MAP_HOLE_AFTER_MEMBANK0 which has unmet direct dependencies (SPARSEMEM)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM7X27 && ARCH_MSM8960 && ARCH_MSM8930 && ARCH_MSM8625) selects DONT_MAP_HOLE_AFTER_MEMBANK0 which has unmet direct dependencies (SPARSEMEM)
#
# configuration written to .config
#
after that.. i ignore that warning... and i continue to run make command
and when building there is another error
Code:
[email protected]:~/cm10# make
scripts/kconfig/conf --silentoldconfig Kconfig
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM7X27 && ARCH_MSM8960 && ARCH_MSM8930 && ARCH_MSM8625) selects DONT_MAP_HOLE_AFTER_MEMBANK0 which has unmet direct dependencies (SPARSEMEM)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM7X27 && ARCH_MSM8960 && ARCH_MSM8930 && ARCH_MSM8625) selects DONT_MAP_HOLE_AFTER_MEMBANK0 which has unmet direct dependencies (SPARSEMEM)
include/config/auto.conf: line 621: KERNEL_LOCAL_VERSION: command not found
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
CC arch/arm/mach-msm/qdsp5/audio_ac3.o
arch/arm/mach-msm/qdsp5/audio_ac3.c:189:13: warning: 'audac3_post_event' declared 'static' but never defined [-Wunused-function]
error, forbidden warning: audio_ac3.c:189
make[2]: *** [arch/arm/mach-msm/qdsp5/audio_ac3.o] Error 1
make[1]: *** [arch/arm/mach-msm/qdsp5] Error 2
make: *** [arch/arm/mach-msm] Error 2
[email protected]:~/cm10#
the audio_ac3.o is in attached file.. can someone help me fix this? or just give me a clue. im not a linux pro user,,
btw im already runnin a linux 64bit machine
Click to expand...
Click to collapse
i met it too. and i got no idea.
The initial warnings "...has unmet direct dependencies..." has nothing to do with the other error for the audio file.
I could get around the "HAVE_HW_BREAKPOINT" myself by going to file "Kconfig" in directory "<mykernel>/arch/arm/". In there (for me) line 31 (select HAVE_HW_BREAKPOINT) was commented out. Removing "#" solved that for me.
Regarding the audio-file-error, that could be due to the used toolchain: If you use a newer one than the code can handle, you will such errors. E.g. I tried using Linaro 4.8 instead of 4.6, thinking newer would be better... Using 4.6.x solved such errors for me.

[DEV][MaclawStudio] 3.0.101 kernel for Xperia Sola

Hello!
This is development thread of 3.0.101 kernel for Xperia Sola.
Latest release: building.
Credits:
Macław
marcin1147
Gava97
munjeni
other guys, who contributed to kernel when it was 3.0.8
If you appreciate our work, please, use thanks button or consider donating to me
Sources are available at:
http://opensource.maclaw.pl/ (direct link)
Kernel haven't been tested on Xperia Sola yet. If you want to compile it, you're using it on your own!
Binary to download is not available yet.
More info about our project: http://maclaw.pl/2013/11/17/xperia-u-kernel-development/
My site: http://maclaw.pl/
Work this Kernel with jb .100?
vom Xperia Sola 4.1.2
shadowfler said:
Work this Kernel with jb .100?
vom Xperia Sola 4.1.2
Click to expand...
Click to collapse
r u blind?
"Kernel haven't been tested on Xperia Sola yet"
"Latest release: building."
"This is development thread"
MEHRDAD595 said:
r u blind?
"Kernel haven't been tested on Xperia Sola yet"
"Latest release: building."
"This is development thread"
Click to expand...
Click to collapse
sorry it got skipped
Dzieki za wsparcie dla lekko wysluzonej juz Soli, wyczekuję dalszych postępów Will this kernel work on CM?
Tapatalk
wohow!! then i can compile it by myself and try it whether it's working or not.
Sry for my question is. This source can work with kitkat so we can compile and port kitkat to our sola
great work
wow this is awsome so the dev can make cm11 for out device
Ok. now the source code of kernal is here.
Waiting patiently for Munjeni to port it on Xperia Sola :highfive:
kacangajaib said:
Ok. now the source code of kernal is here.
Waiting patiently for Munjeni to port it on Xperia Sola :highfive:
Click to expand...
Click to collapse
then the kernel will try to solve those problems that are on the Xsole? Munjeni big boys are waiting for Xsole
thanks
itachilinux said:
wohow!! then i can compile it by myself and try it whether it's working or not.
Click to expand...
Click to collapse
If its compiled and boots on 4.4....please pm me the link....I will try it out too
Kernel
dwaipayanray95 said:
If its compiled and boots on 4.4....please pm me the link....I will try it out too
Click to expand...
Click to collapse
Why not share here then? I'm willing to try aswell...
according to maclaw's web site, WIFI got fixed on xperia U, is this means that we can also fix ours ??
but there is someone who is compiling a kernel for sola???
[email protected]:~/android/kernel$ make ARCH=arm CROSS_COMPILE=/home/garynych/linaro/android-toolchain-eabi/bin/arm-eabi- clean
CLEAN .
CLEAN usr
CLEAN .tmp_versions
[email protected]:~/android/kernel$ make ARCH=arm CROSS_COMPILE=/home/garynych/linaro/android-toolchain-eabi/bin/arm-eabi- menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
scripts/kconfig/lxdialog/textbox.c: В функции «print_line»:
scripts/kconfig/lxdialog/textbox.c:323:9: предупреждение: variable «x» set but not used [-Wunused-but-set-variable]
scripts/kconfig/lxdialog/textbox.c:323:6: предупреждение: variable «y» set but not used [-Wunused-but-set-variable]
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTCC scripts/kconfig/mconf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
warning: (CW1200) selects CFG80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && (RFKILL || !RFKILL))
warning: (CW1200) selects MAC80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && CFG80211)
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
[email protected]:~/android/kernel$ make ARCH=arm CROSS_COMPILE=/home/garynych/linaro/android-toolchain-eabi/bin/arm-eabi-
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
warning: (CW1200) selects CFG80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && (RFKILL || !RFKILL))
warning: (CW1200) selects MAC80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && CFG80211)
warning: (CW1200) selects CFG80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && (RFKILL || !RFKILL))
warning: (CW1200) selects MAC80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && CFG80211)
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `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
HOSTCC scripts/genksyms/lex.o
HOSTCC scripts/genksyms/parse.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/bin2c
HOSTCC scripts/recordmcount
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
CC init/boottime.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
arch/arm/vfp/vfpmodule.c: In function 'vfp_init':
arch/arm/vfp/vfpmodule.c:595:18: error: 'HWCAP_VFPD32' undeclared (first use in this function)
elf_hwcap |= HWCAP_VFPD32;
^
arch/arm/vfp/vfpmodule.c:595:18: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [arch/arm/vfp/vfpmodule.o] Ошибка 1
make: *** [arch/arm/vfp] Ошибка 2
[email protected]:~/android/kernel$
that it does not come out, anyone have thought ...?
PS if i`m make from 3.0.8 ,all ok...tell me what the problem is and how to fix
try build with GCC 4.8 2013-10 & xperiasola_defconfig
UPD ok... another problem
CC arch/arm/mm/cache-l2x0.o
arch/arm/mm/cache-l2x0.c:323:20: warning: 'l2x0_unlock' defined but not used [-Wunused-function]
static void __init l2x0_unlock(__u32 cache_id)
^
LD arch/arm/mm/built-in.o
CC arch/arm/common/gic.o
CC arch/arm/common/boottime.o
LD arch/arm/common/built-in.o
CC arch/arm/mach-ux500/clock.o
CC arch/arm/mach-ux500/cpu.o
In file included from /home/garynych/android/kernel/arch/arm/include/asm/byteorder.h:21:0,
from include/asm-generic/bitops/le.h:5,
from /home/garynych/android/kernel/arch/arm/include/asm/bitops.h:308,
from include/linux/bitops.h:22,
from include/linux/thread_info.h:52,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from include/linux/kobject.h:23,
from include/linux/device.h:17,
from include/linux/platform_device.h:14,
from arch/arm/mach-ux500/cpu.c:8:
arch/arm/mach-ux500/cpu.c: In function 'ux500_init_devices':
arch/arm/mach-ux500/cpu.c:51:32: error: 'L2X0_LOCKDOWN_WAY_D' undeclared (first use in this function)
if (readl_relaxed(l2x0_base + L2X0_LOCKDOWN_WAY_D) & 0xFF)
^
include/linux/byteorder/little_endian.h:33:51: note: in definition of macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
/home/garynych/android/kernel/arch/arm/include/asm/io.h:202:6: note: in expansion of macro '__raw_readl'
__raw_readl(__mem_pci(c))); __v; })
^
/home/garynych/android/kernel/arch/arm/include/asm/io.h:202:18: note: in expansion of macro '__mem_pci'
__raw_readl(__mem_pci(c))); __v; })
^
arch/arm/mach-ux500/cpu.c:51:6: note: in expansion of macro 'readl_relaxed'
if (readl_relaxed(l2x0_base + L2X0_LOCKDOWN_WAY_D) & 0xFF)
^
arch/arm/mach-ux500/cpu.c:51:32: note: each undeclared identifier is reported only once for each function it appears in
if (readl_relaxed(l2x0_base + L2X0_LOCKDOWN_WAY_D) & 0xFF)
^
include/linux/byteorder/little_endian.h:33:51: note: in definition of macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
/home/garynych/android/kernel/arch/arm/include/asm/io.h:202:6: note: in expansion of macro '__raw_readl'
__raw_readl(__mem_pci(c))); __v; })
^
/home/garynych/android/kernel/arch/arm/include/asm/io.h:202:18: note: in expansion of macro '__mem_pci'
__raw_readl(__mem_pci(c))); __v; })
^
arch/arm/mach-ux500/cpu.c:51:6: note: in expansion of macro 'readl_relaxed'
if (readl_relaxed(l2x0_base + L2X0_LOCKDOWN_WAY_D) & 0xFF)
^
arch/arm/mach-ux500/cpu.c:54:32: error: 'L2X0_LOCKDOWN_WAY_I' undeclared (first use in this function)
if (readl_relaxed(l2x0_base + L2X0_LOCKDOWN_WAY_I) & 0xFF)
^
include/linux/byteorder/little_endian.h:33:51: note: in definition of macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
/home/garynych/android/kernel/arch/arm/include/asm/io.h:202:6: note: in expansion of macro '__raw_readl'
__raw_readl(__mem_pci(c))); __v; })
^
/home/garynych/android/kernel/arch/arm/include/asm/io.h:202:18: note: in expansion of macro '__mem_pci'
__raw_readl(__mem_pci(c))); __v; })
^
arch/arm/mach-ux500/cpu.c:54:6: note: in expansion of macro 'readl_relaxed'
if (readl_relaxed(l2x0_base + L2X0_LOCKDOWN_WAY_I) & 0xFF)
^
make[1]: *** [arch/arm/mach-ux500/cpu.o] Ошибка 1
make: *** [arch/arm/mach-ux500] Ошибка 2
[email protected]:~/android/kernel$
Hoping that the kernel gets its first release for Sola next, since its out for XU now with a fix for Wifi.
Dev ur development for S3 mini was amazing,then why can't u do that same for Sony novathor devices?we are waiting....
Sent from my HTC Desire C using xda app-developers app
@New Macław
We really need help in OMX please help us and we will appreciate it and give you proper credits
so can you help us fix it

[HELP]Unable to compile ROM for i9300

Hello, I was trying to compile a ROM for the i9300. I downloaded the sources, the Trees etc. I first ran the . build/envthing.sh (ownrom.sh here), ran "breakfast i9300", then "brunch i9300" and when I ran "make -j4 otapackage", I got this toward the end:
Code:
arch/arm/mach-exynos/Kconfig:875:warning: choice value used outside its choice group
arch/arm/mach-exynos/Kconfig:877:warning: defaults for choice values not supported
make: *** [/media/alectradar/sdb2/Android/out/host/linux-x86/obj/EXECUTABLES/clang-tblgen_intermediates/ClangASTNodesEmitter.o] Error 1
make: *** Waiting for unfinished jobs....
warning: (SEC_MODEM_M0_C2C && SEC_MODEM_M0 && SEC_MODEM_U1 && SEC_MODEM_IRON && SEC_MODEM_T0_TD_DUAL) selects LINK_DEVICE_HSIC which has unmet direct dependencies (MISC_DEVICES && MACH_U1 && SEC_MODEM)
warning: (SEC_MODEM_M0_C2C && SEC_MODEM_M0 && SEC_MODEM_IRON && SEC_MODEM_T0_TD_DUAL) selects UMTS_MODEM_XMM6262 which has unmet direct dependencies (MISC_DEVICES && MACH_U1 && SEC_MODEM)
warning: (SEC_MODEM_M0_C2C && SEC_MODEM_M0 && SEC_MODEM_U1 && SEC_MODEM_IRON && SEC_MODEM_T0_TD_DUAL) selects LINK_DEVICE_HSIC which has unmet direct dependencies (MISC_DEVICES && MACH_U1 && SEC_MODEM)
warning: (SEC_MODEM_M0_C2C && SEC_MODEM_M0 && SEC_MODEM_IRON && SEC_MODEM_T0_TD_DUAL) selects UMTS_MODEM_XMM6262 which has unmet direct dependencies (MISC_DEVICES && MACH_U1 && SEC_MODEM)
#
# configuration written to .config
#
make[1]: Leaving directory `/media/alectradar/sdb2/Android/kernel/samsung/smdk4412'
Could anybody help me? I'm really looking forward to building this.

[Q] Another compiling question - kernels

It seems like I'm stuck in a different difficult situation now. I've been reading through 11 how-to guides on building/compiling a kernel, none of them are the same, but similar--some are missing steps, some have additional steps, some have modified steps, some do things in a different order. Not a single one gets me from start to finish, but picking parts from various guides seems to help me make progress, but I'm still stuck. I'm not a linux guy, I just get by with following directions and a few things I remember from my old job.
My goal is not to be told how to tweak things or change things or add 50 new governors. All I want is some help to successfully make a plain, boring, unmodified, OEM or Cyanogenmod kernel. I'll be happy to flash what I already have on there, the source from Cyanogenmod that I built from, and make no changes to my phone. I just want to be able to build it and flash it without my phone bricking so that I know I'm doing things correctly.
So, I need help at a 10 year old's level. I need to know the steps where I'm unable to read between the lines for things such as "if you make changes to .bashrc, they won't actually take effect until you
Code:
source .bashrc
, which I eventually remembered, fortunately, from the little linux I know. It's those "on Tuesdays, you have to ____ for android builds to work" presumed-knowledge things that are never mentioned in even the "noob-friendly" guides. That's the stuff I need help with, so that I can compile a kernel. Success with the Cyanogenmod build came primarily from the switch to dual-boot, because I may have actually gotten things correct after frankenstein rigging multiple guides/documentation, but VirtualBox completely froze at various hours into the compiling, so I never really knew.
I have the huge NDK source setup.
I have the huge kernel source from Samsung setup.
Everything has the highest level of permissions.
I've done ARCH=arm and export ARCH=arm, and the same for SUBARCH=arm
I've done the PATH stuff two ways for the toolchains, both in .bashrc and through the terminal
I've entered CROSS_COMPILE in two different ways
I've done about 8 or more different make commands (not including clean and mrproper)
I've moved the missing msm_rtb.h file from its other location, but stopped there because I don't want to cherry-pick things like I did with permissions (ended up chmod +777 -R because I got fed up with random permission denied errors)
Other things that I'm having a hard time remembering because I've been working on the kernel stuff for about five straight hours
I believe I'm supposed to only use jf_vzw_defconfig, but some guides mention additional defconfigs
One guide has a step that no others have, and that's the VARIANT_DEFCONFIG and VARIANT_SELINUX or whatever it is command...and it had two things listed for DEFCONFIG, so I got lost there as well
Here are the applicable, android contents of my .bashrc (if you read it and say to yourself "why did he..."--I had to because none of the guides worked for me and I had to follow step 1 from one guide C, step 2 from guide A, and so on):
Code:
# Android tools
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools
export PATH=~/bin:$PATH
export PATH=$PATH:~/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/
PATH=$PATH:~/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
export USE_CCACHE=1
Warning, this is long stuff from the terminal, but it's mostly repetitive (and is a snippet of things I just recently did). I tried different things from different guides in different orders because I can't seem to get any guide to get me to the finish line. If it looks like I did things in the wrong order or things I shouldn't have, it's for two reasons--one is that some guides have things way out of order from others and some have instructions that others don't. I figured if none work, I'll frankenstein the instructions like I had to for the Cyanogenmod build.
Code:
[email protected]:~/android/NC5/Kernel$ ./make_defconfig.sh
Need defconfig file(j1v-perf_defconfig)!
[email protected]:~/android/NC5/Kernel$ make clean
[email protected]:~/android/NC5/Kernel$ make mrproper
[email protected]:~/android/NC5/Kernel$ make maker.config
HOSTCC scripts/basic/fixdep
make[1]: *** No rule to make target `maker.config'. Stop.
make: *** [maker.config] Error 2
[email protected]:~/android/NC5/Kernel$ cd arch/arm/configs/
[email protected]:~/android/NC5/Kernel/arch/arm/configs$ make maker.defconfig
make: Nothing to be done for `maker.defconfig'.
[email protected]:~/android/NC5/Kernel/arch/arm/configs$ cd ..
[email protected]:~/android/NC5/Kernel/arch/arm$ cd ..
[email protected]:~/android/NC5/Kernel/arch$ cd ..
[email protected]:~/android/NC5/Kernel$ make jf_vzw_defconfig
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
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (VMWARE_MVP) selects INET which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects TUN which has unmet direct dependencies (NETDEVICES && NET_CORE)
warning: (VMWARE_MVP) selects IPV6 which has unmet direct dependencies (NET && INET)
warning: (VMWARE_MVP) selects NETFILTER which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[1]: *** [jf_vzw_defconfig] Error 1
make: *** [jf_vzw_defconfig] Error 2
[email protected]:~/android/NC5/Kernel$ make menuconfig
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTCC scripts/kconfig/mconf.o
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
#
# using defaults found in /boot/config-3.16.0-34-generic
#
/boot/config-3.16.0-34-generic:1647:warning: symbol value 'm' invalid for MTD_CMDLINE_PARTS
/boot/config-3.16.0-34-generic:3531:warning: symbol value 'm' invalid for SPI_PXA2XX_PCI
/boot/config-3.16.0-34-generic:3545:warning: symbol value 'm' invalid for SPMI
/boot/config-3.16.0-34-generic:3657:warning: symbol value 'm' invalid for GPIO_UCB1400
/boot/config-3.16.0-34-generic:4118:warning: symbol value 'm' invalid for REGULATOR_88PM8607
/boot/config-3.16.0-34-generic:4177:warning: symbol value 'm' invalid for REGULATOR_TWL4030
/boot/config-3.16.0-34-generic:4404:warning: symbol value 'm' invalid for VIDEO_EM28XX_RC
/boot/config-3.16.0-34-generic:5185:warning: symbol value 'm' invalid for SND_HDA_CODEC_REALTEK
/boot/config-3.16.0-34-generic:5186:warning: symbol value 'm' invalid for SND_HDA_CODEC_ANALOG
/boot/config-3.16.0-34-generic:5187:warning: symbol value 'm' invalid for SND_HDA_CODEC_SIGMATEL
/boot/config-3.16.0-34-generic:5188:warning: symbol value 'm' invalid for SND_HDA_CODEC_VIA
/boot/config-3.16.0-34-generic:5189:warning: symbol value 'm' invalid for SND_HDA_CODEC_HDMI
/boot/config-3.16.0-34-generic:5191:warning: symbol value 'm' invalid for SND_HDA_CODEC_CIRRUS
/boot/config-3.16.0-34-generic:5192:warning: symbol value 'm' invalid for SND_HDA_CODEC_CONEXANT
/boot/config-3.16.0-34-generic:5193:warning: symbol value 'm' invalid for SND_HDA_CODEC_CA0110
/boot/config-3.16.0-34-generic:5194:warning: symbol value 'm' invalid for SND_HDA_CODEC_CA0132
/boot/config-3.16.0-34-generic:5196:warning: symbol value 'm' invalid for SND_HDA_CODEC_CMEDIA
/boot/config-3.16.0-34-generic:5197:warning: symbol value 'm' invalid for SND_HDA_CODEC_SI3054
/boot/config-3.16.0-34-generic:5198:warning: symbol value 'm' invalid for SND_HDA_GENERIC
/boot/config-3.16.0-34-generic:6098:warning: symbol value 'm' invalid for XEN_TMEM
/boot/config-3.16.0-34-generic:7067:warning: symbol value 'm' invalid for NFS_V3
/boot/config-3.16.0-34-generic:7069:warning: symbol value 'm' invalid for NFS_V4
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
#
# configuration written to .config
#
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
[email protected]:~/android/NC5/Kernel$ make -j5 ARCH=arm
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
WRAP arch/arm/include/generated/asm/auxvec.h
WRAP arch/arm/include/generated/asm/cputime.h
WRAP arch/arm/include/generated/asm/bitsperlong.h
WRAP arch/arm/include/generated/asm/errno.h
WRAP arch/arm/include/generated/asm/ioctl.h
WRAP arch/arm/include/generated/asm/emergency-restart.h
WRAP arch/arm/include/generated/asm/kdebug.h
WRAP arch/arm/include/generated/asm/local.h
WRAP arch/arm/include/generated/asm/irq_regs.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
HOSTCC scripts/genksyms/genksyms.o
UPD include/generated/utsrelease.h
CC scripts/mod/empty.o
HOSTCC scripts/selinux/genheaders/genheaders
Generating include/generated/mach-types.h
HOSTCC scripts/mod/mk_elfconfig
CC kernel/bounds.s
SHIPPED scripts/genksyms/lex.lex.c
SHIPPED scripts/genksyms/keywords.hash.c
SHIPPED scripts/genksyms/parse.tab.h
SHIPPED scripts/genksyms/parse.tab.c
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/genksyms/lex.lex.o
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/kallsyms
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/jon8rfc/android/NC5/Kernel/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
make: *** Waiting for unfinished jobs....
HOSTCC scripts/conmakehash
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/genksyms/parse.tab.o
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/recordmcount
HOSTLD scripts/genksyms/genksyms
HOSTLD scripts/mod/modpost
[email protected]:~/android/NC5/Kernel$ chmod +777 -R android-ndk-r10d*
chmod: cannot access ‘android-ndk-r10d*’: No such file or directory
[email protected]:~/android/NC5/Kernel$ chmod +777 -R android-ndk-r10d/* -R
chmod: cannot access ‘android-ndk-r10d/*’: No such file or directory
[email protected]:~/android/NC5/Kernel$ cd ..
[email protected]:~/android/NC5$ chmod +777 -R Kernel/*
[email protected]:~/android/NC5$ chmod +777 -R Kernel*
[email protected]:~/android/NC5$ make clean
make: *** No rule to make target `clean'. Stop.
[email protected]:~/android/NC5$ cd Kernel/
[email protected]:~/android/NC5/Kernel$ make clean
CLEAN .
CLEAN .tmp_versions
[email protected]:~/android/NC5/Kernel$ 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 include/linux/version.h
[email protected]:~/android/NC5/Kernel$ make -j5 ARCH=arm
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
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
[email protected]:~/android/NC5/Kernel$ export CROSS_COMPILE=/home/jon8rfc/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-^C
[email protected]:~/android/NC5/Kernel$ make clean
[email protected]:~/android/NC5/Kernel$ make mrproper
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config include/generated
[email protected]:~/android/NC5/Kernel$ export ARCH=arm
[email protected]:~/android/NC5/Kernel$ sudo make jf_vzw_defconfig
[sudo] password for jon8rfc:
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
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (VMWARE_MVP) selects INET which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects TUN which has unmet direct dependencies (NETDEVICES && NET_CORE)
warning: (VMWARE_MVP) selects IPV6 which has unmet direct dependencies (NET && INET)
warning: (VMWARE_MVP) selects NETFILTER which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[1]: *** [jf_vzw_defconfig] Error 1
make: *** [jf_vzw_defconfig] Error 2
[email protected]:~/android/NC5/Kernel$ sudo make VARIANT_DEFCONFIG=jf_vzw_defconfig SELINUX_DEFCONFIG=selinux_defconfigscripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
[email protected]:~/android/NC5/Kernel$ make clean
[email protected]:~/android/NC5/Kernel$ make mrproper
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config include/generated
[email protected]:~/android/NC5/Kernel$ make mrproper
[email protected]:~/android/NC5/Kernel$ make jf_vzw_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
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (VMWARE_MVP) selects INET which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects TUN which has unmet direct dependencies (NETDEVICES && NET_CORE)
warning: (VMWARE_MVP) selects IPV6 which has unmet direct dependencies (NET && INET)
warning: (VMWARE_MVP) selects NETFILTER which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[1]: *** [jf_vzw_defconfig] Error 1
make: *** [jf_vzw_defconfig] Error 2
[email protected]:~/android/NC5/Kernel$ make VARIANT_DEFCONFIG=jf_vzw_defconfig
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
[email protected]:~/android/NC5/Kernel$ make clean
[email protected]:~/android/NC5/Kernel$ make mrproper
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config include/generated
[email protected]:~/android/NC5/Kernel$ export ARCH=arm
[email protected]:~/android/NC5/Kernel$ export SUBARCH=arm
[email protected]:~/android/NC5/Kernel$ export CROSS_COMPILE=/home/jon8rfc/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-
[email protected]:~/android/NC5/Kernel$ make jf_vzw_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
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (VMWARE_MVP) selects INET which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects TUN which has unmet direct dependencies (NETDEVICES && NET_CORE)
warning: (VMWARE_MVP) selects IPV6 which has unmet direct dependencies (NET && INET)
warning: (VMWARE_MVP) selects NETFILTER which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[1]: *** [jf_vzw_defconfig] Error 1
make: *** [jf_vzw_defconfig] Error 2
[email protected]:~/android/NC5/Kernel$ make menuconfig
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTCC scripts/kconfig/mconf.o
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
#
# using defaults found in /boot/config-3.16.0-34-generic
#
/boot/config-3.16.0-34-generic:1647:warning: symbol value 'm' invalid for MTD_CMDLINE_PARTS
/boot/config-3.16.0-34-generic:3531:warning: symbol value 'm' invalid for SPI_PXA2XX_PCI
/boot/config-3.16.0-34-generic:3545:warning: symbol value 'm' invalid for SPMI
/boot/config-3.16.0-34-generic:3657:warning: symbol value 'm' invalid for GPIO_UCB1400
/boot/config-3.16.0-34-generic:4118:warning: symbol value 'm' invalid for REGULATOR_88PM8607
/boot/config-3.16.0-34-generic:4177:warning: symbol value 'm' invalid for REGULATOR_TWL4030
/boot/config-3.16.0-34-generic:4404:warning: symbol value 'm' invalid for VIDEO_EM28XX_RC
/boot/config-3.16.0-34-generic:5185:warning: symbol value 'm' invalid for SND_HDA_CODEC_REALTEK
/boot/config-3.16.0-34-generic:5186:warning: symbol value 'm' invalid for SND_HDA_CODEC_ANALOG
/boot/config-3.16.0-34-generic:5187:warning: symbol value 'm' invalid for SND_HDA_CODEC_SIGMATEL
/boot/config-3.16.0-34-generic:5188:warning: symbol value 'm' invalid for SND_HDA_CODEC_VIA
/boot/config-3.16.0-34-generic:5189:warning: symbol value 'm' invalid for SND_HDA_CODEC_HDMI
/boot/config-3.16.0-34-generic:5191:warning: symbol value 'm' invalid for SND_HDA_CODEC_CIRRUS
/boot/config-3.16.0-34-generic:5192:warning: symbol value 'm' invalid for SND_HDA_CODEC_CONEXANT
/boot/config-3.16.0-34-generic:5193:warning: symbol value 'm' invalid for SND_HDA_CODEC_CA0110
/boot/config-3.16.0-34-generic:5194:warning: symbol value 'm' invalid for SND_HDA_CODEC_CA0132
/boot/config-3.16.0-34-generic:5196:warning: symbol value 'm' invalid for SND_HDA_CODEC_CMEDIA
/boot/config-3.16.0-34-generic:5197:warning: symbol value 'm' invalid for SND_HDA_CODEC_SI3054
/boot/config-3.16.0-34-generic:5198:warning: symbol value 'm' invalid for SND_HDA_GENERIC
/boot/config-3.16.0-34-generic:6098:warning: symbol value 'm' invalid for XEN_TMEM
/boot/config-3.16.0-34-generic:7067:warning: symbol value 'm' invalid for NFS_V3
/boot/config-3.16.0-34-generic:7069:warning: symbol value 'm' invalid for NFS_V4
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
#
# configuration written to .config
#
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
[email protected]:~/android/NC5/Kernel$ make jf_vzw_defconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (VMWARE_MVP) selects INET which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects TUN which has unmet direct dependencies (NETDEVICES && NET_CORE)
warning: (VMWARE_MVP) selects IPV6 which has unmet direct dependencies (NET && INET)
warning: (VMWARE_MVP) selects NETFILTER which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[1]: *** [jf_vzw_defconfig] Error 1
make: *** [jf_vzw_defconfig] Error 2
[email protected]:~/android/NC5/Kernel$ make VARIANT_DEFCONFIG=jf_vzw_defconfig
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
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
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/jon8rfc/android/NC5/Kernel/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
[email protected]:~/android/NC5/Kernel$ make -j4
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/genksyms/genksyms.o
CC scripts/mod/empty.o
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/selinux/mdp/mdp
SHIPPED scripts/genksyms/lex.lex.c
SHIPPED scripts/genksyms/keywords.hash.c
SHIPPED scripts/genksyms/parse.tab.h
SHIPPED scripts/genksyms/parse.tab.c
HOSTCC scripts/genksyms/lex.lex.o
HOSTCC scripts/kallsyms
HOSTCC scripts/genksyms/parse.tab.o
HOSTCC scripts/mod/modpost.o
make[1]: `include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
HOSTLD scripts/genksyms/genksyms
HOSTCC scripts/conmakehash
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/jon8rfc/android/NC5/Kernel/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
make: *** Waiting for unfinished jobs....
HOSTCC scripts/recordmcount
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
[email protected]:~/android/NC5/Kernel$
Any ideas on what I'm doing wrong, or do you know of a guide that will actually get me from start to finish?
Jon8RFC said:
Any ideas on what I'm doing wrong, or do you know of a guide that will actually get me from start to finish?
Click to expand...
Click to collapse
From the log output it seems you're not defining variant defconfig. Here's one I used for nc5 or maybe it's for mj7 either way you get the picture. Also in the kernel source zip there's a text file that should help you define these.
export PATH=$PATH:~/android/arm-eabi-4.7/bin
export ARCH=arm
export CROSS_COMPILE=arm-eabi-
export PATH=${PATH}:/opt/android-sdk/tools
export PATH=${PATH}:/opt/android-sdk/platform-tools
export PATH=${PATH}:~/bin
#export JAVA_HOME=/usr/lib/jvm/jdk1.7.0
export KERNEL_DIR=`pwd`
export KERNELDIR=$KERNEL_DIR
make ARCH=arm VARIANT_DEFCONFIG=jf_vzw_defconfig SELINUX_DEFCONFIG=selinux_defconfig SELINUX_LOG_DEFCONFIG=selinux_log_defconfig jf_defconfig
make -j8 ARCH=arm zImage
make -j8 ARCH=arm modules
There's likely not a guide on doing this that in depth Samsung Galaxy only, but hope this helps.
Oh and you need to arm-eabi-4.7 or atleast some recent toolchain that you will also need to add to your path for cross compiling
P.S. Nice job with recent questions in Q&A, yours are the first in a long time that one can't find the answer to via googling and/or reading. (thus why I'm answering/trying to help)
Awesome, thanks! I'm getting it to come along now, and I'm just making corrections (fixes, maybe?) as errors come up, because I still can't reach the finish line. I've begun doing make -j1 to see each thing as it pops up and I'm fixing each thing as it happens. I'm stuck with this particular one though, and I've been hunting for a couple of hours to no avail:
Code:
sound/soc/codecs/wcd9310.c: In function 'tabla_codec_remove':
sound/soc/codecs/wcd9310.c:9109:22: warning: iteration 6u invokes undefined behavior [-Waggressive-loop-optimizations]
error, forbidden warning: wcd9310.c:9109
make[3]: *** [sound/soc/codecs/wcd9310.o] Error 1
make[2]: *** [sound/soc/codecs] Error 2
make[1]: *** [sound/soc] Error 2
make: *** [sound] Error 2
I couldn't find anyone with code corrections, just slightly different code which didn't seem to apply. The code which did seem to apply (although it wasn't for the s4), didn't have changes and people just used the same source. I also looked at the MDK source, and it's the same as NC5 (I thought it was an i9505 issue at first from one repository I found, but MDK is the same). Apparently, I need to enable -fno-aggressive-loop-optimizations, I believe. I think? It's supposed to be enabled by default, according to GCC 4.8 documentation as a "new feature" to avoid these issues, but maybe it's not in my case. From the error shown, it looks like -Wno-aggressive-loop-optimizations is in effect, right? I can't figure out how to make GCC use the -fno option though. I'm barely understanding myself, heh, please keep that in mind.
https://android.googlesource.com/toolchain/gcc/+/325a57a9cceb570741de8b68c40f4a72136cc35d/gcc-4.8/NEWS said:
GCC now uses a more aggressive analysis to derive an upper bound for
the number of iterations of loops using constraints imposed by language
standards. This may cause non-conforming programs to no longer work as
expected, such as SPEC CPU 2006 464.h264ref and 416.gamess. A new
option, -fno-aggressive-loop-optimizations, was added to disable this
aggressive analysis. In some loops that have known constant number of
iterations, but undefined behavior is known to occur in the loop before
reaching or during the last iteration, GCC will warn about the
undefined behavior in the loop instead of deriving lower upper bound of
the number of iterations for the loop. The warning can be disabled with
-Wno-aggressive-loop-optimizations.
Click to expand...
Click to collapse
Whew...finally found it, here:
http://forum.xda-developers.com/showpost.php?p=51966700&postcount=5529
I'm still going to post this in the event it's helpful for anyone else. Thanks a lot Surge...I was going crazy until you gave me those new things to put into .bashrc and what commands to actually use. Hopefully I'll get through and zImage will compile and if I can do it without errors, all the better. Thanks again. I really do appreciate it =)
Woohoo! Thanks, Surge =)
Code:
OBJCOPY arch/arm/boot/zImage
/home/jon8rfc/android/Kernel/scripts/mk_fipsbinary.sh arch/arm/boot/zImage
Make kernel fips binary..
Done.
Kernel: arch/arm/boot/zImage is ready
Now, on to modules...

Categories

Resources