[HOWTO] ✏ Compiling Fairphone Open OS / Rooting

So my build failed again with an segmentation fault

make[1]: Leaving directory '/home/simon/src/fairphone_os/kernel'
mdpath=`find out/target/product/FP2/system/lib/modules -type f -name modules.dep`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; ko=`find $mpath/kernel -type f -name *.ko`; for i in $ko; do mv $i out/target/product/FP2/system/lib/modules/; done; fi
mdpath=`find out/target/product/FP2/system/lib/modules -type f -name modules.dep`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi
mkdir -p out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot;   out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v1-rumi.dtb ./kernel/arch/arm/boot/dts/msm8974-v1-rumi.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v1-rumi.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v1-rumi-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.2-cdp.dtb ./kernel/arch/arm/boot/dts/msm8974-v2.2-cdp.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.2-cdp.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.2-cdp-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ab-pm8941-fluid.dtb ./kernel/arch/arm/boot/dts/msm8974pro-ab-pm8941-fluid.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ab-pm8941-fluid.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ab-pm8941-fluid-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ab-pm8941-liquid.dtb ./kernel/arch/arm/boot/dts/msm8974pro-ab-pm8941-liquid.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ab-pm8941-liquid.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ab-pm8941-liquid-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ab-pm8941-mtp.dtb ./kernel/arch/arm/boot/dts/msm8974pro-ab-pm8941-mtp.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ab-pm8941-mtp.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ab-pm8941-mtp-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v1-cdp.dtb ./kernel/arch/arm/boot/dts/msm8974-v1-cdp.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v1-cdp.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v1-cdp-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ac-pm8941-mtp.dtb ./kernel/arch/arm/boot/dts/msm8974pro-ac-pm8941-mtp.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ac-pm8941-mtp.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ac-pm8941-mtp-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v1-fluid.dtb ./kernel/arch/arm/boot/dts/msm8974-v1-fluid.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v1-fluid.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v1-fluid-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ac-pm8941-liquid.dtb ./kernel/arch/arm/boot/dts/msm8974pro-ac-pm8941-liquid.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ac-pm8941-liquid.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ac-pm8941-liquid-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ac-pma8084-pm8941-mtp.dtb ./kernel/arch/arm/boot/dts/msm8974pro-ac-pma8084-pm8941-mtp.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ac-pma8084-pm8941-mtp.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ac-pma8084-pm8941-mtp-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.0-1-cdp.dtb ./kernel/arch/arm/boot/dts/msm8974-v2.0-1-cdp.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.0-1-cdp.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.0-1-cdp-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.2-fluid.dtb ./kernel/arch/arm/boot/dts/msm8974-v2.2-fluid.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.2-fluid.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.2-fluid-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ab-pm8941-fluid-hbtp.dtb ./kernel/arch/arm/boot/dts/msm8974pro-ab-pm8941-fluid-hbtp.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ab-pm8941-fluid-hbtp.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ab-pm8941-fluid-hbtp-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v1-mtp.dtb ./kernel/arch/arm/boot/dts/msm8974-v1-mtp.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v1-mtp.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v1-mtp-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.2-liquid.dtb ./kernel/arch/arm/boot/dts/msm8974-v2.2-liquid.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.2-liquid.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.2-liquid-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.0-1-liquid.dtb ./kernel/arch/arm/boot/dts/msm8974-v2.0-1-liquid.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.0-1-liquid.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.0-1-liquid-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.2-mtp.dtb ./kernel/arch/arm/boot/dts/msm8974-v2.2-mtp.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.2-mtp.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.2-mtp-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v1-liquid.dtb ./kernel/arch/arm/boot/dts/msm8974-v1-liquid.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v1-liquid.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v1-liquid-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ab-pm8941-cdp.dtb ./kernel/arch/arm/boot/dts/msm8974pro-ab-pm8941-cdp.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ab-pm8941-cdp.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ab-pm8941-cdp-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.0-1-fluid.dtb ./kernel/arch/arm/boot/dts/msm8974-v2.0-1-fluid.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.0-1-fluid.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.0-1-fluid-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.0-1-mtp.dtb ./kernel/arch/arm/boot/dts/msm8974-v2.0-1-mtp.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.0-1-mtp.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v2.0-1-mtp-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v1-sim.dtb ./kernel/arch/arm/boot/dts/msm8974-v1-sim.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v1-sim.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974-v1-sim-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ac-pm8941-cdp.dtb ./kernel/arch/arm/boot/dts/msm8974pro-ac-pm8941-cdp.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ac-pm8941-cdp.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msm8974pro-ac-pm8941-cdp-zImage;   out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msmsamarium-sim.dtb ./kernel/arch/arm/boot/dts/msmsamarium-sim.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msmsamarium-sim.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msmsamarium-sim-zImage;  out/target/product/FP2/obj/KERNEL_OBJ/scripts/dtc/dtc -p 1024 -O dtb -o out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msmsamarium-rumi.dtb ./kernel/arch/arm/boot/dts/msmsamarium-rumi.dts; cat out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/zImage out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msmsamarium-rumi.dtb > out/target/product/FP2/obj/KERNEL_OBJ/arch/arm/boot/msmsamarium-rumi-zImage;
target thumb C++: v8_tools_gyp_v8_base_gyp <= external/chromium_org/v8/src/compiler/change-lowering.cc
target thumb C++: v8_tools_gyp_v8_base_gyp <= external/chromium_org/v8/src/compiler/code-generator.cc
target thumb C++: v8_tools_gyp_v8_base_gyp <= external/chromium_org/v8/src/compiler/common-operator.cc
target thumb C++: v8_tools_gyp_v8_base_gyp <= external/chromium_org/v8/src/compiler/control-builders.cc
target thumb C++: v8_tools_gyp_v8_base_gyp <= external/chromium_org/v8/src/compiler/gap-resolver.cc
target thumb C++: v8_tools_gyp_v8_base_gyp <= external/chromium_org/v8/src/compiler/graph-builder.cc
target thumb C++: v8_tools_gyp_v8_base_gyp <= external/chromium_org/v8/src/compiler/graph-reducer.cc
target thumb C++: v8_tools_gyp_v8_base_gyp <= external/chromium_org/v8/src/compiler/graph-replay.cc
target thumb C++: v8_tools_gyp_v8_base_gyp <= external/chromium_org/v8/src/compiler/graph-visualizer.cc
target thumb C++: v8_tools_gyp_v8_base_gyp <= external/chromium_org/v8/src/compiler/graph.cc
target thumb C++: v8_tools_gyp_v8_base_gyp <= external/chromium_org/v8/src/compiler/instruction-selector.cc
target thumb C++: v8_tools_gyp_v8_base_gyp <= external/chromium_org/v8/src/compiler/instruction.cc
target thumb C++: v8_tools_gyp_v8_base_gyp <= external/chromium_org/v8/src/compiler/js-builtin-reducer.cc
target thumb C++: v8_tools_gyp_v8_base_gyp <= external/chromium_org/v8/src/compiler/js-context-specialization.cc
target thumb C++: v8_tools_gyp_v8_base_gyp <= external/chromium_org/v8/src/compiler/js-generic-lowering.cc
In file included from external/chromium_org/v8/src/heap/heap.h:12:0,
                 from external/chromium_org/v8/src/contexts.h:8,
                 from external/chromium_org/v8/src/objects-inl.h:17,
                 from external/chromium_org/v8/src/v8.h:39,
                 from external/chromium_org/v8/src/assembler.h:38,
                 from external/chromium_org/v8/src/code-factory.h:9,
                 from external/chromium_org/v8/src/compiler/js-generic-lowering.cc:5:
