[ROM][UNOFFICIAL][WIP] Cyanogenmod 11 (4.4.4 - kitkat) for fairphone FP1

Search This thread

yahya69

Senior Member
Feb 5, 2013
158
17
Berlin
OnePlus 3T
OnePlus 7
I think I would contribute to that :)

So would I! Now it is pretty much official, that the makers of Fairphone will not be providing any new android versions (for the time being, they don't even ensure essential security updates, such as fixing the UXSS vulnerability). So clearly, there is no other option to ever get a newer Android onto the FP1. Who could take the lead on this? Also, is there any indication that @chrmhoffmann might be interested?
 
Last edited:

chrmhoffmann

Inactive Recognized Developer
Nov 11, 2006
941
3,154
Hi,

Without MTK sources, you won't be able to make a full functioning rom.

Anyway, I unfortunately don't have the time.

My advice, buy a new phone and make sure it is supported by cyanogen.

Chris
 
  • Like
Reactions: bejunk

Unrelashade

Senior Member
Sep 7, 2009
156
47
Wait, didn't you build this rom with the kernel that you compiled yourself? You even linked to a github page for that. Which sources are missing then? I'm confused
 

madde-

Member
Sep 2, 2014
23
3
I'm struggling to build CM11 (reason: latest CM11.0 stable should fix stagefright bug).
Problem seems to be building the custom kernel. So far I have tried to build it directly following this building guide (https://github.com/keesj/alps-fairphone-gpl/wiki/Building) resulting in:
-D"KBUILD_MODNAME=KBUILD_STR(file_table)" -c -o fs/file_table.o fs/file_table.c
fs/file_table.c: In function 'get_empty_filp':
fs/file_table.c:36:20: error: inlining failed in call to always_inline 'fd_show_open_files': function body not available
fs/file_table.c:160:36: error: called from here
scripts/Makefile.build:307: recipe for target 'fs/file_table.o' failed
make[1]: *** [fs/file_table.o] Error 1
Makefile:967: recipe for target 'fs' failed
make: *** [fs] Error 2

I tried building Cyanogenmod with this local_manifest (https://github.com/mad-de/CM-FP1/blob/master/local_manifest.xml). With following commands:
repo init -u https://github.com/CyanogenMod/android.git -b cm-11.0
repo sync
adb connect [...]
cd fp/FP1
./extract-files.sh
croot
. build/envsetup.sh
brunch FP1

Build fails with:
find: `bootable/recovery/res-540': No such file or directory No private recovery resources for TARGET_DEVICE FP1 build/core/tasks/kernel.mk:91: ********************************************************** build/core/tasks/kernel.mk:92: * Kernel source found, but no configuration was defined * build/core/tasks/kernel.mk:93: * Please add the TARGET_KERNEL_CONFIG variable to your * build/core/tasks/kernel.mk:94: * BoardConfig.mk file * build/core/tasks/kernel.mk:95: ********************************************************** Install: /home/martin/android/system/out/host/linux-x86/bin/mkbootimg Install: /home/martin/android/system/out/host/linux-x86/bin/mkbootfs Install: /home/martin/android/system/out/host/linux-x86/bin/checkpolicy Install: /home/martin/android/system/out/host/linux-x86/bin/checkfc Install: /home/martin/android/system/out/host/linux-x86/bin/clang-tblgen

Setting TARGET_KERNEL_CONFIG := ../../../kernel/fp/FP1/mediatek/config/ahong89_wet_jb2/configs/ in device/fp/FP1/BoardConfig.mk results in:
make -C kernel/fp/FP1 O=/home/martin/android/system/out/target/product/FP1/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/martin/android/system/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" headers_install
make[1]: Entering directory '/home/martin/android/system/kernel/fp/FP1'
make[1]: *** No rule to make target 'headers_install'. Stop.
make[1]: Leaving directory '/home/martin/android/system/kernel/fp/FP1'
build/core/tasks/kernel.mk:202: recipe for target '/home/martin/android/system/out/target/product/FP1/obj/KERNEL_OBJ/usr' failed
make: *** [/home/martin/android/system/out/target/product/FP1/obj/KERNEL_OBJ/usr] Error 2
make: *** Waiting for unfinished jobs....

Any idea how to build succesful? Where have I gone wrong in this?
 
  • Like
Reactions: z3ntu

Top Liked Posts

  • There are no posts matching your filters.
  • 49
    Code:
    #include 
    /*
     * Your warranty is now void.
     *
     * I am not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at me for messing up your device, I will laugh at you.
     *
     * Submitting bug reports on nightly builds is the leading 
     * cause of male impotence.
     */

    PHONES CAN BE LIVE SAVERS. THIS DEVICE IS NOT SUITABLE AS YOUR ONLY MEANS FOR COMMUNICATIONS AND IS NOT BEEN TESTED TO SUPPORT EMERGENCY CALLS. MAKE SURE YOU HAVE ANOTHER PHONE WITH YOU.

    CyanogenMod/CWM is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed.

    This is a rom for fairphone FP1 - 1st edition, repartitioned as of Cherry 1.6.
    Do not install on any other device than the FP1 - I have not tested it on other devices and I do not have the FP1U1 (second edition).
    This is basically the same rom as the KK build I do for the Wiko Stairway with a few FP1 changes (esp of course the kernel, magnetometer service, other minor differences). It uses a blob from the Wiko mtk-ril.so as the original FP1 blob crashes the rild.

    What works:
    - SIM1 for phone calls (incoming/outgoing) and SMS, data (2g, 3g)
    - SIM2 is a WIP
    - Audio (microphone - now also outside phone calls, loudspeaker, headphones, OK google)
    - Sensors
    - Wifi (not wifi direct)
    - GPS (no A-GPS yet nor EPO assist files, so the fix can take a bit)
    - hw composer
    - camera for taking pictures (not video)
    - wifi and usb tethering
    - battery usage stats (expect the usage for Display to be very unprecise)
    - candy crush, facebook and twitter :)

    What doesn't work, known bugs:
    - 2nd sim card 3G switch
    - Dual SIM is a WIP and has some bugs (data connection instability, etc.)
    - camera for "movies" does not work
    - (hw) video en/decoding not enabled
    - bluetooth not available
    - FM radio not available
    - A-GPS does not work, GPS works though but slowish
    - rest of MTK specifics (what?)

    - ... you tell me

    Credits: many thanks go to the omnirom project as they have done lots for mt6589 already (https://gerrit.omnirom.org/#/q/topic:mt6589,n,z). Esp to xplodwild and drshadow, pawitp, dhacker29, keesj, tmp_

    Installation guide:
    - Install latest CWM linked in this thread (for installation see in: http://forum.xda-developers.com/showthread.php?t=2615613) - if you don't have it yet, make sure you backup recovery.img
    - Make a backup with CWM - you will want to go back to stock, don't blame me if you don't have a backup!!!
    - copy the .zip to the phone and flash the zip with CWM
    - copy the gapps to phone and install the zip (see: http://wiki.cyanogenmod.org/w/Google_Apps - this is CM11)
    - Wipe

    Sources:
    Kernel: https://github.com/chrmhoffmann/android_kernel_fp_FP1
    Device: https://github.com/chrmhoffmann/android_device_fp_FP1
    Android: https://gerrit.omnirom.org/#/q/topic:mt6589,n,z - more to come

    Changelog 0.2:
    - sync with CM (~M10)

    Downloads:
    http://goo.im/devs/chrmhoffmann/cm-11.0/fp1/cm-11_FP1-ota-UNOFFICIAL-FULLOFBUGS-0.2.zip

    md5sum:
    a5fc95a59748d08c0944420b8ddcd026 cm-11_FP1-ota-UNOFFICIAL-FULLOFBUGS-0.2.zip


    Older Downloads:
    Downloads:
    http://goo.im/devs/chrmhoffmann/cm-11.0/fp1/cm-11_FP1-ota-UNOFFICIAL-FULLOFBUGS-0.1.zip

    md5sum:
    fc5cba4eace4eaadf2b94f4513950f38 cm-11_FP1-ota-UNOFFICIAL-FULLOFBUGS-0.1.zip
    13
    0.2

    0.2 released.

    Nothing much changed in terms of mtk specific. Just sync to current cyanogenmod sources (approx. M10).

    Chris

    PS: Files need some time to show up on goo.im.
    PS2: It is there now.
    7
    there are any news about this rom? seems stopped....

    I am exicted and interested in news as well.
    But:
    It's barely been a week. @chrmhoffmann made something great here, but is probably working on this in free time. Please show some patience and don't make this Fairphone forum look like other threads here on xda. ;)
    2
    Thank you very much !
    I tried it (this was my first experience with CM so far) and I think I wont go back to android anytime soon :D

    Despit the name of the download (FULLOFBUGS ^^), I found it actually quite stable (It's true I haven't done extensive testing)

    The only not known bug I encountered (and I absolutly dont care, please dont waste time fixing it :)) was with the grass animated walpaper.

    I also encoutered the
    very minor glitches in animations (like turning your phone by 90 degrees) with smaller stripes
    described by @madde- in this thread (which you might want to check out)

    Thanks again, a lot !
    1
    First of all: many many thanks for even trying to bring CM11 to the Fairphone!! I don't own one (yet) as up to now I felt that this project might lead into a dead end (i.e. a device that after some rather short time is no longer supported). Now the perspective is quite different.

    What works:
    - SIM1 for phone calls (incoming/outgoing) and SMS, data (2g, 3g)
    - SIM2 is a WIP
    ...

    What doesn't work, known bugs:
    - 2nd sim card 3G switch

    Fairphone states this on the specs page (http://shop.fairphone.com/specs-page.html):

    Dual SIM, Dual Stand-by. One SIM: 3G; one SIM: 2G. Standard format miniSIM card (not included).

    Could this mean that SIM #2 is by design restricted to 2G?

    Out of curiosity: one more question regarding phone and kernel: can the CPU be overclocked? If so, what steps are available, has anyone encountered stability issues?