yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Original Android Development] munjeni:
Can't get screen but can go into adb:

amami:/ $ su
su
amami:/ # uname -r
uname -r
3.4.0-perf-gfb58af2-dirty
amami:/ # cat /system/build.prop | grep AOSP
cat /system/build.prop | grep AOSP
ro.product.model=Xperia Z1 Compact (AOSP)
amami:/ #

dmesg -> http://pastebin.com/FpuuNRGj

logcat -> http://pastebin.com/qaCzxqus

Used stock adreno libs and camera things, libcrypto have missing some functions for adreno, when I replace it with aosp libcrypto android doesn't boot... in general some dependencies missing which need to be implemented back to get libs working...
[Xperia Z1 Original Android Development] SuperLamic:
found this: http://xdaforums.com/showpost.php?p=63579207&postcount=465

edit: also try to disable that selinux (probably not gonna fix anything, but it spams log..)
[Xperia Z1 Original Android Development] optimumpro:
But you don't and will never have stock N. That's the point...

I may be wrong, but I am yet to see one instance where a custom rom could boot with stock kernel without implementing what is called a second init, i.e. hijacking one of early scripts and directing it to mount another ramdisk. But that is usually done to have custom roms on unlockable bootloaders, the way it was done on Xperia ION. I still have ION with unlockable bootloader and running CM-10 on it...
[Xperia Z1 Original Android Development] munjeni:
Selinux is no more problem here its fixed, problem by now is getting display work. Problem is openssl is deprecated, android now uses boring ssl which missing some of the openssl functions, it can be implemented in separate lib/hex modification adreno, or implementing that missing functions into boring ssl directly. Curently I have uploded libssl and libcrypto to device and now nougat can't boot, unable to look into logcat :(

I have no plan to boot stock rom, only aosp nougat

Edit:

Found commit which contain miissing openssl function https://github.com/sonyxperiadev/boringssl-compat/commit/6800a1b1edd29e5be942cdbc4afc45b77d2b0423
[Xperia Z1 Original Android Development] optimumpro:
Well, I don't think we understand each other: you have a plan to boot stock kernel with non stock Nougat rom. And that has never been done, except when using second init/hijack of early scripts to mount another ramdisk. All hats to you if you can do it, but much easier thing would be to use custom 3.4 kernel that already boots and have good camera on JB/KK/LP to work with N via a modified camera wrapper...
[Xperia Z1 Original Android Development] SuperLamic:
But he modifies the stock kernel to work on custom rom. Not a prebuilt one.

I don't think that the custom kernel what we have now are better than stock one... (I'm not that skilled to know that but I guess that when you upgrade all the things in kernel you can use it on different android...)
[Xperia Z1 Original Android Development] munjeni:
Solved libcrypto dependency, hex edited liegl_adreno lib, changed one byte libcrypto.so to libcryptt.so, renamed libcrypto.so to libryptt.so, uploaded and wholaa :), another problem:

01-01 18:29:52.339 1499 1499 E libEGL : load_driver(/vendor/lib/egl/libGLESv1_CM_adreno.so): dlopen failed: cannot l
cate symbol "BIO_f_base64" referenced by "/system/vendor/lib/egl/libGLESv1_CM_adreno.so"...
01-01 18:29:52.341 1499 1499 E libEGL : load_driver(/vendor/lib/egl/libGLESv2_adreno.so): dlopen failed: cannot loca
e symbol "BIO_f_base64" referenced by "/system/vendor/lib/egl/libGLESv2_adreno.so"...

Edit:

must do the same thing to libGLESv1_CM_adreno & libGLESv2_adreno
[Xperia Z1 Original Android Development] munjeni:
WFH? I have that lib in path, allso symlinked it to system/lib/egl

01-01 18:40:00.518 2782 2782 I SurfaceFlinger: SurfaceFlinger is starting
01-01 18:40:00.518 2782 2782 I SurfaceFlinger: SurfaceFlinger's main thread ready to run. Initializing graphics H/W...

