Anda di halaman 1dari 6

MY NOTES ON BUILDING SLIMKAT

#########################################################
1)wpa_supplicant_8_lib error on compilation fixed by simply commenting it in b
oardconfig.mk
or alternative is use new wifi flags by fergy in boardconfig.mk
#########################################################
2)bootanimation for all 230x340 resolution devices
made new bootanimation "320.zip" in /home/traeko/Desktop/slimkat/vendor/slim/p
rebuilt/common/bootanimation/320.zip
by resizing pngs for legacy devices with 240x320 resolution
note its is important to add flag TARGET_BOOTANIMATION_NAME := 320 in e400.mk
#########################################################
3)hardware/qcom/display/msm8960/libgralloc/fb_priv.h:48:31: error : feild 'commi
t' has incomplete type
make: *** [/home/traeko/Desktop/slimkat/out/target/product/e400/obj/SHARED_LIB
RARIES/gralloc.msm7x27a_intermediates/gralloc.o] Error 1
make: *** Waiting for unfinished jobs....
error can be solved by adding headers in gralloc.cpp
#include "gralloc_priv.h"
#include "fb_priv.h"
#########################################################
4)hardware/qcom/display/msm8960/libgralloc/ionalloc.cpp: In member function 'vir
tual int gralloc::IonAlloc::alloc_buffer(gralloc::alloc_data&)':
hardware/qcom/display/msm8960/libgralloc/ionalloc.cpp:76:18: error: 'struct io
n_allocation_data' has no member named 'heap_mask'
hardware/qcom/display/msm8960/libgralloc/ionalloc.cpp:77:46: error: 'ION_FLAG_
CACHED' was not declared in this scope
make: *** [/home/traeko/Desktop/slimkat/out/target/product/e400/obj/SHARED_LIB
RARIES/libmemalloc_intermediates/ionalloc.o] Error 1
make: *** Waiting for unfinished jobs....
just recompile using make clean
#########################################################
5)got new sources ie complete sources from fergy and new 3.14 kernel sources
#########################################################
6)libbluetooth_jni <= packages/apps/Bluetooth/jni/com_android_bluetooth_btservic
e_AdapterService.cpp
packages/apps/Bluetooth/jni/com_android_bluetooth_btservice_AdapterService.cpp
:462:1: error: invalid conversion from 'void (*)(bt_bdaddr_t*, bt_bdname_t*, uin
t32_t, uint8_t) {aka void (*)(bt_bdaddr_t*, bt_bdname_t*, unsigned int, unsigned
char)}' to 'wake_state_changed_callback {aka void (*)(bt_state_t)}' [-fpermissi
ve]
packages/apps/Bluetooth/jni/com_android_bluetooth_btservice_AdapterService.cpp
:462:1: error: invalid conversion from 'void (*)(bt_bdaddr_t*, bt_bdname_t*, uin
t32_t, bt_ssp_variant_t, uint32_t) {aka void (*)(bt_bdaddr_t*, bt_bdname_t*, uns
igned int, bt_ssp_variant_t, unsigned int)}' to 'pin_request_callback {aka void
(*)(bt_bdaddr_t*, bt_bdname_t*, unsigned int, unsigned char)}' [-fpermissive]
packages/apps/Bluetooth/jni/com_android_bluetooth_btservice_AdapterService.cpp
:462:1: error: invalid conversion from 'void (*)(bt_status_t, bt_bdaddr_t*, bt_b
ond_state_t)' to 'ssp_request_callback {aka void (*)(bt_bdaddr_t*, bt_bdname_t*,
unsigned int, bt_ssp_variant_t, unsigned int)}' [-fpermissive]
packages/apps/Bluetooth/jni/com_android_bluetooth_btservice_AdapterService.cpp
:462:1: error: invalid conversion from 'void (*)(bt_status_t, bt_bdaddr_t*, bt_
acl_state_t)' to 'bond_state_changed_callback {aka void (*)(bt_status_t, bt_bdad

dr_t*, bt_bond_state_t)}' [-fpermissive]


packages/apps/Bluetooth/jni/com_android_bluetooth_btservice_AdapterService.cpp:
462:1: error: invalid conversion from 'void (*)(bt_cb_thread_evt)' to 'acl_state
_changed_callback {aka void (*)(bt_status_t, bt_bdaddr_t*, bt_acl_state_t)}' [-f
permissive]
packages/apps/Bluetooth/jni/com_android_bluetooth_btservice_AdapterService.cpp
:462:1: error: invalid conversion from 'void (*)(uint16_t, uint8_t*, uint8_t) {a
ka void (*)(short unsigned int, unsigned char*, unsigned char)}' to 'callback_th
read_event {aka void (*) (bt_cb_thread_evt)}' [-fpermissive]
packages/apps/Bluetooth/jni/com_android_bluetooth_btservice_AdapterService.cpp
:462:1: error: invalid conversion from 'void (*)(bt_status_t, uint16_t) {aka vo
id (*)(bt_status_t, short unsigned int)}' to 'dut_mode_recv_callback {aka void (
*)(short unsigned int, unsigned char*, unsigned char)}' [-fpermissive]
make: *** [/home/traeko/Desktop/slimkat/out/target/product/e400/obj/SHARED_LIB
RARIES/libbluetooth_jni_intermediates/ com_android_bluetooth_btservice_Adapter
Service.o] Error 1
make: *** Waiting for unfinished jobs....
some problems in bluetooth folder in packages/apps/Bluetooth
solution simply delete it in source we can add it later
##########################################################
6)frameworks/av/media/libstagefright/AudioSource.cpp:31:25: fatal error: QCMedia
Defs.h: No such file or directory
compilation terminated.
make: *** [/home/traeko/Desktop/slimkat/out/target/product/e400/obj/SHARED_LIB
RARIES/libstagefright_intermediates/AudioSource.o] Error 1
make: *** Waiting for unfinished jobs....
easily fixed by changing in boardconfig.mk
TARGET_ENABLE_QC_AV_ENHANCEMENTS := false
but then we miss support for dashplayer
for CPUs like 8860 hav multimedia support for it
###########################################################
7)Using /home/traeko/Desktop/slimkat/kernel/lge/e400 as source for kernel
/home/traeko/Desktop/slimkat/kernel/lge/e400 is not clean, please run 'make mr
proper'
in the '/home/traeko/Desktop/slimkat/kernel/lge/e400' directory.
make[2]: *** [prepare3] Error 1
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/traeko/Desktop/slimkat/kernel/lge/e400'
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
just cd to kernel source directory and do a make mrproper
and your ready to roll again
###########################################################
8)aapt: warning: string 'gsm_alphabet_default_charset' has no default translatio
n in frameworks/base/core/res/res; found: ko
device/lge/e400/overlay/frameworks/base/core/res/res/values/config.xml:84: err
or: Resource at config_disableMenuKeyInLockScreen appears in overlay but not i
n the base package; use <add-resource> to add.
make: *** [/home/traeko/Desktop/slimkat/out/target/common/obj/APPS/framework-r
es_intermediates/package-export.apk] Error 1
make: *** Deleting file `/home/traeko/Desktop/slimkat/out/target/common/obj/AP
PS/framework-res_intermediates/package-export.apk'
make: *** Waiting for unfinished jobs....
delete this line

<bool name="config_disableMenuKeyInLockScreen">true</bool>
in device/lge/e400/overlay/frameworks/base/core/res/res/values/config.xml
############################################################
9)kernel/lge/e400/drivers/gpu/ion/ion_heap.c some error in ion_heap.c i was miss
to not that
but fix is to
comment out lines: 37,38,39 and 82,83,84 in kernel/lge/e400/drivers/gpu/ion/io
n_heap.c
############################################################
10)/home/traeko/Desktop/slimkat/kernel/lge/e400/arch/arm/mach-msm/lge/v1/board-m
sm7x27a_v1.c:257: undefined reference to `msm_hsusb_rpc_connect'
/home/traeko/Desktop/slimkat/kernel/lge/e400/arch/arm/mach-msm/lge/v1/board-msm7
x27a_v1.c:259: undefined reference to `msm_hsusb_rpc_close'
arch/arm/mach-msm/built-in.o: In function `fm_radio_shutdown':
/home/traeko/Desktop/slimkat/kernel/lge/e400/arch/arm/mach-msm/lge/v1/board-msm7
627a-bt_v1.c:272: undefined reference to `pmapp_clock_vote'
arch/arm/mach-msm/built-in.o: In function `fm_radio_setup':
/home/traeko/Desktop/slimkat/kernel/lge/e400/arch/arm/mach-msm/lge/v1/board-msm7
627a-bt_v1.c:200: undefined reference to `pmapp_clock_vote'
/home/traeko/Desktop/slimkat/kernel/lge/e400/arch/arm/mach-msm/lge/v1/board-msm7
627a-bt_v1.c:235: undefined reference to `pmapp_clock_vote'
arch/arm/mach-msm/built-in.o: In function `bluetooth_switch_regulators':
/home/traeko/Desktop/slimkat/kernel/lge/e400/arch/arm/mach-msm/lge/v1/board-msm7
627a-bt_v1.c:666: undefined reference to `pmapp_vreg_lpm_pincntrl_vote'
arch/arm/mach-msm/built-in.o: In function `bluetooth_power':
/home/traeko/Desktop/slimkat/kernel/lge/e400/arch/arm/mach-msm/lge/v1/board-msm7
627a-bt_v1.c:876: undefined reference to `pmapp_clock_vote'
/home/traeko/Desktop/slimkat/kernel/lge/e400/arch/arm/mach-msm/lge/v1/board-msm7
627a-bt_v1.c:899: undefined reference to `pmapp_clock_vote'
/home/traeko/Desktop/slimkat/kernel/lge/e400/arch/arm/mach-msm/lge/v1/board-msm7
627a-bt_v1.c:921: undefined reference to `pmapp_clock_vote'
arch/arm/mach-msm/built-in.o: In function `setup_wlan_clock':
/home/traeko/Desktop/slimkat/kernel/lge/e400/arch/arm/mach-msm/lge/v1/board-msm7
627a-wlan_v1.c:113: undefined reference to `pmapp_clock_vote'
arch/arm/mach-msm/built-in.o: In function `wlan_switch_regulators':
/home/traeko/Desktop/slimkat/kernel/lge/e400/arch/arm/mach-msm/lge/v1/board-msm7
627a-wlan_v1.c:149: undefined reference to `pmapp_vreg_lpm_pincntrl_vote'
/home/traeko/Desktop/slimkat/kernel/lge/e400/arch/arm/mach-msm/lge/v1/board-msm7
627a-wlan_v1.c:161: undefined reference to `pmapp_vreg_lpm_pincntrl_vote'
arch/arm/mach-msm/built-in.o: In function `msm_AR600X_setup_power':
/home/traeko/Desktop/slimkat/kernel/lge/e400/arch/arm/mach-msm/lge/v1/board-msm7
627a-wlan_v1.c:276: undefined reference to `pmapp_clock_vote'
arch/arm/mach-msm/built-in.o: In function `restore_crash_log':
/home/traeko/Desktop/slimkat/kernel/lge/e400/arch/arm/mach-msm/lge/lge_handle_pa
nic.c:158: undefined reference to `lge_set_reboot_reason'
arch/arm/mach-msm/built-in.o: In function `msm8625_init_irq':
/home/traeko/Desktop/slimkat/kernel/lge/e400/arch/arm/mach-msm/devices-msm7x27a.
c:2157: undefined reference to `msm_gic_irq_extn_init'
arch/arm/mach-msm/built-in.o: In function `l2x0_saved_ctrl_reg_val':
:(.data+0x14bc4): undefined reference to `hsusb_chg_connected'
:(.data+0x14bc8): undefined reference to `hsusb_chg_vbus_draw'
:(.data+0x14bcc): undefined reference to `hsusb_chg_init'
:(.data+0x154e0): undefined reference to `usb_diag_update_pid_and_serial_num'
Install: /home/traeko/Desktop/slimkat/out/host/linux-x86/lib/libclang.so
drivers/built-in.o: In function `usb_wakeup_phy':
/home/traeko/Desktop/slimkat/kernel/lge/e400/drivers/usb/host/ehci-msm72k.c:144:
undefined reference to `msm_fsusb_resume_phy'
drivers/built-in.o: In function `usb_suspend_phy':

/home/traeko/Desktop/slimkat/kernel/lge/e400/drivers/usb/host/ehci-msm72k.c:165:
undefined reference to `msm_fsusb_set_remote_wakeup'
/home/traeko/Desktop/slimkat/kernel/lge/e400/drivers/usb/host/ehci-msm72k.c:166:
undefined reference to `msm_fsusb_suspend_phy'
drivers/built-in.o: In function `msm_sensor_register':
/home/traeko/Desktop/slimkat/kernel/lge/e400/drivers/media/video/msm/msm.c:1510:
undefined reference to `get_sctrl'
drivers/built-in.o: In function `msm_mctl_release':
/home/traeko/Desktop/slimkat/kernel/lge/e400/drivers/media/video/msm/msm_mctl.c:
624: undefined reference to `get_sctrl'
drivers/built-in.o: In function `msm_sensor_state_check':
/home/traeko/Desktop/slimkat/kernel/lge/e400/drivers/media/video/msm/msm_mctl.c:
240: undefined reference to `get_sctrl'
drivers/built-in.o: In function `msm_mctl_open':
/home/traeko/Desktop/slimkat/kernel/lge/e400/drivers/media/video/msm/msm_mctl.c:
515: undefined reference to `get_sctrl'
drivers/built-in.o: In function `msm_sensor_subdev_ioctl':
/home/traeko/Desktop/slimkat/kernel/lge/e400/drivers/media/video/msm/sensors/msm
_sensor.c:374: undefined reference to `get_sctrl'
drivers/built-in.o:/home/traeko/Desktop/slimkat/kernel/lge/e400/drivers/media/vi
deo/msm/sensors/msm_sensor.c:1819: more undefined references to `get_sctrl' foll
ow
drivers/built-in.o: In function `msm_xusb_init_host':
/home/traeko/Desktop/slimkat/kernel/lge/e400/drivers/usb/host/ehci-msm72k.c:619:
undefined reference to `msm_hsusb_rpc_connect'
drivers/built-in.o: In function `msm_xusb_init_phy':
/home/traeko/Desktop/slimkat/kernel/lge/e400/drivers/usb/host/ehci-msm72k.c:574:
undefined reference to `msm_fsusb_rpc_init'
/home/traeko/Desktop/slimkat/kernel/lge/e400/drivers/usb/host/ehci-msm72k.c:576:
undefined reference to `msm_fsusb_init_phy'
drivers/built-in.o: In function `msm_xusb_uninit_host':
/home/traeko/Desktop/slimkat/kernel/lge/e400/drivers/usb/host/ehci-msm72k.c:752:
undefined reference to `msm_fsusb_reset_phy'
/home/traeko/Desktop/slimkat/kernel/lge/e400/drivers/usb/host/ehci-msm72k.c:753:
undefined reference to `msm_fsusb_rpc_deinit'
drivers/built-in.o: In function `msm_xusb_rpc_close':
/home/traeko/Desktop/slimkat/kernel/lge/e400/drivers/usb/host/ehci-msm72k.c:595:
undefined reference to `msm_hsusb_rpc_close'
/home/traeko/Desktop/slimkat/kernel/lge/e400/drivers/usb/host/ehci-msm72k.c:598:
undefined reference to `msm_fsusb_reset_phy'
/home/traeko/Desktop/slimkat/kernel/lge/e400/drivers/usb/host/ehci-msm72k.c:599:
undefined reference to `msm_fsusb_rpc_deinit'
make[2]: *** [.tmp_vmlinux1] Error 1
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/traeko/Desktop/slimkat/kernel/lge/e400'
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
what i did was open respective files
board-msm7x27a_v1.c in this find lines 257 259 200 272 235 666 876 899 921
board-msm7627a-wlan_v1.c 276
lge_handle_panic.c 158
devices-msm7x27a.c:2157
ehci-msm72k.c:144 165 166 619 574 576 752 753 595 598 599
msm.c 1510
msm_mctl.c 624 240 515
msm_sensor.c 374
and comment out these lines but it leads to andother error and so on

######################################################################
11)replaced hardware/qcom with the one from fergy
######################################################################
12)added ion.h and msm_ion.h in device/lge/e400 copied from kernel/lge/e400/incl
ude/linux
######################################################################
13)changed libhardware and libhardware_legacy in hardware/libhardware and libhar
dware_legacy with libhardware and libhardware_legacy for from CM-11
######################################################################
14)/home/traeko/Desktop/slimkat/out/target/common/obj/PACKAGING/public_api.txt:2
3314: error 4: Added public method android.telephony.SignalStrength.needsOldRilF
eature
/home/traeko/Desktop/slimkat/out/target/common/obj/PACKAGING/public_api.txt:3
2737: error 4: Added public method android.widget.ViewFlipper.setSelfMaintained
*******************************
You have tried to change the API from what has been previously approved.
To make these errors go away, you have two choices:
1) You can add "@hide" javadoc comments to the methods, etc. listed in the
errors above.
2) You can update current.txt by executing the following command:
make update-api
To submit the revised current.txt to the main Android repository,
you will need approval.
*******************************

make: *** [/home/traeko/Desktop/slimkat/out/target/common/obj/PACKAGING/check


api-current-timestamp] Error 38
make: *** Waiting for unfinished jobs....
just do "make update-api" and it will update current.txt and then you are goo
d to go ..........................
###########################################################################
got new proprietaries from fergy
###########################################################################
E/libEGL ( 174): load_driver(/system/lib/egl/libEGL_adreno200.so): dlopen fail
ed: could not load library "libgenlock.so" needed by "libEGL_adreno200.so"; caus
ed by library "libgenlock.so" not found

###########################################################################
Syncing work tree: 1% (5/425) error: Your local changes to the following file
s would be overwritten by checkout:
Android.mk
etc/init.rc
gui/Android.mk
minui/Android.mk

minui/graphics.c
twrp-functions.cpp
twrp-functions.hpp
twrp.cpp
variables.h
Please, commit your changes or stash them before you can switch branches.
Aborting
Checking out files: 100% (443/443), done.g out files: 8% (36/443)
Checking out files: 100% (4091/4091), done.out files: 42% (1759/4091)
Syncing work tree: 55% (234/425) error: Your local changes to the following fi
les would be overwritten by checkout:
api/current.txt
Please, commit your changes or stash them before you can switch branches.
Aborting
Syncing work tree: 63% (268/425) error: Your local changes to the following fi
les would be overwritten by checkout:
include/hardware/hwcomposer_defs.h
Please, commit your changes or stash them before you can switch branches.
Aborting
error: Your local changes to the following files would be overwritten by checkou
t:
audio/AudioPolicyManagerBase.cpp
wifi/wifi.c
Please, commit your changes or stash them before you can switch branches.
Aborting
Syncing work tree: 100% (425/425) error: Your local changes to the following fi
les would be overwritten by checkout:
vendorsetup.sh
Please, commit your changes or stash them before you can switch branches.
Aborting
Syncing work tree: 100% (425/425), done.
cts/: discarding 4 commits
frameworks/support/: discarding 1 commits
error: bootable/recovery/: SlimRoms/bootable_recovery checkout 57cf49f3eae83811e
9d00c01662ba4e13a60441c
error: frameworks/base/: SlimRoms/frameworks_base checkout 05ce2529fbc49f1278a36
79b27935ab626f10b4d
error: hardware/libhardware/: SlimRoms/hardware_libhardware checkout 48d526b39bc
d64e466c6f2d71ca9e7e8351c729c
error: hardware/libhardware_legacy/: SlimRoms/hardware_libhardware_legacy checko
ut dd4a5fbd756c1b8f54b87b6895093cf47b0d1a34
error: vendor/slim/: SlimRoms/vendor_slim checkout d2ca9e8e3b3cf4e2a09ccf198f678
94b8bf982af
traeko@Sooraj:~/Desktop/slimkat$