external/chromium_org/v8/src/counters.h:582:22: internal compiler error: Segmentation fault
   StatsCounter* name() { return &name##_; }
                      ^
external/chromium_org/v8/src/counters.h:481:3: note: in expansion of macro 'SC'
   SC(constructed_objects_runtime, V8.ConstructedObjectsRuntime)                \
   ^
external/chromium_org/v8/src/counters.h:584:3: note: in expansion of macro 'STATS_COUNTER_LIST_2'
   STATS_COUNTER_LIST_2(SC)
   ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://source.android.com/source/report-bugs.html> for instructions.
build/core/binary.mk:619: recipe for target 'out/target/product/FP2/obj/STATIC_LIBRARIES/v8_tools_gyp_v8_base_gyp_intermediates/v8/src/compiler/js-generic-lowering.o' failed
make: *** [out/target/product/FP2/obj/STATIC_LIBRARIES/v8_tools_gyp_v8_base_gyp_intermediates/v8/src/compiler/js-generic-lowering.o] Error 1
make: *** Auf noch nicht beendete Prozesse wird gewartet …

#### make failed to build some targets (04:45:01 (hh:mm:ss)) ####

simon@laptop:~/src/fairphone_os$ 

The temperature was always around 50°C and dmesg only gives:

[ 7703.642183] do_trap: 51 callbacks suppressed
[ 7703.642188] traps: compiz[2459] trap stack segment ip:7f0a30eb55fa sp:7ffc744f0e70 error:0 in libunity-core-6.0.so.9.0.0[7f0a30e21000+133000]
[ 7704.132182] [drm:gen8_irq_handler [i915]] *ERROR* The master control interrupt lied (SDE)!
[11256.518831] ACPI: \_SB_.PCI0.LPCB.EC0_.ECRD: 1 arguments were passed to a non-method ACPI object (RegionField) (20150619/nsarguments-230)
[11256.518865] ACPI: \_SB_.PCI0.LPCB.EC0_.ECRD: 1 arguments were passed to a non-method ACPI object (RegionField) (20150619/nsarguments-230)
[11622.991383] ACPI: \_SB_.PCI0.LPCB.EC0_.ECRD: 1 arguments were passed to a non-method ACPI object (RegionField) (20150619/nsarguments-230)
[11622.991418] ACPI: \_SB_.PCI0.LPCB.EC0_.ECRD: 1 arguments were passed to a non-method ACPI object (RegionField) (20150619/nsarguments-230)
[12761.276058] ACPI: \_SB_.PCI0.LPCB.EC0_.ECRD: 1 arguments were passed to a non-method ACPI object (RegionField) (20150619/nsarguments-230)
[12761.276094] ACPI: \_SB_.PCI0.LPCB.EC0_.ECRD: 1 arguments were passed to a non-method ACPI object (RegionField) (20150619/nsarguments-230)
[21146.601242] ACPI: \_SB_.PCI0.LPCB.EC0_.ECRD: 1 arguments were passed to a non-method ACPI object (RegionField) (20150619/nsarguments-230)
[21146.601279] ACPI: \_SB_.PCI0.LPCB.EC0_.ECRD: 1 arguments were passed to a non-method ACPI object (RegionField) (20150619/nsarguments-230)
[21278.271763] ACPI: \_SB_.PCI0.LPCB.EC0_.ECRD: 1 arguments were passed to a non-method ACPI object (RegionField) (20150619/nsarguments-230)
[21278.271799] ACPI: \_SB_.PCI0.LPCB.EC0_.ECRD: 1 arguments were passed to a non-method ACPI object (RegionField) (20150619/nsarguments-230)
[24254.268224] ACPI: \_SB_.PCI0.LPCB.EC0_.ECRD: 1 arguments were passed to a non-method ACPI object (RegionField) (20150619/nsarguments-230)
[24254.268260] ACPI: \_SB_.PCI0.LPCB.EC0_.ECRD: 1 arguments were passed to a non-method ACPI object (RegionField) (20150619/nsarguments-230)

Not sure how old that stuff is.
Did anybody successfully build on Ubuntu 15.10? Otherwise I’ll just wait until Monday, to see what/if the Fairphone devs say.

Good night!

Here it is : [deactivated for now]

(I told you it would take some time :stuck_out_tongue: I’m using a 2MB/s ADSL connexion shared with all my family)

1 Like

Great, will test it as soon as possible

I hope you didn’t get into trouble with your family! :wink:

Hi IKlaus.

I have just sent you a personal message with a link to my compilation results. Feel free to try flashing it. Would be great if we could get your phone running again…

1 Like

Same result, loop while booting with

[QUOTE]
D/AndroidRuntime( 2213): >>>>>> START com.android.internal.os.ZygoteInit uid 0 <<<<<<
E/JniInvocation( 2213): Failed to dlopen libart.so: dlopen failed: library “libart.so” not found
D/AndroidRuntime( 2213): CheckJNI is OFF
F/libc ( 2213): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 2213 (zygote)
I/mediaserver( 2212): ServiceManager: 0xb58700c0
I/AudioFlinger( 2212): Using default 3000 mSec as standby time.
I/ServiceManager( 2212): Waiting for service batterystats…
I/DEBUG ( 258): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 258): Build fingerprint: 'Fairphone/FP2/FP2:5.1/FP2/gmarion12311042:userdebug/test-keys’
I/DEBUG ( 258): Revision: '0’
I/DEBUG ( 258): ABI: 'arm’
I/DEBUG ( 258): pid: 2213, tid: 2213, name: zygote >>> zygote <<<
I/DEBUG ( 258): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
I/DEBUG ( 258): r0 b6f134c8 r1 be9bd74c r2 be9bc758 r3 00000000
I/DEBUG ( 258): r4 00000023 r5 00010004 r6 be9bc758 r7 00000000
I/DEBUG ( 258): r8 be9bd694 r9 be9bc7c4 sl be9bc7d8 fp b6eeb101
I/DEBUG ( 258): ip b66e3f88 sp be9bc740 lr b6e954a3 pc 00000000 cpsr a0000010
I/DEBUG ( 258):
I/DEBUG ( 258): backtrace:
I/DEBUG ( 258): #00 pc 00000000
I/DEBUG ( 258): #01 pc 0005c49f /system/lib/libandroid_runtime.so (android::AndroidRuntime::startVm(_JavaVM**, _JNIEnv**)+2286)
I/DEBUG ( 258): #02 pc 0005cae7 /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vectorandroid::String8 const&)+258)
I/DEBUG ( 258): #03 pc 00001675 /system/bin/app_process32
I/DEBUG ( 258): #04 pc 0000fec9 /system/lib/libc.so (__libc_init+44)
I/DEBUG ( 258): #05 pc 000017b0 /system/bin/app_process32
I/DEBUG ( 258):
I/DEBUG ( 258): Tombstone written to: /data/tombstones/tombstone_04
I/ServiceManager( 236): service ‘media.audio_flinger’ died
[/QUOTE]