01-01 18:40:00.521 2782 2782 D libEGL : loaded /vendor/lib/egl/libEGL_adreno.so
01-01 18:40:00.522 2782 2782 D libEGL : loaded /vendor/lib/egl/libGLESv1_CM_adreno.so
01-01 18:40:00.537 2782 2782 D libEGL : loaded /vendor/lib/egl/libGLESv2_adreno.so
01-01 18:40:00.555 2782 2782 I Adreno-EGL: <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_LA
.BF.1.1.1_RB1.05.01.00.042.030_msm8974_LA.BF.1.1.1_RB1__release_AU ()
01-01 18:40:00.555 2782 2782 I Adreno-EGL: OpenGL ES Shader Compiler Version: E031.25.03.06
01-01 18:40:00.555 2782 2782 I Adreno-EGL: Build Date: 05/17/15 Sun
01-01 18:40:00.555 2782 2782 I Adreno-EGL: Local Branch: mybranch10089422
01-01 18:40:00.555 2782 2782 I Adreno-EGL: Remote Branch: quic/LA.BF.1.1.1_rb1.22
01-01 18:40:00.555 2782 2782 I Adreno-EGL: Local Patches: NONE
01-01 18:40:00.555 2782 2782 I Adreno-EGL: Reconstruct Branch: AU_LINUX_ANDROID_LA.BF.1.1.1_RB1.05.01.00.042.030 + 615
1be1 + NOTHING
01-01 18:40:00.555 2782 2782 W Adreno-GSL: <os_lib_map:1345>: os_lib_map error: dlopen failed: library "egl/eglsubAn
droid.so" not found, on 'egl/eglsubAndroid.so'
01-01 18:40:00.555 2782 2782 E Adreno-EGL: <eglSubDriverMap:1063>: Unable to load [egl/eglsubAndroid.so]
01-01 18:40:00.555 2782 2782 W Adreno-EGL: <qeglDrvAPI_eglInitialize:441>: EGL_NOT_INITIALIZED
01-01 18:40:00.555 2782 2782 W libEGL : eglInitialize(0x1) failed (EGL_NOT_INITIALIZED)
01-01 18:40:00.555 2782 2782 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 2782 (surfaceflinger
)

Ideas?

Edit:

seems missing some dependencies:

plt:00001338 ; Needed Library 'libEGL_adreno.so'
.plt:00001338 ; Needed Library 'libc.so'
.plt:00001338 ; Needed Library 'libcutils.so'
.plt:00001338 ; Needed Library 'libdl.so'
[COLOR="Red"].plt:00001338 ; Needed Library 'libgsl.so'[/COLOR]
.plt:00001338 ; Needed Library 'libhardware.so'
.plt:00001338 ; Needed Library 'libm.so'
.plt:00001338 ; Needed Library 'libstdc++.so'
[COLOR="Red"].plt:00001338 ; Needed Library 'libsync.so'[/COLOR]
.plt:00001338 ; Needed Library 'libui.so'
.plt:00001338 ; Shared Name 'eglsubAndroid.so'
[Xperia Z1 Original Android Development] SuperLamic:
Maybe they changed it, but I found a similar error: <eglSubDriverMap:1283>: Unable to load [/system/lib/egl/eglsubAndroid.so] .m So your build seems to load the lib from root, not from system/lib I guess?

edit: huh, you edited it before I posted, so it's probably wrong :D
[Xperia Z1 Original Android Development] munjeni:
Hmm no way

01-01 18:50:35.681 2790 2790 I SurfaceFlinger: SurfaceFlinger is starting
01-01 18:50:35.681 2790 2790 I SurfaceFlinger: SurfaceFlinger's main thread ready to run. Initializing graphics H/W..

