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

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

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

Unbable to add GOVERNOR.

Today i tried to add ONDEMANDX GOVERNOR TO MY KERNEL I got this error.
Code:
[email protected]:~/android/xperia/D2212-02/kernel$ make ARCH=arm CROSS_COMPILE=~/tc/bin/arm-cortex_a7-linux-gnueabihf- -j3
CHK include/linux/version.h
make[1]: Nothing to be done for `arch/arm/boot/dtbs'.
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC arch/arm/mach-msm/acpuclock-cortex.o
CC arch/arm/mach-msm/msm_rq_stats.o
CC arch/arm/mach-msm/cpufreq.o
CC drivers/cpufreq/cpufreq.o
CC arch/arm/mach-msm/devfreq_cpubw.o
LD arch/arm/mach-msm/built-in.o
CC drivers/cpufreq/cpu-boost.o
CC drivers/cpufreq/cpufreq_stats.o
CC drivers/devfreq/devfreq.o
CC drivers/cpufreq/cpufreq_performance.o
CC drivers/cpufreq/cpufreq_powersave.o
CC drivers/cpufreq/cpufreq_userspace.o
CC drivers/cpufreq/cpufreq_ondemand.o
CC drivers/cpufreq/cpufreq_ondemandx.o
CC drivers/devfreq/governor_simpleondemand.o
drivers/cpufreq/cpufreq_ondemandx.c:132:9: error: unknown field ‘suspend’ specified in initializer
.suspend = ondemandx_early_suspend,
^
drivers/cpufreq/cpufreq_ondemandx.c:133:9: error: unknown field ‘resume’ specified in initializer
.resume = ondemandx_late_resume,
^
drivers/cpufreq/cpufreq_ondemandx.c:134:9: error: unknown field ‘level’ specified in initializer
.level = EARLY_SUSPEND_LEVEL_DISABLE_FB + 1,
^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘get_cpu_idle_time_jiffy’:
drivers/cpufreq/cpufreq_ondemandx.c:166:42: error: ‘struct kernel_stat’ has no member named ‘cpustat’
busy_time = cputime64_add(kstat_cpu(cpu).cpustat.user,
^
drivers/cpufreq/cpufreq_ondemandx.c:167:18: error: ‘struct kernel_stat’ has no member named ‘cpustat’
kstat_cpu(cpu).cpustat.system);
^
drivers/cpufreq/cpufreq_ondemandx.c:169:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.irq);
^
drivers/cpufreq/cpufreq_ondemandx.c:170:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.softirq);
^
drivers/cpufreq/cpufreq_ondemandx.c:171:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.steal);
^
drivers/cpufreq/cpufreq_ondemandx.c:172:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.nice);
^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘store_ignore_nice_load’:
drivers/cpufreq/cpufreq_ondemandx.c:382:42: error: ‘struct kernel_stat’ has no member named ‘cpustat’
dbs_info->prev_cpu_nice = kstat_cpu(j).cpustat.nice;
^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘dbs_check_cpu’:
drivers/cpufreq/cpufreq_ondemandx.c:498:41: error: ‘struct kernel_stat’ has no member named ‘cpustat’
cur_nice = cputime64_sub(kstat_cpu(j).cpustat.nice,
^
drivers/cpufreq/cpufreq_ondemandx.c:507:44: error: ‘struct kernel_stat’ has no member named ‘cpustat’
j_dbs_info->prev_cpu_nice = kstat_cpu(j).cpustat.nice;
^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘cpufreq_governor_dbs’:
drivers/cpufreq/cpufreq_ondemandx.c:689:19: error: ‘struct kernel_stat’ has no member named ‘cpustat’
kstat_cpu(j).cpustat.nice;
^
make[2]: *** [drivers/cpufreq/cpufreq_ondemandx.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CC drivers/devfreq/governor_performance.o
CC drivers/devfreq/governor_powersave.o
make[1]: *** [drivers/cpufreq] Error 2
make[1]: *** Waiting for unfinished jobs....
CC drivers/devfreq/governor_userspace.o
CC drivers/devfreq/governor_msm_adreno_tz.o
CC drivers/devfreq/governor_msm_cpufreq.o
LD drivers/devfreq/built-in.o
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
[email protected]:~/android/xperia/D2212-02/kernel$ make ARCH=arm CROSS_COMPILE=~/tc/bin/arm-cortex_a7-linux-gnueabihf- -j3
CHK include/linux/version.h
make[1]: Nothing to be done for `arch/arm/boot/dtbs'.
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/cpufreq/cpufreq_ondemand.o
In file included from include/asm-generic/percpu.h:6:0,
from arch/arm/include/generated/asm/percpu.h:1,
from include/linux/percpu.h:10,
from include/linux/topology.h:34,
from include/linux/gfp.h:7,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from drivers/cpufreq/cpufreq_ondemand.c:15:
include/linux/percpu-defs.h:80:2: error: expected ‘,’ or ‘;’ before ‘__typeof__’
__typeof__(type) name
^
include/linux/percpu-defs.h:91:2: note: in expansion of macro ‘DEFINE_PER_CPU_SECTION’
DEFINE_PER_CPU_SECTION(type, name, "")
^
drivers/cpufreq/cpufreq_ondemand.c:114:7: note: in expansion of macro ‘DEFINE_PER_CPU’
tatic DEFINE_PER_CPU(unsigned int, cpu_load);
^
make[2]: *** [drivers/cpufreq/cpufreq_ondemand.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
[email protected]:~/android/xperia/D2212-02/kernel$ make ARCH=arm CROSS_COMPILE=~/tc/bin/arm-cortex_a7-linux-gnueabihf- -j3
CHK include/linux/version.h
make[1]: Nothing to be done for `arch/arm/boot/dtbs'.
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/cpufreq/cpufreq_ondemand.o
CC drivers/cpufreq/cpufreq_ondemandx.o
drivers/cpufreq/cpufreq_ondemandx.c:132:9: error: unknown field ‘suspend’ specified in initializer
.suspend = ondemandx_early_suspend,
^
drivers/cpufreq/cpufreq_ondemandx.c:133:9: error: unknown field ‘resume’ specified in initializer
.resume = ondemandx_late_resume,
^
drivers/cpufreq/cpufreq_ondemandx.c:134:9: error: unknown field ‘level’ specified in initializer
.level = EARLY_SUSPEND_LEVEL_DISABLE_FB + 1,
^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘get_cpu_idle_time_jiffy’:
drivers/cpufreq/cpufreq_ondemandx.c:166:42: error: ‘struct kernel_stat’ has no member named ‘cpustat’
busy_time = cputime64_add(kstat_cpu(cpu).cpustat.user,
^
drivers/cpufreq/cpufreq_ondemandx.c:167:18: error: ‘struct kernel_stat’ has no member named ‘cpustat’
kstat_cpu(cpu).cpustat.system);
^
drivers/cpufreq/cpufreq_ondemandx.c:169:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.irq);
^
drivers/cpufreq/cpufreq_ondemandx.c:170:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.softirq);
^
drivers/cpufreq/cpufreq_ondemandx.c:171:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.steal);
^
drivers/cpufreq/cpufreq_ondemandx.c:172:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.nice);
^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘store_ignore_nice_load’:
drivers/cpufreq/cpufreq_ondemandx.c:382:42: error: ‘struct kernel_stat’ has no member named ‘cpustat’
dbs_info->prev_cpu_nice = kstat_cpu(j).cpustat.nice;
^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘dbs_check_cpu’:
drivers/cpufreq/cpufreq_ondemandx.c:498:41: error: ‘struct kernel_stat’ has no member named ‘cpustat’
cur_nice = cputime64_sub(kstat_cpu(j).cpustat.nice,
^
drivers/cpufreq/cpufreq_ondemandx.c:507:44: error: ‘struct kernel_stat’ has no member named ‘cpustat’
j_dbs_info->prev_cpu_nice = kstat_cpu(j).cpustat.nice;
^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘cpufreq_governor_dbs’:
drivers/cpufreq/cpufreq_ondemandx.c:689:19: error: ‘struct kernel_stat’ has no member named ‘cpustat’
kstat_cpu(j).cpustat.nice;
^
make[2]: *** [drivers/cpufreq/cpufreq_ondemandx.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
[email protected]:~/android/xperia/D2212-02/kernel$ make ARCH=arm CROSS_COMPILE=~/tc/bin/arm-cortex_a7-linux-gnueabihf- -j3
CHK include/linux/version.h
make[1]: Nothing to be done for `arch/arm/boot/dtbs'.
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/cpufreq/cpufreq_ondemand.o
CC drivers/cpufreq/cpufreq_ondemandx.o
drivers/cpufreq/cpufreq_ondemandx.c:134:9: error: unknown field ‘suspend’ specified in initializer
.suspend = ondemandx_early_suspend,
^
drivers/cpufreq/cpufreq_ondemandx.c:135:9: error: unknown field ‘resume’ specified in initializer
.resume = ondemandx_late_resume,
^
drivers/cpufreq/cpufreq_ondemandx.c:136:9: error: unknown field ‘level’ specified in initializer
.level = EARLY_SUSPEND_LEVEL_DISABLE_FB + 1,
^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘get_cpu_idle_time_jiffy’:
drivers/cpufreq/cpufreq_ondemandx.c:168:42: error: ‘struct kernel_stat’ has no member named ‘cpustat’
busy_time = cputime64_add(kstat_cpu(cpu).cpustat.user,
^
drivers/cpufreq/cpufreq_ondemandx.c:169:18: error: ‘struct kernel_stat’ has no member named ‘cpustat’
kstat_cpu(cpu).cpustat.system);
^
drivers/cpufreq/cpufreq_ondemandx.c:171:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.irq);
^
drivers/cpufreq/cpufreq_ondemandx.c:172:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.softirq);
^
drivers/cpufreq/cpufreq_ondemandx.c:173:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.steal);
^
drivers/cpufreq/cpufreq_ondemandx.c:174:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.nice);
^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘store_ignore_nice_load’:
drivers/cpufreq/cpufreq_ondemandx.c:384:42: error: ‘struct kernel_stat’ has no member named ‘cpustat’
dbs_info->prev_cpu_nice = kstat_cpu(j).cpustat.nice;
^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘dbs_check_cpu’:
drivers/cpufreq/cpufreq_ondemandx.c:500:41: error: ‘struct kernel_stat’ has no member named ‘cpustat’
cur_nice = cputime64_sub(kstat_cpu(j).cpustat.nice,
^
drivers/cpufreq/cpufreq_ondemandx.c:509:44: error: ‘struct kernel_stat’ has no member named ‘cpustat’
j_dbs_info->prev_cpu_nice = kstat_cpu(j).cpustat.nice;
^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘cpufreq_governor_dbs’:
drivers/cpufreq/cpufreq_ondemandx.c:691:19: error: ‘struct kernel_stat’ has no member named ‘cpustat’
kstat_cpu(j).cpustat.nice;
^
make[2]: *** [drivers/cpufreq/cpufreq_ondemandx.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
[email protected]:~/android/xperia/D2212-02/kernel$ clean
No command 'clean' found, did you mean:
Command 'clear' from package 'ncurses-bin' (main)
Command 'pclean' from package 'pbuilder-scripts' (universe)
Command 'uclean' from package 'svn-buildpackage' (universe)
clean: command not found
[email protected]:~/android/xperia/D2212-02/kernel$ clear
[email protected]:~/android/xperia/D2212-02/kernel$ make ARCH=arm CROSS_COMPILE=~/tc/bin/arm-cortex_a7-linux-gnueabihf- -j3
CHK include/linux/version.h
make[1]: Nothing to be done for `arch/arm/boot/dtbs'.
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/cpufreq/cpufreq_ondemand.o
CC drivers/cpufreq/cpufreq_ondemandx.o
drivers/cpufreq/cpufreq_ondemandx.c:132:9: error: unknown field ‘suspend’ specified in initializer
.suspend = ondemandx_early_suspend,
^
drivers/cpufreq/cpufreq_ondemandx.c:133:9: error: unknown field ‘resume’ specified in initializer
.resume = ondemandx_late_resume,
^
drivers/cpufreq/cpufreq_ondemandx.c:134:9: error: unknown field ‘level’ specified in initializer
.level = EARLY_SUSPEND_LEVEL_DISABLE_FB + 1,
^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘get_cpu_idle_time_jiffy’:
drivers/cpufreq/cpufreq_ondemandx.c:166:42: error: ‘struct kernel_stat’ has no member named ‘cpustat’
busy_time = cputime64_add(kstat_cpu(cpu).cpustat.user,
^
drivers/cpufreq/cpufreq_ondemandx.c:167:18: error: ‘struct kernel_stat’ has no member named ‘cpustat’
kstat_cpu(cpu).cpustat.system);
^
drivers/cpufreq/cpufreq_ondemandx.c:169:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.irq);
^
drivers/cpufreq/cpufreq_ondemandx.c:170:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.softirq);
^
drivers/cpufreq/cpufreq_ondemandx.c:171:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.steal);
^
drivers/cpufreq/cpufreq_ondemandx.c:172:53: error: ‘struct kernel_stat’ has no member named ‘cpustat’
busy_time = cputime64_add(busy_time, kstat_cpu(cpu).cpustat.nice);
^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘store_ignore_nice_load’:
drivers/cpufreq/cpufreq_ondemandx.c:382:42: error: ‘struct kernel_stat’ has no member named ‘cpustat’
dbs_info->prev_cpu_nice = kstat_cpu(j).cpustat.nice;
^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘dbs_check_cpu’:
drivers/cpufreq/cpufreq_ondemandx.c:498:41: error: ‘struct kernel_stat’ has no member named ‘cpustat’
cur_nice = cputime64_sub(kstat_cpu(j).cpustat.nice,
^
drivers/cpufreq/cpufreq_ondemandx.c:507:44: error: ‘struct kernel_stat’ has no member named ‘cpustat’
j_dbs_info->prev_cpu_nice = kstat_cpu(j).cpustat.nice;
^
drivers/cpufreq/cpufreq_ondemandx.c: In function ‘cpufreq_governor_dbs’:
drivers/cpufreq/cpufreq_ondemandx.c:689:19: error: ‘struct kernel_stat’ has no member named ‘cpustat’
kstat_cpu(j).cpustat.nice;
^
make[2]: *** [drivers/cpufreq/cpufreq_ondemandx.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
I am sure i have done everything correctly.
you can check my source code here => https://github.com/vinay94185vinay/Flamingo-kernel
Update the ondemandx governor source from a better version.
AFAIK ,you are using the source of 2.6.x which had the cpustat defined in kernel_stat.
It's not the case right now since now cpustat is defined in kernel_cpustat.
karandpr said:
Update the ondemandx governor source from a better version.
AFAIK ,you are using the source of 2.6.x which had the cpustat defined in kernel_stat.
It's not the case right now since now cpustat is defined in kernel_cpustat.
Click to expand...
Click to collapse
so, I have have to get governor form same version of kernel source that I have.
am I right.(which is lowest version of kernel I can use.)
vinay said:
so, I have have to get governor form same version of kernel source that I have.
am I right.(which is lowest version of kernel I can use.)
Click to expand...
Click to collapse
3.4.x...
I don't have patience to check out full lkml and actually pinpoint on when they decided to create a separate struct for cpustat . It was done for 64 arch and cpustat is now a u64 variable instead of struct. ...so the struct you are looking at will be kernel_cpustat instead of cpustat... A whole lot of can of worms if you ask me....
karandpr said:
3.4.x...
I don't have patience to check out full lkml and actually pinpoint on when they decided to create a separate struct for cpustat . It was done for 64 arch and cpustat is now a u64 variable instead of struct. ...so the struct you are looking at will be kernel_cpustat instead of cpustat... A whole lot of can of worms if you ask me....
Click to expand...
Click to collapse
ok i will check source from 3.4.x.
thank,s again.
karandpr said:
3.4.x...
I don't have patience to check out full lkml and actually pinpoint on when they decided to create a separate struct for cpustat . It was done for 64 arch and cpustat is now a u64 variable instead of struct. ...so the struct you are looking at will be kernel_cpustat instead of cpustat... A whole lot of can of worms if you ask me....
Click to expand...
Click to collapse
i did,t found ondemandx but found intellidemand and it worked.
but when i change my governor to intelidemand phone crash and reboot.
vinay said:
i did,t found ondemandx but found intellidemand and it worked.
but when i change my governor to intelidemand phone crash and reboot.
Click to expand...
Click to collapse
last_kmsg ?
karandpr said:
last_kmsg ?
Click to expand...
Click to collapse
thare is no last_kmsg.
were is option of enabling last_kmsg in menuconfig.
vinay said:
thare is no last_kmsg.
were is option of enabling last_kmsg in menuconfig.
Click to expand...
Click to collapse
It's a patch in ram console driver...
It should be present iff the kernel has panicked ....
karandpr said:
It's a patch in ram console driver...
It should be present iff the kernel has panicked ....
Click to expand...
Click to collapse
in xperia e3 thare is no last_kmsg.
atleast in stock. it,s disabled by sony.
i tryed finding it in make menuconfig.
but did,t found how can i enable it.
vinay said:
in xperia e3 thare is no last_kmsg.
atleast in stock. it,s disabled by sony.
i tryed finding it in make menuconfig.
but did,t found how can i enable it.
Click to expand...
Click to collapse
It should already be enabled with .....
CONFIG_ANDROID_RAM_CONSOLE=y
CONFIG_ANDROID_RAM_CONSOLE_ENABLE_VERBOSE=y
karandpr said:
It should already be enabled with .....
CONFIG_ANDROID_RAM_CONSOLE=y
CONFIG_ANDROID_RAM_CONSOLE_ENABLE_VERBOSE=y
Click to expand...
Click to collapse
CONFIG_ANDROID_RAM_CONSOLE=y
was already in defconfig so i added only
CONFIG_ANDROID_RAM_CONSOLE_ENABLE_VERBOSE=y
but still no last_kmsg.
i have attached a list of files so you can check.
EDIT
i added intelliactive governor and it worked.
why intelidemand is not working
vinay said:
CONFIG_ANDROID_RAM_CONSOLE=y
was already in defconfig so i added only
CONFIG_ANDROID_RAM_CONSOLE_ENABLE_VERBOSE=y
but still no last_kmsg.
i have attached a list of files so you can check.
EDIT
i added intelliactive governor and it worked.
why intelidemand is not working
Click to expand...
Click to collapse
what are the contents of last_ssr_kmsg ?
karandpr said:
what are the contents of last_ssr_kmsg ?
Click to expand...
Click to collapse
it is empty.
opened with gedit and also done cat /proc/last_ssr_kmsg
it was empty file.
vinay said:
it is empty.
opened with gedit and also done cat /proc/last_ssr_kmsg
it was empty file.
Click to expand...
Click to collapse
In that case ,tough luck mate !!
Rollback the commit and twiddle thumbs ...
karandpr said:
In that case ,tough luck mate !!
Rollback the commit and twiddle thumbs ...
Click to expand...
Click to collapse
that,s all i can do.
BUT
SONY MIGHT HAVE DISABLED LAST_KMSG THROUGH A PATCH IN RAM DISK
IS IT POSSIBLE.
should i check ramdisk.
Why are you asking? , check ramdisk and see for yourself.....
Else boot to recovery and see if kmsg is present..
karandpr said:
Why are you asking? , check ramdisk and see for yourself.....
Else boot to recovery and see if kmsg is present..
Click to expand...
Click to collapse
that,s why i was asking.
you could give me a tip.
i will boot into recovery. it,s better that reading ramdisk for hour,s and hour,s.
EDIT
no last kmsg.
so NO HOPE.
i am rolling back.
(BTW, did you mean delete and commit by roll back or thare is really a roll back command in git hub)
You can use git revert ...
karandpr said:
You can use git revert ...
Click to expand...
Click to collapse
i did,t understood.
i am going to use delete and commit.

[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!

Can't enable otg in kernel error

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

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