[HTC Wildfire S] scottrix:
Building from source.

Hi,

First of all many, many, many thanks to all those involved in this ROM, and yes, I have have tried to click thanks for those that I know have contributed, sorry if I missed anyone.

I am trying to build from source, I did a repo sync on Friday (24), built a rom and flashed it, ROM is mostly working however, camera and GPS are not.

.repo/local_manifest.xml:

<?xml version="1.0" encoding="UTF-8"?>

<manifest>

<remote name="cryptomilk"

fetch="git://git.cryptomilk.org/" />

<project name="projects/marvel/kernel_htc_msm7227.git" path="kernel/htc/msm7227" remote="cryptomilk" />

<project name="CyanogenMod/android_device_htc_common" path="device/htc/common" revision="refs/heads/gingerbread" />

<project name="projects/marvel/android_device_htc_msm7x27-recovery.git" path="device/htc/msm7x27-recovery" remote="cryptomilk" />

<project name="projects/marvel/android_device_htc_msm7x27-common.git" path="device/htc/msm7x27-common" remote="cryptomilk" />

<project name="projects/marvel/android_device_htc_marvel-common.git" path="device/htc/marvel-common" remote="cryptomilk" />

<project name="projects/marvel/android_vendor_qcom_msm7x27.git" path="vendor/qcom/msm7x27" remote="cryptomilk" />

<project name="projects/marvel/android_device_htc_marvel.git" path="device/htc/marvel" remote="cryptomilk" />

<project name="projects/marvel/android_vendor_htc_marvel.git" path="vendor/htc/marvel" remote="cryptomilk" />

<project name="projects/marvel/android_device_htc_marvelc.git" path="device/htc/marvelc" remote="cryptomilk" />

<project name="projects/marvel/android_vendor_htc_marvelc.git" path="vendor/htc/marvelc" remote="cryptomilk" />

</manifest>

repo sync

./vendor/cm/get-prebuilts

source build/envsetup.sh

lunch cm_marvel-eng

export USE_CCACHE=1

make -j8 bacon

Camera doesn't even open logcat:

I/ActivityManager( 166): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera/.Camera bnds=[95,324][175,417]} from pid 5770

I/ActivityManager( 166): Start proc com.android.camera for activity com.android.camera/.Camera: pid=16024 uid=10037 gids={1006, 1015}

D/OpenGLRenderer( 5770): Flushing caches (mode 1)

D/OpenGLRenderer( 5770): Flushing caches (mode 0)

E/CameraService( 106): Camera HAL module not loaded

E/CameraHolder(16024): fail to connect Camera

E/CameraHolder(16024): java.lang.RuntimeException: Fail to connect to camera service

E/CameraHolder(16024): at android.hardware.Camera.native_setup(Native Method)

E/CameraHolder(16024): at android.hardware.Camera.<init>(Camera.java:320)

E/CameraHolder(16024): at android.hardware.Camera.open(Camera.java:280)

E/CameraHolder(16024): at com.android.camera.CameraHolder.open(CameraHolder.java:131)

E/CameraHolder(16024): at com.android.camera.Util.openCamera(Util.java:321)

E/CameraHolder(16024): at com.android.camera.Camera$4.run(Camera.java:1251)

E/CameraHolder(16024): at java.lang.Thread.run(Thread.java:856)

I have camera.msm7x27.so in system/lib/hw and also libcamera.so, libcamera_client.so, libcameraservice.so and liboemcamera.so. Firstly how do I go about getting more information on what is going wrong (Do I add more LOGV statements to the code ?) and secondly do you know what is wrong and how I can fix it ?

For the GPS issue the logcat is:

E/RPC ( 165): error opening /dev/oncrpc/3000008c:00020000: No such file or directory

E/RPC ( 165): ERROR OPENING [3000008c:00020000]: No such file or directory

E/RPC ( 165): failed to initialize client (permissions?)!

D/GpsLocationProvider( 165): set_capabilities_callback: 7

D/libloc ( 165): loc_read_gps_conf: using /etc/gps.conf

D/libloc ( 165): loc_eng_init created client, id = -1234

D/libloc ( 165): loc_eng_ni_init: entered.

D/libloc ( 165): loc_eng_deferred_action_thread started

D/libloc ( 165): loc_eng_set_gps_lock mode, client = -1234, lock_type = 1

D/libloc ( 165): loc_eng_ioctl called: client = -1234, ioctl_type = RPC_LOC_IOCTL_SET_ENGINE_LOCK

E/loc_api_rpc_glue( 165): loc_select_callback: buffer full for this synchronous Loc API call, mask: 0x0

D/libloc ( 165): loc_eng_ioctl result: client = -1234, ioctl_type = RPC_LOC_IOCTL_SET_ENGINE_LOCK, RPC_LOC_API_ENGINE_BUSY

D/libloc ( 165): loc_eng_deferred_action_thread. waiting for events

D/libloc ( 165): loc_eng_set_server, type = 1, hostname = supl.google.com, port = 7276

D/libloc ( 165): loc_eng_set_server, addr = supl.google.com:7276

D/libloc ( 165): loc_eng_ioctl called: client = -1234, ioctl_type = RPC_LOC_IOCTL_SET_UMTS_SLP_SERVER_ADDR

E/loc_api_rpc_glue( 165): loc_select_callback: buffer full for this synchronous Loc API call, mask: 0x0

D/libloc ( 165): loc_eng_ioctl result: client = -1234, ioctl_type = RPC_LOC_IOCTL_SET_UMTS_SLP_SERVER_ADDR, RPC_LOC_API_ENGINE_BUSY

E/libloc ( 165): loc_eng_set_server failed

D/GpsLocationProvider( 165): NTP server returned: 1346189975705 (Tue Aug 28 22:39:35 GMT+01:00 2012) reference: 99388 certainty: 29 system time offset: 4

D/libloc ( 165): loc_eng_inject_time, uncertainty = 29

D/libloc ( 165): loc_eng_ioctl called: client = -1234, ioctl_type = RPC_LOC_IOCTL_INJECT_UTC_TIME

E/loc_api_rpc_glue( 165): loc_select_callback: buffer full for this synchronous Loc API call, mask: 0x0

D/libloc ( 165): loc_eng_ioctl result: client = -1234, ioctl_type = RPC_LOC_IOCTL_INJECT_UTC_TIME, RPC_LOC_API_ENGINE_BUSY

E/libloc ( 165): loc_eng_inject_time failed

I read somewhere that I should create a link 'ln -s /dev/oncrpc/3000008c:00020002 /dev/oncrpc/3000008c:00020000' and this gives:

D/libloc ( 166): loc_eng_init entering

D/GpsLocationProvider( 166): set_capabilities_callback: 7

D/libloc ( 166): loc_read_gps_conf: using /etc/gps.conf

D/RPC ( 166): 3000008c:00020000 sending call (XID 8).

E/RPC ( 166): error writing RPC packet: 22 (Invalid argument)

E/RPC ( 166): error -1 in XDR_MSG_SEND

D/libloc ( 166): loc_eng_init created client, id = -1234

D/libloc ( 166): loc_eng_ni_init: entered.

D/libloc ( 166): loc_eng_set_server, type = 1, hostname = supl.google.com, port = 7276

D/libloc ( 166): loc_eng_set_server, addr = supl.google.com:7276

D/libloc ( 166): loc_eng_ioctl called: client = -1234, ioctl_type = RPC_LOC_IOCTL_SET_UMTS_SLP_SERVER_ADDR

E/RPC ( 166): error writing RPC packet: 22 (Invalid argument)

E/RPC ( 166): error -1 in XDR_MSG_SEND

E/loc_api_rpc_glue( 166): loc_api_sync_ioctl: select_id = 0, loc_ioctl returned -1234

D/libloc ( 166): loc_eng_ioctl result: client = -1234, ioctl_type = RPC_LOC_IOCTL_SET_UMTS_SLP_SERVER_ADDR, UNKNOWN

E/libloc ( 166): loc_eng_set_server failed

D/libloc ( 166): loc_eng_deferred_action_thread started

D/RPC ( 166): 3000008c:00020000 sending call (XID 9).

D/libloc ( 166): loc_eng_set_gps_lock mode, client = -1234, lock_type = 1

D/libloc ( 166): loc_eng_ioctl called: client = -1234, ioctl_type = RPC_LOC_IOCTL_SET_ENGINE_LOCK

E/RPC ( 166): error writing RPC packet: 22 (Invalid argument)

E/RPC ( 166): error -1 in XDR_MSG_SEND

E/loc_api_rpc_glue( 166): loc_api_sync_ioctl: select_id = 0, loc_ioctl returned -1234

D/libloc ( 166): loc_eng_ioctl result: client = -1234, ioctl_type = RPC_LOC_IOCTL_SET_ENGINE_LOCK, UNKNOWN

D/libloc ( 166): loc_eng_deferred_action_thread. waiting for events

D/RPC ( 166): 3000008c:00020000 sending call (XID 10).

But from the code I think the link thing is wrong, I wonder if there is come GB compatible flag set that shouldn't be. Any hints on how to debug this and/or fix the problem would be great.

If you need more information for either of these issues then let me know. Also chances are I have messed up some simple, sorry.