01-01 18:50:35.684 2790 2790 D libEGL : loaded /vendor/lib/egl/libEGL_adreno.so
01-01 18:50:35.685 2790 2790 D libEGL : loaded /vendor/lib/egl/libGLESv1_CM_adreno.so
01-01 18:50:35.699 2790 2790 D libEGL : loaded /vendor/lib/egl/libGLESv2_adreno.so
01-01 18:50:35.717 2790 2790 I Adreno-EGL: <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_L
.BF.1.1.1_RB1.05.01.00.042.030_msm8974_LA.BF.1.1.1_RB1__release_AU ()
01-01 18:50:35.717 2790 2790 I Adreno-EGL: OpenGL ES Shader Compiler Version: E031.25.03.06
01-01 18:50:35.717 2790 2790 I Adreno-EGL: Build Date: 05/17/15 Sun
01-01 18:50:35.717 2790 2790 I Adreno-EGL: Local Branch: mybranch10089422
01-01 18:50:35.717 2790 2790 I Adreno-EGL: Remote Branch: quic/LA.BF.1.1.1_rb1.22
01-01 18:50:35.717 2790 2790 I Adreno-EGL: Local Patches: NONE
01-01 18:50:35.717 2790 2790 I Adreno-EGL: Reconstruct Branch: AU_LINUX_ANDROID_LA.BF.1.1.1_RB1.05.01.00.042.030 + 61
1be1 + NOTHING
01-01 18:50:35.717 2790 2790 W Adreno-GSL: <os_lib_map:1345>: os_lib_map error: dlopen failed: library "egl/eglsubA
droid.so" not found, on 'egl/eglsubAndroid.so'
01-01 18:50:35.717 2790 2790 E Adreno-EGL: <eglSubDriverMap:1063>: Unable to load [egl/eglsubAndroid.so]
01-01 18:50:35.717 2790 2790 W Adreno-EGL: <qeglDrvAPI_eglInitialize:441>: EGL_NOT_INITIALIZED
01-01 18:50:35.717 2790 2790 W libEGL : eglInitialize(0x1) failed (EGL_NOT_INITIALIZED)
01-01 18:50:35.717 2790 2790 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 2790 (surfaceflinge
)
01-01 18:50:35.717 2167 2167 W : debuggerd: handling request: pid=2790 uid=1000 gid=1003 tid=2790
01-01 18:50:35.721 2796 2796 E : debuggerd: Unable to connect to activity manager (connect failed: No such fi
e or directory)
01-01 18:50:35.722 2790 2790 F libc : failed to resend signal during crash: Operation not permitted
01-01 18:50:35.774 2596 2685 I ServiceManager: Waiting for service SurfaceFlinger...
01-01 18:50:35.844 2161 2161 E msm8974_platform: platform_init: Unable to open the mixer card: 0
01-01 18:50:36.775 2596 2685 I ServiceManager: Waiting for service SurfaceFlinger...
01-01 18:50:38.025 2596 2685 I ServiceManager: Waiting for service SurfaceFlinger...
01-01 18:50:39.025 2596 2685 I ServiceManager: Waiting for service SurfaceFlinger...
01-01 18:50:40.025 2596 2685 I ServiceManager: Waiting for service SurfaceFlinger...

Why it says "not found"? I can see it uses dependency from libhardware.so but hmm maybe something missing from libhardware, anyway strange - nothing reported missing out of "egl/blabla.so not found"
[Xperia Z1 Original Android Development] tomascus:
[MENTION=4120742]munjeni[/MENTION], ehh what's going on here? Haha.

I haven't read the whole thread properly but those things you're missing just seem like the usual proprietary adreno blobs. Why did you even change them ?
[Xperia Z1 Original Android Development] munjeni:
What is name of the lib contain Adreno-GSL ?
[Xperia Z1 Original Android Development] munjeni:
Changed since I'm getting unknown ioctl in mdss_fb
[Xperia Z1 Original Android Development] tomascus:
Yeah that's related to DISPLAY HAL most likely not GRAPHICS drivers:silly:

---------- Post added at 04:23 PM ---------- Previous post was at 04:22 PM ----------

Aka files like memtrack?gralloc, hwcomposer

---------- Post added at 04:24 PM ---------- Previous post was at 04:23 PM ----------

Do you have hangouts?
[Xperia Z1 Original Android Development] munjeni:
Have no hangouts.... I'm using hals from stock rom allready!
[Xperia Z1 Original Android Development] SuperLamic:
oneplus opensource devs had the same issue https://forums.oneplus.net/threads/wip-android-m-port.313888/page-9#post-11438837 ... maybe there is some fix at his git? https://github.com/Aaahh?tab=repositories

