Problems building cm 11 - Sony Xperia M2

Hi,
I don't know if this question belongs here, so mods feel free to move it to a more appropriate place.
I tried to build cm11 from source to help testing, but it ran into an error with libril which I don't know how to fix.
I followed the instructions given here: https://github.com/M2Dev/local_manifest
but after brunch runs a while it spits out the following error:
Code:
device/sony/qcom-common/libril/ril.cpp:149:33: warning: 'rild' initialized and declared 'extern' [enabled by default]
In file included from device/sony/qcom-common/libril/ril.cpp:274:0:
device/sony/qcom-common/libril/ril_commands.h:138:6: error: 'RIL_REQUEST_SIM_TRANSMIT_BASIC' was not declared in this scope
device/sony/qcom-common/libril/ril_commands.h:139:6: error: 'RIL_REQUEST_SIM_OPEN_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril_commands.h:140:6: error: 'RIL_REQUEST_SIM_CLOSE_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril_commands.h:141:6: error: 'RIL_REQUEST_SIM_TRANSMIT_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril_commands.h:142:6: error: 'RIL_REQUEST_SIM_GET_ATR' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp: In function 'void android::dispatchSIM_IO(android::Parcel&, android::RequestInfo*)':
device/sony/qcom-common/libril/ril.cpp:782:14: error: 'struct RIL_SIM_IO_v6' has no member named 'cla'
device/sony/qcom-common/libril/ril.cpp:783:35: error: 'RIL_REQUEST_SIM_TRANSMIT_BASIC' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:784:40: error: 'RIL_REQUEST_SIM_TRANSMIT_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:786:18: error: 'struct RIL_SIM_IO_v6' has no member named 'cla'
device/sony/qcom-common/libril/ril.cpp: In function 'int android::responseGetDataCallProfile(android::Parcel&, void*, size_t)':
device/sony/qcom-common/libril/ril.cpp:3014:61: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/sony/qcom-common/libril/ril.cpp: In function 'const char* android::requestToString(int)':
device/sony/qcom-common/libril/ril.cpp:4064:14: error: 'RIL_REQUEST_SIM_TRANSMIT_BASIC' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:4065:14: error: 'RIL_REQUEST_SIM_OPEN_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:4066:14: error: 'RIL_REQUEST_SIM_CLOSE_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:4067:14: error: 'RIL_REQUEST_SIM_TRANSMIT_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:4068:14: error: 'RIL_REQUEST_SIM_GET_ATR' was not declared in this scope
build/core/binary.mk:432: recipe for target '/data/build/cm11/out/target/product/eagle/obj/SHARED_LIBRARIES/libril_intermediates/ril.o' failed
make: *** [/data/build/cm11/out/target/product/eagle/obj/SHARED_LIBRARIES/libril_intermediates/ril.o] Error 1
So what did I do wrong?

sudden36 said:
Hi,
I don't know if this question belongs here, so mods feel free to move it to a more appropriate place.
I tried to build cm11 from source to help testing, but it ran into an error with libril which I don't know how to fix.
I followed the instructions given here: https://github.com/M2Dev/local_manifest
but after brunch runs a while it spits out the following error:
Code:
device/sony/qcom-common/libril/ril.cpp:149:33: warning: 'rild' initialized and declared 'extern' [enabled by default]
In file included from device/sony/qcom-common/libril/ril.cpp:274:0:
device/sony/qcom-common/libril/ril_commands.h:138:6: error: 'RIL_REQUEST_SIM_TRANSMIT_BASIC' was not declared in this scope
device/sony/qcom-common/libril/ril_commands.h:139:6: error: 'RIL_REQUEST_SIM_OPEN_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril_commands.h:140:6: error: 'RIL_REQUEST_SIM_CLOSE_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril_commands.h:141:6: error: 'RIL_REQUEST_SIM_TRANSMIT_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril_commands.h:142:6: error: 'RIL_REQUEST_SIM_GET_ATR' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp: In function 'void android::dispatchSIM_IO(android::Parcel&, android::RequestInfo*)':
device/sony/qcom-common/libril/ril.cpp:782:14: error: 'struct RIL_SIM_IO_v6' has no member named 'cla'
device/sony/qcom-common/libril/ril.cpp:783:35: error: 'RIL_REQUEST_SIM_TRANSMIT_BASIC' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:784:40: error: 'RIL_REQUEST_SIM_TRANSMIT_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:786:18: error: 'struct RIL_SIM_IO_v6' has no member named 'cla'
device/sony/qcom-common/libril/ril.cpp: In function 'int android::responseGetDataCallProfile(android::Parcel&, void*, size_t)':
device/sony/qcom-common/libril/ril.cpp:3014:61: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/sony/qcom-common/libril/ril.cpp: In function 'const char* android::requestToString(int)':
device/sony/qcom-common/libril/ril.cpp:4064:14: error: 'RIL_REQUEST_SIM_TRANSMIT_BASIC' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:4065:14: error: 'RIL_REQUEST_SIM_OPEN_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:4066:14: error: 'RIL_REQUEST_SIM_CLOSE_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:4067:14: error: 'RIL_REQUEST_SIM_TRANSMIT_CHANNEL' was not declared in this scope
device/sony/qcom-common/libril/ril.cpp:4068:14: error: 'RIL_REQUEST_SIM_GET_ATR' was not declared in this scope
build/core/binary.mk:432: recipe for target '/data/build/cm11/out/target/product/eagle/obj/SHARED_LIBRARIES/libril_intermediates/ril.o' failed
make: *** [/data/build/cm11/out/target/product/eagle/obj/SHARED_LIBRARIES/libril_intermediates/ril.o] Error 1
So what did I do wrong?
Click to expand...
Click to collapse
@sudden36 did u find the solution?

Yes the proper commands to build are in this post: http://forum.xda-developers.com/showthread.php?p=56341637

Related

[Q] AOSP Compiling error! HELP!

Hi guys. Currently compiling AOSP ICS, but having some problems.
First of all:
Code:
target thumb C++: audio.primary.gio <= device/samsung/msm7x27-common/libaudio/AudioHardware.cpp
In file included from device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:35:
device/samsung/msm7x27-common/libaudio/AudioHardware.h:30:39: error: linux/msm_audio_voicememo.h: No such file or directory
In file included from device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:35:
device/samsung/msm7x27-common/libaudio/AudioHardware.h:180: error: 'audio_output_flags_t' has not been declared
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp: In constructor 'android_audio_legacy::AudioHardware::AudioHardware()':
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:122: error: 'SND_SET_MAIN_MIC' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:187: error: 'SND_AVC_CTL' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:188: error: 'SND_AGC_CTL' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp: At global scope:
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:220: error: 'audio_output_flags_t' has not been declared
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp: In function 'int android_audio_legacy::msm72xx_enable_postproc(bool)':
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:894: warning: comparison between signed and unsigned integer expressions
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:899: warning: comparison between signed and unsigned integer expressions
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:904: warning: comparison between signed and unsigned integer expressions
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:929: error: 'AUDIO_SET_MBADRC' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setVoiceVolume(float)':
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1110: warning: comparison between signed and unsigned integer expressions
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1110: warning: comparison between signed and unsigned integer expressions
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::doRouting(android_audio_legacy::AudioHardware::AudioStreamInMSM72xx*)':
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1316: warning: comparison between signed and unsigned integer expressions
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1319: warning: comparison between signed and unsigned integer expressions
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::set(android_audio_legacy::AudioHardware*, uint32_t, int*, uint32_t*, uint32_t*, android_audio_legacy::AudioSystem::audio_in_acoustics)':
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1681: error: aggregate 'android_audio_legacy::msm_audio_voicememo_config gcfg' has incomplete type and cannot be defined
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1769: error: 'RPC_VOC_REC_BOTH' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1772: error: 'RPC_VOC_REC_FORWARD' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1775: error: 'RPC_VOC_REC_REVERSE' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1780: error: 'RPC_VOC_REC_REVERSE' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1791: error: 'RPC_VOC_CAP_AMR' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1792: error: 'RPC_VOC_AMR_RATE_1220' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1794: error: 'RPC_VOC_PB_AMR' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1809: error: 'AUDIO_SET_VOICEMEMO_CONFIG' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:1815: error: 'AUDIO_GET_VOICEMEMO_CONFIG' was not declared in this scope
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'virtual ssize_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::read(void*, ssize_t)':
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:2037: warning: format '%d' expects type 'int', but argument 4 has type 'ssize_t'
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp: In function 'android_audio_legacy::AudioHardwareInterface* android_audio_legacy::createAudioHardware()':
device/samsung/msm7x27-common/libaudio/AudioHardware.cpp:2136: error: cannot allocate an object of abstract type 'android_audio_legacy::AudioHardware'
device/samsung/msm7x27-common/libaudio/AudioHardware.h:157: note: because the following virtual functions are pure within 'android_audio_legacy::AudioHardware':
hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:232: note: virtual android_audio_legacy::AudioStreamOut* android_audio_legacy::AudioHardwareInterface::openOutputStream(uint32_t, int*, uint32_t*, uint32_t*, android::status_t*)
make: *** [out/target/product/gio/obj/SHARED_LIBRARIES/audio.primary.gio_intermediates/AudioHardware.o] Errore 1

[DEV] Kernel 3.4 - WIP

