[Android Q&A, Help & Troubleshooting] jonas2790:
Hi,

I'm trying to port cm12 to htc one v, which doesn't have devs anymore, so I'm asking here.

The phone starts surfaceflinger and shows the bootanimation, then it does nothing:

--------- beginning of main
I/lowmemorykiller( 1680): Using in-kernel low memory killer interface
I/cm ( 1696): ____ _ _ ____ _ _ ____ ____ ____ _ _ _ _ ____ ___
--------- beginning of system
I/Vold ( 1682): Vold 2.1 (the revenge) firing up
D/Vold ( 1682): Volume sdcard0 state changing -1 (Initializing) -> 0 (No-Media)
I/Cryptfs ( 1682): Check if PFE is activated on Boot
I/cm ( 1697): | \_/ |__| |\ | | | | __ |___ |\ | |\/| | | | \
E/Cryptfs ( 1682): Bad magic for real block device /dev/block/platform/msm_sdcc.2/by-num/p26
E/Cryptfs ( 1682): Error getting crypt footer and key
I/cm ( 1698): |___ | | | | \| |__| |__] |___ | \| | | |__| |__/
I/SurfaceFlinger( 1687): SurfaceFlinger is starting
I/cm ( 1701): Welcome to Android 5.0.2 / CyanogenMod-12-20150209-UNOFFICIAL-alpha_0.4-primou
I/SurfaceFlinger( 1687): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
D/libEGL ( 1687): loaded /system/lib/egl/libEGL_adreno200.so
D/libEGL ( 1687): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
D/libEGL ( 1687): loaded /system/lib/egl/libGLESv2_adreno200.so
D/Vold ( 1682): Volume sdcard0 state changing 0 (No-Media) -> 2 (Pending)
D/DirectVolume( 1682): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 65, PARTN 1
D/Vold ( 1682): Volume sdcard0 state changing 2 (Pending) -> 1 (Idle-Unmounted)
I/Adreno200-EGL( 1687): <qeglDrvAPI_eglInitialize:269>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB_VANILLA.04.02.02.60.051_msm8960_JB_VANILLA_CL2997615_release_AU (CL2997615)
I/Adreno200-EGL( 1687): Build Date: 04/11/13 Thu
I/Adreno200-EGL( 1687): Local Branch:
I/Adreno200-EGL( 1687): Remote Branch: quic/mako_jb_mr1
I/Adreno200-EGL( 1687): Local Patches: NONE
I/Adreno200-EGL( 1687): Reconstruct Branch: AU_LINUX_ANDROID_JB_VANILLA.04.02.02.60.051 + NOTHING
I/gralloc ( 1687): using (fd=13)
I/gralloc ( 1687): id = msmfb40_0
I/gralloc ( 1687): xres = 480 px
I/gralloc ( 1687): yres = 800 px
I/gralloc ( 1687): xres_virtual = 480 px
I/gralloc ( 1687): yres_virtual = 2400 px
I/gralloc ( 1687): bpp = 32
I/gralloc ( 1687): r = 0:8
I/gralloc ( 1687): g = 8:8
I/gralloc ( 1687): b = 16:8
I/gralloc ( 1687): width = 52 mm (234.461533 dpi)
I/gralloc ( 1687): height = 88 mm (230.909088 dpi)
I/gralloc ( 1687): refresh rate = 52429280.00 Hz
D/CALCFPS ( 1687): DEBUG_CALC_FPS: 0
D/CALCFPS ( 1687): period: 10
D/CALCFPS ( 1687): ignorethresh_us: 500000
D/CALCFPS ( 1687): DEBUG_CALC_FPS: 0
D/CALCFPS ( 1687): period: 10
D/CALCFPS ( 1687): ignorethresh_us: 500000
E/SELinux ( 1681): avc: denied { add } for service=display.hwcservice scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:system_server_service:s0 tclass=service_manager
I/Adreno200-C2D( 1687): <c2d_wrapper_init:126>: C2D2 initializing z180 version: libc2d2_z180.so
I/Adreno200-C2D( 1687): <c2d_wrapper_init:183>: C2D2 wrapper initialized successfully
I/hwcomposer( 1687): Initializing Qualcomm Hardware Composer
I/hwcomposer( 1687): MDP version: 400
I/hwcomposer( 1687): DYN composition threshold : 2.000000
I/hwcomposer( 1687): hwc_device_open: Faking Hardware VSYNC
I/SurfaceFlinger( 1687): Using composer version 1.0
I/hwcomposer( 1687): Initializing UEvent Listener Thread
I/hwcomposer( 1687): Initializing VSYNC Thread
W/SurfaceFlinger( 1687): no suitable EGLConfig found, trying a simpler query
I/SurfaceFlinger( 1687): EGL information:
I/SurfaceFlinger( 1687): vendor : Android
I/SurfaceFlinger( 1687): version : 1.4 Android META-EGL
I/SurfaceFlinger( 1687): extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_image EGL_KHR_image_base EGL_KHR_lock_surface EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_EXT_create_context_robustness EGL_ANDROID_image_native_buffer EGL_ANDROID_recordable
I/SurfaceFlinger( 1687): Client API: OpenGL_ES
I/SurfaceFlinger( 1687): EGLSurface: 8-8-8-8, config=0x4
I/SurfaceFlinger( 1687): OpenGL ES informations:
I/SurfaceFlinger( 1687): vendor : Qualcomm
I/SurfaceFlinger( 1687): renderer : Adreno (TM) 205
I/SurfaceFlinger( 1687): version : OpenGL ES 2.0 V@6.0 AU@04.02.02.60.051 (CL@2997615)
I/SurfaceFlinger( 1687): extensions: GL_EXT_debug_marker GL_AMD_compressed_ATC_texture GL_AMD_performance_monitor GL_AMD_program_binary_Z400 GL_EXT_robustness GL_EXT_texture_format_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_NV_fence GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_depth24 GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_fragment_precision_high GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_vertex_type_10_10_10_2 GL_OES_vertex_array_object GL_QCOM_alpha_test GL_QCOM_binning_control GL_QCOM_driver_control GL_QCOM_perfmon_global_mode GL_QCOM_extended_get GL_QCOM_extended_get2 GL_QCOM_tiled_rendering GL_QCOM_writeonly_rendering GL_AMD_compressed_3DC_texture GL_EXT_texture_filter_anisotropic
I/SurfaceFlinger( 1687): GL_MAX_TEXTURE_SIZE = 4096
I/SurfaceFlinger( 1687): GL_MAX_VIEWPORT_DIMS = 4096
E/cutils-trace( 1687): Error opening trace file: No such file or directory (2)
D/SurfaceFlinger( 1687): Set power mode=2, type=0 flinger=0x40662000
D/SurfaceFlinger( 1687): SF. shader cache generated - 26 shaders in 684.494873 ms
D/libEGL ( 1787): loaded /system/lib/egl/libEGL_adreno200.so
D/libEGL ( 1787): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
D/libEGL ( 1787): loaded /system/lib/egl/libGLESv2_adreno200.so
I/Adreno200-EGL( 1787): <qeglDrvAPI_eglInitialize:269>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB_VANILLA.04.02.02.60.051_msm8960_JB_VANILLA_CL2997615_release_AU (CL2997615)
I/Adreno200-EGL( 1787): Build Date: 04/11/13 Thu
I/Adreno200-EGL( 1787): Local Branch:
I/Adreno200-EGL( 1787): Remote Branch: quic/mako_jb_mr1
I/Adreno200-EGL( 1787): Local Patches: NONE
I/Adreno200-EGL( 1787): Reconstruct Branch: AU_LINUX_ANDROID_JB_VANILLA.04.02.02.60.051 + NOTHING
E/cutils-trace( 1787): Error opening trace file: No such file or directory (2)
E/BootAnimation( 1787): couldn't find audio_conf.txt
W/BootAnimation( 1787): Audio service is not initiated.
D/BootAnimation( 1787): Use save memory method, maybe small fps in actual.
D/BootAnimation( 1787): Use save memory method, maybe small fps in actual.

I can kill surfaceflinger, and zygote starts, but then dex2oat fails.

This is my first android rom and I just wanna know how I may find the problem.

If you want, you can look at my device tree on github: https://github.com/AndroidPrimou/android_device_htc_msm7x30-common/tree/cm-12.0-new, https://github.com/AndroidPrimou/android_device_htc_primou/tree/cm-12.0-new

Kernel: https://github.com/rastomanchik/android_kernel_htc_primou

Please help, I'm completely clueless :)