[Xiaomi Mi 2] dridri85:
Hi people, I also got this phone.

I come because I need some help, I'm trying to make AOSP running on this phone. It compiles ok and starts using the prebuilt kernel from Xiaomi, but I got problems at the very beginning of booting. I don't if I should make a thread about that..

So here is the log:

--------- beginning of /dev/log/main
E/logwrapper( 162): executing /system/bin/ramdump failed: No such file or directory
E/installd( 151): Could not create directories; exiting.
I/logwrapper( 159): /system/bin/ramdump terminated by exit(255)
E/logwrapper( 164): executing /system/bin/ramdump failed: No such file or directory
I/logwrapper( 157): /system/bin/ramdump terminated by exit(255)
E/logwrapper( 165): executing /system/bin/ramdump failed: No such file or directory
I/logwrapper( 158): /system/bin/ramdump terminated by exit(255)
I/DEBUG ( 145): debuggerd: Dec 8 2012 00:19:03
E/keystore( 152): chdir: /data/misc/keystore: No such file or directory
--------- beginning of /dev/log/system
I/Vold ( 141): Vold 2.1 (the revenge) firing up
E/Vold ( 141): Error reading configuration (No such file or directory)... continuing anyways
I/Netd ( 144): Netd 1.0 starting
I/mediaserver( 149): ServiceManager: 0x4174cce0
I/AudioFlinger( 149): Using default 3000 mSec as standby time.
I/CameraService( 149): CameraService started (pid=149)
E/CameraService( 149): Could not load camera HAL module
E/AudioPolicyManagerBase( 149): could not load audio policy configuration file, setting defaults
I/AudioFlinger( 149): loadHwModule() Loaded primary audio interface from Default audio HW HAL (audio) handle 1
I/AudioFlinger( 149): HAL output buffer size 1024 frames, normal mix buffer size 1024 frames
I/AudioMixer( 149): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project
I/AudioFlinger( 149): Using module 1 has the primary audio interface
I/AudioFlinger( 149): AudioFlinger's thread 0x4174dd10 ready to run
W/AudioFlinger( 149): Thread AudioOut_2 cannot connect to the power manager service
W/AudioFlinger( 149): Thread AudioOut_2 cannot connect to the power manager service
I/AudioPolicyService( 149): Loaded audio policy from LEGACY Audio Policy HAL (audio_policy)
D/AndroidRuntime( 147):
D/AndroidRuntime( 147): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
D/AndroidRuntime( 147): CheckJNI is OFF
I/SurfaceFlinger( 146): SurfaceFlinger is starting
I/SurfaceFlinger( 146): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
E/dalvikvm( 147): Could not stat dex cache directory '/data/dalvik-cache': No such file or directory
I/dalvikvm( 147): Unable to open or create cache for /system/framework/core.jar (/data/dalvikcache/system@framework@core.jar@classes.dex)
D/dalvikvm( 147): Unable to process classpath element '/system/framework/core.jar'
E/dalvikvm( 147): Could not stat dex cache directory '/data/dalvik-cache': No such file or directory
I/dalvikvm( 147): Unable to open or create cache for /system/framework/core-junit.jar (/data/dalvik-cache/system@framework@corejunit.jar@classes.dex)
D/dalvikvm( 147): Unable to process classpath element '/system/framework/core-junit.jar'
E/dalvikvm( 147): Could not stat dex cache directory '/data/dalvik-cache': No such file or directory
I/dalvikvm( 147): Unable to open or create cache for /system/framework/bouncycastle.jar (/data/dalvikcache/system@framework@bouncycastle.jar@classes.dex)
D/dalvikvm( 147): Unable to process classpath element '/system/framework/bouncycastle.jar'
E/dalvikvm( 147): Could not stat dex cache directory '/data/dalvik-cache': No such file or directory
I/dalvikvm( 147): Unable to open or create cache for /system/framework/ext.jar (/data/dalvik-cache/system@framework@ext.jar@classes.dex)
D/dalvikvm( 147): Unable to process classpath element '/system/framework/ext.jar'
E/dalvikvm( 147): Could not stat dex cache directory '/data/dalvik-cache': No such file or directory
I/dalvikvm( 147): Unable to open or create cache for /system/framework/framework.jar (/data/dalvikcache/system@framework@framework.jar@classes.dex)
D/dalvikvm( 147): Unable to process classpath element '/system/framework/framework.jar'
D/dalvikvm( 147): Unable to stat classpath element '/system/framework/framework_ext.jar'
E/dalvikvm( 147): Could not stat dex cache directory '/data/dalvik-cache': No such file or directory
I/dalvikvm( 147): Unable to open or create cache for /system/framework/android.policy.jar (/data/dalvikcache/system@framework@android.policy.jar@classes.dex)
D/dalvikvm( 147): Unable to process classpath element '/system/framework/android.policy.jar'
E/dalvikvm( 147): Could not stat dex cache directory '/data/dalvik-cache': No such file or directory
I/dalvikvm( 147): Unable to open or create cache for /system/framework/services.jar (/data/dalvikcache/system@framework@services.jar@classes.dex)
D/dalvikvm( 147): Unable to process classpath element '/system/framework/services.jar'
E/dalvikvm( 147): Could not stat dex cache directory '/data/dalvik-cache': No such file or directory
I/dalvikvm( 147): Unable to open or create cache for /system/framework/apache-xml.jar (/data/dalvik-cache/system@framework@apachexml.jar@classes.dex)
D/dalvikvm( 147): Unable to process classpath element '/system/framework/apache-xml.jar'
E/dalvikvm( 147): No valid entries found in bootclasspath '/system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework_ext.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar'
E/dalvikvm( 147): VM aborting
F/libc ( 147): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 147 (zygote)
I/DEBUG ( 145): failed to open tombstone file '/data/tombstones/tombstone_00': No such file or directory
I/gralloc ( 146): using (fd=14)
I/gralloc ( 146): id = msmfb44_90801
I/gralloc ( 146): xres = 720 px
I/gralloc ( 146): yres = 1280 px
I/gralloc ( 146): xres_virtual = 720 px
I/gralloc ( 146): yres_virtual = 2560 px
I/gralloc ( 146): bpp = 32
I/gralloc ( 146): r = 24:8
I/gralloc ( 146): g = 16:8
I/gralloc ( 146): b = 8:8
I/gralloc ( 146): width = 114 mm (160.421051 dpi)
I/gralloc ( 146): height = 203 mm (160.157639 dpi)
I/gralloc ( 146): refresh rate = 0.00 Hz
E/SurfaceFlinger( 146): ro.sf.lcd_density must be defined as a build property
E/libEGL ( 146): eglGetDisplay:121 error 300c (EGL_BAD_PARAMETER)
E/libEGL ( 146): eglInitialize:137 error 3008 (EGL_BAD_DISPLAY)
E/libEGL ( 146): validate_display:209 error 3008 (EGL_BAD_DISPLAY)
E/libEGL ( 146): validate_display:209 error 3008 (EGL_BAD_DISPLAY)
F/libc ( 146): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 287 (SurfaceFlinger)
D/MDnsDS ( 144): MDnsSdListener::Hander starting up
D/MDnsDS ( 144): MDnsSdListener starting to monitor
D/MDnsDS ( 144): Going to poll with pollCount 1
I/DEBUG ( 145): failed to open tombstone file '/data/tombstones/tombstone_00': No such file or directory

As you can see the /data partition isn't mounted, and EGL can't find the 'ro.sf.lc_density' var whereas I set this in my device.mk (which is included by my mi2.mk) file :

PRODUCT_PROPERTY_OVERRIDES += ro.sf.lcd_density=342

PRODUCT_CHARACTERISTICS := nosdcard

PRODUCT_TAGS += dalvik.gc.type-precise

So is there something I forget ? I can also post all the *.mk files if it can help.

I didn't find any good tutorials about adding new device to AOSP tree, I only found this : http://www1.geexbox.org/~ben/abs.txt

Thanks