edit: "I'll tell you what I found though

That error is from linker

Linker is from bionic

That happens from libstlport maybe (it's been removed from M)

System/framework/native has references to eglsuvandroid"

edit2: "i think i've found the error... look in your init.device.rc ramdisk file and tell me if you find this

# Support legacy libs

symlink /system/vendor/lib/egl /egl

looking into sony m preview project

let me know if it worked for you ;)"
[Xperia Z1 Original Android Development] optimumpro:
You need stock rom to have drm protected camera blobs working. He could use Sony copyleft kernel with stock LP 5.1.1 rom fine, but there is no Nougat or even MM stock rom for rhine devices, which means drm protected blobs won't work. He would still need to use JB blobs and camera wrapper, but custom CM 3.4 kernel already boots and works with JB camera blobs. He is a great developer, but in my view, he is busting his behind against something that cannot work. I have said all along: there is only one avenue to have working camera on Nougat: use CM 3.4 kernel with JB stock blobs, which are fine + heavily modified camera wrapper that would call for Nougat camera hal...
[Xperia Z1 Original Android Development] SuperLamic:
I think I've read a discussion where they were saying that it requires some hex changes and they're not gonna use hexed blobs. That means that it is possible to use it. Well, I still want to see if it works...
[Xperia Z1 Original Android Development] munjeni:
Thats unconfirmed stories! No body know that until somebody try! I even don't believe that libs is drm protected.
[Xperia Z1 Original Android Development] munjeni:
After using aosp adreno blobs getting this:

01-01 19:20:41.182 7262 7262 I SurfaceFlinger: SurfaceFlinger is starting
01-01 19:20:41.182 7262 7262 I SurfaceFlinger: SurfaceFlinger's main thread ready to run. Initializing graphics H/W...

01-01 19:20:41.184 7262 7262 D libEGL : loaded /vendor/lib/egl/libEGL_adreno.so
01-01 19:20:41.185 7262 7262 D libEGL : loaded /vendor/lib/egl/libGLESv1_CM_adreno.so
01-01 19:20:41.202 7262 7262 D libEGL : loaded /vendor/lib/egl/libGLESv2_adreno.so
01-01 19:20:41.217 7262 7262 I Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: Nondeterministic_AU
_msm8974_LA.BF.1.1.3_RB1__release_AU (Ia10634f51b)
01-01 19:20:41.217 7262 7262 I Adreno-EGL: OpenGL ES Shader Compiler Version: E031.29.00.00
01-01 19:20:41.217 7262 7262 I Adreno-EGL: Build Date: 01/10/16 Sun
01-01 19:20:41.217 7262 7262 I Adreno-EGL: Local Branch: mybranch17687478
01-01 19:20:41.217 7262 7262 I Adreno-EGL: Remote Branch: quic/LA.BF.1.1.3_rb1.8
01-01 19:20:41.217 7262 7262 I Adreno-EGL: Local Patches: NONE
01-01 19:20:41.217 7262 7262 I Adreno-EGL: Reconstruct Branch: NOTHING
01-01 19:20:41.221 7262 7262 E HAL : load: module=/system/lib/hw/gralloc.msm8974.so
01-01 19:20:41.221 7262 7262 E HAL : dlopen failed: cannot locate symbol "_ZN13AdrenoMemInfo24getAlignedWidthAndHe
ightEiiiRiS0_" referenced by "/system/lib/hw/gralloc.msm8974.so"...
01-01 19:20:41.221 7262 7262 E SurfaceFlinger: gralloc module not found
01-01 19:20:41.222 7262 7262 E HAL : load: module=/system/lib/hw/hwcomposer.msm8974.so
01-01 19:20:41.222 7262 7262 E HAL : dlopen failed: library "libvirtual.so" not found
01-01 19:20:41.222 7262 7262 E SurfaceFlinger: hwcomposer module not found
01-01 19:20:41.222 7262 7262 E SurfaceFlinger: ERROR: failed to open framebuffer (Invalid argument), aborting
01-01 19:20:41.223 7262 7262 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 7262 (surfaceflinger)
01-01 19:20:41.223 6637 6637 W : debuggerd: handling request: pid=7262 uid=1000 gid=1003 tid=7262
01-01 19:20:41.227 7272 7272 E : debuggerd: Unable to connect to activity manager (connect failed: No such fil
e or directory)
01-01 19:20:41.228 7262 7262 F libc : failed to resend signal during crash: Operation not permitted
01-01 19:20:41.246 7080 7154 I ServiceManager: Waiting for service SurfaceFlinger...

