Can't enable otg in kernel error - General Questions and Answers

Code:
drivers/usb/core/hub.c: In function ‘usb_enumerate_device_otg’:
drivers/usb/core/hub.c:2257:18: warning: passing argument 1 of ‘otg_send_event’ makes pointer from integer without a cast
otg_send_event(OTG_EVENT_DEV_NOT_SUPPORTED);
^
In file included from drivers/usb/core/hub.c:23:0:
include/linux/usb/otg.h:125:1: note: expected ‘struct usb_otg *’ but argument is of type ‘int’
otg_send_event(struct usb_otg *otg, enum usb_otg_event event)
^
drivers/usb/core/hub.c:2257:3: error: too few arguments to function ‘otg_send_event’
otg_send_event(OTG_EVENT_DEV_NOT_SUPPORTED);
^
In file included from drivers/usb/core/hub.c:23:0:
include/linux/usb/otg.h:125:1: note: declared here
otg_send_event(struct usb_otg *otg, enum usb_otg_event event)
^
drivers/usb/core/hub.c: In function ‘usb_port_suspend’:
drivers/usb/core/hub.c:3053:19: warning: passing argument 1 of ‘otg_send_event’ makes pointer from integer without a cast
otg_send_event(OTG_EVENT_NO_RESP_FOR_HNP_ENABLE);
^
In file included from drivers/usb/core/hub.c:23:0:
include/linux/usb/otg.h:125:1: note: expected ‘struct usb_otg *’ but argument is of type ‘int’
otg_send_event(struct usb_otg *otg, enum usb_otg_event event)
^
drivers/usb/core/hub.c:3053:4: error: too few arguments to function ‘otg_send_event’
otg_send_event(OTG_EVENT_NO_RESP_FOR_HNP_ENABLE);
^
In file included from drivers/usb/core/hub.c:23:0:
include/linux/usb/otg.h:125:1: note: declared here
otg_send_event(struct usb_otg *otg, enum usb_otg_event event)
^
scripts/Makefile.build:308: recipe for target 'drivers/usb/core/hub.o' failed
make[3]: *** [drivers/usb/core/hub.o] Error 1
scripts/Makefile.build:455: recipe for target 'drivers/usb/core' failed
make[2]: *** [drivers/usb/core] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/usb' failed
make[1]: *** [drivers/usb] Error 2
LINARO 6.3.1
J510FN
MSM8916
https://github.com/Demicro/SM-J510FN_KERNEL

Related

[Q] exynos4 recipe for target failed, help?

