Samsung Galaxy S5 G-900FD Kernel compilation error - Galaxy S 5 Q&A, Help & Troubleshooting

I've been trying to compile kernel from samsung source for last few weeks but failed everytime.
At start everything goes fine almost. The problem is with the last step of compilation of the kernel.
Whenever I run the command:
HTML:
make -j5
it comes up with the error:
HTML:
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'
boolean symbol SND_SOC_MAX98506 tested for 'm'? test forced to 'n'
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
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:
/media/sf_Krnl/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.
/media/sf_Krnl/Kernel/./Kbuild:81: recipe for target 'arch/arm/kernel/asm-offsets.s' failed
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
Makefile:999: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
I've tried it a lot of times by changing directories, folder and terminals but nothing worked.
Further, I've used all these toolchians I mentioned here:
Code:
UBER Toolchian 7 (arm-eabi)
UBER toolchian 4.9 (arm-eabi)
NDK 4.9 (arm-eabi)
Sabermod 4.9 (arm-eabi)
linaro 4.9 (arm-eabi)
but all failed.
Help me please.

Related

[Q] problem with building kernel[solved]

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]

How to make Samsung Note 3 modules from Samsung Source

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

OmniROM 6.0 build error for Pixel C

General information:
1. I can't found the kernel source from android.com and android source repos.
2. I was setup build environment for OmniROM, and I was tested build manta with success.
3. I was config the device repo in .repo/local_manifests/default.xml with https://android.googlesource.com/device/google/dragon/ and https://android.googlesource.com/device/google/dragon-kernel/
4. Changed all aosp_dragon to omni_dragon, add TWRP config to BoardConfig.mk, add TARGET_PREBUILT_KERNEL := device/google/dragon-kernel/Image.fit to device.mk
5. Download and extract vendor file from https://developers.google.com/android/nexus/drivers#dragon using MXC14G version.
6. Modified tools/roomservice.py for disabled check dragon online.(Make it compile)
My build step:
cmd:
cd /media/dev/source/OmniROM/
brunch dragon
Wait for complete, it report error:
Code:
Export includes file: external/tinycompress/Android.mk -- /media/dev/source/OmniROM/out/target/product/dragon/obj_arm/SHARED_LIBRARIES/libtinycompress_intermediates/export_includes
make: *** No rule to make target '/media/dev/source/OmniROM/out/target/product/dragon/obj/KERNEL_OBJ/usr', needed by '/media/dev/source/OmniROM/out/target/product/dragon/obj_arm/SHARED_LIBRARIES/libtinycompress_intermediates/compress.o'
The full log in http://pastebin.com/drM6Fe2R
I tried build the external/tinycompress package only, it return error.
cmd:
mm external/tinycompress
Report error:
Code:
No private recovery resources for TARGET_DEVICE dragon
build/core/tasks/kernel.mk:104: ***************************************************************
build/core/tasks/kernel.mk:105: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:106: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:107: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:108: * source repository to kernel/google/dragon
build/core/tasks/kernel.mk:109: * See http://forum.xda-developers.com/wiki/ROM/Integrated_Kernel_Build
build/core/tasks/kernel.mk:110: * for more information *
build/core/tasks/kernel.mk:111: ***************************************************************
build/core/tasks/kernel.mk:271: warning: overriding recipe for target '/media/dev/source/OmniROM/out/target/product/dragon/kernel'
build/core/Makefile:72: warning: ignoring old recipe for target '/media/dev/source/OmniROM/out/target/product/dragon/kernel'
make: Nothing to be done for 'external/tinycompress'.
The full log in http://pastebin.com/DaHjPmHk
Can't you help me fix this build erro?
kendling said:
General information:
1. I can't found the kernel source from android.com and android source repos.
2. I was setup build environment for OmniROM, and I was tested build manta with success.
3. I was config the device repo in .repo/local_manifests/default.xml with https://android.googlesource.com/device/google/dragon/ and https://android.googlesource.com/device/google/dragon-kernel/
4. Changed all aosp_dragon to omni_dragon, add TWRP config to BoardConfig.mk, add TARGET_PREBUILT_KERNEL := device/google/dragon-kernel/Image.fit to device.mk
5. Download and extract vendor file from https://developers.google.com/android/nexus/drivers#dragon using MXC14G version.
6. Modified tools/roomservice.py for disabled check dragon online.(Make it compile)
My build step:
cmd:
cd /media/dev/source/OmniROM/
brunch dragon
Wait for complete, it report error:
Code:
Export includes file: external/tinycompress/Android.mk -- /media/dev/source/OmniROM/out/target/product/dragon/obj_arm/SHARED_LIBRARIES/libtinycompress_intermediates/export_includes
make: *** No rule to make target '/media/dev/source/OmniROM/out/target/product/dragon/obj/KERNEL_OBJ/usr', needed by '/media/dev/source/OmniROM/out/target/product/dragon/obj_arm/SHARED_LIBRARIES/libtinycompress_intermediates/compress.o'
The full log in http://pastebin.com/drM6Fe2R
I tried build the external/tinycompress package only, it return error.
cmd:
mm external/tinycompress
Report error:
Code:
No private recovery resources for TARGET_DEVICE dragon
build/core/tasks/kernel.mk:104: ***************************************************************
build/core/tasks/kernel.mk:105: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:106: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:107: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:108: * source repository to kernel/google/dragon
build/core/tasks/kernel.mk:109: * See http://forum.xda-developers.com/wiki/ROM/Integrated_Kernel_Build
build/core/tasks/kernel.mk:110: * for more information *
build/core/tasks/kernel.mk:111: ***************************************************************
build/core/tasks/kernel.mk:271: warning: overriding recipe for target '/media/dev/source/OmniROM/out/target/product/dragon/kernel'
build/core/Makefile:72: warning: ignoring old recipe for target '/media/dev/source/OmniROM/out/target/product/dragon/kernel'
make: Nothing to be done for 'external/tinycompress'.
The full log in http://pastebin.com/DaHjPmHk
Can't you help me fix this build erro?
Click to expand...
Click to collapse
I'd look at one of the other Nexus device trees to see how they set up inline kernel build and properly Omni-fied it. I haven't done it in such a long time I don't really remember the exact details.
anyone can help me ?
Code:
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
make[1]: Leaving directory `/home/ibrahim/wave/kernel/samsung/aries'
make -C kernel/samsung/aries O=/home/ibrahim/wave/out/target/product/wave/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" "/home/ibrahim/wave/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/"/arm-eabi-" dtbs
make[1]: Entering directory `/home/ibrahim/wave/kernel/samsung/aries'
make[2]: *** No rule to make target `dtbs'. Stop.
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/ibrahim/wave/kernel/samsung/aries'
make: [TARGET_KERNEL_BINARIES] Error 2 (ignored)
make -C kernel/samsung/aries O=/home/ibrahim/wave/out/target/product/wave/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" "/home/ibrahim/wave/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/"/arm-eabi-" modules
make[1]: Entering directory `/home/ibrahim/wave/kernel/samsung/aries'
CHK include/linux/version.h
I did found the problem!!
Because I did add the lines to aosp_dragon.mk below:
Code:
# Inherit from our custom product configuration
$(call inherit-product, vendor/omni/config/common_tablet.mk)
After that, I got new errors:
1. Failed to compile mkbootimg.c
Code:
target C: utility_mkbootimg <= system/core/mkbootimg/mkbootimg.c
system/core/mkbootimg/mkbootimg.c: In function 'print_id':
system/core/mkbootimg/mkbootimg.c:82:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (unsigned i = 0; i < id_len; i++) {
^
system/core/mkbootimg/mkbootimg.c:82:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
build/core/binary.mk:801: recipe for target '/media/dev/source/OmniROM/out/target/product/dragon/obj/UTILITY_EXECUTABLES/utility_mkbootimg_intermediates/mkbootimg.o' failed
make: *** [/media/dev/source/OmniROM/out/target/product/dragon/obj/UTILITY_EXECUTABLES/utility_mkbootimg_intermediates/mkbootimg.o] Error 1
make: *** 正在等待未完成的任务....
2. Failed to compile compress.c
Code:
target thumb C: audio.usb.default_32 <= hardware/libhardware/modules/usbaudio/audio_hal.c
In file included from bionic/libc/include/signal.h:32:0,
from bionic/libc/include/sys/select.h:33,
from bionic/libc/include/unistd.h:35,
from external/tinycompress/compress.c:61:
/media/dev/source/OmniROM/out/target/product/dragon/obj/KERNEL_OBJ/usr/include/asm/sigcontext.h:53:2: error: unknown type name '__uint128_t'
__uint128_t vregs[32];
^
build/core/binary.mk:801: recipe for target '/media/dev/source/OmniROM/out/target/product/dragon/obj_arm/SHARED_LIBRARIES/libtinycompress_intermediates/compress.o' failed
make: *** [/media/dev/source/OmniROM/out/target/product/dragon/obj_arm/SHARED_LIBRARIES/libtinycompress_intermediates/compress.o] Error 1
make: *** 正在等待未完成的任务....
make: *** wait: 没有子进程。 停止。
Anyone can help me?
About __uint128_t problem, do this:
https://github.com/omnirom/android_...mmit/80349b926351ca5992973e4a0357ca649a602faa
Blue59 said:
anyone can help me ?
Code:
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
make[1]: Leaving directory `/home/ibrahim/wave/kernel/samsung/aries'
make -C kernel/samsung/aries O=/home/ibrahim/wave/out/target/product/wave/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" "/home/ibrahim/wave/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/"/arm-eabi-" dtbs
make[1]: Entering directory `/home/ibrahim/wave/kernel/samsung/aries'
make[2]: *** No rule to make target `dtbs'. Stop.
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/ibrahim/wave/kernel/samsung/aries'
make: [TARGET_KERNEL_BINARIES] Error 2 (ignored)
make -C kernel/samsung/aries O=/home/ibrahim/wave/out/target/product/wave/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" "/home/ibrahim/wave/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/"/arm-eabi-" modules
make[1]: Entering directory `/home/ibrahim/wave/kernel/samsung/aries'
CHK include/linux/version.h
Click to expand...
Click to collapse
@Blue59
make[2]: *** No rule to make target `dtbs'.
Click to expand...
Click to collapse
The problem is , your kernel's Makefile not have dtbs make rule.
See https://github.com/kendling/android_kernel_google_dragon/blob/m/arch/arm64/Makefile
dtbs: prepare scripts
$(Q)$(MAKE) $(build)=$(boot)/dts
dtbs_install:
$(Q)$(MAKE) $(dtbinst)=$(boot)/dts
Click to expand...
Click to collapse
Hi everybody,
I was fixed all problem and build success.
After build success, the boot.img can't bootup.
Tablet display "OS on your tablet is damaged. Need recovery."
Yes, I fixed it too.
Now my build was all success and success bootup.
I want to release the ROM later.
Thanks all!

S3 Neo voltage regulators

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

trying to compile B32 kernel source

I'm a beginner trying to compile source. I can't pass "make msm-perf_ailsa_ii_defconfig".
As the error suggests, the /vendor/ directory does not exist. But /qcom/Kconfig has the line,
Code:
source "drivers/soc/qcom/vendor/Kconfig"
. Thanks for any help.
Code:
[email protected]:~/kernel1/msm-3.18$ make clean
[email protected]:~/kernel1/msm-3.18$ make mrproper
[email protected]:~/kernel1/msm-3.18$ make msm-perf_ailsa_ii_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/soc/qcom/Kconfig:836: can't open file "drivers/soc/qcom/vendor/Kconfig"
scripts/kconfig/Makefile:105: recipe for target 'msm-perf_ailsa_ii_defconfig' failed
make[1]: *** [msm-perf_ailsa_ii_defconfig] Error 1
Makefile:542: recipe for target 'msm-perf_ailsa_ii_defconfig' failed
make: *** [msm-perf_ailsa_ii_defconfig] Error 2
[email protected]:~/kernel1/msm-3.18$
That's because the source is broken. Even if you fix the compile errors it won't boot. You can thank ZTE for that.

Categories

Resources