Will have to wait till my compile is done, as I tried wiping, but this also wipes bootimg. This I need from my compile

Hi,
thanks, will try as soon as I have bootimg again. As said above, I tried wiping, but forgot my images are rebuilt as I speak…
Not only get the phone going, but also seeing that our self made builds will work… If this doesn’t work as advertised, we won’t be able to comple the ROM ourselfs.

Klaus

boot.img is included in my zip file. It could only take a while to download.
But then you have it all from one compilation.

1 Like

Thanks, but not better. So better not trying flashng this. I will do some tests, after my compilation has finished.

You can deactivate your link, thanks!

:fearful:

Oh nooo.

You were the only one I sent the link to. What I will try is to completely recompile the entire stuff. I had an interruption last time. I will let you know when this finished. Maybe it works with that one…

1 Like

I don’t get what you are doing here, are you trying to run the FP2 build of Android in an emulator ?

No. In the end I followed the instruction from code.fairphone.com, including fastboot flash all. It’s life, on the device

Ok,

I am compiling again, this time with an 8GB swap partition from the beginning.

There is something that makes me wonder a bit. When starting

choosecombo 1 FP2 2

I get the following:

Build type choices are:
     1. release
     2. debug

Which would you like? [1] 1


Product choices are:
     1. FP2
     2. msm8974