Hello everybody , i was building hazy rom for i9305 while i got this error (tried twice )
Code:
p
target thumb C++: hwcomposer.exynos4 <= hardware/samsung/exynos4/hal/libhwcomposer/SecHWCLog.cpp
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp: In function 'int gralloc_alloc_buffer(alloc_device_t*, size_t, int, const native_handle_t**, int, int, int, int, int, int)':
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:182:21: error: 'GRALLOC_USAGE_HW_ION' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:182:53: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:227:27: error: 'GRALLOC_USAGE_HW_ION' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:227:59: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp: In function 'int alloc_device_alloc(alloc_device_t*, int, int, int, int, const native_handle_t**, int*)':
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:393:25: error: 'GRALLOC_USAGE_HW_ION' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:393:57: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:420:14: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:421:14: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp: In function 'int gralloc_lock(const gralloc_module_t*, buffer_handle_t, int, int, int, int, int, void**)':
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:390:17: error: 'GRALLOC_USAGE_YUV_ADDR' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp: At global scope:
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:481:1: error: 'gralloc_module_t' has no non-static data member named 'getphys'
build/core/binary.mk:432: recipe for target '/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/gralloc_module.o' failed
make: *** [/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/gralloc_module.o] Error 1
make: *** Attente des tâches non terminées....
build/core/binary.mk:432: recipe for target '/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/alloc_device.o' failed
make: *** [/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/alloc_device.o] Error 1
target thumb C++: hwcomposer.exynos4 <= hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp
In file included from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCLog.cpp:28:0:
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:83:0: warning: "V4L2_CID_CACHEABLE" redefined [enabled by default]
In file included from hardware/samsung/exynos4/hal/include/sec_utils.h:33:0,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:40,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCLog.cpp:28:
hardware/samsung/exynos4/hal/include/videodev2_exynos_media.h:65:0: note: this is the location of the previous definition
In file included from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:27:0:
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:83:0: warning: "V4L2_CID_CACHEABLE" redefined [enabled by default]
In file included from hardware/samsung/exynos4/hal/include/sec_utils.h:33:0,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:40,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:27:
hardware/samsung/exynos4/hal/include/videodev2_exynos_media.h:65:0: note: this is the location of the previous definition
In file included from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:40:0,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCLog.cpp:28:
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'int HAL_PIXEL_FORMAT_2_V4L2_PIX(int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:74:10: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:78:10: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'int V4L2_PIX_2_HAL_PIXEL_FORMAT(int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:164:28: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:168:28: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'unsigned int FRAME_SIZE(int, int, int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:240:10: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:241:10: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
In file included from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:40:0,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:27:
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'int HAL_PIXEL_FORMAT_2_V4L2_PIX(int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:74:10: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:78:10: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'int V4L2_PIX_2_HAL_PIXEL_FORMAT(int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:164:28: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:168:28: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'unsigned int FRAME_SIZE(int, int, int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:240:10: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:241:10: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
build/core/binary.mk:432: recipe for target '/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/hwcomposer.exynos4_intermediates/SecHWCLog.o' failed
make: *** [/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/hwcomposer.exynos4_intermediates/SecHWCLog.o] Error 1
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp: In function 'int get_src_phys_addr(hwc_context_t*, sec_img*, sec_rect*)':
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:662:50: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:709:34: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp: In function 'int runFimcCore(hwc_context_t*, unsigned int, sec_img*, sec_rect*, uint32_t, unsigned int, sec_img*, sec_rect*, uint32_t, int)':
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:1109:30: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
build/core/binary.mk:432: recipe for target '/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/hwcomposer.exynos4_intermediates/SecHWCUtils.o' failed
make: *** [/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/hwcomposer.exynos4_intermediates/SecHWCUtils.o] Error 1
make: *** wait: Aucun processus enfant. Arrêt.
[email protected]:~/hazy$
I searched everywhere i could but nothing , help here?
aaz03 said:
Hello everybody , i was building hazy rom for i9305 while i got this error (tried twice )
Code:
p
target thumb C++: hwcomposer.exynos4 <= hardware/samsung/exynos4/hal/libhwcomposer/SecHWCLog.cpp
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp: In function 'int gralloc_alloc_buffer(alloc_device_t*, size_t, int, const native_handle_t**, int, int, int, int, int, int)':
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:182:21: error: 'GRALLOC_USAGE_HW_ION' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:182:53: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:227:27: error: 'GRALLOC_USAGE_HW_ION' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:227:59: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp: In function 'int alloc_device_alloc(alloc_device_t*, int, int, int, int, const native_handle_t**, int*)':
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:393:25: error: 'GRALLOC_USAGE_HW_ION' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:393:57: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:420:14: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:421:14: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp: In function 'int gralloc_lock(const gralloc_module_t*, buffer_handle_t, int, int, int, int, int, void**)':
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:390:17: error: 'GRALLOC_USAGE_YUV_ADDR' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp: At global scope:
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:481:1: error: 'gralloc_module_t' has no non-static data member named 'getphys'
build/core/binary.mk:432: recipe for target '/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/gralloc_module.o' failed
make: *** [/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/gralloc_module.o] Error 1
make: *** Attente des tâches non terminées....
build/core/binary.mk:432: recipe for target '/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/alloc_device.o' failed
make: *** [/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/alloc_device.o] Error 1
target thumb C++: hwcomposer.exynos4 <= hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp
In file included from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCLog.cpp:28:0:
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:83:0: warning: "V4L2_CID_CACHEABLE" redefined [enabled by default]
In file included from hardware/samsung/exynos4/hal/include/sec_utils.h:33:0,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:40,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCLog.cpp:28:
hardware/samsung/exynos4/hal/include/videodev2_exynos_media.h:65:0: note: this is the location of the previous definition
In file included from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:27:0:
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:83:0: warning: "V4L2_CID_CACHEABLE" redefined [enabled by default]
In file included from hardware/samsung/exynos4/hal/include/sec_utils.h:33:0,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:40,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:27:
hardware/samsung/exynos4/hal/include/videodev2_exynos_media.h:65:0: note: this is the location of the previous definition
In file included from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:40:0,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCLog.cpp:28:
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'int HAL_PIXEL_FORMAT_2_V4L2_PIX(int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:74:10: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:78:10: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'int V4L2_PIX_2_HAL_PIXEL_FORMAT(int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:164:28: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:168:28: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'unsigned int FRAME_SIZE(int, int, int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:240:10: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:241:10: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
In file included from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.h:40:0,
from hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:27:
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'int HAL_PIXEL_FORMAT_2_V4L2_PIX(int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:74:10: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:78:10: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'int V4L2_PIX_2_HAL_PIXEL_FORMAT(int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:164:28: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:168:28: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h: In function 'unsigned int FRAME_SIZE(int, int, int)':
hardware/samsung/exynos4/hal/include/sec_utils.h:240:10: error: 'HAL_PIXEL_FORMAT_RGBA_5551' was not declared in this scope
hardware/samsung/exynos4/hal/include/sec_utils.h:241:10: error: 'HAL_PIXEL_FORMAT_RGBA_4444' was not declared in this scope
build/core/binary.mk:432: recipe for target '/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/hwcomposer.exynos4_intermediates/SecHWCLog.o' failed
make: *** [/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/hwcomposer.exynos4_intermediates/SecHWCLog.o] Error 1
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp: In function 'int get_src_phys_addr(hwc_context_t*, sec_img*, sec_rect*)':
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:662:50: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:709:34: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp: In function 'int runFimcCore(hwc_context_t*, unsigned int, sec_img*, sec_rect*, uint32_t, unsigned int, sec_img*, sec_rect*, uint32_t, int)':
hardware/samsung/exynos4/hal/libhwcomposer/SecHWCUtils.cpp:1109:30: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
build/core/binary.mk:432: recipe for target '/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/hwcomposer.exynos4_intermediates/SecHWCUtils.o' failed
make: *** [/home/n0aaz/hazy/out/target/product/i9305/obj/SHARED_LIBRARIES/hwcomposer.exynos4_intermediates/SecHWCUtils.o] Error 1
make: *** wait: Aucun processus enfant. Arrêt.
[email protected]:~/hazy$
I searched everywhere i could but nothing , help here?
Click to expand...
Click to collapse
Add this to your Gralloc.h
https://gitorious.org/replicant/hardware_libhardware/commit/9e6eced5fabc37b650970ae8b97bef538155719f

[Q]LG Optimus 3D Max CM 12.1 building error

Hi,
I'm trying for weeks now to build cm 12.1 for the p725/p720.
I used https://github.com/dhiru1602/android_device_lge_u2-common and changed it for the p720.
Here is the result: https://github.com/lung1/android_device_lge_p720
Then I used the https://github.com/artas182x/lge-kernel-omap4 for kernel, aosp-5.0 branch. I added cx2 and cosmo support.
Here is the result: https://github.com/lung1/android_kernel_lge_p720
I tried to make bootimage, but I receave this error on witch I didn't find any documentation:
Code:
No private recovery resources for TARGET_DEVICE p720
make -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cx2_su870_defconfig
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
arch/arm/configs/cx2_su870_defconfig:2418:warning: unexpected data
arch/arm/configs/cx2_su870_defconfig:2419:warning: unexpected data
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
arch/arm/configs/cx2_su870_defconfig:2418:warning: unexpected data
arch/arm/configs/cx2_su870_defconfig:2419:warning: unexpected data
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
CHK include/linux/version.h
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" zImage
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
Using /home/a/l/kernel/lge/omap4-common as source for kernel
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[3]: `include/generated/mach-types.h' is up to date.
CALL /home/a/l/kernel/lge/omap4-common/scripts/checksyscalls.sh
CHK include/generated/compile.h
CC arch/arm/mach-omap2/lge/lge-common.o
In file included from ../../../../../../kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:5:0,
from ../../../../../../kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/android-display.h:19,
from ../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:54:
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:151:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:155:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:229:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:237:31: warning: declaration does not declare anything [enabled by default]
} __attribute__ ((aligned(4)));
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:245:31: warning: declaration does not declare anything [enabled by default]
} __attribute__ ((aligned(4)));
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:253:31: warning: declaration does not declare anything [enabled by default]
} __attribute__ ((aligned(4)));
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:385:31: warning: declaration does not declare anything [enabled by default]
} __attribute__ ((aligned(4)));
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:393:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:403:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:441:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:478:31: warning: declaration does not declare anything [enabled by default]
} __attribute__ ((aligned(4)));
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:533:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:545:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:573:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:584:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:616:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:628:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:653:27: error: array type has incomplete element type
struct dsscomp_videomode modedb[]; /* display supported timings */
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:654:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:666:27: error: field 'mode' has incomplete type
struct dsscomp_videomode mode; /* video timings */
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:667:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:693:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:698:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:703:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:744:2: warning: declaration does not declare anything [enabled by default]
};
^
In file included from ../../../../../../kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/android-display.h:19:0,
from ../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:54:
../../../../../../kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:9:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:12:1: error: expected specifier-qualifier-list before 'typedef'
typedef struct dsscomp_data *dsscomp_t; /* handle */
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:219:50: warning: backslash and newline separated by space [enabled by default]
omap_mux_init_signal("abe_dmic_clk1.gpio_119", \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:220:34: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_INPUT_PULLDOWN | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:221:28: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_OFF_NONE | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:224:50: warning: backslash and newline separated by space [enabled by default]
omap_mux_init_signal("abe_dmic_din1.gpio_120", \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:225:34: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_INPUT_PULLDOWN | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:226:28: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_OFF_NONE | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:231:49: warning: backslash and newline separated by space [enabled by default]
omap_mux_init_signal("abe_dmic_din3.gpio_122", \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:232:29: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_INPUT_PULLDOWN | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:233:23: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_OFF_NONE | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:236:50: warning: backslash and newline separated by space [enabled by default]
omap_mux_init_signal("abe_dmic_din2.gpio_121", \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:237:34: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_INPUT_PULLDOWN | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:238:28: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_OFF_NONE | \
^
make[4]: *** [arch/arm/mach-omap2/lge/lge-common.o] Error 1
make[3]: *** [arch/arm/mach-omap2/lge] Error 2
make[2]: *** [arch/arm/mach-omap2] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make: *** [TARGET_KERNEL_BINARIES] Error 2
#### make failed to build some targets (01:31 (mm:ss)) ####
Thanks so much for your help!

LG Optimus 3D Max CM 12.1 building error

Hi,
I'm trying for weeks now to build cm 12.1 for the p725/p720.
I used https://github.com/dhiru1602/android_device_lge_u2-common and changed it for the p720.
Here is the result: https://github.com/lung1/android_device_lge_p720
Then I used the https://github.com/artas182x/lge-kernel-omap4 for kernel, aosp-5.0 branch. I added cx2 and cosmo support.
Here is the result: https://github.com/lung1/android_kernel_lge_p720
I tried to make bootimage, but I receave this error on witch I didn't find any documentation:
Code:
No private recovery resources for TARGET_DEVICE p720
make -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cx2_su870_defconfig
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
arch/arm/configs/cx2_su870_defconfig:2418:warning: unexpected data
arch/arm/configs/cx2_su870_defconfig:2419:warning: unexpected data
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
arch/arm/configs/cx2_su870_defconfig:2418:warning: unexpected data
arch/arm/configs/cx2_su870_defconfig:2419:warning: unexpected data
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
CHK include/linux/version.h
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" zImage
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
Using /home/a/l/kernel/lge/omap4-common as source for kernel
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[3]: `include/generated/mach-types.h' is up to date.
CALL /home/a/l/kernel/lge/omap4-common/scripts/checksyscalls.sh
CHK include/generated/compile.h
CC arch/arm/mach-omap2/lge/lge-common.o
In file included from ../../../../../../kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:5:0,
from ../../../../../../kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/android-display.h:19,
from ../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:54:
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:151:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:155:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:229:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:237:31: warning: declaration does not declare anything [enabled by default]
} __attribute__ ((aligned(4)));
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:245:31: warning: declaration does not declare anything [enabled by default]
} __attribute__ ((aligned(4)));
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:253:31: warning: declaration does not declare anything [enabled by default]
} __attribute__ ((aligned(4)));
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:385:31: warning: declaration does not declare anything [enabled by default]
} __attribute__ ((aligned(4)));
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:393:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:403:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:441:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:478:31: warning: declaration does not declare anything [enabled by default]
} __attribute__ ((aligned(4)));
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:533:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:545:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:573:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:584:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:616:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:628:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:653:27: error: array type has incomplete element type
struct dsscomp_videomode modedb[]; /* display supported timings */
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:654:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:666:27: error: field 'mode' has incomplete type
struct dsscomp_videomode mode; /* video timings */
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:667:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:693:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:698:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:703:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:744:2: warning: declaration does not declare anything [enabled by default]
};
^
In file included from ../../../../../../kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/android-display.h:19:0,
from ../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:54:
../../../../../../kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:9:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:12:1: error: expected specifier-qualifier-list before 'typedef'
typedef struct dsscomp_data *dsscomp_t; /* handle */
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:219:50: warning: backslash and newline separated by space [enabled by default]
omap_mux_init_signal("abe_dmic_clk1.gpio_119", \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:220:34: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_INPUT_PULLDOWN | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:221:28: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_OFF_NONE | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:224:50: warning: backslash and newline separated by space [enabled by default]
omap_mux_init_signal("abe_dmic_din1.gpio_120", \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:225:34: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_INPUT_PULLDOWN | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:226:28: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_OFF_NONE | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:231:49: warning: backslash and newline separated by space [enabled by default]
omap_mux_init_signal("abe_dmic_din3.gpio_122", \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:232:29: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_INPUT_PULLDOWN | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:233:23: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_OFF_NONE | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:236:50: warning: backslash and newline separated by space [enabled by default]
omap_mux_init_signal("abe_dmic_din2.gpio_121", \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:237:34: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_INPUT_PULLDOWN | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:238:28: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_OFF_NONE | \
^
make[4]: *** [arch/arm/mach-omap2/lge/lge-common.o] Error 1
make[3]: *** [arch/arm/mach-omap2/lge] Error 2
make[2]: *** [arch/arm/mach-omap2] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make: *** [TARGET_KERNEL_BINARIES] Error 2
#### make failed to build some targets (01:31 (mm:ss)) ####
Thanks so much for your help!

[Completed] Can't enable OTG when building kernel:getting errors plz help!! LENOVO A6000/plus

I am using
toolchain : arm-linux-gnueabi-linaro_4.9.3-2014.12
kernel source : source code of gods kernel by Tarun93
config:gk_a6000_defconfig
with this config kernel build is succesfull and i got zimage.
but when i enable otg i got these errors
Code:
drivers/usb/core/hub.c: In function ‘usb_enumerate_device_otg’:
drivers/usb/core/hub.c:2257:18: warning: passing argument 1 of ‘otg_send_event’ makes pointer from integer without a cast
otg_send_event(OTG_EVENT_DEV_NOT_SUPPORTED);
^
In file included from drivers/usb/core/hub.c:23:0:
include/linux/usb/otg.h:125:1: note: expected ‘struct usb_otg *’ but argument is of type ‘int’
otg_send_event(struct usb_otg *otg, enum usb_otg_event event)
^
drivers/usb/core/hub.c:2257:3: error: too few arguments to function ‘otg_send_event’
otg_send_event(OTG_EVENT_DEV_NOT_SUPPORTED);
^
In file included from drivers/usb/core/hub.c:23:0:
include/linux/usb/otg.h:125:1: note: declared here
otg_send_event(struct usb_otg *otg, enum usb_otg_event event)
^
drivers/usb/core/hub.c: In function ‘usb_port_suspend’:
drivers/usb/core/hub.c:3053:19: warning: passing argument 1 of ‘otg_send_event’ makes pointer from integer without a cast
otg_send_event(OTG_EVENT_NO_RESP_FOR_HNP_ENABLE);
^
In file included from drivers/usb/core/hub.c:23:0:
include/linux/usb/otg.h:125:1: note: expected ‘struct usb_otg *’ but argument is of type ‘int’
otg_send_event(struct usb_otg *otg, enum usb_otg_event event)
^
drivers/usb/core/hub.c:3053:4: error: too few arguments to function ‘otg_send_event’
otg_send_event(OTG_EVENT_NO_RESP_FOR_HNP_ENABLE);
^
In file included from drivers/usb/core/hub.c:23:0:
include/linux/usb/otg.h:125:1: note: declared here
otg_send_event(struct usb_otg *otg, enum usb_otg_event event)
^
scripts/Makefile.build:308: recipe for target 'drivers/usb/core/hub.o' failed
make[3]: *** [drivers/usb/core/hub.o] Error 1
scripts/Makefile.build:455: recipe for target 'drivers/usb/core' failed
make[2]: *** [drivers/usb/core] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/usb' failed
make[1]: *** [drivers/usb] Error 2
please!!!!! help me to solve these errors
ameen ahsan said:
I am using
toolchain : arm-linux-gnueabi-linaro_4.9.3-2014.12
kernel source : source code of gods kernel by Tarun93
config:gk_a6000_defconfig
with this config kernel build is succesfull and i got zimage.
but when i enable otg i got these errors
Code:
drivers/usb/core/hub.c: In function ‘usb_enumerate_device_otg’:
drivers/usb/core/hub.c:2257:18: warning: passing argument 1 of ‘otg_send_event’ makes pointer from integer without a cast
otg_send_event(OTG_EVENT_DEV_NOT_SUPPORTED);
^
In file included from drivers/usb/core/hub.c:23:0:
include/linux/usb/otg.h:125:1: note: expected ‘struct usb_otg *’ but argument is of type ‘int’
otg_send_event(struct usb_otg *otg, enum usb_otg_event event)
^
drivers/usb/core/hub.c:2257:3: error: too few arguments to function ‘otg_send_event’
otg_send_event(OTG_EVENT_DEV_NOT_SUPPORTED);
^
In file included from drivers/usb/core/hub.c:23:0:
include/linux/usb/otg.h:125:1: note: declared here
otg_send_event(struct usb_otg *otg, enum usb_otg_event event)
^
drivers/usb/core/hub.c: In function ‘usb_port_suspend’:
drivers/usb/core/hub.c:3053:19: warning: passing argument 1 of ‘otg_send_event’ makes pointer from integer without a cast
otg_send_event(OTG_EVENT_NO_RESP_FOR_HNP_ENABLE);
^
In file included from drivers/usb/core/hub.c:23:0:
include/linux/usb/otg.h:125:1: note: expected ‘struct usb_otg *’ but argument is of type ‘int’
otg_send_event(struct usb_otg *otg, enum usb_otg_event event)
^
drivers/usb/core/hub.c:3053:4: error: too few arguments to function ‘otg_send_event’
otg_send_event(OTG_EVENT_NO_RESP_FOR_HNP_ENABLE);
^
In file included from drivers/usb/core/hub.c:23:0:
include/linux/usb/otg.h:125:1: note: declared here
otg_send_event(struct usb_otg *otg, enum usb_otg_event event)
^
scripts/Makefile.build:308: recipe for target 'drivers/usb/core/hub.o' failed
make[3]: *** [drivers/usb/core/hub.o] Error 1
scripts/Makefile.build:455: recipe for target 'drivers/usb/core' failed
make[2]: *** [drivers/usb/core] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/usb' failed
make[1]: *** [drivers/usb] Error 2
please!!!!! help me to solve these errors
Click to expand...
Click to collapse
Hello,
Try posting your query here [Tutorial] Building Your First Kernel or [GUIDE][COMPLETE] Android ROM Development From Source To Endwith all relevant details, the experts there maybe able to assist you.
-Vatsal

Error while compiling Kernel from source (Mediatek)

So I was compiling kernel for my Meizu m2 note and I encountered this error :
Code:
In file included from /home/suvam/RRMM/kernel/meizu/m2note/arch/arm64/include/asm/io.h:243:0,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/clocksource.h:19,
from /home/suvam/RRMM/kernel/meizu/m2note/include/clocksource/arm_arch_timer.h:19,
from /home/suvam/RRMM/kernel/meizu/m2note/arch/arm64/include/asm/arch_timer.h:27,
from /home/suvam/RRMM/kernel/meizu/m2note/arch/arm64/include/asm/timex.h:19,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/timex.h:65,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/jiffies.h:8,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/ktime.h:25,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/timer.h:5,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/workqueue.h:8,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/pm.h:25,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/device.h:25,
from drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:11:
/home/suvam/RRMM/kernel/meizu/m2note/include/asm-generic/iomap.h:31:21: note: expected 'void *' but argument is of type 'long unsigned int'
extern unsigned int ioread32(void __iomem *);
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:99:26: warning: passing argument 1 of 'ioread32' makes pointer from integer without a cast
#define ISP_RD32(addr) ioread32(addr)
^
/home/suvam/RRMM/kernel/meizu/m2note/include/linux/printk.h:248:38: note: in expansion of macro 'ISP_RD32'
no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:87:37: note: in expansion of macro 'pr_debug'
#define LOG_DBG(format, args...) pr_debug(MyTag format, ##args)
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:10828:3: note: in expansion of macro 'LOG_DBG'
LOG_DBG("0x%08X %08X", (unsigned int)(ISP_TPIPE_ADDR + 0x00a8), (unsigned int)ISP_RD32(ISP_ADDR + 0x00a8));
^
In file included from /home/suvam/RRMM/kernel/meizu/m2note/arch/arm64/include/asm/io.h:243:0,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/clocksource.h:19,
from /home/suvam/RRMM/kernel/meizu/m2note/include/clocksource/arm_arch_timer.h:19,
from /home/suvam/RRMM/kernel/meizu/m2note/arch/arm64/include/asm/arch_timer.h:27,
from /home/suvam/RRMM/kernel/meizu/m2note/arch/arm64/include/asm/timex.h:19,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/timex.h:65,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/jiffies.h:8,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/ktime.h:25,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/timer.h:5,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/workqueue.h:8,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/pm.h:25,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/device.h:25,
from drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:11:
/home/suvam/RRMM/kernel/meizu/m2note/include/asm-generic/iomap.h:31:21: note: expected 'void *' but argument is of type 'long unsigned int'
extern unsigned int ioread32(void __iomem *);
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c: At top level:
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:175:22: warning: 'g_isp_base_dase' defined but not used [-Wunused-variable]
static void __iomem *g_isp_base_dase;
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:176:22: warning: 'g_isp_inner_base_dase' defined but not used [-Wunused-variable]
static void __iomem *g_isp_inner_base_dase;
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:177:22: warning: 'g_imgsys_config_base_dase' defined but not used [-Wunused-variable]
static void __iomem *g_imgsys_config_base_dase;
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c: In function 'compat_put_isp_read_register_data':
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:8407:6: warning: 'err' is used uninitialized in this function [-Wuninitialized]
err |= get_user(count, &data->Count);
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c: In function 'ISP_DONE_Buf_Time.isra.4':
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:5522:49: warning: 'out' may be used uninitialized in this function [-Wmaybe-uninitialized]
pstRTBuf->ring_buf[i_dma].img_cnt = sof_count[out];
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c: In function 'ISP_Buf_CTRL_FUNC':
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:4447:34: warning: 'out' may be used uninitialized in this function [-Wmaybe-uninitialized]
deque_buf.sof_cnt = sof_count[out];
^
LD drivers/misc/mediatek/mach/mt6735/built-in.o
LD drivers/misc/mediatek/mach/built-in.o
make[4]: *** [drivers/misc/mediatek] Error 2
make[3]: *** [drivers/misc] Error 2
make[2]: *** [drivers] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/suvam/RRMM/kernel/meizu/m2note'
make: *** [TARGET_KERNEL_BINARIES] Error 2
#### make failed to build some targets (09:32 (mm:ss)) ####
Can somebody please help me out ?

Categories

Resources