[Q] Another compiling question - kernels - Verizon Samsung Galaxy S 4

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...

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.

[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

[Q] Syntax error: "(" unexpected scripts/kconfig/conf --silentoldconfig Kconfig

[Q] Syntax error: "(" unexpected scripts/kconfig/conf --silentoldconfig Kconfig
Trying to compile kernel for my tab but gettings this error
Tried make clean
Tried mrproper
Also checked toolchain path 100 times
Code:
[email protected](none) ~/kernel $ make willow_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/media/video/samsung/mali/Kconfig:18:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:22:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:26:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:30:warning: choice value used outside its choice group
#
# configuration written to .config
#
[email protected](none) ~/kernel $ export CROSS_COMPILE=/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-
[email protected](none) ~/kernel $ export ARCH=arm
[email protected](none) ~/kernel $ make -j4
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/media/video/samsung/mali/Kconfig:18:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:22:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:26:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:30:warning: choice value used outside its choice group
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
ALPS IF Driver build option : -DACC_10BIT -DMAG_15BIT
CC scripts/mod/empty.o
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/Makefile.build:305: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 2
scripts/Makefile.build:441: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:515: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
Any?
blttalas said:
Trying to compile kernel for my tab but gettings this error
Tried make clean
Tried mrproper
Also checked toolchain path 100 times
Code:
[email protected](none) ~/kernel $ make willow_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/media/video/samsung/mali/Kconfig:18:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:22:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:26:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:30:warning: choice value used outside its choice group
#
# configuration written to .config
#
[email protected](none) ~/kernel $ export CROSS_COMPILE=/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-
[email protected](none) ~/kernel $ export ARCH=arm
[email protected](none) ~/kernel $ make -j4
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/media/video/samsung/mali/Kconfig:18:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:22:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:26:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:30:warning: choice value used outside its choice group
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
ALPS IF Driver build option : -DACC_10BIT -DMAG_15BIT
CC scripts/mod/empty.o
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/Makefile.build:305: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 2
scripts/Makefile.build:441: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:515: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Try to use another versions of toolchain.

Trying to build a kernel

I am trying to build a kernel for moto g 2014 based on cm source.
Code:
[email protected]:~/kernelmoto$ export ARCH=arm
[email protected]:~/kernelmoto$ export CROSS_COMPILER=~/android/arm-cortex_a7-linux/arm-cortex_a7-linux-gnueabihf-
[email protected]:~/kernelmoto$ make titan_defconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
#
# configuration written to .config
#
[email protected]:~/kernelmoto$ make -j6
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
CHK include/linux/version.h
CC scripts/mod/empty.o
gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-mno-thumb-interwork’
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 1
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:515: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
[email protected]:~/kernelmoto$
what am I missing, I am using the linaro toolchain. How do I fix these errors?

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

Categories

Resources