Which product would you like? [full] FP2


Variant choices are:
     1. user
     2. userdebug
     3. eng
Which would you like? [eng] 2

So, I will not get a “user” system and no “eng” system but a “userdebug” system. Is this correct?? Hmm…

Yes.

Userdebug is the same as user but with root access and with debug enabled. For builds such as yours it’s probably the best option.

Ah,

sounds good. But isn’t good yet, though. :expressionless:

Klaus, you have wiped all cache possible before flashing?

Yeah, I did. I can also boot into recocery, tried to flash the fp_update_.zip which is downloaded from updater. Sadly, recovery says it does not verify… Interesting, as it is from fairphone itself. Different keys in this recovery and the preflashed one?

Hm,

from flashing CM on my S3 I remember that you have to wipe chache and flash the file in a very specific order. So, you have to do it precisely as described, otherwise you and up in a boot loop, which I did several times.
Unfortunately, there is no all too detailed description on how to flash the fairphone, yet. The Fairphoners will probably have done everything correctly as they know what they are doing.
I wouldn’t say so about us. :stuck_out_tongue_winking_eye:

However, your phone is soft bricked for now, but there will be a solution. I’d be eager to find out how to get it running again, but quite relaxed on the other hand. We will get it working again…

When you flash it as proposed, how does the phone look like? Black Scrren, never ending intro…?

