On Thu, Feb 19, 2009 at 7:03 PM, pramod gurav <[email protected]> wrote: > Hi there > I am trying my hands on sensors HAL in cupcake. As I can see HAL > implementation > has changed a lot in cupcake. The sensor HAL sources have gone from > hardware/libhardware/. > I could know that there is space for having a sensor HAL module in new > hardware/libhardware/; > I referred the sensor.h in cupcake. As far as I could understand there > is need of a sensor module > in hardware/libhardware/modules/sensors/ which will initialise the > structures such as > sensors_control_device_t, sensors_data_device_t and sensors_module_t, > I initialised all these with the functions referring old sensor HAL > sources and currenr sensors.h files. > I want to build my sensors HAL mpodule. > > when I try to build the sources now, it is not being compiled. I can > see the overlay library in > system/lib/hw/overlay.zoom2.so. But no library of my sources. > The Android.mk in my modules/sensors/ has : > > > # Copyright 2008 The Android Open Source Project > > LOCAL_PATH := $(call my-dir) > > # HAL module implemenation, not prelinked and stored in > # # hw/<SENSORS_HARDWARE_MODULE_ID>.<ro.product.board>.so > include $(CLEAR_VARS) > LOCAL_PRELINK_MODULE := false > LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw > LOCAL_SHARED_LIBRARIES := liblog > LOCAL_SRC_FILES := sensors/mysensors.c > LOCAL_MODULE := sensors.myproject > include $(BUILD_SHARED_LIBRARY) > > Can anyone please suggest me on this? Have anyone tried implementing > sensors HAL? >
Hi I could compile the sensor HAL module by placing the sources in hardware/ti/omap3/libsensors/. The library is compiled as /system/lib/hw/sensors.myproject.so. When I boot android with this changes the kernel boots with android logo. But it never comes with android desktop. The logcat shows same log again and again. the libraries in /system/lib/hw/ are overlay.zoom2.so sensors.myproject.so The logs in HAL are as follows.. I/EGLDisplaySurface( 1944): refresh rate = 62.91 Hz I/HAL ( 1944): load: E id=copybit path=/system/lib/hw/copybit.myproject.so W/HAL ( 1944): load: module=/system/lib/hw/copybit.myproject.so error=Cannot find library W/SurfaceFlinger( 1944): ro.sf.lcd_density not defined, using 160 dpi by default. I/SurfaceFlinger( 1944): OpenGL informations: I/SurfaceFlinger( 1944): vendor : Android I/SurfaceFlinger( 1944): renderer : Android PixelFlinger 1.0 I/SurfaceFlinger( 1944): version : OpenGL ES-CM 1.0 I/SurfaceFlinger( 1944): extensions: GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format GL_OES_compressed_paletted_texture G I/HAL ( 1944): load: E id=copybit path=/system/lib/hw/copybit.myproject.so W/HAL ( 1944): load: module=/system/lib/hw/copybit.myproject.so error=Cannot find library I/HAL ( 1944): load: E id=overlay path=/system/lib/hw/overlay.myproject.so W/HAL ( 1944): load: module=/system/lib/hw/overlay.myproject.so error=Cannot find library I/sysproc ( 1944): System server: starting Android runtime. . . . . E/BatteryService( 1944): Could not open '/sys/class/power_supply/battery/batt_temp' E/BatteryService( 1944): Could not open '/sys/candroid_power: wakeup (0->0) at 464145904588 (2000-01-01 00:07:38.637390202 UTC) lass/power_supply/battery/status' E/BatteryService( 1944): Could not open '/sys/class/power_supply/battery/health' E/BatteryService( 1944): Could not open '/sys/class/power_supply/battery/technology' # I/SystemServer( 1944): Starting Alarm Manager. I/power ( 1944): set_light_brightness for lcd(244) I/SystemServer( 1944): Starting Sensor Service. I/HAL ( 1944): load: E id=sensors path=/system/lib/hw/sensors.myproject.so I/DEBUG ( 857): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** I/DEBUG ( 857): Build fingerprint: 'device/myproject/myproject/myproject:1.5/MAIN/eng.gpramod.20090219.174441:eng/test-keys' I/DEBUG ( 857): pid: 1944, tid: 1960 >>> system_server <<< I/DEBUG ( 857): signal 11 (SIGSEGV), fault addr 00000000 I/DEBUG ( 857): r0 80103130 r1 ad902d5c r2 ad904378 r3 00000000 I/DEBUG ( 857): r4 ad90410c r5 00000004 r6 ad9023c5 r7 41037f50 I/DEBUG ( 857): r8 456fada0 r9 41037f48 10 41037f38 fp 00000001 I/DEBUG ( 857): ip a9c7210c sp 456fad90 lr a9c7165d pc ad9023e6 cpsr a0000030 I/DEBUG ( 857): #00 pc 000023e6 /system/lib/libandroid_servers.so I/DEBUG ( 857): #01 pc 0000e2f4 /system/lib/libdvm.so I/DEBUG ( 857): #02 pc 000409ca /system/lib/libdvm.so I/DEBUG ( 857): #03 pc 00013048 /system/lib/libdvm.so I/DEBUG ( 857): #04 pc 000179ac /system/lib/libdvm.so I/DEBUG ( 857): #05 pc 000173f4 /system/lib/libdvm.so I/DEBUG ( 857): #06 pc 000525d8 /system/lib/libdvm.so I/DEBUG ( 857): #07 pc 000525f6 /system/lib/libdvm.so I/DEBUG ( 857): #08 pc 00047052 /system/lib/libdvm.so I/DEBUG ( 857): #09 pc 0000f96c /system/lib/libc.so I/DEBUG ( 857): #10 pc 0000f4e0 /system/lib/libc.so I/DEBUG ( 857): stack: I/DEBUG ( 857): 456fad50 ad03dad1 /system/lib/libdvm.so I/DEBUG ( 857): 456fad54 000edbc8 [heap] I/DEBUG ( 857): 456fad58 437c9830 /mspace/dalvik-heap/2 (deleted) I/DEBUG ( 857): 456fad5c 00000000 I/DEBUG ( 857): 456fad60 00000000 I/DEBUG ( 857): 456fad64 00000000 I/DEBUG ( 857): 456fad68 00000000 I/DEBUG ( 857): 456fad6c ad04887f /system/lib/libdvm.so I/DEBUG ( 857): 456fad70 00000320 I/DEBUG ( 857): 456fad74 6de3f825 I/DEBUG ( 857): 456fad78 456fadd0 I/DEBUG ( 857): 456fad7c ad90410c /system/lib/libandroid_servers.so I/DEBUG ( 857): 456fad80 00000004 I/DEBUG ( 857): 456fad84 ad9023c5 /system/lib/libandroid_servers.so I/DEBUG ( 857): 456fad88 df002777 I/DEBUG ( 857): 456fad8c e3a070ad I/DEBUG ( 857): #00 456fad90 00000018 I/DEBUG ( 857): 456fad94 80103130 /system/lib/hw/sensors.myproject.so I/DEBUG ( 857): 456fad98 456fadc0 I/DEBUG ( 857): 456fad9c ad00e2f8 /system/lib/libdvm.so I/DEBUG ( 857): #01 456fada0 411f4a1c /dalvik-LinearAlloc (deleted) I/DEBUG ( 857): 456fada4 00157fa8 [heap] I/DEBUG ( 857): 456fada8 ad9023c5 /system/lib/libandroid_servers.so I/DEBUG ( 857): 456fadac 436ada40 /mspace/dalvik-heap/2 (deleted) I/DEBUG ( 857): 456fadb0 00000071 -- Best Regards Pramod --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