I am working on kernel 3.4.39 for bravo/bravoc.
Currently lots needs to be done, but its almost compiling.
TODO: board files, mdp/kgsl, yaffs2, pm, memory, mmc, drivers (list not made yet), possible more.
Hopes: Vsync, ION, make it boot
If anyone would like to help please PM or pull request and join irc (not set up yet).
https://github.com/croniccorey/WIP-8x50
@Shaky156 Thanks for setting up the thread.
Last kmesg / Current build errors
Code:
Currently not compiling:
yaffs2_vfs
pm
memory
Code:
Errors compiling memory.c:
CC arch/arm/mach-msm/memory.o
In file included from arch/arm/mach-msm/include/mach/msm_memtypes.h:36:0,
from arch/arm/mach-msm/memory.c:29:
arch/arm/mach-msm/include/mach/memory.h:21:0: warning: "PHYS_OFFSET" redefined [enabled by default]
#define PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
^
In file included from /home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/page.h:170:0,
from include/linux/mmzone.h:20,
from include/linux/gfp.h:4,
from include/linux/mm.h:8,
from arch/arm/mach-msm/memory.c:17:
/home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/memory.h:161:0: note: this is the location of the previous definition
#define PHYS_OFFSET __pv_phys_offset
^
In file included from arch/arm/mach-msm/memory.c:39:0:
arch/arm/include/generated/../../mm/mm.h: In function 'set_top_pte':
arch/arm/include/generated/../../mm/mm.h:23:2: error: implicit declaration of function 'local_flush_tlb_kernel_page' [-Werror=implicit-function-declaration]
local_flush_tlb_kernel_page(va);
^
In file included from include/linux/mm.h:44:0,
from arch/arm/mach-msm/memory.c:17:
arch/arm/include/generated/../../mm/mm.h: In function 'pmd_off_k':
/home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/pgtable.h:163:40: error: 'init_mm' undeclared (first use in this function)
#define pgd_offset_k(addr) pgd_offset(&init_mm, addr)
^
/home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/pgtable.h:160:32: note: in definition of macro 'pgd_offset'
#define pgd_offset(mm, addr) ((mm)->pgd + pgd_index(addr))
^
arch/arm/include/generated/../../mm/mm.h:34:31: note: in expansion of macro 'pgd_offset_k'
return pmd_offset(pud_offset(pgd_offset_k(virt), virt), virt);
^
/home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/pgtable.h:163:40: note: each undeclared identifier is reported only once for each function it appears in
#define pgd_offset_k(addr) pgd_offset(&init_mm, addr)
^
/home/croniccorey/DEV/KERNEL/WIP-8x50/arch/arm/include/asm/pgtable.h:160:32: note: in definition of macro 'pgd_offset'
#define pgd_offset(mm, addr) ((mm)->pgd + pgd_index(addr))
^
arch/arm/include/generated/../../mm/mm.h:34:31: note: in expansion of macro 'pgd_offset_k'
return pmd_offset(pud_offset(pgd_offset_k(virt), virt), virt);
^
arch/arm/mach-msm/memory.c: In function 'arch_io_remap_pfn_range':
arch/arm/mach-msm/memory.c:46:3: error: implicit declaration of function 'pgprot_device' [-Werror=implicit-function-declaration]
prot = pgprot_device(prot);
^
arch/arm/mach-msm/memory.c:47:3: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'pgprot_t' [-Wformat=]
pr_debug("remapping device %lx\n", prot);
^
arch/arm/mach-msm/memory.c: In function 'calculate_reserve_limits':
arch/arm/mach-msm/memory.c:240:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'phys_addr_t' [-Wformat=]
pr_warning("unknown memory type for bank at %lx\n",
^
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-msm/memory.o] Error 1
Code:
Errors compiling pm.c:
CC arch/arm/mach-msm/pm.o
arch/arm/mach-msm/pm.c: In function 'msm_sleep':
arch/arm/mach-msm/pm.c:357:2: error: implicit declaration of function 'clk_enter_sleep' [-Werror=implicit-function-declaration]
clk_enter_sleep(from_idle);
^
arch/arm/mach-msm/pm.c:437:7: error: implicit declaration of function 'vfp_flush_context' [-Werror=implicit-function-declaration]
vfp_flush_context();
^
arch/arm/mach-msm/pm.c:450:9: error: implicit declaration of function 'vfp_reinit' [-Werror=implicit-function-declaration]
vfp_reinit();
^
arch/arm/mach-msm/pm.c:524:2: error: implicit declaration of function 'clk_exit_sleep' [-Werror=implicit-function-declaration]
clk_exit_sleep();
^
arch/arm/mach-msm/pm.c: In function 'arch_idle':
arch/arm/mach-msm/pm.c:554:3: error: implicit declaration of function 'has_wake_lock' [-Werror=implicit-function-declaration]
!has_wake_lock(WAKE_LOCK_IDLE) &&
^
arch/arm/mach-msm/pm.c: In function 'msm_pm_init':
arch/arm/mach-msm/pm.c:864:17: warning: assignment from incompatible pointer type [enabled by default]
arm_pm_restart = msm_pm_restart;
^
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-msm/pm.o] Error 1
Code:
Current errors at end of compile:
LD vmlinux
arch/arm/mach-msm/built-in.o:smd.c:function handle_modem_crash: error: undefined reference to 'msm_pm_flush_console'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_get_edge: error: undefined reference to 'msm_read_fast_timer'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_command_retry: error: undefined reference to 'msm_enable_fast_timer'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_command_retry: error: undefined reference to 'msm_read_fast_timer'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_command_retry: error: undefined reference to 'msm_read_fast_timer'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_command_retry: error: undefined reference to 'msm_read_fast_timer'
arch/arm/mach-msm/built-in.o:htc_power_supply.c:function dock_command_retry: error: undefined reference to 'msm_disable_fast_timer'
arch/arm/mach-msm/built-in.o:msm_q6vdec.c:function vdec_close.isra.5: error: undefined reference to 'put_pmem_file'
arch/arm/mach-msm/built-in.o:msm_q6vdec.c:function vdec_ioctl: error: undefined reference to 'get_pmem_file'
arch/arm/mach-msm/built-in.o:msm_q6vdec.c:function vdec_ioctl: error: undefined reference to 'put_pmem_file'
arch/arm/mach-msm/built-in.o:msm_q6venc.c:function q6venc_release: error: undefined reference to 'put_pmem_file'
arch/arm/mach-msm/built-in.o:msm_q6venc.c:function venc_q6_callback: error: undefined reference to 'put_pmem_file'
arch/arm/mach-msm/built-in.o:msm_q6venc.c:function venc_add_pmem_to_list: error: undefined reference to 'get_pmem_file'
arch/arm/mach-msm/built-in.o:socinfo.c:function socinfo_create_files.constprop.9: error: undefined reference to 'sysdev_create_file'
arch/arm/mach-msm/built-in.o:socinfo.c:function socinfo_init_sysdev: error: undefined reference to 'sysdev_class_register'
arch/arm/mach-msm/built-in.o:socinfo.c:function socinfo_init_sysdev: error: undefined reference to 'sysdev_register'
arch/arm/mach-msm/built-in.o:nand_partitions.c:function parse_tag_msm_partition: error: undefined reference to 'msm_nand_data'
arch/arm/mach-msm/built-in.o:dsp_debug.c:function bravo_init_panel: error: undefined reference to 'msm_device_mdp'
arch/arm/mach-msm/built-in.o:board-bravo.c:function bravo_init: error: undefined reference to 'msm_device_uart_dm1'
arch/arm/mach-msm/built-in.o:board-bravo.c:function msm_uart_dm1_pdata: error: undefined reference to 'bcm_bt_lpm_exit_lpm_locked'
arch/arm/mach-msm/built-in.o:board-bravo.c:function devices: error: undefined reference to 'msm_device_uart1'
arch/arm/mach-msm/built-in.o:board-bravo.c:function devices: error: undefined reference to 'msm_device_uart_dm1'
arch/arm/mach-msm/built-in.o:board-bravo.c:function devices: error: undefined reference to 'msm_device_nand'
arch/arm/mach-msm/built-in.o:board-bravo.c:function devices: error: undefined reference to 'msm_device_i2c'
drivers/built-in.o:ds2784_battery.c:function ds2784_program_alarm: error: undefined reference to 'alarm_start_range'
drivers/built-in.o:ds2784_battery.c:function ds2784_battery_probe: error: undefined reference to 'alarm_get_elapsed_realtime'
drivers/built-in.o:ds2784_battery.c:function ds2784_battery_work: error: undefined reference to 'alarm_get_elapsed_realtime'
net/built-in.o:activity_stats.c:function wiphy_rfkill_start_polling: error: undefined reference to 'rfkill_resume_polling'
make: *** [vmlinux] Error 1
New OP
Maybe this sounds stupid, but it gives "msm" errors, and Desire is not a msm device..
Sent from my HTC Desire HD using xda app-developers app
TheRinseM said:
Maybe this sounfs stupid, but it gives "msm" errors, and Desire is not a msm device..
Sent from my HTC Desire HD using xda app-developers app
Click to expand...
Click to collapse
They are probably porting the kernel from a msm device, like the Nexus 4.
abaaaabbbb63 said:
They are probably porting the rom from a msm device, like the Nexus 4.
Click to expand...
Click to collapse
Mate Andoo, This is not a ROM, it's kernel 3.4
Hope you guys bring ION with it.
TheRinseM said:
Mate Andoo, This is not a ROM, it's kernel 3.4
Hope you guys bring ION with it.
Click to expand...
Click to collapse
Oops.. I meant kernel Wrote rom from reflex
Yeah they all use msm. MSM is right and should be there.

[Guide][Compile][Patching]A Kernel From Source For Newbies[Any Device]

Hey Guys,
With All the awesome development going on in the Android world. There Are Many newbies who want to strat development but they exactly Dont Know How To begin with or from where to strat with. So I will Write a guide on how to compile your own kernel from source
=================
What Is A Kernel???
=================
The operating system of a device is the part of the device responsible for basic use and administration. This includes the kernel and device drivers, boot loader, command shell or other user interface, and basic file and system utilities. Whereas the user interface is the outermost portition of the operating system, kernel is the innermost. It is the core internals, the software that provides basic services for all other parts of the system, manages hardware and distributes system resources.
============================
Prerequisites To Compile A kernel
============================
1.A Unix Based Os(Ubuntu Recommended Both 32-bit and 64-bit are good to compile a kernel)
2.A few packages, to let the system know that we are compiling a kernel
3. The Source Code of kernel for your Device
Ok, So Now Lets Begin
==================
Packages Required:
==================
Ok So Now Open The Terminal And Copy Paste This Code:
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 git
Okay SO Now If You Are using Ubuntu12.04 , you need to create links of certain files
Code:
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
Okay now we are done with installing packages
SO Now we need java
Open a terminal and Run This Code:
sudo add-apt-repository ppa:ferramroberto/java
Click to expand...
Click to collapse
Then Run This:
sudo apt-get update
Click to expand...
Click to collapse
Then Type This:
sudo apt-get-install sun-java6-jdk
Click to expand...
Click to collapse
So Now You Have all the needed packages to compile a kernel
Next you need the bootimagetools,source code of kernel and Androidtoolchainsto compile a kernel
Bootimagetools:https://github.com/SaumitraYadav/Boot-Image-tools
AndroidToolchains:https://github.com/SaumitraYadav/Android_Toolchains
Okay once you have Downloaded everything ... now Lets Start Compiling A Kernel
Ok So Fireup A Terminal :
Code:
mkdir kernel
This Will Create a Directory named kernel in your Home Folder
Now extract your kernel Source in this directory
Then Run This:
Code:
cd kernel
Now You Have To Edit the Make File:
Code:
gedit Makefile
The Make file will open.........look out for this and change CROSS_COMPILE= "your toolchain path"
EXAMPLE:
Code:
CROSS_COMPILE?= /home/saumitra/Downloads/Toolchains/arm-eabi-4.4.3/bin/arm-eabi-
this will open up Makefile in gedit, now set the path where youn have downloaded and extracted the toolchains
Now, make the kernel config
Code:
make pico_defconfig
Note: I have a Htc Explorer and my device codename is pico. So i run pico_defconfig
Now Other device users have to look for codename or config names in arch/arm/configs
This Will Make a working kernel config according to the source
Now, if You Wanna Make Some Changes In Your Source Do so , and run this command to start compiling:
Code:
make -jX
The X can be replaced by the maximum number of jobs your computer can handle simultaneously.. The higher this number, the faster the compiling will get.. But do not enter a number too high, your computer may explode due to overheating.
Okay if all goes well your kernel will be compiled in 15mins
The resulting kernel will be in Kernel/arch/arm/boot/zImage
Now We also need modules for wifi and BT to work. So,
cd kernel
Click to expand...
Click to collapse
mkdir modules
Click to expand...
Click to collapse
find . -name '*ko' -exec cp '{}' modules \;
Click to expand...
Click to collapse
Okay So Now The Moules will be in kernel/modules
So Now We will pack the kernel to be flashed on the target Device
-Okay So Now Get A Working Boot.img Of THe Rom on which Wanna Test Your Kernel
-Download and extract The Bootimagetools From The Link Given Above
-place the boot.img in source_img folder inside the boot.img-tools
-enter the bootimagetools Directory
-unpack(This Will extract the boot.img)
$ mkdir -p unpack
$ tools/unpackbootimg -i source_img/boot.img -o unpack
Click to expand...
Click to collapse
-Extracting boot.img-ramdisk.gz(This Will Extract The ramdisk From the boot.img)
$ mkdir -p boot
$ cd boot
$ gzip -dc ../unpack/boot.img-ramdisk.gz | cpio -i
$ cd ../
Click to expand...
Click to collapse
-Packing a new ramdisk(This Will Pack A new ramdisk which will be used in your kernel)
$ tools/mkbootfs boot | gzip > unpack/boot.img-ramdisk-new.gz
Click to expand...
Click to collapse
Now As we want to create a boot.img from the zImage you made so copy the zImage from arch/arm/boot
Then goto the folder unpack in bootimagetools directory and delete boot.img-zImage
now paste the zImage You copied from arch/arm/boot and paste it in unpack folder and rename it to boot.img-zImage
-Create a new boot.img:
$ mkdir -p target_img
$ tools/mkbootimg --kernel unpack/boot.img-zImage --ramdisk unpack/boot.img-ramdisk-new.gz -o target_img/boot.img --base `cat unpack/boot.img-base`
Click to expand...
Click to collapse
Done
Now Take The boot.img for target_img folder and flash it via fastboot and dont forget to push modules else wifi will not work
=============================
Patching The kernel[The Easy Way]
=============================
This will Show You How to Patch your kernel to the latest version.
All The Patches are Available on kernel.org.
So If you apply the patches manually, then your source code will be messed up and you will face compiling errors+ it's time consuming to allow every patch as yes
So I am going to use a program called interdiff to
generate a patch representing the differences between two patches and then
apply the result.
Download:
Code:
http://cyberelk.net/tim/data/patchutils/stable/patchutils-0.3.3.tar.xz
SO Now Setting up the program to work :
1. Download the given file and extract it somewhere ,you swill get a folder named patchutils-0.3.3
2. First Install these Two Packages:
Code:
sudo apt-get install gcc
sudo apt-get install g++
3. Now cd to the folder patchutils-0.3.3
4. Now Type this in terminal
Code:
./configure
5.Now type this
Code:
make
6. Then this
Code:
sudo make install
Now You have setup the program 'interdiff' for applying the patches
To Apply The patches:
Code:
interdiff -z patch-xy patch-yx | patch -p1
Code:
patch-xy: The current kernel version ( for example= patch-3.0.97)
patch-yx: The version to be patched ( for example=patch-3.0.98)
Note: Both the patches should be in your kernel source directory
Credits:
@Red Devil (For Teaching me how to compile a kernel)
Awesome
Markyzz said:
Awesome
Click to expand...
Click to collapse
Thanks
Please Unquote The Post
Great Guide For Noobs Like Me
Speaking Frankly There is a guide by @legen_dary which is really good.
I Don't think this is actually needed.
Thank you.
Brother.. At least change it a little eh??
Or if you want, I can have the original guide thread handed over to you..
ғг๏๓ ҭђє ғเรђ!
Very very useful i'll take a closer look at it later tonight! :good:
Corrected the grammatical errors Happy compiling
Sent from my HTC Explorer using Tapatalk 4 Beta
Added Guide on How to Patch the Kernel Happy compiling
Saumitra Yadav said:
Added Guide on How to Patch the Kernel Happy compiling
Click to expand...
Click to collapse
i need a easy way for patching kernel ...thnxx man u helped a lot ..>!!:laugh:
How to solve this?
Code:
LD drivers/hid/built-in.o
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1408: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1408: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1409: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1409: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1410: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1410: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1415: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1415: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1416: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1416: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1417: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1417: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1418: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1418: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1419: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1419: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1423: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1423: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1424: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1424: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1425: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1425: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1426: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1426: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1427: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1427: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1431: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1431: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1432: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1432: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1433: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1433: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1434: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1434: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1435: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1435: error: (near initialization for 'ion_pdata.heaps')
make[3]: *** [arch/arm/mach-msm/board-tamsui-jlo.o] Błąd 1
make[3]: *** Oczekiwanie na niezakończone zadania....
CC net/core/utils.o
CC drivers/hwmon/hwmon.o
CC fs/fat/fatent.o
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:862: error: 'KGSL_3D0_REG_MEMORY' undeclared here (not in a function)
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:868: error: 'KGSL_3D0_IRQ' undeclared here (not in a function)
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:875: error: variable 'kgsl_3d0_pdata' has initializer but incomplete type
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:876: error: unknown field 'pwrlevel' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:876: error: extra brace group at end of initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:876: error: (near initialization for 'kgsl_3d0_pdata')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:877: error: extra brace group at end of initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:877: error: (near initialization for 'kgsl_3d0_pdata')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:881: error: extra brace group at end of initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:881: error: (near initialization for 'kgsl_3d0_pdata')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:885: error: extra brace group at end of initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:885: error: (near initialization for 'kgsl_3d0_pdata')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:890: error: unknown field 'init_level' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:891: error: unknown field 'num_levels' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:892: error: unknown field 'set_grp_async' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:893: error: unknown field 'idle_timeout' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:894: error: unknown field 'strtstp_sleepwake' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:895: error: unknown field 'nap_allowed' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:896: error: unknown field 'clk_map' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c: In function 'msm7x25a_kgsl_3d0_init':
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:912: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:913: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:913: error: 'struct resource' has no member named 'gpu_freq'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:914: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:914: error: 'struct resource' has no member named 'bus_freq'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:915: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:915: error: 'struct resource' has no member named 'gpu_freq'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:916: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:916: error: 'struct resource' has no member named 'bus_freq'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c: In function 'msm8x25_kgsl_3d0_init':
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:923: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:924: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:928: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:928: error: 'struct resource' has no member named 'gpu_freq'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:930: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:930: error: 'struct resource' has no member named 'gpu_freq'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:932: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:932: error: 'struct resource' has no member named 'bus_freq'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c: At top level:
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:1581: error: initializer element is not constant
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:1581: error: (near initialization for 'msm8625_kgsl_3d0_resources[0].name')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:1587: error: initializer element is not constant
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:1587: error: (near initialization for 'msm8625_kgsl_3d0_resources[1].name')
make[3]: *** [arch/arm/mach-msm/devices-tamsui-jlo.o] Błąd 1
CC fs/fat/file.o
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:664: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:664: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:665: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:665: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:666: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:666: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:671: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:671: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:672: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:672: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:673: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:673: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:674: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:674: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:675: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:675: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:679: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:679: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:680: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:680: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:681: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:681: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:682: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:682: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:683: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:683: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:687: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:687: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:688: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:688: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:689: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:689: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:690: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:690: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:691: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:691: error: (near initialization for 'ion_pdata.heaps')
make[3]: *** [arch/arm/mach-msm/board-qrd7627a.o] Błąd 1
make[2]: *** [arch/arm/mach-msm] Błąd 2
make[2]: *** Oczekiwanie na niezakończone zadania....
do I have to add -w to more flags?
This is part of my makefile
Code:
CFLAGS_MODULE = -w
AFLAGS_MODULE = -w
LDFLAGS_MODULE =
CFLAGS_KERNEL = -w
AFLAGS_KERNEL = -w
CFLAGS_GCOV = -fprofile-arcs -ftest-coverage
hey bro @Saumitra Yadav , can you help me to fix this? thx
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
ocoot said:
hey bro @Saumitra Yadav , can you help me to fix this? thx
Click to expand...
Click to collapse
Some Package Is Missing Please Give me A pastie of full error
Saumitra Yadav said:
Some Package Is Missing Please Give me A pastie of full error
Click to expand...
Click to collapse
now it's fixed. just install lzop from terminal
mmm can you make a tutorial how to add gov,i/o or freq? coz i added some gov on my kernel when i flash it, it not showing on no frillis, but on command "make menuconfig" its showing the gov i am added before -_-
@Saumitra Yadav can you help me with this?
stuck because of this from 2 days.
Xperia mini | Stock GB kernel Source | ndk 9b
Code:
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
arch/arm/boot/compressed/head.S: Assembler messages:
arch/arm/boot/compressed/head.S:363: Warning: (null)
arch/arm/boot/compressed/head.S:444: Warning: (null)
arch/arm/boot/compressed/head.S:465: Warning: (null)
arch/arm/boot/compressed/head.S:484: Warning: (null)
arch/arm/boot/compressed/head.S:492: Warning: (null)
arch/arm/boot/compressed/head.S:783: Warning: (null)
arch/arm/boot/compressed/head.S:822: Warning: (null)
arch/arm/boot/compressed/head.S:823: Warning: (null)
arch/arm/boot/compressed/head.S:870: Warning: (null)
arch/arm/boot/compressed/head.S:877: Warning: (null)
arch/arm/boot/compressed/head.S:885: Warning: (null)
arch/arm/boot/compressed/head.S:896: Warning: (null)
arch/arm/boot/compressed/head.S:910: Warning: (null)
arch/arm/boot/compressed/head.S:942: Warning: (null)
arch/arm/boot/compressed/head.S:944: Warning: (null)
arch/arm/boot/compressed/head.S:945: Warning: (null)
arch/arm/boot/compressed/head.S:952: Warning: (null)
arch/arm/boot/compressed/head.S:984: Warning: (null)
GZIP arch/arm/boot/compressed/piggy.gz
AS arch/arm/boot/compressed/piggy.o
CC arch/arm/boot/compressed/misc.o
LD arch/arm/boot/compressed/vmlinux
arm-linux-androideabi-ld: error: arch/arm/boot/compressed/piggy.o: unknown CPU architecture
make[2]: *** [arch/arm/boot/compressed/vmlinux] Error 1
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
make: *** [zImage] Error 2
[email protected]:~/android/kernel/4.0.2.A.0.84/kernel$
piousheart said:
@Saumitra Yadav can you help me with this?
stuck because of this from 2 days.
Xperia mini | Stock GB kernel Source | ndk 9b
Code:
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
arch/arm/boot/compressed/head.S: Assembler messages:
arch/arm/boot/compressed/head.S:363: Warning: (null)
arch/arm/boot/compressed/head.S:444: Warning: (null)
arch/arm/boot/compressed/head.S:465: Warning: (null)
arch/arm/boot/compressed/head.S:484: Warning: (null)
arch/arm/boot/compressed/head.S:492: Warning: (null)
arch/arm/boot/compressed/head.S:783: Warning: (null)
arch/arm/boot/compressed/head.S:822: Warning: (null)
arch/arm/boot/compressed/head.S:823: Warning: (null)
arch/arm/boot/compressed/head.S:870: Warning: (null)
arch/arm/boot/compressed/head.S:877: Warning: (null)
arch/arm/boot/compressed/head.S:885: Warning: (null)
arch/arm/boot/compressed/head.S:896: Warning: (null)
arch/arm/boot/compressed/head.S:910: Warning: (null)
arch/arm/boot/compressed/head.S:942: Warning: (null)
arch/arm/boot/compressed/head.S:944: Warning: (null)
arch/arm/boot/compressed/head.S:945: Warning: (null)
arch/arm/boot/compressed/head.S:952: Warning: (null)
arch/arm/boot/compressed/head.S:984: Warning: (null)
GZIP arch/arm/boot/compressed/piggy.gz
AS arch/arm/boot/compressed/piggy.o
CC arch/arm/boot/compressed/misc.o
LD arch/arm/boot/compressed/vmlinux
arm-linux-androideabi-ld: error: arch/arm/boot/compressed/piggy.o: unknown CPU architecture
make[2]: *** [arch/arm/boot/compressed/vmlinux] Error 1
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
make: *** [zImage] Error 2
[email protected]:~/android/kernel/4.0.2.A.0.84/kernel$
Click to expand...
Click to collapse
Wrong Toolchain Try This Toolchain
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7
Saumitra Yadav said:
Wrong Toolchain Try This Toolchain
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7
Click to expand...
Click to collapse
I don't know how to use git.
where to download that toolchain
Any idea how much time would it take to download all the neccesary things except the packages used for setting up build envi?
Sent from my GT-I9100 using xda premium
Doesn't take me long to download in Ubuntu.
Samsung open source will probably take you longest
engloa said:
Doesn't take me long to download in Ubuntu.
Samsung open source will probably take you longest
Click to expand...
Click to collapse
Hey buddy..
Haha..nice to see u everywhere.
Thank u..
Sent from my GT-I9100 using xda premium