Hmm I’ve had a look at my system.img and indeed it does not contain libart.so (while the system.img I build for my shield tablet does have it). It also seems to lack libart-compiler.so that my shield tablet has.

I can add it by hand, but since my upload is so lame if you want to do it yourself you can find libart.so in this place :
./out/target/product/FP2/obj/lib/libart.so

I verified on my shield tablet build, and the one in this position in my build tree matches the one on my tablet perfectly (using a binary diff). I can provide instructions to unpack, mount, modify and rebuild the system.img with libart.so (and eventually libart-compiler.so) if you want.

That said could you provide a bit more of the boot log please ? Maybe pastebin it ?

What you could try fist is the following:

I have updated the repository and compiled everything again. I have created a file called FP2new.zip (same location) which this time contains all .img files. File size: 616MB.

Unzip the file, put the content to the FP2 directory, wipe the cache, format the system partition (if possible) and use flashall to flash the content. After this you might (just to be on the save side) wipe cache and Dalvik cach again.

If it still doesn’t work, try to flash the other files manually by name. They should not have got compiled for nothing. Flashall seems to only flash boot, system and recovery, but I am not 100% about this.

Good luck, but keep in mind: I am also only someone with dangerous half knowledge! :wink:

well, I did flash like in the instructions from code.fairphone.com. Fastboot flashall -w… I don’t know how userdata and cache enter, This would be my next try flashing, with all images available.
And checking, why libart.so won’t be included in the image.

The errormsgs are at http://fpaste.org/306445/51735389

Klaus

Thanks, I’ll look into that after eating. I might be on to something though, in vendor/qcom/proprietary/vendorsetup.sh :

# BEGIN STRIPPED DOWN BLOBS export FP2_SKIP_BOOT_JARS_TEST=true export FP2_USE_PREBUILT_LIBART=true export FP2_USE_PREBUILT_LIBART_COMPILTER=true export FP2_SKIP_QCOM_SKIA=true

there is a typo (I think) in LIBART_COMPILTER which might explain why it is lacking from system.img. (EDIT : not a typo, build fails when modified). I am building using both parameters (with original names) set to false.

(fun fact, there’s an actual typo in the proprietary blob’s user agreement :
6. The Software is provided to you as is, meaning that Fairpone makes no
I don’t recognize any rights to “Fairpone”)

2 Likes