[Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De] 99degree:
porting to a new phone

Hi gentleman,

I am porting your rom to an sdm636 phone (MeizuE3) and it boots up with adb. The error comes in as below, would you offer some suggestion?

issue 1

[ 7.961035] DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***DEBUG: LineageOS Version: '17.1-20200129-UNOFFICIAL-jasmine_sprout'DEBUG
: Build fingerprint: 'xiaomi/wayne/wayne:8.1.0/OPM1.171019.011/V9.5.11.0.ODCCNFA:user/release-keys'DEBUG: Revision: '0'DEBUG: ABI: 'arm64'DEBUG: Timestamp: 1
971-10-20 03:36:13+0000DEBUG: pid: 744, tid: 744, name: surfaceflinger >>> /system/bin/surfaceflinger <<<DEBUG: uid: 1000DEBUG: signal 11 (SIGSEGV), code 1
(SEGV_MAPERR), fault addr 0x0DEBUG: Cause: null pointer dereferenceDEBUG: x0 0000000000000000 x1 0000000000000000 x2 0000000000000000 x3 000000000
0000075DEBUG: x4 0000000000000000 x5 0000000000000000 x6 0000000000000000 x7 00000002148fd71cDEBUG: x8 0101010101010101 x9 add334566aab4d5b
x10 000000005f647079 x11 0000000000000000
[ 7.962713] DEBUG: x12 0000000000000001 x13 00000000000002e8 x14 0000000000000005 x15 0000000000000000DEBUG: x16 0000007e04a38be8 x17 0000007e
03b9ade0 x18 0000007e05960000 x19 0000007e04dc9968DEBUG: x20 0000000000000000 x21 0000000000000000 x22 0000000000000001 x23 0000000000000006DEBUG:
x24 0000007e04dc9940 x25 00000000005d1420 x26 0000007e050d4020 x27 0000007e04de7050DEBUG: x28 0000000000000001 x29 0000007fed2521d0DEBUG: sp
0000007fed2521b0 lr 0000007e04a2da2c pc 0000007e03b9adf0DEBUG:
[ 7.982851] DEBUG: backtrace:DEBUG: #00 pc 000000000007edf0 /apex/com.android.runtime/lib64/bionic/libc.so (strlen+16) (BuildId: 278b726ce2067136d0
f45b416b32d92f)DEBUG: #01 pc 0000000000010a28 /system/lib64/libutils.so (android::String8::setTo(char const*)+28) (BuildId: c350be91ee81b32a4cac7cc068
a4e106)DEBUG: #02 pc 00000000001223b8 /system/lib64/libsurfaceflinger.so ([B]android::renderengine::gl::GLExtensions::initWithEGLStrings[/B](char const*, cha
r const*)+44) (BuildId: e79713525e36c4c4af4f781e54b5f03a)DEBUG: #03 pc 0000000000119c80 /system/lib64/libsurfaceflinger.so (android::renderengine::gl:
:GLESRenderEngine::create(int, unsigned int, unsigned int)+140) (BuildId: e79713525e36c4c4af4f781e54b5f03a)DEBUG: #04 pc 0000000000119abc /system/lib6
4/libsurfaceflinger.so (android::renderengine::RenderEngine::create(int, unsigned int, unsigned int)+164) (BuildId: e79713525e36c4c4af4f781e54b5f03a)
[ 7.983310] DEBUG: #05 pc 00000000000d3394 /system/lib64/libsurfaceflinger.so (android::SurfaceFlinger::init()+1192) (BuildId: e79713525e36c4c4af4f
781e54b5f03a)DEBUG: #06 pc 00000000000031b0 /system/bin/surfaceflinger (main+352) (BuildId: 765e62bb97c3a0c20602e852ed028421)DEBUG: #07 pc 00000
0000007dc24 /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+108) (BuildId: 278b726ce2067136d0f45b416b32d92f)

looked like it cant find the adreno gl lib. this case. the lib is there as i checked, see below.

(edit: it is fixed. the firmware a512.mdp is a custom version. replace it with flyme one does make it progress.)

issue2

[ 7.989954] selinux: SELinux: Could not get canonical path for /sys/block/sda/queue restorecon: No such file or directory.\x0a
[ 7.990183] selinux: SELinux: Could not get canonical path for /sys/block/sde/queue restorecon: No such file or directory.\x0a
[ 7.990256] selinux: SELinux: Could not get canonical path for /sys/block/dm-0/queue restorecon: No such file or directory.\x0a

no idea about this, and was put "androidboot.selinu=permissive selinux=0" as boot param.

since other issues are more less related to missing driver. so i skipped here.

Thanks,

99degree