AOSP 2.3.7 compilation error

Please help. I am getting the error when i compile 2.3.7 from source for my p500
Code:
In file included from device/lge/p500/libaudio/AudioHardware.cpp:36:
frameworks/base/include/media/AudioRecord.h:145: error: expected unqualified-id before numeric constant
frameworks/base/include/media/AudioRecord.h:145: error: expected '}' before numeric constant
frameworks/base/include/media/AudioRecord.h:145: error: expected unqualified-id before numeric constant
frameworks/base/include/media/AudioRecord.h:150: error: expected unqualified-id before 'int'
frameworks/base/include/media/AudioRecord.h:150: error: expected ')' before 'int'
frameworks/base/include/media/AudioRecord.h:165: error: expected constructor, destructor, or type conversion before ';' token
frameworks/base/include/media/AudioRecord.h:182: error: 'callback_t' has not been declared
frameworks/base/include/media/AudioRecord.h:194: error: non-member function 'android::status_t android::initCheck()' cannot have cv-qualifier
frameworks/base/include/media/AudioRecord.h:200: error: non-member function 'uint32_t android::latency()' cannot have cv-qualifier
frameworks/base/include/media/AudioRecord.h:204: error: non-member function 'int android::format()' cannot have cv-qualifier
frameworks/base/include/media/AudioRecord.h:205: error: non-member function 'int android::channelCount()' cannot have cv-qualifier
frameworks/base/include/media/AudioRecord.h:206: error: non-member function 'int android::channels()' cannot have cv-qualifier
frameworks/base/include/media/AudioRecord.h:207: error: non-member function 'uint32_t android::frameCount()' cannot have cv-qualifier
frameworks/base/include/media/AudioRecord.h:208: error: non-member function 'int android::frameSize()' cannot have cv-qualifier
frameworks/base/include/media/AudioRecord.h:209: error: non-member function 'int android::inputSource()' cannot have cv-qualifier
frameworks/base/include/media/AudioRecord.h:222: error: non-member function 'bool android::stopped()' cannot have cv-qualifier
frameworks/base/include/media/AudioRecord.h:313: error: 'Buffer' was not declared in this scope
frameworks/base/include/media/AudioRecord.h:313: error: 'audioBuffer' was not declared in this scope
frameworks/base/include/media/AudioRecord.h:313: error: expected primary-expression before 'waitCount'
frameworks/base/include/media/AudioRecord.h:313: error: initializer expression list treated as compound expression
frameworks/base/include/media/AudioRecord.h:314: error: variable or field 'releaseBuffer' declared void
frameworks/base/include/media/AudioRecord.h:314: error: 'Buffer' was not declared in this scope
frameworks/base/include/media/AudioRecord.h:314: error: 'audioBuffer' was not declared in this scope
In file included from device/lge/p500/libaudio/AudioHardware.cpp:36:
frameworks/base/include/media/AudioRecord.h:329: error: expected unqualified-id before 'private'
frameworks/base/include/media/AudioRecord.h:332: error: 'android::AudioRecord& android::operator=(const android::AudioRecord&)' must be a nonstatic member function
frameworks/base/include/media/AudioRecord.h:373: error: 'callback_t' does not name a type
frameworks/base/include/media/AudioRecord.h:387: error: expected declaration before '}' token
make: *** [out/target/product/p500/obj/SHARED_LIBRARIES/libaudio_intermediates/AudioHardware.o] Error 1
make: *** Waiting for unfinished jobs....
[email protected]:~/aosp$
Please help

[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

Categories

Resources