From where this goes? From hal? Or from adreno? :

01-01 19:20:41.217 7262 7262 I Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: Nondeterministic_AU
_msm8974_LA.BF.1.1.3_RB1__release_AU (Ia10634f51b)

Seems from hal since string LA.BF.1.1.3_RB1 which points to the jerpelea branch
[Xperia Z1 Original Android Development] tomascus:
I somewhat disagree with you, right now I'm attempting to use "stock" camera blobs on my aosp ROM but I am currently facing issues with DRM. Cald seems to not want to open the camera preview due to issues with credentialmanager (DRM related?) at the moment.

cald?* ?* : 94351160176 cacao_chokoball.cpp?* ?* ?* ?* ?* ?* ?* (4914)?* 4100 E [?* ] ckb preCompile fail. keymgr credmgr generic error.

---------- Post added at 04:49 PM ---------- Previous post was at 04:46 PM ----------

La.bf.1.1.3 is the latest codeaurora branch for msm8974 devices
[Xperia Z1 Original Android Development] munjeni:
Have no idea, you can grep whole stock system partition to find from where it calls "ckb preCompile", I yhink all that things is kernel related!

grep -r "ckb preCompile" /system

How you got display working, do you know which hals and libs excatly from stock rom you used?
[Xperia Z1 Original Android Development] munjeni:
Going to see why 'm getting:

01-01 18:50:35.717 2790 2790 W Adreno-GSL: <os_lib_map:1345>: os_lib_map error: dlopen failed: library "egl/eglsubA
droid.so" not found, on 'egl/eglsubAndroid.so'

Found func in

amami:/ # busybox grep -rn os_lib_map /system
/system/lib/egl/libEGL_adreno.so:4939:os_lib_map
/system/lib/egl/libGLESv1_CM_adreno.so:10321:os_lib_map
[Xperia Z1 Original Android Development] tomascus:
I'm working on shinano so it's probably a little easier. Basically I am using caf branch la.bf.1.1.3 for kernel and display HAL, and adreno blobs should be latest.

Edit: these are the files relating to display HAL https://drive.google.com/file/d/0B3bfLXY54yW-SXd3RHJhX3pfLTg/view?usp=drivesdk
[Xperia Z1 Original Android Development] SuperLamic:
have you set up that symlink?

# Support legacy libs

symlink /system/vendor/lib/egl /egl
[Xperia Z1 Original Android Development] munjeni:
_ZN13AdrenoMemInfo24getAlignedWidthAndHeightEiiiRiS0_

_ZN13AdrenoMemInfo24getAlignedWidthAndHeightEiiiiRiS0_

damn, one byte longer.

amami:/ # busybox grep -r getAlignedWidthAndHeight /system
busybox grep -r getAlignedWidthAndHeight /system
/system/lib/hw/gralloc.msm8974.so:_ZN13AdrenoMemInfo24getAlignedWidthAndHeightEiiiRiS0
/system/lib/libmemalloc.so:_ZN13AdrenoMemInfo24getAlignedWidthAndHeightEiiiiRiS0_
/system/lib/libmemalloc.so:getAlignedWidthAndHeight

one way is to hexedit it back to what we need
[Xperia Z1 Original Android Development] tomascus:
Did you say you were using stock z1 display HAL?
[Xperia Z1 Original Android Development] SuperLamic:
https://forums.oneplus.net/threads/development-lollipop.154589/page-55#post-6905304

https://forums.oneplus.net/threads/development-lollipop.154589/page-55#post-6908851
[Xperia Z1 Original Android Development] munjeni:
Yes, using it now, some symbols not match

edit:

gralloc solved, now remaining hwcomposer :)

