Skip to content

Instantly share code, notes, and snippets.

@z3ntu
Last active November 21, 2016 13:30
Show Gist options
  • Save z3ntu/9d6e64ba00f96cf1d1462f790d1809dd to your computer and use it in GitHub Desktop.
Save z3ntu/9d6e64ba00f96cf1d1462f790d1809dd to your computer and use it in GitHub Desktop.
Fairphone 2 AOSP 5.1 build debugging

Fairphone 2 AOSP 5.1 build debugging

Download https://private.z3ntu.xyz/fairphone/AOSP_5.1.1_build_blobfree.zip

Flash it in the recovery (also run all adb commands in the recovery, my/stock TWRP build from https://private.z3ntu.xyz/fairphone/TWRP_3.0.2-0.img works pretty well as adb is fixed)

Boot -> adb shell -> "CANNOT LINK EXECUTABLE DEPENDENCIES: library "libNimsWrap.so" not found" (not even adb shell works without that library)

(from the folder vendor/qcom/proprietary/target/product/FP2/system from the FP Open 16.10 blobs)

adb push vendor/lib/libNimsWrap.so /system/vendor/lib/

Boot -> adb shell -> surfaceflinger error "couldn't find an OpenGL ES implementation"

adb shell mkdir /system/vendor/lib/egl/
adb push vendor/lib/egl/libEGL_adreno.so /system/vendor/lib/egl/

Boot -> adb shell -> "dlopen failed: library "libadreno_utils.so" not found"

adb push vendor/lib/libadreno_utils.so /system/vendor/lib/

Boot -> adb shell -> "dlopen failed: library "libgsl.so" not found"

adb push vendor/lib/libgsl.so /system/vendor/lib/

Boot -> phone reboots without giving access to adb prior crashing (adb there but "offline")

Added a stacktrace I got in the 2nd file.

<2>[ 81.540982] kernel BUG at /home/jenkins/workspace/FP2-open-release-REAL/kernel/drivers/gpu/msm/adreno.c:1952!
<0>[ 81.550922] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
<6>[ 81.556737] Modules linked in:
<6>[ 81.559725] CPU: 1 Not tainted (3.4.0-g4e3542c #1)
<6>[ 81.564856] PC is at adreno_init+0x14c/0x41c
<6>[ 81.569141] LR is at adreno_init+0x14c/0x41c
<6>[ 81.573355] pc : [<c0475528>] lr : [<c0475528>] psr: 60000013
<6>[ 81.573357] sp : f3b53d88 ip : f6138e00 fp : f3b52000
<6>[ 81.584812] r10: c0fc7098 r9 : f3b52000 r8 : e1371cc0
<6>[ 81.590060] r7 : c0fca994 r6 : f35f69c0 r5 : 00000000 r4 : c0fca5e0
<6>[ 81.596535] r3 : 271ae91c r2 : 271ae91c r1 : 20000093 r0 : 0000005b
<6>[ 81.603089] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
<6>[ 81.610199] Control: 10c5787d Table: 33b5406a DAC: 00000015
<6>[ 81.615887]
<6>[ 81.615889] PC: 0xc04754a8:
<6>[ 81.620140] 54a8 e15c0000 1a00000b e5920004 e3700001 1150000e 1a000007 e5920008 e3700001
<6>[ 81.628301] 54c8 11500005 1a000003 e592000c e3700001 11500003 0a000086 e2811001 e2822054
<6>[ 81.636458] 54e8 e351000d 1affffec e3a03000 e5843650 e1a00004 ebffaef8 e3500000 0a000008
<6>[ 81.644620] 5508 e59434ac e3530002 da000004 e5940000 e59f12c0 e59f22c0 e5943670 eb0018a5
<6>[ 81.652780] 5528 e7f001f2 e1a00004 ebffaf35 e3500000 0a000008 e59434ac e3530002 da000004
<6>[ 81.660941] 5548 e5940000 e59f1294 e59f228c e5943660 eb001898 e7f001f2 e5943650 e3530000
<6>[ 81.669100] 5568 1a000008 e59434ac e3530002 da000004 e5940000 e59f1268 e59f225c e594364c
<6>[ 81.677262] 5588 eb00188c e7f001f2 e3a01001 e1a00004 ebff79dc e59f224c e3a01054 e5943710
<6>[ 81.685422]
<6>[ 81.685424] LR: 0xc04754a8:
<6>[ 81.689727] 54a8 e15c0000 1a00000b e5920004 e3700001 1150000e 1a000007 e5920008 e3700001
<6>[ 81.697846] 54c8 11500005 1a000003 e592000c e3700001 11500003 0a000086 e2811001 e2822054
<6>[ 81.706005] 54e8 e351000d 1affffec e3a03000 e5843650 e1a00004 ebffaef8 e3500000 0a000008
<6>[ 81.714153] 5508 e59434ac e3530002 da000004 e5940000 e59f12c0 e59f22c0 e5943670 eb0018a5
<6>[ 81.722319] 5528 e7f001f2 e1a00004 ebffaf35 e3500000 0a000008 e59434ac e3530002 da000004
<6>[ 81.730468] 5548 e5940000 e59f1294 e59f228c e5943660 eb001898 e7f001f2 e5943650 e3530000
<6>[ 81.738626] 5568 1a000008 e59434ac e3530002 da000004 e5940000 e59f1268 e59f225c e594364c
<6>[ 81.746790] 5588 eb00188c e7f001f2 e3a01001 e1a00004 ebff79dc e59f224c e3a01054 e5943710
<6>[ 81.754953]
< 81955] SP:8:
6] 3d08 271e1 7a9ccfae 0000f35f69c0 c0fca994371cc0 f000[ 81.7709 3500f180 35d8c452 07586001 ffff<>[ 81.750 d8 0a15c194 35d0c140 0c500000 3f90c4bf
6[ 8.864 d8 2ec0f35d0cc5f 35dcc452 0a20ca41 0a7f<> 1714]38 2222 22226001 0c94e31 0c50cfad 04b4<> 1800]3a 0020 479ee000c90c48 f3b53dfc c48084> 1886]3c f0d0 00010000 0000c80000 17c0<> 1862]3e c2ba 5e200000 05d8f4d 000 0000000
<[ 81.8241 <> 1848]I<>[ 81.8000 00000000 e2cc00000000d4a
6[ 8.387 d0 ffffff 6d8f18a 00000000 0000<> 1855]8c 0000 0000c4f8 000000000000 00000000 00000000 00000000
<6>[ 81.853214] 8de0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<6>[ 81.861379] 8e00 00020001 00080004 00200010 00800040 003a001d 00e80074 008700cd 00260013
<6>[ 81.869533] 8e20 0098004c 005a002d 007500b4 00c900ea 0003008f 000c0006 00300018 00c00060
<6>[ 81.877694] 8e40 0027009d 009c004e 004a0025 00350094 00d4006a 007700b5 00c100ee 0023009f
<6>[ 81.885855] 8e60 008c0046 000a0005 00280014 00a00050 00ba005d 00d20069 006f00b9 00a100de
<6>[ 81.894014]
<6>[ 81.894015] FP: 0xf3b51f80:
<6>[ 81.898266] 1f80 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<6>[ 81.906428] 1fa0 00000000 00000000 00000000 00000000 00000000 000000000 006[ 8.150 f0 00000000000 00000000 00000000 0000<> 1925]1e 0000 00000000 000000000 0000000000 0000<> 1900]20 0000 00020000 49e0cfe6 00010001 0<> 1996]22 c484 41d0c0f5fa4006e8f2b7340 f34fb3b
<6 81.900 3c8 000 00000000 000000000000 01000 0000<> 1959]26 bfb3 e0000000 0000020000 000100000 00000000 0000
6[ 8.16759] a6200000000 3002000 0000 c0fc830
6.640 00005787 c0ca579 78500020 00000000 ff00<> 2038]
6[ 8.301] R6: 0xf35f6940:
<6>[ 82.037340] 6940 f35f6640 00070007 dead4eadffff 00000000 00000000 000
<645491] 6960 1c0fc49 61c0fc49 00000000 00000000
6[ 8.565 90 00010000 000000000 00000 0000 00000000> 2011]6a 0000 00000000 00000000 000000000
<6>[ 82.069970] 6a5e0 00000000 00000000 00000000 00000000 00000000
<6>[ 82.078 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<6>[ 82.086294] 6a00 f7efc000 f7efe000 00000005 f49b7e8d e98267cc ee07060c ee070c98 f4e730d8
<6>[ 82.094452] 6a20 aaaaaaaa aaaaaaaa f35f6840 aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa
<6>[ 82.102620]
<6>[ 82.102622] R7: 0xc0fca914:
<6>[ 82.106903] a914 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000926
<6>[ 82.115022] a934 00000000 00000db5 00000000 0000124c 00000000 00001bce 00000000 00000000
<6>[ 82.123183] a954 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
< 82.974 0000 000000000 000000000 0<> 2190]a9 0000 0101 dead4ead ffffffffffff 0c98cfaa 49e0<> a9b00000 ca0f7e0 ffff0000 0000001
<6>[ 82.155823] a9d4 00000000 dead4ead fffffffffff c0e4 000000ead4ea6>[ 893 94 fffff ffffffff cfca9fc 0fca9f 2260f190 53c00000
6[ 8.712 <> 2124]R:0e314:<>393] 1c400 deaf1eed ffffff0000 00000000 0000<> 2145]16 0000 400 0000000000000 00000000 0000 00000000
<6>[ 82.192713] 1c80 00000000 00000000 00000000 00000000 0000000e1371c9 17c8<>. e1371ca0 ca00000 00000000 00000000 0000<>82.20903c0 5d0ff20 5d70ffb4 04880000 ededffff
6[ 8.115 c0 ffff00000010110 000f0000 00000000
6[ 8.236 d0 0000da1e ffffffff 0000 000000000 0000<> 2232]12 0000 4fe00000 0000000000 00000000 00000000 00000000
<6>[ 82.241676]
<6>[ 82.241677] R9: 0xf3b51f80:
<6>[ 82.245933] 1f80 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<6>[ 82.254085] 1fa0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<6>[ 82.262247] 1fc0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<6>[ 82.270404] 1fe0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<6>[ 82.278568] 2000 00000000 00000002 00000000 f479ee00 c0f9ee64 00000001 00000015 f479ee00
<6>[e468a40 c0f5fa40 c0f6be08 f62b7340 f354 f3b53bb0
<.982040 c05380000 00000000 00000000 11000000
6[ 8.009 00 64e07410 0000 00000000 00000000 00000000
<6>[ 82.311204]
<311206] R10: 0xc0fc70 82.315542] 7018 00000000 00000000 00000000 00000000000 00000000000>[ 82.32370000000 00000000 0000000 00000000 0000<> 2316]75 000 000000000000000 00000 0001 000 dead4ead
<6>[ 340022] 70 ffffffff c0fc7080 c0fc7080000000fc7 00000000
<6>[ 8182] 7098 0000000c0ccf74 00000002
<6>[ 82.7b 0000 0000ca05 4bc5b9c50 00000003 0f100000
<364501] 70d80 00000000 00000000 c380 c2124c0c c21e480c c26[ 8.760 08 64f0cfc1 22400000 00070000 00000000
0[ 8.884 rcsceflinger (pi: 878, stack limit = 0xf3b522f0)
<0>[ 82.387475] Stack: (0xf3b53d88 to 0xf3b54000)
<0>[ 82.391760] 3d80: 22222222 22222222 60000013 c0fca994 e1371cc0 c0fca5e0
<0>[ 82.399969] 3da0: c0fca9d0 c0445b24 00002000 00000000 f479ee00 c0fca5e0 c0fca9c0 c044b6a8
<0>[ 82.408084] 3dc0: f3b53dfc c0480844 f600d800 000000f1 00000001 00000000 c0fc7098 f4db9ae8
<0>[ 82.416292] 3de0: 00000000 e1371cc0 c025bca8 f5feb240 00000000 c025bdc8 f4db9ae8 00000000
<0>[ 82.424442] 3e00: 00000000 00000000 e1371cc0 f4db9ae8 f57d5790 c02563ec e1371cc0 f3b53ef8
<0>[ 82.432605] 3e20: 00000000 f47fee00 00000000 00000026 00000000 c02575a4 f47fee00 00000000
<0>[ 82.440722] 3e40: 00000000 f3b53ef8 000 001b9ae8 c0264540 f4ea21f8
.448927]b53ef8 14104a1b 00000ae8 f3b53ef8 f3b53ef8 f9c f38e
<0>[ 8 3e80: f3b53f78 fb3b 3e000000 3500c24f 35e40063
0[ 8.628 e0 4040fbac 40c4fb000b6f36 000 5790 f5fb4
0[ 8.738 e0 0000fd9c 1ef0fb37 0001f800 fffc0a4
<0>[ 59] 3ee0: f3b52000 00602cc25a 00010000 5d90 fb240
<02.49720] 0ab0000 3e050000 5000fd9e 00110000
0[ 8.980 f0 00000000 00100 f35f4620000000 f41fe608
<0563]34:be8c9c0x39c)<> 2659][c24f> pt_pnt0b/x9)fo <0628](ofilp_open+0x2c/0x8
6[ 8.202 <0628](ofl_pn02/x8 rm[c279> d_y_pn0d/x6)<> 2.334 <0560](ossoe+xc018 rm[c152> rtfs_ycl+x/x0
0[ 8.416 oe 5f20e92c 5460e01a ef0f)
4[ 8.425 -[edtaeb6181602 --<> 2651814] Kernel panincingtltion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment