Hi every body, i'm now building android kernel for SKY-VEGA-S5 phone ( IM-A840S).
I followed these steps on the homepage of SKY .
They're :
1. How to build Kernel source of UI18760_kernel
a.First, Get Toolchain from android git server and etc ¡Š
GCC correct version is arm-eabi-4.4.3
b.modify Makefile
edit "CROSS_COMPILE" to toolchain path ( You downloaded )
ex) CROSS_COMPILE=$(You Download directory)/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
c.make CONFIG_DEBUG_SECTION_MISMATCH=y ARCH=arm msm8960_ef44s_tp20_defconfig
d.make CONFIG_DEBUG_SECTION_MISMATCH=y ARCH=arm
2. Kernel Image Location is arch/arm/boot/zImage
Module Image Location is drivers/*/*.ko
3. How to Clean Kernel object files
a.make ARCH=arm clean
__________________________________________________ ____________________________________
I downloaded the kernel package and extract to the /home folder.
And toolchain ..... /prebuilt folder is also extracted to the /home folder.
I modified Makefile.
CROSS_COMPILE ?=$/home/vip7009pro/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
Then I step by step followed the guide. But i got many error... ( I think the PATH was wrong, but I dont know how to correctly edit it ==' ).
Here they are :
__________________________________________________ ________________________________________
[email protected]:~/kernel$ make CONFIG_DEBUG_SECTION_MISMATCH=y ARCH=arm
"======================LINUX INCLUDE=========================================== ================"
-I/home/vip7009pro/kernel/arch/arm/include -Iarch/arm/include/generated -Iinclude -include include/generated/autoconf.h
"================================================= ============================================="
"KERNEL ================================================== ===================================="
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -DT_EF44S -I ./include/pantech -include ./include/pantech/CUST_PANTECH.h -DFIRM_VER=\"S0215141\" -DSYS_MODEL_NAME=\"EF44S\" -DPANTECH_MODEL_NAME=\"IM-A840S\" -DFS_USER_DATA_VER=37 -DPANTECH_STORAGE_INTERNAL_EMUL -DFEATURE_AARM_RELEASE_MODE -D__KERNELBUILD__
"================================================= ============================================="
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/home/vip7009pro/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc -Wp,-MD,kernel/.bounds.s.d -nostdinc -isystem /home/vip7009pro/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc -print-file-name=include [Errno 13] Permission denied -I/home/vip7009pro/kernel/arch/arm/include -Iarch/arm/include/generated -Iinclude -include include/generated/autoconf.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-msm/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -DT_EF44S -I ./include/pantech -include ./include/pantech/CUST_PANTECH.h -DFIRM_VER="S0215141" -DSYS_MODEL_NAME="EF44S" -DPANTECH_MODEL_NAME="IM-A840S" -DFS_USER_DATA_VER=37 -DPANTECH_STORAGE_INTERNAL_EMUL -DFEATURE_AARM_RELEASE_MODE -D__KERNELBUILD__ -O2 -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 -march=armv5t -Wa,-march=armv7-a -msoft-float -Uarm -fomit-frame-pointer -g -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(bounds) -DKBUILD_MODNAME=KBUILD_STR(bounds) -fverbose-asm -S -o kernel/bounds.s kernel/bounds.c [Errno 13] Permission denied
make[1]: *** [kernel/bounds.s] Error 13
make: *** [prepare0] Error 2
[email protected]:~/kernel$
Probably your toolchain binaries are just not marked executable, try
Code:
chmod 755 /home/vip7009pro/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/*
. If this doesn't help, check whether your kernel source tree is writable to you and that /home is mounted without option "noexec".
Zirias said:
Probably your toolchain binaries are just not marked executable, try
Code:
chmod 755 /home/vip7009pro/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/*
. If this doesn't help, check whether your kernel source tree is writable to you and that /home is mounted without option "noexec".
Click to expand...
Click to collapse
thanks but i got error :
[email protected]:~/kernel$ make CONFIG_DEBUG_SECTION_MISMATCH=y ARCH=arm
"======================LINUX INCLUDE==========================================================="
-I/home/vip7009pro/kernel/arch/arm/include -Iarch/arm/include/generated -Iinclude -include include/generated/autoconf.h
"=============================================================================================="
"KERNEL ======================================================================================"
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -DT_EF44S -I ./include/pantech -include ./include/pantech/CUST_PANTECH.h -DFIRM_VER=\"S0215141\" -DSYS_MODEL_NAME=\"EF44S\" -DPANTECH_MODEL_NAME=\"IM-A840S\" -DFS_USER_DATA_VER=37 -DPANTECH_STORAGE_INTERNAL_EMUL -DFEATURE_AARM_RELEASE_MODE -D__KERNELBUILD__
"=============================================================================================="
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
arm-eabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
[email protected]:~/kernel$
What I have to do now ?
lmgtfy
Seriously, possible causes are quite numerous, you'll have to check your cross toolchain installation and configuration yourself and google is a good reference, good luck...
Zirias said:
lmgtfy
Seriously, possible causes are quite numerous, you'll have to check your cross toolchain installation and configuration yourself and google is a good reference, good luck...
Click to expand...
Click to collapse
Thank you for your help. I fixed these error, but others error appear =='
The kernel was compiling, but suddenly stop with this error , help me please :
_______________________________________________________________________
CC drivers/media/video/msm/sensors/sensor_i2c.o
CC drivers/media/video/msm/sensors/sensor_ctrl.o
LD drivers/media/video/msm/sensors/built-in.o
CC drivers/media/video/msm/wfd/mdp-subdev.o
CC drivers/media/video/msm/wfd/enc-subdev.o
CC drivers/media/video/msm/wfd/vsg-subdev.o
CC drivers/media/video/msm/wfd/wfd-ioctl.o
CC drivers/media/video/msm/wfd/wfd-util.o
LD drivers/media/video/msm/wfd/built-in.o
CC drivers/media/video/msm/msm_axi_qos.o
CC drivers/media/video/msm/flash.o
CC drivers/media/video/msm/msm_io_8960.o
CC drivers/media/video/msm/msm_vfe32.o
CC drivers/media/video/msm/msm_vpe.o
LD drivers/media/video/msm/built-in.o
CC drivers/media/video/uvc/uvc_driver.o
CC drivers/media/video/uvc/uvc_queue.o
CC drivers/media/video/uvc/uvc_v4l2.o
CC drivers/media/video/uvc/uvc_video.o
CC drivers/media/video/uvc/uvc_ctrl.o
CC drivers/media/video/uvc/uvc_status.o
CC drivers/media/video/uvc/uvc_isight.o
LD drivers/media/video/uvc/uvcvideo.o
LD drivers/media/video/uvc/built-in.o
LD drivers/media/video/built-in.o
LD drivers/media/built-in.o
CC drivers/mfd/mfd-core.o
CC drivers/mfd/wcd9310-core.o
CC drivers/mfd/wcd9310-irq.o
CC drivers/mfd/pm8921-core.o
drivers/mfd/pm8921-core.c:207: error: resources_pwrkey causes a section type conflict
drivers/mfd/pm8921-core.c:207: error: resources_pwrkey causes a section type conflict
drivers/mfd/pm8921-core.c:161: error: adc_cell_resources causes a section type conflict
drivers/mfd/pm8921-core.c:161: error: adc_cell_resources causes a section type conflict
make[2]: *** [drivers/mfd/pm8921-core.o] Error 1
make[1]: *** [drivers/mfd] Error 2
make: *** [drivers] Error 2
real 9m4.940s
user 8m6.010s
sys 0m33.994s
[email protected]:~/kernel$
Related
[email protected]:~/tegra$ make tegra3_android_defconfig
#
# configuration written to .config
#
[email protected]:~/tegra$ export PATH=$/wonk/arm-eabi-4.7/arm-eabi-/bin:$PATH
[email protected]:~/tegra$ export ARCH=arm
[email protected]:~/tegra$ export SUBARCH=arm
[email protected]:~/tegra$ export CROSS_COMPILE=arm-eabi-
[email protected]:~/tegra$ make
make: arm-eabi-gcc: Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
make: arm-eabi-gcc: Command not found
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/bin/sh: 1: arm-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
NB : I use toolchain https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7
what should I do ?
It's supposed to be arm-eabi-4.7/bin/arm-eabi-. Should work then.
cooler1182 said:
[email protected]:~/tegra$ make tegra3_android_defconfig
#
# configuration written to .config
#
[email protected]:~/tegra$ export PATH=$/wonk/arm-eabi-4.7/arm-eabi-/bin:$PATH
[email protected]:~/tegra$ export ARCH=arm
[email protected]:~/tegra$ export SUBARCH=arm
[email protected]:~/tegra$ export CROSS_COMPILE=arm-eabi-
[email protected]:~/tegra$ make
make: arm-eabi-gcc: Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
make: arm-eabi-gcc: Command not found
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/bin/sh: 1: arm-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
NB : I use toolchain https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7
what should I do ?
Click to expand...
Click to collapse
I find it easier to put the path to the toolchian in my makefile.
But as sgt.meow said, it has to be whatever/bin/arm-eabi- (or however your toolchain does it)
Make sure it ends in - though because otherwise it will not work
poondog said:
I find it easier to put the path to the toolchian in my makefile.
But as sgt.meow said, it has to be whatever/bin/arm-eabi- (or however your toolchain does it)
Make sure it ends in - though because otherwise it will not work
Click to expand...
Click to collapse
can i see your toolchain path ?
thank before
Your toolchain path should be:
wonk/arm-eabi-4.7/bin/arm-eabi-
cooler1182 said:
can i see your toolchain path ?
thank before
Click to expand...
Click to collapse
sgt. meow said:
Your toolchain path should be:
wonk/arm-eabi-4.7/bin/arm-eabi-
Click to expand...
Click to collapse
Mine might be confusing but here it is
/home/poondog/repos/arm-eabi-4.7/bin/arm-eabi-
What you need to do is navigate to your toolchain in explorer, then to bin and right click anything and go properties. It will tell you the whole path and put that in your makefile (don't forget the arm-eabi-)
Hello, i am trying to compile for the Xperia Z1 but getting error. I think that it is related to TWRP but i cant seem to fix it.
Code:
target Executable: recovery (/home/emil/android/omni/out/target/product/honami/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery)
mkdir -p /home/emil/android/omni/out/target/product/honami/recovery/root/sbin/
ln -sf /sbin/busybox /home/emil/android/omni/out/target/product/honami/recovery/root/sbin/sh
ln -sf /sbin/pigz /home/emil/android/omni/out/target/product/honami/recovery/root/sbin/gzip
ln -sf /sbin/unpigz /home/emil/android/omni/out/target/product/honami/recovery/root/sbin/gunzip
Symlink: /home/emil/android/omni/out/target/product/honami/recovery/root/sbin/[ -> busybox
bootable/recovery/gui/console.cpp:213: [B]error: undefined reference to 'gr_maxExW'
collect2: error: ld returned 1 exit status[/B]
make: *** [/home/emil/android/omni/out/target/product/honami/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery] Error 1
make: *** Waiting for unfinished jobs....
CHK include/linux/version.h
make[1]: Leaving directory `/home/emil/android/omni/kernel/sony/msm8974'
Thanks!!
ekanix20 said:
Hello, i am trying to compile for the Xperia Z1 but getting error. I think that it is related to TWRP but i cant seem to fix it.
Code:
target Executable: recovery (/home/emil/android/omni/out/target/product/honami/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery)
mkdir -p /home/emil/android/omni/out/target/product/honami/recovery/root/sbin/
ln -sf /sbin/busybox /home/emil/android/omni/out/target/product/honami/recovery/root/sbin/sh
ln -sf /sbin/pigz /home/emil/android/omni/out/target/product/honami/recovery/root/sbin/gzip
ln -sf /sbin/unpigz /home/emil/android/omni/out/target/product/honami/recovery/root/sbin/gunzip
Symlink: /home/emil/android/omni/out/target/product/honami/recovery/root/sbin/[ -> busybox
bootable/recovery/gui/console.cpp:213: [B]error: undefined reference to 'gr_maxExW'
collect2: error: ld returned 1 exit status[/B]
make: *** [/home/emil/android/omni/out/target/product/honami/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery] Error 1
make: *** Waiting for unfinished jobs....
CHK include/linux/version.h
make[1]: Leaving directory `/home/emil/android/omni/kernel/sony/msm8974'
Thanks!!
Click to expand...
Click to collapse
Hi. I also tried compiling for Honami a few days ago. I had the same error. I was able to fix it by applying this patch (https://gerrit.omnirom.org/#/c/5902/) to the rhine-common device tree. At the end the build booted but the cellular network wasn't working.
pollonamid said:
Hi. I also tried compiling for Honami a few days ago. I had the same error. I was able to fix it by applying this patch (https://gerrit.omnirom.org/#/c/5902/) to the rhine-common device tree. At the end the build booted but the cellular network wasn't working.
Click to expand...
Click to collapse
Yeah I have the same problem now
Sent from my C6903 using Tapatalk
Hi every one I have a problem with compiling zImage of a3000 kernel so i enter these coomands:
Code:
export TARGET_BUILD_VARIANT=eng TARGET_PRODUCT=a3000_prc_3gfull MTK_ROOT_CUSTOM=/mediatek/custom/ TARGET_KERNEL_VERSION=3.4.5 &&export PATH=arm-eabi-linaro-4.6.2/bin/:$PATH&&export CROSS_COMPILE=arm-eabi-&&export ARCH=arm
then for setup:
Code:
make menuconfigscripts/kconfig/mconf Kconfig
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
I don't touch configurations.
problem is here
Code:
[B][SIZE="4"][U]make zImage[/U][/SIZE][/B]
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/timex.h:174:0,
from include/linux/sched.h:57,
from arch/arm/kernel/asm-offsets.c:13:
[B][U][SIZE="4"][COLOR="black"][COLOR="Red"]/media/***/****/kernel/arch/arm/include/asm/timex.h:15:24: fatal error: mach/timex.h: No such file or directory
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2[/COLOR][/COLOR][/SIZE][/U][/B]
Would you help me make sense of the make output below? Does this mean I was not able to build all the modules? I believe I only got one module, and given the errors below, I don't think the file is a valid working target. How do I fix this error please?
correctly?
[email protected]:~/WORKING_DIRECTORY$ make CFLAGS_MODULE=-fno-pic modules
scripts/kconfig/conf --silentoldconfig Kconfig
sound/soc/codecs/audience/Kconfig:40:warning: type of 'SND_SOC_ES_SLIM' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:43:warning: type of 'SND_SOC_ES_I2C' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:44:warning: choice value used outside its choice group
sound/soc/codecs/audience/Kconfig:41:warning: choice value used outside its choice group
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
HOSTCC scripts/genksyms/genksyms.o
SHIPPED scripts/genksyms/lex.lex.c
SHIPPED scripts/genksyms/keywords.hash.c
SHIPPED scripts/genksyms/parse.tab.h
HOSTCC scripts/genksyms/lex.lex.o
SHIPPED scripts/genksyms/parse.tab.c
HOSTCC scripts/genksyms/parse.tab.o
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
CC [M] drivers/scsi/scsi_wait_scan.o
Building modules, stage 2.
MODPOST 1 modules
ERROR: "module_layout" [drivers/scsi/scsi_wait_scan.ko] undefined!
ERROR: "__aeabi_unwind_cpp_pr0" [drivers/scsi/scsi_wait_scan.ko] undefined!
ERROR: "__aeabi_unwind_cpp_pr1" [drivers/scsi/scsi_wait_scan.ko] undefined!
ERROR: "scsi_complete_async_scans" [drivers/scsi/scsi_wait_scan.ko] undefined!
ERROR: "wait_for_device_probe" [drivers/scsi/scsi_wait_scan.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
[email protected]:~/WORKING_DIRECTORY$
What source are you using, and why do you need to build Samsung modules from source?
In addition to previous poster's questions:
Are talking about Xposed modules here?
And what ROM?
I got it from opensource.samsung.com. I am trying to add to the modules. I have to appologize; I may not have answered your question. If there is a specific version number or what not I can look up, please let me know so I can provide it.
Morningstar said:
What source are you using, and why do you need to build Samsung modules from source?
Click to expand...
Click to collapse
I apologize I do not know the difference between exposed vs. other kinds of modules. Could you please elaborate? What I did was to unpack the Kernel.tar.gz and Platform.tar.gz; I downloaded the version of AOSP metioned in the readme file. I set the environment settings as instructed in the readme files and configred the Makefile with the right CROSS_COMPILE setting. I then ran make successfully. Looked for *.ko files, and did not find a single one. Then I issued make module, and it stated to enable dynamic loadable modules. So I did that using menuconfig or xconfig; I have to check. Then I ran make modules, and I got the following errors:
Code:
[email protected]:~/WORKING_DIRECTORY$ make modules
scripts/kconfig/conf --silentoldconfig Kconfig
sound/soc/codecs/audience/Kconfig:40:warning: type of 'SND_SOC_ES_SLIM' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:43:warning: type of 'SND_SOC_ES_I2C' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:44:warning: choice value used outside its choice group
sound/soc/codecs/audience/Kconfig:41:warning: choice value used outside its choice group
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CC [M] drivers/scsi/scsi_wait_scan.o
Building modules, stage 2.
MODPOST 1 modules
ERROR: "__aeabi_unwind_cpp_pr0" [drivers/scsi/scsi_wait_scan.ko] undefined!
ERROR: "__aeabi_unwind_cpp_pr1" [drivers/scsi/scsi_wait_scan.ko] undefined!
ERROR: "scsi_complete_async_scans" [drivers/scsi/scsi_wait_scan.ko] undefined!
ERROR: "wait_for_device_probe" [drivers/scsi/scsi_wait_scan.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
Someguyfromhell said:
In addition to previous poster's questions:
Are talking about Xposed modules here?
And what ROM?
Click to expand...
Click to collapse
Can this voltage and current regulators enable 5V for OTG support:
http://postimg.org/image/5tz9sq3k1/
http://postimg.org/image/cjkigpqwx/
http://postimg.org/image/3vykulf9d/
It will be nice - if you add it to the kernel.
The new kernel is coming ?
I tried do a new but always ERROR 2 in Ubuntu
nalas said:
It will be nice - if you add it to the kernel.
The new kernel is coming ?
I tried do a new but always ERROR 2 in Ubuntu
Click to expand...
Click to collapse
I also have error.
When I run command make -j3 I get error:
scripts/kconfig/conf --silentoldconfig Kconfig
sound/soc/codecs/audience/Kconfig:40:warning: type of 'SND_SOC_ES_SLIM' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:43:warning: type of 'SND_SOC_ES_I2C' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:44:warning: choice value used outside its choice group
sound/soc/codecs/audience/Kconfig:41:warning: choice value used outside its choice group
warning: (SND_SOC_MSM8226) selects DOLBY_DAP which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_MSM8974)
warning: (SND_SOC_MSM8226) selects DOLBY_DAP which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_MSM8974)
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: Nothing to be done for 'arch/arm/boot/dtbs'.
make[1]: 'include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC arch/arm/mach-msm/board-dt.o
CC arch/arm/mach-msm/sec-switch.o
LD drivers/base/regmap/built-in.o
LD drivers/base/built-in.o
arch/arm/mach-msm/sec-switch.c:818:16: error: redefinition of 'midas_switch_show_vbus'
arch/arm/mach-msm/sec-switch.c:226:16: note: previous definition of 'midas_switch_show_vbus' was here
arch/arm/mach-msm/sec-switch.c:838:16: error: redefinition of 'midas_switch_store_vbus'
arch/arm/mach-msm/sec-switch.c:246:16: note: previous definition of 'midas_switch_store_vbus' was here
arch/arm/mach-msm/sec-switch.c:884:1: error: redefinition of 'dev_attr_disable_vbus'
arch/arm/mach-msm/sec-switch.c:292:1: note: previous definition of 'dev_attr_disable_vbus' was here
arch/arm/mach-msm/sec-switch.c:940:21: error: redefinition of 'sec_booster'
arch/arm/mach-msm/sec-switch.c:348:21: note: previous definition of 'sec_booster' was here
arch/arm/mach-msm/sec-switch.c:946:19: error: redefinition of 'midas_sec_switch_init'
arch/arm/mach-msm/sec-switch.c:354:19: note: previous definition of 'midas_sec_switch_init' was here
arch/arm/mach-msm/sec-switch.c:983:5: error: redefinition of 'current_cable_type'
arch/arm/mach-msm/sec-switch.c:391:5: note: previous definition of 'current_cable_type' was here
arch/arm/mach-msm/sec-switch.c: In function 'max77804k_muic_mhl_cb':
arch/arm/mach-msm/sec-switch.c:1235:18: error: 'MAX77804K_MUIC_ATTACHED' undeclared (first use in this function)
arch/arm/mach-msm/sec-switch.c:1235:18: note: each undeclared identifier is reported only once for each function it appears in
arch/arm/mach-msm/sec-switch.c: At top level:
arch/arm/mach-msm/sec-switch.c:1348:8: error: variable 'max77804k_muic' has initializer but incomplete type
arch/arm/mach-msm/sec-switch.c:1349:2: error: unknown field 'usb_cb' specified in initializer
arch/arm/mach-msm/sec-switch.c:1349:2: warning: excess elements in struct initializer [enabled by default]
error, forbidden warning: sec-switch.c:1349
scripts/Makefile.build:307: recipe for target 'arch/arm/mach-msm/sec-switch.o' failed
make[1]: *** [arch/arm/mach-msm/sec-switch.o] Error 1
Makefile:950: recipe for target 'arch/arm/mach-msm' failed
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs....
CC sound/soc/codecs/wcd9306.o
CC sound/soc/codecs/wcd9306-tables.o
CC sound/soc/codecs/wcd9xxx-resmgr.o
LD drivers/gpio/built-in.o
CC sound/soc/codecs/wcd9xxx-mbhc.o
LD drivers/leds/built-in.o
LD drivers/input/touchscreen/built-in.o
LD drivers/input/built-in.o
LD sound/soc/codecs/snd-soc-wcd9306.o
LD sound/soc/codecs/snd-soc-msm-stub.o
LD sound/soc/codecs/built-in.o
CC sound/soc/msm/msm8226.o
CC drivers/mfd/sm501.o
CC drivers/misc/max77888-muic.o
CC sound/soc/msm/qdsp6v2/msm-dai-q6-v2.o
CC drivers/mfd/tps65010.o
CC drivers/mfd/twl-core.o
LD sound/soc/msm/qdsp6v2/snd-soc-qdsp6v2.o
CC drivers/misc/max77828-muic.o
LD sound/soc/msm/qdsp6v2/built-in.o
CC drivers/mfd/twl4030-irq.o
LD sound/soc/msm/snd-soc-qdsp6v2.o
LD sound/soc/msm/snd-soc-msm8226.o
LD sound/soc/msm/snd-soc-hostless-pcm.o
LD sound/soc/msm/built-in.o
CC drivers/mfd/twl6030-irq.o
LD sound/soc/built-in.o
LD sound/built-in.o
CC drivers/mfd/twl4030-madc.o
LD drivers/misc/built-in.o
drivers/misc/max77828-muic.o: In function `get_switch_sel':
/home/toor/Desktop/GT-I9301I_KK_Opensource/Kernel/drivers/misc/max77828-muic.c:223: multiple definition of `get_switch_sel'
drivers/misc/max77888-muic.o:/home/toor/Desktop/GT-I9301I_KK_Opensource/Kernel/drivers/misc/max77888-muic.c:205: first defined here
drivers/misc/max77828-muic.o: In function `powered_otg_control':
/home/toor/Desktop/GT-I9301I_KK_Opensource/Kernel/drivers/misc/max77828-muic.c:1854: multiple definition of `powered_otg_control'
drivers/misc/max77888-muic.o:/home/toor/Desktop/GT-I9301I_KK_Opensource/Kernel/drivers/misc/max77888-muic.c:1951: first defined here
drivers/misc/max77828-muic.o: In function `muic_otg_control':
/home/toor/Desktop/GT-I9301I_KK_Opensource/Kernel/drivers/misc/max77828-muic.c:1845: multiple definition of `muic_otg_control'
drivers/misc/max77888-muic.o:/home/toor/Desktop/GT-I9301I_KK_Opensource/Kernel/drivers/misc/max77888-muic.c:1942: first defined here
CC drivers/mfd/twl4030-power.o
scripts/Makefile.build:375: recipe for target 'drivers/misc/built-in.o' failed
make[2]: *** [drivers/misc/built-in.o] Error 1
scripts/Makefile.build:443: recipe for target 'drivers/misc' failed
make[1]: *** [drivers/misc] Error 2
make[1]: *** Waiting for unfinished jobs....
CC drivers/mfd/ezx-pcap.o
CC drivers/mfd/wcd9xxx-core.o
drivers/mfd/ezx-pcap.c: In function 'pcap_isr_work':
drivers/mfd/ezx-pcap.c:205:2: error: implicit declaration of function 'irq_to_gpio' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
scripts/Makefile.build:307: recipe for target 'drivers/mfd/ezx-pcap.o' failed
make[2]: *** [drivers/mfd/ezx-pcap.o] Error 1
make[2]: *** Waiting for unfinished jobs....
scripts/Makefile.build:443: recipe for target 'drivers/mfd' failed
make[1]: *** [drivers/mfd] Error 2
Makefile:950: recipe for target 'drivers' failed
make: *** [drivers] Error 2
Error 2 - too.
I think this is problem with some path .
I have everythink installed what is nessesary.
nalas said:
Error 2 - too.
I think this is problem with some path .
I have everythink installed what is nessesary.
Click to expand...
Click to collapse
Do you know how to solve this problem?
not yet I still looking for it in google but every video have not this problem
nalas said:
not yet I still looking for it in google but every video have not this problem
Click to expand...
Click to collapse
Does this have to be installed?
Current Minimal Requirements
============================
Upgrade to at *least* these software revisions before thinking you've
encountered a bug! If you're unsure what version you're currently
running, the suggested command should tell you.
Again, keep in mind that this list assumes you are already functionally
running a Linux kernel. Also, not all tools are necessary on all
systems; obviously, if you don't have any ISDN hardware, for example,
you probably needn't concern yourself with isdn4k-utils.
o Gnu C 3.2 # gcc --version
o Gnu make 3.80 # make --version
o binutils 2.12 # ld -v
o util-linux 2.10o # fdformat --version
o module-init-tools 0.9.10 # depmod -V
o e2fsprogs 1.41.4 # e2fsck -V
o jfsutils 1.1.3 # fsck.jfs -V
o reiserfsprogs 3.6.3 # reiserfsck -V
o xfsprogs 2.6.0 # xfs_db -V
o squashfs-tools 4.0 # mksquashfs -version
o btrfs-progs 0.18 # btrfsck
o pcmciautils 004 # pccardctl -V
o quota-tools 3.09 # quota -V
o PPP 2.4.0 # pppd --version
o isdn4k-utils 3.1pre1 # isdnctrl 2>&1|grep version
o nfs-utils 1.0.5 # showmount --version
o procps 3.2.0 # ps --version
o oprofile 0.9 # oprofiled --version
o udev 081 # udevd --version
o grub 0.93 # grub --version || grub-install --version
o mcelog 0.6 # mcelog --version
o iptables 1.4.2 # iptables -V
Yhx - I check it.
I have Ubuntu 16.04 LTS and GCC 5.0 - maybe not compatible ...
make: /opt/toolchains/arm-eabi-4.6/bin/arm-eabi-gcc: Command not found
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/basic/fixdep
make[1]: 'include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/bin/sh: 1: /opt/toolchains/arm-eabi-4.6/bin/arm-eabi-gcc: not found
/home/nala/S3NEO/kernel/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 127
Makefile:986: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
CC scripts/mod/empty.o
/bin/sh: 1: /opt/toolchains/arm-eabi-4.6/bin/arm-eabi-gcc: not found
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 127
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:506: recipe for target 'scripts' failed
make: *** [scripts] Error 2
Did you select right directory of toolchain?
nalas said:
Yhx - I check it.
I have Ubuntu 16.04 LTS and GCC 5.0 - maybe not compatible ...
make: /opt/toolchains/arm-eabi-4.6/bin/arm-eabi-gcc: Command not found
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/basic/fixdep
make[1]: 'include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/bin/sh: 1: /opt/toolchains/arm-eabi-4.6/bin/arm-eabi-gcc: not found
/home/nala/S3NEO/kernel/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 127
Makefile:986: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
CC scripts/mod/empty.o
/bin/sh: 1: /opt/toolchains/arm-eabi-4.6/bin/arm-eabi-gcc: not found
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 127
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:506: recipe for target 'scripts' failed
make: *** [scripts] Error 2
Click to expand...
Click to collapse
Did you select right directory?
Pavlex4 said:
Did you select right directory?
Click to expand...
Click to collapse
I check it again but I'vo copiet it from arm-eabi- (file path) - thx
nalas said:
I check it again but I'vo copiet it from arm-eabi- (file path) - thx
Click to expand...
Click to collapse
Does this errors appear because of gcc?
Pavlex4 said:
Does this errors appear because of gcc?
Click to expand...
Click to collapse
Do you know how to downgrade version of gcc???
Find on github - google it.
Wysłane z mojego SM-G935F przy użyciu Tapatalka
nalas said:
Find on github - google it.
Wysłane z mojego SM-G935F przy użyciu Tapatalka
Click to expand...
Click to collapse
Did you try to compile kernel with gcc 3.2???