I followed your suggestion but still stuck at android logo.
The reoccurring problem here is:
" CANNOT LINK EXECUTABLE "/vendor/bin/ipsec_mon": library "liblogwrap.so" not found "
" Abort message: 'couldn't find an OpenGL ES implementation, make sure you set ro.hardware.egl or ro.board.platform' "
It looks like the problem is the vendor partition. What stock Android version did you come from? Did you install latest stock update available?
Sent from my SM-G975U1 using XDA Labs