01-01 21:26:31.960 10493 10493 D libEGL : loaded /vendor/lib/egl/libGLESv2_adreno.so
01-01 21:26:31.980 10493 10493 I Adreno-EGL: <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_L
.BF.1.1.1_RB1.05.01.00.042.030_msm8974_LA.BF.1.1.1_RB1__release_AU ()
01-01 21:26:31.980 10493 10493 I Adreno-EGL: OpenGL ES Shader Compiler Version: E031.25.03.06
01-01 21:26:31.980 10493 10493 I Adreno-EGL: Build Date: 05/17/15 Sun
01-01 21:26:31.980 10493 10493 I Adreno-EGL: Local Branch: mybranch10089422
01-01 21:26:31.980 10493 10493 I Adreno-EGL: Remote Branch: quic/LA.BF.1.1.1_rb1.22
01-01 21:26:31.980 10493 10493 I Adreno-EGL: Local Patches: NONE
01-01 21:26:31.980 10493 10493 I Adreno-EGL: Reconstruct Branch: AU_LINUX_ANDROID_LA.BF.1.1.1_RB1.05.01.00.042.030 + 61
1be1 + NOTHING
01-01 21:26:31.998 10493 10493 E HAL : load: module=/system/lib/hw/hwcomposer.msm8974.so
01-01 21:26:31.998 10493 10493 E HAL : dlopen failed: cannot locate symbol "_ZN7overlay7Overlay13displayCommitERKiR
NS_5utils3DimE" referenced by "/system/lib/hw/hwcomposer.msm8974.so"...
01-01 21:26:31.998 10493 10493 E SurfaceFlinger: hwcomposer module not found
01-01 21:26:31.998 10493 10493 E SurfaceFlinger: ERROR: failed to open framebuffer (Operation not permitted), aborting
01-01 21:26:31.998 10493 10493 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 10493 (surfaceflinger)
01-01 21:26:31.999 9842 9842 W : debuggerd: handling request: pid=10493 uid=1000 gid=1003 tid=10493
01-01 21:26:31.999 9842 9842 E : debuggerd: waitpid returned unexpected pid (0), committing murder-suicide
01-01 21:26:31.999 9842 9842 W : debuggerd: pid 0 received signal 9
01-01 21:26:32.000 9842 9842 E : debuggerd: killing target 10493
[Xperia Z1 Original Android Development] tomascus:
Use it alongside the default adreno blobs

I think I use https://github.com/tunturn/vendor_qcom/tree/n/prebuilt/proprietary/adreno/a3xx

Since they're in my repo :eek:

You can use the zip I shared with you for the display HAL
[Xperia Z1 Original Android Development] munjeni:
No way getting hwcomposer, its linked with ton of libs, whatewer I edit thing is more and more broken... will try with blobs provided by you..

Did you grep for function name in system related to drm and camera...?

Is not you using kernel 3.4 ??
[Xperia Z1 Original Android Development] munjeni:
01-01 22:10:46.297 21154 21154 D msm8974_platform: platform_init: Loading mixer file: /system/etc/mixer_paths.xml
01-01 22:10:46.297 21144 21144 W BatteryNotifier: batterystats service unavailable!
01-01 22:10:46.413 21141 21141 I qdutils : PartialUpdate status: Disabled
01-01 22:10:46.413 21141 21141 I qdutils : Left Align: 0
01-01 22:10:46.413 21141 21141 I qdutils : Width Align: 0
01-01 22:10:46.413 21141 21141 I qdutils : Top Align: 0
01-01 22:10:46.413 21141 21141 I qdutils : Height Align: 0
01-01 22:10:46.413 21141 21141 I qdutils : Min ROI Width: 0
01-01 22:10:46.413 21141 21141 I qdutils : Min ROI Height: 0
01-01 22:10:46.415 21141 21141 D qdutils : int qdutils::getHDMINode(): HDMI is at fb1
01-01 22:10:46.416 21141 21141 I qdhwcomposer: Initializing Qualcomm Hardware Composer
01-01 22:10:46.416 21141 21141 I qdhwcomposer: MDP version: 500
01-01 22:10:46.416 21141 21141 I SurfaceFlinger: Using composer version 1.5
01-01 22:10:46.416 21141 21141 I qdhwcomposer: hwc_registerProcs
01-01 22:10:46.416 21141 21141 I qdhwcomposer: Initializing UEVENT Thread
01-01 22:10:46.416 21141 21141 I qdhwcomposer: Initializing VSYNC Thread
01-01 22:10:46.416 21141 21141 D qdutils : int qdutils::getHDMINode(): HDMI is at fb1
01-01 22:10:46.416 21141 21141 D qdutils : int qdutils::getHDMINode(): HDMI is at fb1
01-01 22:10:46.416 21141 21141 D qdhwcomposer: hwc_getDisplayAttributes disp = 0, width = 720
01-01 22:10:46.416 21141 21141 D qdhwcomposer: hwc_getDisplayAttributes disp = 0, height = 1280
01-01 22:10:46.416 21141 21141 E qdhwcomposer: hwc_getDisplayConfigs display (1) is inactive
01-01 22:10:46.418 21141 21141 W Adreno-GSL: <os_lib_map:1421>: os_lib_map error: dlopen failed: cannot locate symbol
"__calc_shader_source_hash" referenced by "/system/vendor/lib/egl/libGLESv2_adreno.so"..., on '/vendor/lib/egl/libGLESv2
_adreno.so'
01-01 22:10:46.418 21141 21141 E Adreno-EGL: <egliLoadLibrary:676>: OpenGLES20 lib failed to load
01-01 22:10:46.418 21141 21141 E Adreno-EGL: <eglFetchClientAPIFunctions:3544>: NO OGL 2 functions
01-01 22:10:46.418 21141 21141 E Adreno-EGL: <eglCreateClientApiContext:2285>: Unable to fetch GL functions
01-01 22:10:46.418 21141 21141 W Adreno-EGL: <qeglDrvAPI_eglCreateContext:2539>: EGL_BAD_ALLOC
01-01 22:10:46.418 21141 21141 F SurfaceFlinger: EGLContext creation failed
01-01 22:10:46.419 21141 21141 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 21141 (surfaceflinger)
01-01 22:10:46.419 21138 21138 W : debuggerd: handling request: pid=21141 uid=1000 gid=1003 tid=21141
[Xperia Z1 Original Android Development] optimumpro:
Why don't you try to modify camera wrapper and use it with CM 3.4 kernel. At least CM 3.4 boots with Nougat. Then you can see for yourself that no stock camera blobs above Jeallybean could work with custom roms. You'll never be able to boot stock kernel with either CM or AOSP based rom. CM team was very good in 2013-2014 before they went Cyanogen Inc.: they have tried different ways, but were only able to have custom roms work with JB blobs...
[Xperia Z1 Original Android Development] munjeni:
I have managed to boot htc hd mini winCE rom on htc aria which is true android device! It was totaly crazy and imposible but I done it. I will try allso to boot stock kernel on nougat, nothing is imposible, need only good will and free time..
[Xperia Z1 Original Android Development] munjeni:
Want to show you something.... kernel from yesterday, stock kernel from copyleft archive! I can say for sure, definitely, ITS POSSIBLE!!! \ :laugh: / \0/ \0/

[MENTION=4675360]tomascus[/MENTION], BIG thanks to you mate, without your help all things will be impossible !!!
[Xperia Z1 Original Android Development] munjeni:
Tomascus, is your hals prebuilt or self compiled?
[Xperia Z1 Original Android Development] munjeni:
Here is everything need (by now) to boot into stock kernel and nougat aosp, use kernel + patches + this http://munjeni.myiphost.com/system.rar

system.rar is combined by: initialy added stock libs (from 14.6.A.1.236) + tomascus dispHal.zip + adreno blobs provided by tomascus, I just dirty combined and imported stock libs but I will try everything to use more stock libs if possible, will check everything fine, priority was to boot kernel (14.6.A.1.X) but I will play more when I get free time, good thing is we have managed to boot stock kernel \0/, we have now perfect match: kernel <-> stock blobs, we just need to investigate and make things working, camera must work in this combination I am prety sure. Happy hacking! :good: